d-yokoi
03632f1507
style: apply prettier
6 years ago
junderw
bc28949056
Commit js, ts, and definitions in separate folders
6 years ago
junderw
4cddc83016
noImplicitAny is now true
6 years ago
junderw
528dff01c1
Add P2WSH
6 years ago
junderw
2f32ea6bc9
OP_RETURN and Multisig templates
6 years ago
junderw
b4d54af0fe
Remove AllowJS and get definitions
6 years ago
junderw
d684a6b2ef
Fix compiler errors, tests, and scripts
6 years ago
junderw
bb98289501
Renamed files to ts
6 years ago
Daniel Cousens
91b8823aa8
sed -i 's/^var /const /'
7 years ago
Daniel Cousens
fba0699dd3
rm ecdsa, add new ECPair using secp256k1
7 years ago
Daniel Cousens
e835f1fe95
TransactionBuilder: add fee safety
8 years ago
Daniel Cousens
a956b8859f
networks: drop dogecoin and dustThreshold
8 years ago
Daniel Cousens
5dcf38c0c5
HDNode: clearer error for bad path type
8 years ago
Daniel Cousens
9f1ebf72a6
types: remove unused UInt2, BIP32 is capitals
8 years ago
Daniel Cousens
45b0e35264
transaction/types: use Satoshi over UInt53
8 years ago
Daniel Cousens
ecc6d45a7e
types: add Satoshi
8 years ago
Daniel Cousens
b91cfcf196
package: update to typeforce 1.8.7
8 years ago
Daniel Cousens
a1d3e33c84
address/crypto/script/types: adhere to no-use-before-define
8 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
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
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
b252924517
types: remove ECCurve
9 years ago
Daniel Cousens
e94ec00919
types: restore quacking behaviour
9 years ago
Daniel Cousens
ca4debd92e
types: Expected Buffer, length to follow
10 years ago
Daniel Cousens
97a0008445
types: rm Script type
10 years ago
Daniel Cousens
706f5d7a9c
scripts: adds tests for *HashOutput
10 years ago
Daniel Cousens
33a9dc4cce
dustThreshold is a UInt53
10 years ago
Daniel Cousens
254b670427
add types
10 years ago
Daniel Cousens
e42c497a3c
package: use typeforce
10 years ago
Wei Lu
b55b10c6b6
types: replace Function.name with an IE compatible alternative
10 years ago
Wei Lu
eb4e8884d9
loose instanceof: check constructor function name instead
10 years ago
Daniel Cousens
967e724b47
types: remove JSPerf references
10 years ago
Daniel Cousens
01a96e887c
types: use the idiomatic equivalents
10 years ago
Daniel Cousens
35542e115d
types: enforce consistent type checking
10 years ago