Esteban Ordano
6b05f20397
Add the new operator when BN was used without it
10 years ago
Esteban Ordano
2a084e641c
Coverage for block and blockheader
* JSDocs where already good, written by @braydonf
10 years ago
Braydon Fuller
d86e718743
Block: Updated documentation, and changed to use consistent naming.
10 years ago
Braydon Fuller
19a17017a9
Block: Added toObject method and changed toJSON to return a string
10 years ago
Braydon Fuller
1858766627
Standardized toJSON, fromJSON, toString and fromString interfaces
10 years ago
Esteban Ordano
1579eed9af
Consistency with "id", "hash", and "_getHash"
10 years ago
Braydon Fuller
5d1da9802c
Block: Added validation of proof of work, merkle tree and other interface changes. Closes #601
10 years ago
Manuel Araoz
a45dee3a4b
'hide' encoding and crypto
10 years ago
Manuel Araoz
7d09addcaa
fixing tests for blockheader
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
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
0d180810de
Blockheader
10 years ago