junderw
|
389ec8cb33
|
Fix embed.ts and index.ts for payments lint
|
2019-03-07 12:29:24 +09:00 |
|
junderw
|
3f34fe457a
|
Fix index.ts networks.ts lint
|
2019-03-07 12:11:15 +09:00 |
|
junderw
|
6a734aef4c
|
Fix lint for ecpair.ts
|
2019-03-07 12:06:12 +09:00 |
|
junderw
|
cb5ab7684e
|
Fix classify.ts lint
|
2019-03-07 11:54:37 +09:00 |
|
junderw
|
51d078cbce
|
Fix block.ts lint
|
2019-03-07 11:47:00 +09:00 |
|
junderw
|
d9cba6f176
|
Fixed address.ts lint
|
2019-03-07 11:32:06 +09:00 |
|
junderw
|
ee60862df6
|
Add JS for prettier glob fix
|
2019-03-07 11:20:28 +09:00 |
|
junderw
|
0729fde36f
|
Remove eslint comments.
|
2019-03-05 15:11:20 +09:00 |
|
d-yokoi
|
0ad8fbc6ba
|
style: add build output after applying prettier
|
2019-03-04 22:11:54 +09:00 |
|
junderw
|
4c6ea80459
|
Check for segwit block with no witness commit
|
2019-01-17 17:10:52 +09:00 |
|
junderw
|
e52abecee2
|
Move to checkTxRoots and warn checkMerkleRoot deprecation
|
2019-01-17 17:01:15 +09:00 |
|
junderw
|
1732bafbc1
|
Update TypeScript to use ! instead of casting
|
2019-01-15 17:47:30 +09:00 |
|
junderw
|
bc28949056
|
Commit js, ts, and definitions in separate folders
|
2019-01-04 18:33:02 +09:00 |
|
junderw
|
e7ac2b9a4e
|
pull in bip32 typescript
|
2018-12-30 15:08:29 +09:00 |
|
junderw
|
63d51d1da7
|
Export some types and interfaces
|
2018-12-30 13:34:40 +09:00 |
|
junderw
|
b8c2e9e339
|
Change ECPair to be compatible with payment({pubkey:ecpair.publicKey})
|
2018-12-30 11:23:28 +09:00 |
|
junderw
|
35adaa8471
|
Add test from bugfix, also remove unnecessary arg
|
2018-12-29 23:27:57 +09:00 |
|
junderw
|
f8427274cc
|
Add a few type aliases to TransactionBuilder
|
2018-12-29 23:00:32 +09:00 |
|
junderw
|
572fd159b0
|
Added TypeScript standard linter to tests
|
2018-12-29 22:49:35 +09:00 |
|
junderw
|
e58d012615
|
Remove safe-buffer and add type to bitcoin-ops
|
2018-12-29 21:39:19 +09:00 |
|
junderw
|
3124e50e52
|
TypeScript hates Buffer.prototype.reverse, so fixed it.
|
2018-12-29 16:36:36 +09:00 |
|
junderw
|
c17cdce348
|
Move all imports to modules where possible
|
2018-12-29 16:10:36 +09:00 |
|
junderw
|
9955c3c082
|
Add strictPropertyInitialization
|
2018-12-29 15:25:54 +09:00 |
|
junderw
|
fdf0006fde
|
Add strictNullChecks
|
2018-12-29 15:25:45 +09:00 |
|
junderw
|
4cddc83016
|
noImplicitAny is now true
|
2018-12-29 15:25:45 +09:00 |
|
junderw
|
867f4b59f9
|
Add payments
|
2018-12-29 15:25:45 +09:00 |
|
junderw
|
5c34b4ce22
|
Add Witness Commitment
|
2018-12-29 15:25:44 +09:00 |
|
junderw
|
604072ffad
|
Add P2SH
|
2018-12-29 15:25:44 +09:00 |
|
junderw
|
528dff01c1
|
Add P2WSH
|
2018-12-29 15:25:44 +09:00 |
|
junderw
|
c488001b82
|
Add P2WPKH
|
2018-12-29 15:25:44 +09:00 |
|
junderw
|
3db951fc64
|
Add p2pkh template
|
2018-12-29 15:25:44 +09:00 |
|
junderw
|
9da1c95f89
|
Add P2PK templates
|
2018-12-29 15:25:44 +09:00 |
|
junderw
|
2f32ea6bc9
|
OP_RETURN and Multisig templates
|
2018-12-29 15:25:43 +09:00 |
|
junderw
|
3b77caa4f1
|
Fixed script, script number and signature
|
2018-12-29 15:25:27 +09:00 |
|
junderw
|
fce08352f5
|
Add TransactionBuilder
|
2018-12-29 15:25:27 +09:00 |
|
junderw
|
58a6b0e545
|
Convert ECPair
|
2018-12-29 15:25:27 +09:00 |
|
junderw
|
a652d0492d
|
Added Transaction
|
2018-12-29 15:25:11 +09:00 |
|
junderw
|
2eb9534939
|
Move Block Class from ES6 PR
|
2018-12-29 15:25:00 +09:00 |
|
junderw
|
91d3037cf3
|
Fix some exports
|
2018-12-29 15:24:59 +09:00 |
|
junderw
|
037fbd8984
|
# This is a combination of 2 commits.
# The first commit's message is:
Add types to Networks and Addresses
# This is the 2nd commit message:
Added types
|
2018-12-29 15:23:28 +09:00 |
|
junderw
|
b4d54af0fe
|
Remove AllowJS and get definitions
|
2018-12-29 15:23:14 +09:00 |
|
junderw
|
d684a6b2ef
|
Fix compiler errors, tests, and scripts
|
2018-12-29 15:20:37 +09:00 |
|
junderw
|
bb98289501
|
Renamed files to ts
|
2018-12-21 17:55:03 +09:00 |
|
junderw
|
f860d467d6
|
Revert "Merge pull request #1086 from bitcoinjs/refactorTransaction"
This reverts commit 5e1ae82a5d , reversing
changes made to 96240b636d .
|
2018-12-19 00:16:48 +09:00 |
|
Jonathan Underwood
|
5e1ae82a5d
|
Merge pull request #1086 from bitcoinjs/refactorTransaction
Move Transaction to ES6 class syntax
|
2018-12-18 11:47:37 +09:00 |
|
junderw
|
7c0e02ad48
|
Fix Block to allow regtest target (easiest possible target)
|
2018-12-12 21:07:16 +09:00 |
|
junderw
|
44a98c0fa6
|
Add regtest network
|
2018-11-15 15:32:03 +09:00 |
|
junderw
|
a88aa33348
|
Revert function hoisting removal
|
2018-09-26 16:30:33 +09:00 |
|
Jonathan Underwood
|
582727f6de
|
Merge pull request #1232 from bitcoinjs/payments
P2SH/P2WSH payments .network should use .redeem.network if undefined
|
2018-09-26 15:09:39 +09:00 |
|
Daniel Cousens
|
a976fba27b
|
add network derivation from redeem.network
|
2018-09-26 16:03:45 +10:00 |
|
junderw
|
17c89fdc5e
|
Move Transaction to ES6
|
2018-09-26 14:54:53 +09:00 |
|
junderw
|
b4bab427f8
|
Merge pull request #1201 from bitcoinjs/p2msmore
tests: add extra P2MS testing fixtures
|
2018-09-26 14:13:16 +09:00 |
|
Daniel Cousens
|
c8ae86b9ce
|
refactor(txb): maxSignatures is optional
|
2018-09-26 15:02:18 +10:00 |
|
Daniel Cousens
|
7c3d1f292d
|
txb: add inline explanatory comment
|
2018-09-26 14:57:03 +10:00 |
|
Daniel Cousens
|
1119a449a5
|
txbuilder: add missing signature P2MS fixture
|
2018-09-26 14:54:03 +10:00 |
|
Daniel Cousens
|
d232545ac8
|
rename MULTISIG to P2MS
|
2018-09-26 14:54:03 +10:00 |
|
Daniel Cousens
|
a58c5b4f5b
|
txb/tests: add solo SIGHASH_ALL fixes
|
2018-09-26 14:52:05 +10:00 |
|
Daniel Cousens
|
2223e6170e
|
txb/tests: test solo SIGHASH_ALL, support existing SIGHASH_NONE
|
2018-09-26 14:39:58 +10:00 |
|
Daniel Cousens
|
ed1c1a5661
|
txb: enforce outputs exist when signing
|
2018-09-26 14:36:10 +10:00 |
|
Daniel Cousens
|
f89ef93d1e
|
rm empty file
|
2018-09-17 10:38:18 +10:00 |
|
JP Richardson
|
09b2475117
|
remove superfluous package.json file in payments/
|
2018-09-16 01:17:04 -05:00 |
|
junderw
|
24d541d0ed
|
Fix default assignment of validate key for payments
Fixes problems with p2ms experienced in issue below.
Related: #1194
|
2018-08-28 14:21:18 +09:00 |
|
Jonathan Underwood
|
20551fd380
|
Merge pull request #1153 from bitcoinjs/paybetter
Increased coverage for payments
|
2018-08-23 13:47:07 +09:00 |
|
Daniel Cousens
|
55207e5742
|
tests/payments/p2pk*: add signature mismatch tests
|
2018-07-27 20:48:32 +10:00 |
|
Daniel Cousens
|
3ed77c4820
|
payments: cleanup
|
2018-07-27 20:48:28 +10:00 |
|
Daniel Cousens
|
54ec449a75
|
payments/p2sh: try not to rely on o. in validation
|
2018-07-27 20:31:30 +10:00 |
|
Daniel Cousens
|
cf9a35f59b
|
payments: more const
|
2018-07-27 20:31:30 +10:00 |
|
Daniel Cousens
|
85b1b92b6d
|
tests/ECPair: test fromPublic/fromPrivate in isolation
|
2018-07-26 18:05:39 +10:00 |
|
Daniel Cousens
|
079d83d887
|
txbuilder: note consensus issue
|
2018-07-23 10:41:01 +10:00 |
|
Daniel Cousens
|
de0259a820
|
tests/integration/payments: enable failing P2SH(P2WSH(P2WPKH)) tests
|
2018-07-20 17:30:29 +10:00 |
|
Daniel Cousens
|
74756ed597
|
TransactionBuilder: fix P2WPKH not using a P2PKH signScript for P2WPKH
|
2018-07-17 22:33:32 +10:00 |
|
Daniel Cousens
|
14d9636b6e
|
testing/p2wsh: add missing test case coverage
|
2018-07-17 15:35:08 +10:00 |
|
Daniel Cousens
|
5481bde49c
|
templates: rm unused nulldata code
|
2018-07-14 20:49:01 +10:00 |
|
Daniel Cousens
|
de90fea0ac
|
payments: rename p2data to embed
|
2018-07-14 20:49:01 +10:00 |
|
Daniel Cousens
|
44c13665c8
|
payments: add p2data
|
2018-07-14 20:49:01 +10:00 |
|
Daniel Cousens
|
7104bb412e
|
tests/payments: add missing tests
|
2018-07-14 20:45:30 +10:00 |
|
Daniel Cousens
|
0d9619aeed
|
payments/p2wpkh: fix exception messages
|
2018-07-14 20:14:15 +10:00 |
|
Daniel Cousens
|
35e0956ed9
|
payments/p2ms: add const to p2ms
|
2018-07-14 20:14:13 +10:00 |
|
Daniel Cousens
|
a9090dc0cc
|
templates: rm dead code
|
2018-07-03 23:00:00 +10:00 |
|
Daniel Cousens
|
0d0f1d0847
|
payments: rm dependence on address export
|
2018-07-03 22:07:08 +10:00 |
|
Daniel Cousens
|
6cacea6f31
|
rm templates export, rename to classify
|
2018-07-03 22:07:08 +10:00 |
|
Daniel Cousens
|
400be7114b
|
use payments in TxBuilder
|
2018-06-27 17:39:55 +10:00 |
|
Daniel Cousens
|
1fba0c62a5
|
tests: add missing context information to Sighash V1 description
|
2018-06-27 17:38:27 +10:00 |
|
Daniel Cousens
|
47e5a0e179
|
witnessScriptHash: fix null decompile leading to errors -- TODO: add test
|
2018-06-27 17:38:27 +10:00 |
|
Daniel Cousens
|
38efc35fdf
|
payments: dont always require output data
|
2018-06-27 13:40:20 +10:00 |
|
Daniel Cousens
|
6c957533d6
|
index: expose payments
|
2018-06-26 21:24:08 +10:00 |
|
Daniel Cousens
|
f9a739e1db
|
add payments p2ms, p2pk, p2pkh, p2sh, p2wpkh, p2wsh
|
2018-06-26 21:24:08 +10:00 |
|
Daniel Cousens
|
a5db0a4e44
|
sed -i 's/ var / const /', with const->let fixes
|
2018-06-25 18:26:23 +10:00 |
|
Daniel Cousens
|
91b8823aa8
|
sed -i 's/^var /const /'
|
2018-06-25 16:25:46 +10:00 |
|
Daniel Cousens
|
93b1ae4303
|
sed -i 's/^let /const /'
|
2018-06-25 16:24:37 +10:00 |
|
Daniel Cousens
|
e50679d2c3
|
Merge pull request #1094 from bitcoinjs/canon
script isCanonical* refactor/renames
|
2018-06-21 12:45:21 +10:00 |
|
Daniel Cousens
|
7592a6bcc2
|
script: rename isCanonicalSignature to isCanonicalScriptSignature
|
2018-06-05 17:26:52 +10:00 |
|
Daniel Cousens
|
d934e543d8
|
rm Litecoin
|
2018-06-05 17:22:39 +10:00 |
|
Daniel Cousens
|
726e4c53b6
|
script: use ecc.isPoint for canonical public keys
|
2018-06-05 17:15:53 +10:00 |
|
Daniel Cousens
|
2fe220517f
|
transition ECPair to properties over getters
|
2018-05-30 15:52:03 +10:00 |
|
Daniel Cousens
|
fba0699dd3
|
rm ecdsa, add new ECPair using secp256k1
|
2018-05-30 15:52:03 +10:00 |
|
Daniel Cousens
|
c2a5d9dc1a
|
rm getAddress
|
2018-05-30 11:09:07 +10:00 |
|
Daniel Cousens
|
4aaf295cd5
|
fix standard 11 issues
|
2018-05-29 11:37:03 +10:00 |
|
Daniel Cousens
|
581f57ff6f
|
script/tx: decompile returns maybe chunks
|
2018-05-22 18:50:00 +10:00 |
|
Daniel Cousens
|
6c4977983d
|
ECPair/script_signature: switch to 64-byte RS buffers only
|
2018-05-22 16:59:05 +10:00 |
|
Daniel Cousens
|
884f3fd57d
|
rm HDNode, use bip32 module
|
2018-05-22 13:46:45 +10:00 |
|
Daniel Cousens
|
087b49ea23
|
Merge pull request #459 from bitcoinjs/nocompact
Remove explicit DER/Compact decoding
|
2018-05-15 09:58:14 +10:00 |
|
Daniel Cousens
|
402d4f6d6a
|
Merge pull request #1041 from bitcoinjs/nulldata
Change nulldata to return Array
|
2018-05-15 02:24:58 +10:00 |
|
Daniel Cousens
|
90a73e195e
|
use safe-buffer
|
2018-05-15 02:18:50 +10:00 |
|
Daniel Cousens
|
c16847434c
|
add toRSBuffer for less breaking changes
|
2018-05-15 02:18:50 +10:00 |
|
Daniel Cousens
|
c58ada362e
|
rm ECSignature, add script.signature instead
|
2018-05-15 02:18:50 +10:00 |
|
Wesley Smith
|
c3c98709e2
|
fixes adding version field to transaction instance
|
2018-05-06 22:40:27 -07:00 |
|
Daniel Cousens
|
024c541d7e
|
Merge branch 'master' into __tx
|
2018-04-30 10:43:44 +10:00 |
|
Daniel Cousens
|
6b3c41a06c
|
Merge pull request #1035 from bitcoinjs/buremove
Remove bufferutils
|
2018-04-30 10:41:27 +10:00 |
|
Daniel Cousens
|
41885bfab2
|
nulldata: change data to array
|
2018-04-14 01:59:56 +10:00 |
|
Daniel Cousens
|
5af87c0c49
|
privatise internals for TxBuilder
|
2018-04-14 01:31:02 +10:00 |
|
Daniel Cousens
|
3bfdacafa2
|
change TransactionBuilder to default to version 2
|
2018-04-14 01:18:31 +10:00 |
|
Daniel Cousens
|
549b36bf1a
|
rm deprecated bufferutils
|
2018-04-14 01:15:22 +10:00 |
|
Dabura667
|
413495b101
|
Merge pull request #987 from bitcoinjs/tests
Reject any uncompressed keys in P2WSH and P2WPKH (as per BIP143)
|
2018-01-17 23:00:55 +09:00 |
|
Daniel Cousens
|
00bbab1a93
|
txb: fix redeemScript/witnessScript is undefined when throwing
unsupported
|
2018-01-17 14:57:24 +11:00 |
|
Daniel Cousens
|
7be698b5a1
|
txb: add fixes for P2SH(P2WSH(...)) and P2WSH(...) in BIP143 compliance
|
2018-01-17 14:49:19 +11:00 |
|
Daniel Cousens
|
39a681d2d3
|
tests: add failing test for #981
|
2018-01-17 14:48:56 +11:00 |
|
Daniel Cousens
|
098188dd3a
|
tests: add independent error message for missing witnessScript
|
2018-01-17 14:25:06 +11:00 |
|
Dabura667
|
64d9f72f77
|
Update comment
fixes #979
|
2018-01-10 23:54:38 +09:00 |
|
Daniel Cousens
|
8d688c39a6
|
enforce decodeStack receives a stack array
|
2017-11-30 15:34:30 +11:00 |
|
Melvillian
|
f4caa54d9e
|
increase max feerate sanity check from 1000 to 2500
|
2017-11-22 10:48:20 -08:00 |
|
Daniel Cousens
|
a868d27407
|
TxBuilder: add support for RSBuffer type keyPairs and .publicKey
|
2017-10-19 13:41:57 +11:00 |
|
Daniel Cousens
|
b94da10e6c
|
ECSignature: add toRSBuffer/fromRSBuffer
|
2017-10-19 13:41:35 +11:00 |
|
Daniel Cousens
|
e0b227e4ef
|
s/checkP2shInput/checkP2SHInput
|
2017-10-19 10:52:21 +11:00 |
|
Daniel Cousens
|
1157856ab0
|
Merge pull request #911 from bitcoinjs/segwittests
Add tests for scripts.witness*.input and fixes
|
2017-09-28 00:03:11 +10:00 |
|
Daniel Cousens
|
41378f9648
|
txbuilder: apply input.value before prepareInput
|
2017-09-27 10:00:36 +10:00 |
|
Daniel Cousens
|
8c217a7ba7
|
witnessScriptHash: fixed implementation
|
2017-09-27 08:30:31 +10:00 |
|
Daniel Cousens
|
f4a83f8aed
|
address/txbuilder: require templates to prevent undefined exports
|
2017-09-27 07:08:19 +10:00 |
|
Daniel Cousens
|
b6a6b0a50a
|
Merge pull request #908 from bitcoinjs/txbfix
TxBuilder: fix canSign returning true for missing witness value
|
2017-09-26 20:02:55 +10:00 |
|
Daniel Cousens
|
eb6eac67b0
|
txbuilder: fix canSign returning true for missing witness value
|
2017-09-26 18:49:14 +10:00 |
|
Daniel Cousens
|
bae91395ef
|
rm bscript circular dependencies
|
2017-09-26 14:25:30 +10:00 |
|
Daniel Cousens
|
8f01e4273c
|
match scriptHash types 1 for 1, ignore classify order
|
2017-09-22 12:15:10 +10:00 |
|
Thomas Kerin
|
da49e389c4
|
multisig.input.encodestack - replace OP_0 (permitted by partialSignature) with EMPTY_BUFFER
|
2017-09-15 19:08:55 +10:00 |
|
Thomas Kerin
|
105a82762c
|
buildstack - don't return op_0
|
2017-09-15 19:08:55 +10:00 |
|
junderw
|
6e5742d86d
|
Fix txb.__overMaximumFees for segwit
|
2017-09-15 12:31:35 +10:00 |
|
Daniel Cousens
|
9503e64bde
|
TransactionBuilder: collect witnessValue as input.value, and match it
|
2017-09-06 20:59:10 +10:00 |
|
junderw
|
1495384862
|
Add witness is true to signing
|
2017-09-06 20:46:20 +10:00 |
|
Daniel Cousens
|
e7c59c4b8b
|
script: use asMinimalOP for ASM/decompile
|
2017-08-24 12:28:50 +10:00 |
|
Daniel Cousens
|
152eed57a0
|
templates/pubkey: only canonical pubkeys to encode
|
2017-08-23 17:26:06 +10:00 |
|
Daniel Cousens
|
3ba17a1479
|
TxBuilder: restrict uncompressed keyPairs for P2WPK and P2WSH
|
2017-08-23 17:26:06 +10:00 |
|
Daniel Cousens
|
3ffac6cd39
|
add witnessPubKeyHash compressed policy
|
2017-08-23 17:26:06 +10:00 |
|
Daniel Cousens
|
5057d8d1ba
|
tests/txb: add P2WSH(multisig), incomplete fixture
|
2017-08-23 16:07:28 +10:00 |
|
Daniel Cousens
|
0157f18510
|
txbuilder: refactor branches for readability
|
2017-08-23 16:07:28 +10:00 |
|
Daniel Cousens
|
b1272a1200
|
add Bech32 support to toOutputScript/fromOutputScript
|
2017-08-21 11:17:30 +10:00 |
|
Daniel Cousens
|
d1052e4996
|
add from/toBech32
|
2017-08-21 11:17:30 +10:00 |
|
Thomas Kerin
|
798ec3512c
|
set p2sh=true only if redeemScriptType is set
|
2017-08-09 15:11:05 +10:00 |
|
Thomas Kerin
|
0b1c3bfbd9
|
Should be able to deal with incomplete P2SH/P2WSH inputs when allowIncomplete is set
|
2017-08-09 15:11:05 +10:00 |
|
Alex Melville
|
eae2c57e73
|
remove errant argument to buildInput in __build
|
2017-07-21 12:12:29 +10:00 |
|
Daniel Cousens
|
1d6b978aff
|
txb: do not classify blank input scripts as nonstandard
|
2017-07-14 14:16:52 +10:00 |
|
Karel Bilek
|
c96bb93841
|
Add weight / vsize
Weight / virtual size according to BIP141
|
2017-06-21 01:38:05 +10:00 |
|