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
Daniel Cousens
0b9b30a8c5
tests: re-add missing transaction_builder missing sigs test
8 years ago
Alex Melville
eae2c57e73
remove errant argument to buildInput in __build
8 years ago
Daniel Cousens
1d6b978aff
txb: do not classify blank input scripts as nonstandard
8 years ago
Karel Bilek
f4e3b52325
Testing virtualSize and weight
8 years ago
Karel Bilek
4f03a5d32e
Adding weights and vsize to fixtures
I took vsize from bitcoind; and I set weight as vsize*4 and fiddled with it until it passed.
8 years ago
Daniel Cousens
200217c2c2
rename network to testnet
8 years ago
Daniel Cousens
f1ab151c31
tests: use safe-buffers throughout
8 years ago
Thomas Kerin
4128634b1c
test vector for litecoin-pubkeyhash and litecoin-scripthash
8 years ago
Daniel Cousens
2d6064f8d1
README: add examples for BIP39 wallet path derivation
8 years ago
Daniel Cousens
170328341b
tests: avoid too-long-mempool-chain errors
8 years ago