Bitcoin Forum
May 27, 2024, 09:58:18 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [ANN] Protocoin - a pure Python Bitcoin protocol implementation  (Read 2533 times)
tarantulae (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
November 22, 2013, 11:49:41 PM
Last edit: November 29, 2013, 11:56:28 AM by tarantulae
 #1

Just release Protocoin [1], a pure Python Bitcoin protocol implementation.

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

Thanks !
danneu
Newbie
*
Offline Offline

Activity: 32
Merit: 0



View Profile
November 23, 2013, 03:55:00 AM
 #2

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).
danneu
Newbie
*
Offline Offline

Activity: 32
Merit: 0



View Profile
November 23, 2013, 06:23:56 AM
 #3

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
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1006


View Profile
November 23, 2013, 02:35:44 PM
 #4

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?

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
Pages: [1]
  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!