Daniel Cousens
fd40232147
package: remove buffer-compare/buffer-equals
8 years ago
Daniel Cousens
0e08a9b0ce
Revert "HDNode: remove unnecessary this context"
8 years ago
Daniel Cousens
7a066b68ed
HDNode: remove unnecessary this context
8 years ago
Daniel Cousens
b91cfcf196
package: update to typeforce 1.8.7
8 years ago
Daniel Cousens
c1570f8056
script: always compile in a minimaldata compliant way
8 years ago
Daniel Cousens
1aab317dad
TransactionBuilder: extract internal signature invalidation functions for individual testing
8 years ago
Daniel Cousens
ccde09fdc3
TransactionBuilder: move fixMultisigOrder back to free function
8 years ago
Daniel Cousens
402e871d40
TransactionBuilder: move sign bulk to prepareInput
8 years ago
Daniel Cousens
a1d3e33c84
address/crypto/script/types: adhere to no-use-before-define
8 years ago
Daniel Cousens
d3ccbb6277
TransactionBuilder: rename index to vout internally
8 years ago
Daniel Cousens
9e5aac8bac
TransactionBuilder: fix duplicate txOut detection
8 years ago
Daniel Cousens
b3fd50ffd6
TransactionBuilder: refactor extractInput/extractFromOutput
8 years ago
Daniel Cousens
6826aa312d
TransactionBuilder: less exits
8 years ago
Daniel Cousens
83b2bb5d6a
TransactionBuilder: avoid extra getPublicKeyBuffer calls
8 years ago
Daniel Cousens
302b4f0796
TransactionBuilder: signatureScript is only defined once
8 years ago
Daniel Cousens
fbcc23fa14
TransactionBuilder: avoid unnecessary cache object
8 years ago
Daniel Cousens
49c6ebe3a0
TransactionBuilder: reword error for correctness
8 years ago
Daniel Cousens
61718cdbaa
txb: remove unused variables
8 years ago
Daniel Cousens
17c6ff62a0
bufferutils: fix pushDataInt output
8 years ago
Daniel Cousens
cc1af7d6a3
Transaction: return a slice, not the original Buffer
9 years ago
Daniel Cousens
6eae0241aa
Transaction: allow parameterizable buffer
9 years ago
Daniel Cousens
9f1d41fc44
script: enforce PUSH_DATA codes for witness outputs
9 years ago
Daniel Cousens
20a026aefe
scripts/tests: add witness* scripts
9 years ago
Daniel Cousens
6faeae397f
TxBuilder: add setVersion
9 years ago
Daniel Cousens
697f2da1bc
Transaction: re-work hashForSignature for readability
9 years ago
JP Richardson
ac8ae8f0ed
opcodes: add json extension to fix Webpack JSON loader
9 years ago
Daniel Cousens
d58e09a3a7
Block: add checkMerkleRoot
9 years ago
Kirill Fomichev
8ddcf737f9
Update Transaction.isCoinbaseHash
- add argument type-checking
- replace Array.every on for-loop
9 years ago
Karel Bilek
f958dd1e86
Adding Transaction.prototype.isCoinbase
9 years ago
Daniel Cousens
ea4ce4e2a6
ECPair: no elseif needed, move default for clarity
9 years ago
Daniel Cousens
00cee340dd
ECPair: don't depend on WIF error message, avoid unnecessary import
9 years ago
Daniel Cousens
e52c0d5b67
ECPair: use toBase58Check
9 years ago
Daniel Cousens
9db67bb3b1
Cleanup for #540 ( #551 )
* Txbuilder: early exit as soon as possible
* Txbuilder: prefer function declaration over variable
* TxBuilder: extract extractFromOutputScript
* TxBuilder: extract buildFromInputData
9 years ago
Kirill Fomichev
bc9a95e0ae
Use buffer-reverse instead [].reverse.call
9 years ago
Daniel Cousens
aae5db6a59
ECPair/HDNode: missing version from list is Unknown, not Invalid
9 years ago
Daniel Cousens
bdb0dd4a17
HDNode/tests: add testing for invalid network version from networks list
9 years ago
Daniel Cousens
9e32c892ef
ECPair/tests: always use WIF for error throwing
9 years ago
Kirill Fomichev
48866992d4
Update wif to 2.0.1
9 years ago
Ruben de Vries
7aaae4c001
Refactoring `extractInput` and `__build` to enable nested scripts (`P2SH[ P2PKH / multsig ]`).
This is preperation for the segwit support which will have `P2SH[ P2WSH[ P2PKH / multsig ] ]` scripts
9 years ago
Karel Bilek
3c56e80fc6
Simplifying path regex
9 years ago
Karel Bilek
6a74eb6993
Renaming Path to Bip32Path, invalid to fixtures
Only thing I haven't been able to do is to add "undefined" to fixtures. So I could not properly test
that node.derivePath() properly fails as it should. However, I added "null" there, and "null" and "undefined"
behave in similar way in JavaScript, so that should catch that.
9 years ago
Karel Bilek
d2b43f1dfe
Validating path
Again through typeforce
9 years ago
Karel Bilek
182698f53d
Using parseInt instead of + in path parsing
+ can cause issues - +"" is 0. parseInt("", 10) is NaN, which is better (since it causes typeforce to throw).
9 years ago
Karel Bilek
7defe6fe4c
Adding path derivation
The argument is path of either numbers or strings.
String with "'" at the end signifies hardened path.
9 years ago
Karel Bilek
4a72001335
Typechecking indexes
As a consequence, it will not allow accidentally double-hardened indexes.
It also won't allow strings or forgotten parameters.
9 years ago
Karel Bílek
fbcb478560
Adding function to decide if HDNode is public
Public === neutered. Private === not neutered
9 years ago
Ruben de Vries
7c7537fc57
use typeforce >= 1.6.2 which allows us to use `typeforce.TfTypeError` with a custom error message.
9 years ago
Daniel Cousens
67da1b30e3
address: fix compiled assumption for fromOutputScript
9 years ago
Daniel Cousens
6c0745adce
TxBuilder: add setLockTime
9 years ago
Daniel Cousens
d7da292063
script_number: initialize result to 0
9 years ago