Trevin Hofmann
59a9e40f13
Properly capitalize BufferUtil everywhere
Right out of CONTRIBUTING.md
https://github.com/bitpay/bitcore/blob/master/CONTRIBUTING.md#g6---naming-utility-namespaces
10 years ago
Esteban Ordano
6b05f20397
Add the new operator when BN was used without it
10 years ago
Manuel Araoz
c664f211d2
add BufferReader.readVarLengthBuffer
10 years ago
Manuel Araoz
b9be679e09
add some checks
10 years ago
Manuel Araoz
6c518f1f45
refactoring interpreter
10 years ago
Esteban Ordano
5bed12ebe3
Remove calls to read() with no arguments
10 years ago
Esteban Ordano
de4d2884c7
Modify Transaction to use Multisig
* Allow `Script#add` to add a Script causing concatenation of opcodes
* Add `Script#equals` to compare scripts
* Add `Script#fromAddress`
* Drop `_payTo` methods
* Add `Script.buildP2SHMultisigIn`
Greatly simplifying the internal transaction object
10 years ago
Esteban Ordano
5c974a8ef2
Refactor transaction to match new API
* Refactor transaction into a different subfolder
* Added a lot of tests for sighash and transaction serialization (from
reddit's and Ryan X. Charles' `fullnode`)
* Drop "only" from sighash tests and consolidate logs
10 years ago
Esteban Ordano
3551742fee
Miscelaneus updates to docs and bufferreader/writer
10 years ago
Manuel Araoz
deee8c6887
refactor protocol->encoding
10 years ago
Manuel Araoz
56ca8a20c1
use strict to protocol
10 years ago
Manuel Araoz
cebd3aaa18
move files
10 years ago
Ryan X. Charles
0212e4bd4c
replace .buffer with .read
10 years ago
Ryan X. Charles
8e049b7244
smarter
10 years ago
Ryan X. Charles
6cee393c5d
put brains in read
10 years ago
Ryan X. Charles
6e1dfd3003
allow bufferreader.read to specify length
...to be more symmetric with the write function of bufferwriter
10 years ago
Ryan X. Charles
54e705f7e8
missing semicolon
10 years ago
Ryan X. Charles
9cb31ebb6a
extra semicolon
10 years ago
Ryan X. Charles
4bb9105b2d
varInt -> varint
I don't like having to capitalize things unnecessarily
10 years ago
Ryan X. Charles
d363956ba1
add readVarIntBuf function
...will be useful for new Varint class
10 years ago
Ryan X. Charles
3c668c9cf0
readVarInt -> readVarIntNum
"varInt" refers to the varInt object, which is not actually implemented yet.
This function should therefore really be called readVarIntNum.
10 years ago
Ryan X. Charles
8e959426e2
support reading varInt nums up to js precision
Javascript only supports 64 bit floating points, which have uint precision up
to Math.pow(2, 53). We now support reading variable sized numbers up to that
size. If the number is bigger than that, then we need to use BN.
10 years ago
Ryan X. Charles
9d5d136993
"function" not used
10 years ago
Ryan X. Charles
8b3ad7ac85
read a buffer, like slicing while iterating pos
11 years ago
Ryan X. Charles
572582938f
more convenient bufferreader
11 years ago
Ryan X. Charles
3475ee973c
BufferReader.prototype.set
11 years ago
Ryan X. Charles
ddc9e2d2a4
handle varInts better
11 years ago
Ryan X. Charles
cde44d689c
fix precision error by handling BNs correctly
11 years ago
Ryan X. Charles
5e3ad3d09d
BufferReader
11 years ago