8 Commits (41d88f8baf718f75a319a9aed89192dd24a4c025)

Author SHA1 Message Date
junderw 74375bfedf
Fix class constructors 6 years ago
junderw 0426c66389
Remove prepare script and checkMerkleRoot method on Block 6 years ago
junderw 51d078cbce
Fix block.ts lint 6 years ago
d-yokoi 03632f1507
style: apply prettier 6 years ago
junderw 4c6ea80459
Check for segwit block with no witness commit 6 years ago
junderw e52abecee2
Move to checkTxRoots and warn checkMerkleRoot deprecation 6 years ago
junderw 1732bafbc1
Update TypeScript to use ! instead of casting 6 years ago
junderw bc28949056
Commit js, ts, and definitions in separate folders 6 years ago
junderw 572fd159b0
Added TypeScript standard linter to tests 6 years ago
junderw e58d012615
Remove safe-buffer and add type to bitcoin-ops 6 years ago
junderw 3124e50e52
TypeScript hates Buffer.prototype.reverse, so fixed it. 6 years ago
junderw c17cdce348
Move all imports to modules where possible 6 years ago
junderw 9955c3c082
Add strictPropertyInitialization 6 years ago
junderw 4cddc83016
noImplicitAny is now true 6 years ago
junderw a652d0492d
Added Transaction 6 years ago
junderw 2eb9534939
Move Block Class from ES6 PR 6 years ago
junderw d684a6b2ef
Fix compiler errors, tests, and scripts 6 years ago
junderw bb98289501
Renamed files to ts 6 years ago
junderw 7c0e02ad48
Fix Block to allow regtest target (easiest possible target) 6 years ago
Daniel Cousens a5db0a4e44 sed -i 's/ var / const /', with const->let fixes 7 years ago
Daniel Cousens 91b8823aa8 sed -i 's/^var /const /' 7 years ago
Daniel Cousens fe0ad81472 package: use safe-buffer 8 years ago
Daniel Cousens aeb0312d63 use safe-buffers throughout impl 8 years ago
Daniel Cousens ab1fc4c9a4 reduce bufferutils usage 8 years ago
Daniel Cousens f3d0dddc5a block: add byteLength 8 years ago
Daniel Cousens 1ce81a92cc block: rm i temporary var 8 years ago
Daniel Cousens 35bbe11055 block: change exponent offset to avoid subtraction 8 years ago
Daniel Cousens 29316a2fbc block: use writeUInt32BE for target calculation 8 years ago
Daniel Cousens 14f9218389 package: bump bs58check, drop node 0.12 8 years ago
Thomas Kerin 7b1167708a Transaction and block versions are signed integers 8 years ago
Daniel Cousens 4ee298c414 block: add type checking 8 years ago
Daniel Cousens dd4596a44a block: use merkle-lib instead of inline calculation 8 years ago
Daniel Cousens fd40232147 package: remove buffer-compare/buffer-equals 8 years ago
Daniel Cousens d58e09a3a7 Block: add checkMerkleRoot 9 years ago
Kirill Fomichev bc9a95e0ae Use buffer-reverse instead [].reverse.call 9 years ago
Daniel Cousens e4ba88e54f block: rename verifyPow to checkProofOfWork 9 years ago
Daniel Cousens 92b446f6a5 block: variable extraction 9 years ago
Daniel Cousens bac700f52c block: use buffer, faster, verified 9 years ago
Daniel Cousens 86b51b2d62 add Block.calculateTarget, use Buffer comparison rather than bigi 9 years ago
Daniel Cousens 26ccb43047 block: add Block.prototype.verifyPow 9 years ago
Daniel Cousens 0b4c67406f use [].reverse over prototype 9 years ago
Daniel Cousens 5c1c4589c0 remove use of buffer-reverse 9 years ago
Daniel Cousens 731a31ecba use buffer-reverse 9 years ago
Daniel Cousens 8934de591c use baddress/bcrypto/bscript for ambuigities 10 years ago
Daniel Cousens 395c43ad74 block: remove use of assert 10 years ago
Daniel Cousens a8db7b2cbf block: use Tx.byteLength to avoid double serialization 10 years ago
Daniel Cousens 399803affa use standardjs formatting 10 years ago
Daniel Cousens 50dab3b6bf block: use Transaction.fromBuffer 10 years ago
Daniel Cousens b6b5b568c3 block: re-order functions to project standard 10 years ago
Daniel Cousens 9897fa2876 block: adds getUTCDate function 10 years ago