Author

Topic: Protocol Buffer example file for Bitcoins (Read 1205 times)

newbie
Activity: 8
Merit: 2
December 05, 2010, 11:51:25 PM
#3
I did shrink the hashes, they're now fixed so they can be the 32 bytes they are. http://pastebin.com/zQEyKV0A

Could you please point me to where the transaction and block data is in the source code?  I thought I already had them encapsulated in the Tx and Block messages, but if there's more, having it all in one place can only help.
legendary
Activity: 1596
Merit: 1100
December 05, 2010, 10:35:55 PM
#2
The draft spec on the wiki is incomplete crap.

Your example is missing obvious data central to bitcoin -- transaction and block data.

It also seems that your hashes shrank to 32 bits.
newbie
Activity: 8
Merit: 2
December 05, 2010, 05:53:55 PM
#1
The current network serialization and implementation is really quite specialized, which is at cross-purposes to the goal of having several different clients that can all interact with the network.  I think that having our serialization and network data in a common format which already has several implementations in different languages would be very helpful to the long-term distribution of the bitcoin network.

In this view, I've created a quick and dirty Protocol Buffers version of the network protocol.  I doubt that it's particularly interoperable with the current code, but it does allow for all the information that goes over the network, according to the draft spec on the wiki.  I've uploaded the file at http://pastebin.com/SAgvHwa0
Jump to: