Emilio Almansi
ccda1eb631
Made library ES5 compatible.
7 years ago
Emilio Almansi
ce54985f4c
Simplified build.
7 years ago
Esteban Ordano
73a973359b
Fix invocations to binary operations called on numbers
10 years ago
Braydon Fuller
19a17017a9
Block: Added toObject method and changed toJSON to return a string
11 years ago
Braydon Fuller
8c4301cb0a
Tests: Updated tests to run from sub-directories and fixed crypto and encoding related missing updates.
11 years ago
Manuel Araoz
deee8c6887
refactor protocol->encoding
11 years ago
Manuel Araoz
eb7be6ac44
fix tests for varint
11 years ago
Manuel Araoz
f0a4aebdfb
reorder tests
11 years ago
Ryan X. Charles
f54edfb618
Varint(BN()) convenience
...and add some tests for the various constructor conveniences
11 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.
11 years ago
Ryan X. Charles
f727c5ad25
fix varint test broken in browser
11 years ago
Ryan X. Charles
4594cbb9e7
add bn support to varint class
11 years ago
Ryan X. Charles
f6a8878aa2
Varint class
...will be useful in transactions. Note that we already have a primitive
understanding of Varints in the BufferReader and BufferWriter classes. However,
the new Varint class is a varint object which actually depends on BufferReader
and BufferWriter for reading and writing varints. This class is for keeping
track of the raw buffer that is read in from a buffer.
11 years ago