Ignotus Peverell
c1340223de
Minor API change to PoW verify, to use the size provided by the block header by default.
2016-12-20 17:32:19 -08:00
GarrickOllivander
2e6d3d9fdb
Safer serialization of base types ( #18 )
...
* use MESSAGE_SIZE constant instead of 32
* use Hashed trait in genesis
* safer serialization of Hash
* Hashed of [u8] should send only data to hash function, not length + data
* Safer serialization of Proof
* Safer serialization of Commitment
* Safer serialization of RangeProof
* introduce read_limited_vec instead of potential panic in conversion
2016-12-17 13:44:14 -08:00
Ignotus Peverell
8a255c0218
Formatting.
2016-12-13 19:21:49 -08:00
Ignotus Peverell
2e52b13c35
Date format uses year since 1900.
2016-11-29 20:04:13 -08:00
Ignotus Peverell
3c5e2b2958
Block now uses the new Target type. Consensus next_target calculation adjusting every block based on deviation and increasing Cuckoo size gradually. Block time of a minute until we learn more from mining ecosystem, so enough PoW attempts can be made even on CPUs.
2016-11-15 14:41:16 -08:00
Ignotus Peverell
6e2a232ca3
Cleaned up total fees from block header. Unnecessary now.
2016-11-09 13:25:40 -08:00
Merope Riddle
88b07791fa
core: move Hash into its own module
2016-10-23 13:23:04 +00:00
Merope Riddle
9644fb6a73
Add apache 2.0 license header to all source files
2016-10-23 13:20:39 +00:00
Ignotus Peverell
f73a308bf3
Initial import.
2016-10-20 20:06:12 -04:00