Bitcoin Forum
March 19, 2024, 09:58:49 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 [39] 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 »
  Print  
Author Topic: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread)  (Read 129130 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
Bitoy
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


View Profile
December 24, 2013, 01:05:48 PM
 #761


I see absolutely no problem with sending coins to oneself.
A restriction on such a send is no where in the spec (and in my opinion - shouldn't be).
Also in bitcoins, one can send to himself.
Even our protocol uses bitcoin's feature of sending to one self (change).




Ok if sending to one self is the change then you can remove that address since it is a change address.
1710842329
Hero Member
*
Offline Offline

Posts: 1710842329

View Profile Personal Message (Offline)

Ignore
1710842329
Reply with quote  #2

1710842329
Report to moderator
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
December 24, 2013, 02:55:39 PM
 #762


I see absolutely no problem with sending coins to oneself.
A restriction on such a send is no where in the spec (and in my opinion - shouldn't be).
Also in bitcoins, one can send to himself.
Even our protocol uses bitcoin's feature of sending to one self (change).




Ok if sending to one self is the change then you can remove that address since it is a change address.

But also sending mastercoins to oneself is allowed.



Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
December 30, 2013, 01:42:05 PM
 #763

Hey guys I'm back! Catching up on a lot of stuff just wanted to say this:

I just added support for sending to yourself today. There is no reason to disallow this although it makes no sense.


Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
December 30, 2013, 03:01:18 PM
 #764

Bitoy I see that your implementation has a whole lot of different numbers all of a sudden. Any idea where these differences are coming from?

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
Bitoy
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


View Profile
December 30, 2013, 09:22:10 PM
 #765

Bitoy I see that your implementation has a whole lot of different numbers all of a sudden. Any idea where these differences are coming from?

Blockexplorer.com is stuck at block 277595.  That is where I get data.

  Is there a way to get exodus trans using bitcoind?
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
December 31, 2013, 09:56:47 AM
 #766

Bitoy I see that your implementation has a whole lot of different numbers all of a sudden. Any idea where these differences are coming from?

Blockexplorer.com is stuck at block 277595.  That is where I get data.

  Is there a way to get exodus trans using bitcoind?

I think that is what Zathras is doing, I would check out his tools on his Github. Or ask him directly how he manages that.

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
litepresence
Full Member
***
Offline Offline

Activity: 358
Merit: 118


View Profile
January 01, 2014, 05:47:08 AM
 #767

I'm really excited about this project and MSC in general... I'm NOT a coder but I am a mathematician; I have interests in multidimensional space and geodesics; I'm really good w/ visualizing and manipulating quadratics, regression, fourier analysis and the like... If I could be of any help I'd love to be involved.   


My biggest disappointment when I got involved w/ crypto was the realization that there was no "distributed exchange". 


I'd also like to buy 4 MSC... whatever is a fair rate from one of you guys that is "involved" I'm really sketched out by the marketplace right now following that shady deal w/ that doge coin guy

Got 4 for   .25 / btc each ?!?


Send PM if one of you has a few hours to chat via IM and get me more in tune w/ the project.


Created a post about MSC today in my new "Litepresence Report on Crypto"

http://www.ronpaulforums.com/showthread.php?437044-The-Litepresence-Report-on-Cryptocurrency&p=5358993&viewfull=1#post5358993

Quote from: presence;5358993
MSC and MST are both

"Mastercoin"

MSC is more formally the "Mastercoin - Exodus Project" a new protocol on the bitcoin blockchain which will allow tangibles to be traded within bitcoin.



MST is traded at cryptsy and is a junk coin.

You want learn more about MSC asap.


here are some links to get you started:


Price is up from 0.01 btc to 0.3 btc in past month.


This is a rock solid project w/ whitepaper

It currently is still traded via escrow and google spreadsheet; you're in on the ground floor so to speak.


https://bitcointalk.org/index.php?topic=287145.2640
http://www.mastercoin.org/
https://docs.google.com/spreadsheet/ccc?key=0ApGPLGUd5ZCzdHFxbnhHQjBDSDVKamY5UHlWdkNMNWc&usp=sharing#gid=0
https://bitcointalk.org/index.php?topic=272577.0
https://github.com/mastercoin-MSC/spec
http://mastercoin-faucet.com/bitcointalk-intro
http://www.mastercoin.org/#resources
http://blog.mastercoin.org/



first live "exchange" :
http://mcoin.io/#/



5000 BTC have been raised to fund this project:

https://bitcointalk.org/index.php?topic=292628.0


If you guys have any other key links regarding MSC please let me know, I'd like to spread awareness. 



way cool!

keep up the good work.


If you find some free time I have tons of questions... yes I've read the whitepaper  and a good part of this thread.   Smiley



litepresence

Bebopzzz
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
January 01, 2014, 02:28:03 PM
 #768

If you want to find out more we have a great wiki that we are always working on and trying to improve:

http://wiki.mastercoin.org/index.php/Main_Page

We also have our own forum

https://talk.mastercoin.org/index.php?p=/


Welcome aboard!
Bitoy
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


View Profile
January 03, 2014, 06:16:20 AM
 #769

Mymastercoins is back online.  (Using blockchain.org )

Please check address
14n2uAowcMTmCKMu4k4LZsWude3CttAgQR

Received 1000 msc balance 1000

Sent 1 msc balance 999

Sending  1000 msc.  Should be invalid since he only has 999
e258bca169d90801ba9e3f0536fef04af2f26fd13af045cfb7700ba9cca9c89e

Sent 300 balance 699
3ce917299c9d8b4834df51f640e9715ef8b6201cfd494238a7b2bd17863cc724
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
January 03, 2014, 09:49:09 AM
 #770

Mymastercoins is back online.  (Using blockchain.org )

Please check address
14n2uAowcMTmCKMu4k4LZsWude3CttAgQR

Received 1000 msc balance 1000

Sent 1 msc balance 999

Sending  1000 msc.  Should be invalid since he only has 999
e258bca169d90801ba9e3f0536fef04af2f26fd13af045cfb7700ba9cca9c89e

Sent 300 balance 699
3ce917299c9d8b4834df51f640e9715ef8b6201cfd494238a7b2bd17863cc724


Didn't he sent the MSC to himself? My version things he did and thus after that transaction he still has 1000 MSC.

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
Bitoy
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


View Profile
January 03, 2014, 12:10:35 PM
 #771

Mymastercoins is back online.  (Using blockchain.org )

Please check address
14n2uAowcMTmCKMu4k4LZsWude3CttAgQR

Received 1000 msc balance 1000

Sent 1 msc balance 999

Sending  1000 msc.  Should be invalid since he only has 999
e258bca169d90801ba9e3f0536fef04af2f26fd13af045cfb7700ba9cca9c89e

Sent 300 balance 699
3ce917299c9d8b4834df51f640e9715ef8b6201cfd494238a7b2bd17863cc724


Didn't he sent the MSC to himself? My version things he did and thus after that transaction he still has 1000 MSC.


I see.  He sent 1 msc back to himself.  My implementation sent it to the change address. Will update the codes.
Bitoy
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


View Profile
January 03, 2014, 06:45:16 PM
 #772

99.54%

8 Address left to sync =)

https://masterchest.info/consensus.aspx
aTriz
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 683


Tontogether | Save Smart & Win Big


View Profile
January 04, 2014, 04:38:35 AM
 #773

Almost there Smiley

Bitoy
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


View Profile
January 04, 2014, 02:55:25 PM
 #774

For transaction
ecb77ee990de29745de949462e1f6e44584c310a0da12c9fbdf86dbe6ffabcfc

1EXoDusjGwvnjZUyKkxZ4UHEf77z6A5S4P - (Unspent) 0.0006 BTC
15a4XCuWmx2cCQVf8wZK7mqdvj5uwo1vby - (Spent) 0.0006 BTC
15efTnSCG13druGmetEp1AULCEqudtCSwq - (Unspent) 0.0006 BTC
1Q1sFqsi8S5DxV5hz6sWLamGBp9To93iG7 - (Spent) 0.0119344 BTC

If this goes to peek and decode. Is address 1Q1sFqsi8S5DxV5hz6sWLamGBp9To93iG7 Included?

If it is included there will be 2 possible recipient address which makes the transaction invalid.
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
January 04, 2014, 06:09:09 PM
 #775

This is what I think we should be doing, and which I will probably add to the spec to make it explicit.

1. Try a normal decode.
  • Collect all outputs that have the same value as the Exodus output
  • Loop through these outputs and see if you can find a proper sequence number
  • If the sequence is found this it the recipient address

If this fails try option 2.

2. Try an exclusion based peek & decode (Peek and Decode - Level 1)
  • Collect all outputs that have the same value as the Exodus output
  • Remove the data address and the Exodus output.
  • If one address remains this is the recipient address.

If this fails try option 3.

3. All output based peek & decode. (Peek and Decode - Level 2)
  • Collect all outputs, this includes non-Exodus valued outputs.
  • Look for the sequence number
  • If the sequence number is found this is the recipient address.

This way we start with the most likely option and widen the net until we have a valid match.

I am a bit behind sleep so let me know if this makes any sense Smiley

In my implementation, which should be doing this, it looks like this:
Code:
D, [2014-01-04T19:00:21.722073 #41217] DEBUG -- : Found data for address 15efTnSCG13druGmetEp1AULCEqudtCSwq
D, [2014-01-04T19:00:21.722818 #41217] DEBUG -- : Looking for data sequence 51 +1 == 52
D, [2014-01-04T19:00:21.723860 #41217] DEBUG -- : Sequence: 148 for 1EXoDusjGwvnjZUyKkxZ4UHEf77z6A5S4P
D, [2014-01-04T19:00:21.724157 #41217] DEBUG -- : Sequence: 50 for 15a4XCuWmx2cCQVf8wZK7mqdvj5uwo1vby
D, [2014-01-04T19:00:21.724448 #41217] DEBUG -- : Sequence: 51 for 15efTnSCG13druGmetEp1AULCEqudtCSwq
D, [2014-01-04T19:00:21.724496 #41217] DEBUG -- : Target address not found attempting 'peek & decode' Level 1, checking exodus-sized outputs.
D, [2014-01-04T19:00:21.725218 #41217] DEBUG -- : Only one possible target left; found target address.

SimpleSend transaction from 1Q1sFqsi8S5DxV5hz6sWLamGBp9To93iG7 for 5.00000000 Mastercoin to 15a4XCuWmx2cCQVf8wZK7mqdvj5uwo1vby.

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
Bitoy
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


View Profile
January 05, 2014, 12:51:23 AM
 #776

Ok that is also what I have for transaction.


Peek and decode level 1.

Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
January 05, 2014, 10:13:40 AM
 #777

We are almost there! I've updated the Pivotal tracker with all the transactions that don't match. Please check the labels for your implementations and either tell me why your implementation has the right way or fix it. :}

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
Bitoy
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


View Profile
January 05, 2014, 03:08:38 PM
 #778

Fixed   Mymastercoins problem with transaction  Smiley
192b812c37b9f1e1940b3590b30aef8bf972dce8f4aabc5e908d556e26826506
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
January 05, 2014, 05:02:52 PM
 #779

Updated pivotal, thanks Smiley

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
zathras
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
January 06, 2014, 08:14:58 AM
 #780

Hey guys, sorry for the lack of forum posts recently - it's probably easier to continue talking via email for the next couple of weeks while I catch up at work (burdens of management unfortunately, no-one wants to do any work & everything is an escalation over Christmas!).

Anyway, just to let you know a quick update to Masterchest.info is going up tonight.  Will be about a 15 min delay for new transactions later this evening while the engine is upgraded but I'll drop an FYI message on the front page while it's going on.

Thanks Smiley

Smart Property & Distributed Exchange: Master Protocol for Bitcoin
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 [39] 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!