Dave Kerr
504b6c24bc
fix failing address test by error-thrown assertion
7 years ago
Dave Kerr
b000377fd5
upgrade test dependencies
7 years ago
Daniel Cousens
e57d0a8fdf
fix standard issue
7 years ago
junderw
e6f3aaf5b1
Add use strict
7 years ago
Daniel Cousens
6fc1273b7e
fix ES6 issue, and actually verify the TXO
7 years ago
Daniel Cousens
31703e2e40
tests: add into-the-future CLTV test
7 years ago
Daniel Cousens
4ca6bf4e81
use https://api.dcousens.cloud reg-test server instead of testnet
7 years ago
BRAMILLE Sébastien
919b7cec60
Update transactions.js
7 years ago
Daniel Cousens
00bbab1a93
txb: fix redeemScript/witnessScript is undefined when throwing
unsupported
7 years ago
Daniel Cousens
39a681d2d3
tests: add failing test for #981
7 years ago
Daniel Cousens
9a31b894c1
tests: add inconsistent redeem/witness script hash signing tests
7 years ago
Daniel Cousens
098188dd3a
tests: add independent error message for missing witnessScript
7 years ago
Daniel Cousens
5e500910df
tests: use P2* acronyms, not full-length text
7 years ago
Pavel 'PK' Kaminsky
f46ae7d731
crypto.sha256 should receive a Buffer as an input rather than a string
checked and it works with buffers.
if you wanted to use string implicitly, the function parameter should be renamed from buffer to string.
f4caaf42e7/src/crypto.js (L11)
7 years ago
Daniel Cousens
8bd95bd498
redeemScript, not witnessScript
7 years ago
Daniel Cousens
d5a2a68ea2
add integration tests for block height decoding
7 years ago
Daniel Cousens
4267527997
tests: actual expected form
7 years ago
Daniel Cousens
ed732d5caf
add Transaction signature verify example
7 years ago
Daniel Cousens
34df503421
tests: fix should warn fee fail
7 years ago
Daniel Cousens
02b38695cc
tests: txb for TxBuilder, Tx for Transaction
7 years ago
Daniel Cousens
a868d27407
TxBuilder: add support for RSBuffer type keyPairs and .publicKey
7 years ago
Daniel Cousens
b94da10e6c
ECSignature: add toRSBuffer/fromRSBuffer
7 years ago
Daniel Cousens
c729d322c2
tests: add failing staged transaction building example #901
7 years ago
Daniel Cousens
6013bf075c
tests: add passing and failing tests for witness*.input.encode/decode
7 years ago
Daniel Cousens
f4a83f8aed
address/txbuilder: require templates to prevent undefined exports
7 years ago
Daniel Cousens
bae91395ef
rm bscript circular dependencies
7 years ago
Daniel Cousens
95cc837c06
tests/fixtures: amend truncated outputHex
7 years ago
Arik Sosman
5508e26469
respond to Jonathan Underwood's comments
(cherry picked from commit 8126ca2)
7 years ago
Arik Sosman
8f9b3443d2
add fixture to verify input type classification
(cherry picked from commit 8f9d8b7)
7 years ago
Daniel Cousens
8f01e4273c
match scriptHash types 1 for 1, ignore classify order
7 years ago
Daniel Cousens
deb8b0f7d8
tests: script tests can validate template fixtures too
7 years ago
dabura667
7563d8f74a
Fix absurd fee in fixture
7 years ago
junderw
286dfb3750
Add test case
7 years ago
Daniel Cousens
9503e64bde
TransactionBuilder: collect witnessValue as input.value, and match it
7 years ago
junderw
003df6694b
Add test for witness = true edge case during multisigning
7 years ago
Daniel Cousens
56dfb873d3
add bech32 fixture
7 years ago
Daniel Cousens
e7c59c4b8b
script: use asMinimalOP for ASM/decompile
7 years ago
Daniel Cousens
3ba17a1479
TxBuilder: restrict uncompressed keyPairs for P2WPK and P2WSH
7 years ago
Daniel Cousens
5057d8d1ba
tests/txb: add P2WSH(multisig), incomplete fixture
7 years ago
Daniel Cousens
9bae30d112
tests: resist txn-mempool-conflicts
7 years ago
Daniel Cousens
6d0a20cee1
tests: add P2WPK, P2WSH spend example
7 years ago
Daniel Cousens
5b1d443bf1
README/tests: add BIP173/BIP16 SegWit address examples
7 years ago
Daniel Cousens
b1272a1200
add Bech32 support to toOutputScript/fromOutputScript
8 years ago
Daniel Cousens
d1052e4996
add from/toBech32
8 years ago
Daniel Cousens
99c1b50961
tests/integration: add BIP32 serialization and multi-child examples
8 years ago
Daniel Cousens
a4fe3d3139
testing/integration/examples: isolate to addresses/transactions
examples, use public broadcast endpoints
8 years ago
Thomas Kerin
912f5d4d03
remove redundant baddress.toOutputScript call from tests
8 years ago
Thomas Kerin
0b1c3bfbd9
Should be able to deal with incomplete P2SH/P2WSH inputs when allowIncomplete is set
8 years ago
Ian Coleman
bc3aef5a92
add testnet bip49 example
8 years ago
Daniel Cousens
dddbf0a142
tests: grammar
8 years ago