Yemel Jardi
e57d02c03c
Use define immutable helper
10 years ago
Braydon Fuller
d86e718743
Block: Updated documentation, and changed to use consistent naming.
10 years ago
Esteban Ordano
63f1d307fa
Reviewing docs
10 years ago
Braydon Fuller
19a17017a9
Block: Added toObject method and changed toJSON to return a string
10 years ago
Braydon Fuller
162438d111
Block: Change utility naming
10 years ago
Braydon Fuller
3276236cce
Consistent names for utilities
10 years ago
Braydon Fuller
94cc10b1a3
Changed *Json to *JSON and returned an object so that methods can be called from other toJSON methods without the double-stringification issue.
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
4508fb6765
fix references to encoding
10 years ago
Manuel Araoz
ca9b8d8f7b
use strict to protocol
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
0212e4bd4c
replace .buffer with .read
10 years ago
Ryan X. Charles
0d180810de
Blockheader
10 years ago