Bitcoin Forum
January 23, 2019, 02:07:39 AM *
News: Latest Bitcoin Core release: 0.17.1 [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 ... 65 »
  Print  
Author Topic: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread)  (Read 128809 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.
vokain
Legendary
*
Offline Offline

Activity: 1736
Merit: 1000


View Profile
October 11, 2013, 04:46:13 PM
 #41

Smiley

         ▄█▄  ▄▄▄▄
          ▀ ▄██████▄
    ▄▄▄   ▄███▀▀███
  ▄█████▄ ▀█▀ ███▄ ▀▀
 ███▀  ▀██▄    ████▄   
 █▀ ▄██▄ ▀█▀ ▄██▀ ▀█▀ ▄██
  ▄██▀     ▄██▀     ▄██▀
 ██▀ ▄█▄ ▄██▀ ▄█▄  ██▀ ▄▄
      ▀███▀    ▀██▄  ▄██▀
     ▄▄ ▀██▄ ▄█▄ ▀█████▀
     ███▄▄██▀   ▀▀
      ▀██████▀
        ▀▀▀▀   ██▀

  █
  █
  █
████
  █
████
  █
████
  █
  █
  █


▄███▄    ▄███▄
███  ██▄ █▀▀▄
████████  ███▀
██▀ ▄███      
████████▄▄  ▄█▀
 ██████▀▀██▀▀
  ▀███▀▄▄   ▄
   ▀██▄██ ▄█▀
     ▀▀██▀▀
FULLY
ANONYMOUS

━━━━━
/

    ██▄▄              ▄▄██
   █▀  ▀█▄ ▄▄▄▄████▄██▀  ▀█
  █▀   ▄███▀▀▀       █▄   ▀█
 █▀   ▄███▄ ▄▄█▄▄     █▄   ▀█
██▄  ▄████████████▄▄  █▄  ▄██
  ▀▀██▀███████████████▄███▀▀
      ▀█▄█▀███████████▀▀
        ▀███▀███████▀
           ▀▀▀▀██▀▀
INSTANT
TRANSFER

━━━━
/

     ▄████▄
 ▄▄▄████████▄▄▄
▄██████████████▄
▀██▀ ▀█  ▀█ ███▀
 ██ ▀ █ ▀▄█ ███
▄██▄█▄█▄███▄███▄
▀██████████████▀
 ▀▀▀████████▀▀▀
     ▀████▀
API FOR YOUR
PROJECTS

━━━━

  █
  █
  █
████
  █
████
  █
████
  █
  █
  █
PARTNER PROGRAM
TOR MIRROR
MIX WALLET
.FAQ
ANN THREAD
TELEGRAM
1548209259
Hero Member
*
Offline Offline

Posts: 1548209259

View Profile Personal Message (Offline)

Ignore
1548209259
Reply with quote  #2

1548209259
Report to moderator
1548209259
Hero Member
*
Offline Offline

Posts: 1548209259

View Profile Personal Message (Offline)

Ignore
1548209259
Reply with quote  #2

1548209259
Report to moderator
1548209259
Hero Member
*
Offline Offline

Posts: 1548209259

View Profile Personal Message (Offline)

Ignore
1548209259
Reply with quote  #2

1548209259
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
zathras
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
October 12, 2013, 09:32:15 PM
 #42

I tried to dive into it but it's late here so I'm a bit foggy. But I think it might be because the sequence number is off. I think it's looking for 69 but 70 is found. Does this make sense?

Thanks Tachikoma,

You are right It is probably due to the sequence. Here are the steps I took

1. generated the data address using mastercoin adviser.  
2. sent a test btc transaction. (Might have changed the sequence number of the btc address?)
3.  Sent the mastercoin transaction.

It didn't work.

But I tried again using a different address.
1. Generate the data address
2. Sent the master coin transaction.

And it registered in masterchest

https://masterchest.info/lookupadd.aspx?address=17UbSDAXDzmxRXCgn2w43EaaHzHK3Ncx87

But not in mastercoin explorer.

Note the first transaction that I reported not to work is ok now at masterchest.
https://masterchest.info/lookupadd.aspx?address=17UbSDAXDzmxRXCgn2w43EaaHzHK3Ncx87

Looking  for a .net btc address to base58 module next Smiley

My implementation thinks that tranasction is OK Smiley

Also just a quick FYI - masterchest.info currently has an average 15 minute lead time for including transactions (~10 minutes for miners to include it in a block and ~5 minutes between blockchain scans).  

The wallet is much faster and handles unconfirmed transactions (I felt this was quite important as otherwise you would be able to (attempt to, they'd be invalidated) send the same mastercoins over and over until one of the transactions was confirmed in a block.

I have an update coming to masterchest.info today that will bring the unconfirmed transaction processing code to masterchest.info & I'll also drop the scan time down to 60 secs.  I'll post when this is done but it should bring the time for transactions to show up on masterchest.info down to under a minute.

JR - crazy couple of days at work (it never rains but it pours!), I have some time today so I'll get a summary done.

Smart Property & Distributed Exchange: Master Protocol for Bitcoin
zathras
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
October 12, 2013, 10:41:57 PM
 #43

Just letting you guys know the masterchest.info update is complete.  Transactions should be displayed within a minute or so of its bitcoind node seeing them on the network now without needing to wait for them to be included in a block.

This update includes support for unconfirmed transactions, they can be identified by their valid marker being blue:



Let me know if you come across any problems Smiley  Thanks!

Smart Property & Distributed Exchange: Master Protocol for Bitcoin
Bitoy
Sr. Member
****
Offline Offline

Activity: 449
Merit: 250


View Profile
October 13, 2013, 12:28:24 AM
Last edit: October 15, 2013, 04:15:30 PM by Bitoy
 #44

    BMX Wallet
    (Blockchain MasterCoin-eXplorer Wallet)







  • Send MasterCoins or Test MSC using your Blockchain.info account (using blockchain send many api, not yet multi-sig. Also converted mastercoin adviser to vb.net so that data address can be created and sent via api.  Library in bitcoin.vb )
  • Show your MasterCoin and Test MSC balance (using Mastercoin-Explorer API)
  • Show your Bitcoin balance (using Blockchain API)
  • Show Transactions (combining Blockchain.info and Mastercoin-Explorer API)
  • Source code  VB.NET

https://github.com/Bitoy88/BMX-2/tree/master

You will need to include json.net in your visual studio project.

(Sorry for the lateness of the submission.  Started only a week ago and finished on oct 14 Smiley





 [/list]
zathras
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
October 13, 2013, 01:58:06 AM
Last edit: October 15, 2013, 08:46:21 AM by zathras
 #45

As requested, here is a quick attempt at a summary (in no particular order):

  • Developed an independant implementation of Tachikoma's multisig and successfully verified compatibility against Tachikoma's implementation
  • Ongoing development and release of masterchest library, a .NET DLL that can be imported into a project and give potential new mastercoin developers the ability to use functions with a single line of code such as transaction searching & parsing, mastercoin decoding and enocding (including multisig)
  • Work with Tachikoma & JR to define current set of transaction processing rules
  • Ongoing development and release of masterchest engine, a blockchain scanning & mastercoin transaction processing engine that looks for mastercoin transactions in the bitcoin blockchain, parses them, writes them to a database and then processes all mastercoin transactions for validity and updates balances accordingly
  • Ongoing development and release of masterchest desktop wallet including a clean UI design, blockchain scanning & mastercoin transaction parsing, multiple address & currency support, multisig sends, transaction history & unconfirmed transaction support, (new) bitcoin send support
  • Developmed and released a new block explorer (masterchest.info) for independent verification of transactions with Tachikoma's mastercoin-explorer.  Ongoing development (new features include unconfirmed transactions & faster processing)
  • Helped define perception of total coin supply and define final totals verifying that three seperate implementations (masterchest.info, mastercoin-explorer.com, grazcoins mastercoin-tools) agreed on the final figure of 619478.59338440 MSC
  • Testing of grazcoins CSV output of all exodus generate transactions against masterchest
  • Various rounds of test transactions
  • Testing of Tachikoma's various contributions
  • Contributed to various technical discussions
  • Testing rounds on VMs locating & resolving Masterchest wallet bugs
  • All contributions are open source for anyone to use as they like

Thanks Smiley

EDIT: minor updates

Smart Property & Distributed Exchange: Master Protocol for Bitcoin
grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
October 13, 2013, 12:24:18 PM
 #46

I looked through it and it appears to have been a bug in my own code. So thanks for the bug report Wink

Your transaction should show up now.

I would really urge you to don't implement address encoding at this moment though and continue straight to multisig. We should try not to create unspendable outputs.

It seems that we were not bug-complient ;-)
I just verified that this transaction appears also on masterchain.info, and it does:
http://masterchain.info/Transaction.html?tx=f35f69cf20238274ffa93748637f8c9fa6316683db41cadefab531e65c287313


grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
October 13, 2013, 12:55:28 PM
Last edit: October 15, 2013, 09:56:02 AM by grazcoin
 #47

grazcoin's work summary, sent via PM:

Hey guys, please update the contest thread when you get a chance:

The board is asking for a summary of progress so far on this contest, but I know if I try to summarize everybody's work, I'll leave important stuff out.

Thanks!

I try to collect the tasks I did in arbitrary order:


cheers,
Grazcoin


An update of the contribution list:
  • HTML5 developer Grimentz has joined the force on the UI front.
  • masterchain.info - web UI for mastercoin-tools. Tablet and mobile devices friendly.
  • UI has multiple currencies support (currently different views for Mastercoin and Test Mastercoin), and support for price trends of assets.
  • Stand-alone Send transaction tool - no need for a bitcoin client. It also supports offline wallets.
  • Download option for local/offline usage with browser of the parsed data
  • API option
  • enable easy download of local/offline copy for browser use of the parsed data. Direct sync of local data using bitcoin network is supported.
  • introduce distributed architecture - sync locally using any obelisk server.
  • Mastercoin improvement propolal #1 MIP1

EDIT: (15.10.2013)


StarenseN
Legendary
*
Offline Offline

Activity: 1708
Merit: 1027



View Profile
October 13, 2013, 03:00:41 PM
 #48

Amazing !
dacoinminster
Legendary
*
Offline Offline

Activity: 1260
Merit: 1022


Rational Exuberance


View Profile WWW
October 14, 2013, 04:48:15 PM
 #49

The coding contest ends tomorrow, and we're in fantastic shape! BMX is a bit of a last-minute entry (and the rules in the OP are biased against last-minute entries), but I'm excited to see where it goes. Tomorrow I will officially request that each of you post your FINAL list of accomplishments, if you haven't already. I will also ask each of you to evaluate the other contestants (in a private PM to me), according to the official rules. Your opinions matter a lot to me!

You'll also need to let me know what percentage of your prize you want to be MasterCoins vs bitcoins, and what address to send the money to.

Once I've got that info, I'll make a recommendation to the board for payouts, and once I have their approval, we'll send the money!

Please don't delay in getting back to me with the info above, as that will delay payment, and annoy your fellow competitors Smiley

-J.R.

dacoinminster
Legendary
*
Offline Offline

Activity: 1260
Merit: 1022


Rational Exuberance


View Profile WWW
October 15, 2013, 04:43:39 PM
 #50

Sent to tachikoma, grazcoin, zathras, and bitoy just now:

Hey guys,

I need each of you to do the following:
  • Update your final list of accomplishments on the contest thread, if you haven't already
  • Refresh your memory by reading each others' accomplishments, and the official contest rules: https://bitcointalk.org/index.php?topic=292628.0
  • Send me your address for payment, and let me know what % you want in MasterCoins (I'll purchase them on the open market)
  • Tell me how you would distribute the money if you weren't participating. I need a % for each of the other three contestants

I know you guys will be uncomfortable giving each other numerical ratings. I am too! But it has to be done, so I'm spreading the pain around. I promise to keep your evaluations private (just don't reply-all!)

Based on the current coinbase price ($139) it looks like the contest will pay out 180 BTC. I may change that number if the price changes drastically before the end of the day.

It is likely you will each feel some disappointment when you see the final numbers, given how hard you have each worked. I hope you all own MasterCoins and will be participating in future contests, so that this is just the start of your compensation.

By the way, if someone forks your code in a future contest, you'll get some money at the end, even if you do nothing Smiley

This project is truly world-changing, and it is an incredible privilege for me to be a part of it alongside you. I believe that the benefits we'll get in the long run from owning MasterCoin will make this contest payout seem pretty trivial in comparison Smiley

Thanks!

-J.R.


HammerFist
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
October 15, 2013, 05:00:12 PM
 #51

I just want to be the first to congratulate those who participated in this cool contest.  The result produced seems to be insane value for all involved in the project.  A fantastic job has clearly been done by at least tachikoma, grazcoin, zathras, - probably others.  Way to go guys.  I wish you each would get $25,000. Awesome. 

I hope you will all stay excited to continue with your great work.  Let us know how we can help. 

Also, congratulations to JR who ran a very cool open contest. Not easy to manage, JR seems to have a real touch for this sort of thing.  To everyone involved - THREE CHEERS!!!!!  Let's keep up the great work.
grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
October 15, 2013, 05:04:53 PM
 #52

Sent to tachikoma, grazcoin, zathras, and bitoy just now:

Hey guys,

I need each of you to do the following:


Note: Grazcoin joined forces with Grimentz which is responsible for UI of http://masterchain.info, so voting for Grazcoin includes the part of Grimentz.


Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
October 15, 2013, 05:39:15 PM
 #53

Code contributions

Mastercoin-ruby: A ruby library to parse MasterCoin data. Source
  • Decoda a Mastercoin data-address
  • Decode a Mastercoin data-public key
  • Encode data to an address
  • Encode data to a public key
  • Advise how to create a 'old school' transaction using sendmany
  • Get the amount of coins bought via Exodus for a given Bitcoin address
  • Get the amount of coins bought via Exodus for a given Bitcoin transaction-id
  • Decode a Mastercoin transaction based on given Bitcoin transaction-id
  • Create and relay a Mastercoin multisig transaction through Bitcoind

Mastercoin-explorer.com: A Ruby on Rails application to index all Mastercoin transactions and show other data. Source.
  • Index all Mastercoin related transactions both Exodus payments and simple send transactions.
  • Offer a public JSON API so others can easily parse this data without having to index everything themselves. Documentation here.
  • Multi-currency support currently has real and test Mastercoins

Mastercoin-wallet: A (QT-based) Mastercoin thin-client implementation. Source
  • Uses the forementioned Mastercoin-explorer API to communicatie balance data.
  • Only requires a private key with an existing Mastercoin balance to use.
  • Saves keys encoded in config files.
  • Does not require local Bitcoind/QT.
  • Uses multisig approach.





Other contributions

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
October 15, 2013, 10:59:55 PM
Last edit: October 15, 2013, 11:28:26 PM by zathras
 #54

A final overview of my contributions to the contest as requested.

With thanks to:
* Bouncy Castle for their crypto library (SHA & bignum)
* James Newton-King for the JSON.NET library (serialize/deserialize JSON)
* Tachikoma for the multisig specification


CODE CONTRIBUTIONS:

Masterchest Library - a .NET DLL that gives potential new mastercoin developers the ability to use functions with a single line of code

Download: source/binaries

 * Class structures to hold the various RPC responses
 * Decode mastercoin transactions (generate (exodus purchase), simple send and multisig)
 * Encode mastercoin transactions (multisig only, simple send not offered to minimize blockchain bloat) creating the raw transaction hex from scratch
 * Get a list of addresses in wallet from bitcoind/qt (using both listbyreceivedaddress and listunspent to get all addresses including change)
 * Retrieve a blockhash from bitcoind/qt
 * Retrieve a block from bitcoind/qt
 * Retrieve the block currently being mined from bitcoind/qt
 * Retrieve transactions from bitcoind/qt
 * Evaluate a bitcoin transaction and return whether it contains a mastercoin transaction

Masterchest Engine - a blockchain scanning & mastercoin transaction processing engine

Download: source/binaries
Screenshot:


 * Scans the bitcoin blockchain and retrieves the transactions in each block
 * Checks each bitcoin transaction to see if it contains a mastercoin transaction
 * Parses any mastercoin transactions found and decodes them
 * Writes decoded transactions to a database
 * Processing engine runs through transactions in database checking validity and updating balances etc

Masterchest.info - a block explorer for displaying mastercoin transactions and address balances/history

Download: source/binaries
Screenshot:


 * Independent verification of transactions for the community
 * Lookup address balances and their transaction history
 * Lookup transactions and their validity
 * Display recent mastercoin transactions
 * Unconfirmed transaction support and fast scanning (60-120 secs for a mastercoin transaction to appear)

Masterchest Wallet - a desktop wallet for mastercoin

Download: source/binaries
Screenshot:


 * Clean fresh UI design (attempt to distinguish ourselves from the myriad of bitcoin clones all using the same QT wallet design)
 * Interfaces with bitcoind/qt via RPC
 * Blockchain scanning & mastercoin transaction detection
 * Decoding detected transactions and processing wallet and address balances
 * Multiple address support (automatically picks up all addresses from bitcoind/qt and allows them to be used as source or destination for sends)
 * Multiple currency support (mastercoin, test mastercoin, bitcoin)
 * Send transactions for all supported currencies (multisig for mastercoin, sendtoaddress for bitcoin (though this will move to createraw in future releases))
 * Transaction history
 * Unconfirmed transaction support (both mastercoin and bitcoin)

OTHER CONTRIBUTIONS:
 * Developed an independant implementation of Tachikoma's multisig and successfully verified compatibility against Tachikoma's implementation
 * Work with Tachikoma & JR to define current set of transaction processing rules
 * Helped define perception of total coin supply and define final totals verifying that three seperate implementations (masterchest.info, mastercoin-explorer.com, grazcoins mastercoin-tools) agreed on the final figure of 619478.59338440 MSC
 * Testing of grazcoins CSV output of all exodus generate transactions against masterchest
 * Various rounds of test transactions
 * Testing of Tachikoma's various contributions
 * Contributed to various technical discussions
 * Testing rounds on VMs locating & resolving Masterchest wallet bugs

All contributions are open source for anyone to use as they like Smiley

Congratulations and well done to all the other contestants!

Thanks Smiley

Smart Property & Distributed Exchange: Master Protocol for Bitcoin
dacoinminster
Legendary
*
Offline Offline

Activity: 1260
Merit: 1022


Rational Exuberance


View Profile WWW
October 16, 2013, 12:11:22 AM
 #55

I now have the requested info from the three main participants, which I plugged into my spreadsheet which already had my own opinion. After my magic math, the following numbers came out:

Tachikoma: 48%
Grazcoin: 26%
Zathras: 24%
Bitoy: 2%

Zathras included maraoz in his payouts distribution suggestion (maraoz withdrew from the contest), but that didn't actually affect the outcome because I was actually looking at the ratios between contestants rather than the total percentages (i.e. person X thinks person Y deserves twice as much as person Z . . . and that's all I'll say about the magic formulas!).

My heartfelt thanks to each of you. Payment will be sent once I give the board the opportunity to exercise their veto power.

maraoz
Newbie
*
Offline Offline

Activity: 55
Merit: 0



View Profile
October 16, 2013, 06:30:16 AM
 #56

Thank you Zathras...
grazcoin
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
October 16, 2013, 06:50:48 AM
 #57

I now have the requested info from the three main participants, which I plugged into my spreadsheet which already had my own opinion. After my magic math, the following numbers came out:

Tachikoma: 48%
Grazcoin: 26%
Zathras: 24%
Bitoy: 2%

Zathras included maraoz in his payouts distribution suggestion (maraoz withdrew from the contest), but that didn't actually affect the outcome because I was actually looking at the ratios between contestants rather than the total percentages (i.e. person X thinks person Y deserves twice as much as person Z . . . and that's all I'll say about the magic formulas!).

My heartfelt thanks to each of you. Payment will be sent once I give the board the opportunity to exercise their veto power.


congratz to all Smiley
Thank you dacoinminster!


Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
October 16, 2013, 07:23:15 AM
 #58

Congrats guys. I think we should be very proud of what we accomplished together in such a short timeframe! 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
October 16, 2013, 08:46:58 AM
 #59

Well done guys, been a busy month so time to relax for a couple days!

Smart Property & Distributed Exchange: Master Protocol for Bitcoin
klee
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000



View Profile
October 16, 2013, 11:20:16 AM
 #60

Congrats guys, you are amazing!
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 ... 65 »
  Print  
 
Jump to:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!