Manuel Araoz
a45dee3a4b
'hide' encoding and crypto
10 years ago
Manuel Araoz
c06c81e27b
fixing tests
10 years ago
Ryan X. Charles
e984736736
allow bufs in constructors
For Transaction, Block and Blockheader. This is a convenience so if you happen
to have the buffer for one of these, you can make a new one like this:
Transaction(txbuf);
Rather than having to do this:
Transaction().fromBuffer(txbuf);
10 years ago
Ryan X. Charles
cc3196085f
add .hash() function for a block
This is the plain old hash, which is a double sha256. The id of a block is the
reverse of this.
10 years ago
Ryan X. Charles
40d17c5180
block id
The block id is the reverse of the double sha256 hash of the blockheader.
10 years ago
Ryan X. Charles
e11019a083
toJSON, fromJSON
Every object should have toJSON and fromJSON methods so you can have a reliable
way to store and retrieve objects.
10 years ago
Ryan X. Charles
6494ca5076
convenience: varint -> vi
10 years ago
Ryan X. Charles
8a52e6c316
Block
10 years ago