Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: tarantulae on November 22, 2013, 11:49:41 PM



Title: [ANN] Protocoin - a pure Python Bitcoin protocol implementation
Post by: tarantulae on November 22, 2013, 11:49:41 PM
Just release Protocoin [1], a pure Python Bitcoin protocol implementation.

[1] http://protocoin.readthedocs.org/

Thanks !


Title: Re: [ANN] Protocoin - a pure Python Bitcoin protocol implementation
Post by: Ikinoki on November 23, 2013, 02:43:40 AM
So, how do you create a wallet? Or collect all data about particular address?
I assume you have to request all blocks and search through them for data relating to wallet?
And if I want to create wallet, what should I do?


Title: Re: [ANN] Protocoin - a pure Python Bitcoin protocol implementation
Post by: danneu on November 23, 2013, 03:55:00 AM
So, how do you create a wallet? Or collect all data about particular address?
I assume you have to request all blocks and search through them for data relating to wallet?
And if I want to create wallet, what should I do?


It appears to only implement the wire protocol (sending/receiving messages).


Title: Re: [ANN] Protocoin - a pure Python Bitcoin protocol implementation
Post by: Ikinoki on November 23, 2013, 04:04:28 AM
Apparently so.
Protocol it is, pair it with py-ecc functionale and we can make wallets.


Title: Re: [ANN] Protocoin - a pure Python Bitcoin protocol implementation
Post by: Ikinoki on November 23, 2013, 04:19:03 AM
You obviously need multiple clients connected and check for the timestamps?
Not sure how you can verify right chain....


Title: Re: [ANN] Protocoin - a pure Python Bitcoin protocol implementation
Post by: Ikinoki on November 23, 2013, 04:59:10 AM
But should not you receive the orphaned block memo or something?
I'm not yet finished with Bitcoin paper but this seems like an obvious idea.


Title: Re: [ANN] Protocoin - a pure Python Bitcoin protocol implementation
Post by: danneu on November 23, 2013, 06:23:56 AM
If an honest peer sees that you're on a weaker fork, it responds by catching you up with the strongest fork that it knows.

So if you possess zero verification ability because you only have a library that implements the wire protocol, I guess you're left to hoping that you're connected to mostly honest nodes and can cross-examine their messages to infer a consensus.

https://en.bitcoin.it/wiki/Thin_Client_Security


Title: Re: [ANN] Protocoin - a pure Python Bitcoin protocol implementation
Post by: Sukrim on November 23, 2013, 02:35:44 PM
If you get sybil'ed (only connecting to malicious nodes) you will have a bad time... on the other hand, you can expect to receive blocks at a rate of 1 block every 10 minutes within a certain distribution - if this is not the case you should probably reconnect to other nodes. Also as soon as you get a good node, you'd catch up.

Is this library generic enough to handle Altcoins by the way?


Title: Re: [ANN] Protocoin - a pure Python Bitcoin protocol implementation
Post by: Ikinoki on November 28, 2013, 03:39:38 PM
There's is a way to check nodes and download blockchains fully and check their sizes?

16GB download, yeah...