Andrew Poelstra
54e4ea4586
Rename Serializable::hash() to Serializable::bitcoin_hash()
...
We were conflicting with the Rust stdlib trait Hash, which is used
by various datastructures which need a general hash. Also implement
Hash for Sha256dHash so that we can use bitcoin hashes as keys for
such data structures.
2014-07-19 16:11:55 -07:00
Andrew Poelstra
a3846965e3
blockchain: replace Rc mess with internal raw pointers
2014-07-19 15:23:04 -07:00
Andrew Poelstra
93dadd6a6e
Add iterators to patricia tree
2014-07-19 13:02:25 -07:00
Andrew Poelstra
29eba4c4c3
Add LICENSE file with CC0 in it
2014-07-18 17:37:13 -07:00
Andrew Poelstra
73e8b542c0
Add testnet blockspacing rule
2014-07-18 16:41:09 -07:00
Andrew Poelstra
51038f5810
Add alternate network support to `Blockchain`, `UtxoSet`, `Socket`
...
Still need to do alternate diffchange rules..
2014-07-18 14:38:35 -07:00
Andrew Poelstra
8f826a959d
Introduce `BitcoinResult`, use it instead of boolean returns in blockchain
2014-07-18 12:40:04 -07:00
Andrew Poelstra
426e1fc556
Change name to `bitcoin` in Cargo.toml (copying convention from toml-rs and color-rs)
2014-07-18 12:07:10 -07:00
Andrew Poelstra
b5fd47b334
Allow user to change network magic, add constant for testnet
...
We need to add a "difficulty back to 1 after 20 minutes" difficulty
rule to actually support testnet, but this is a start.
2014-07-18 12:03:38 -07:00
Andrew Poelstra
5ca37d3614
Add README
2014-07-18 07:53:03 -07:00
Andrew Poelstra
dc943d9a7e
Add Travis support
2014-07-18 07:33:44 -07:00
Andrew Poelstra
c9ad7c0b58
Initial commit, move into Cargo
2014-07-18 06:56:17 -07:00