105 Commits (ccab2652f92329dd6a01ffed4ccbd96e5152acf1)

Author SHA1 Message Date
junderw ccab2652f9
Add sighash checks for signer 6 years ago
junderw fa897cf78e
Check signatures for sighash type before finalize 6 years ago
junderw 01c7ac39b6
Add clone, addInputs, addOutputs 6 years ago
junderw b8c341dea0
Finalize should chain this as well. 6 years ago
junderw ba33f0317f
Add check for spending more than you have 6 years ago
junderw 0f76aa935a
Refactor: Use varint from BIP174 6 years ago
junderw 479c56bbb4
Refactor: Re-order helper functions based on like-kind 6 years ago
junderw 2fd4b9dc54
Refactor: pass only cache to certain functions 6 years ago
junderw 9749a216b8
Refactor: input finalize and get fee shared logic 6 years ago
junderw 497d048ebf
Refactor: externalize outputAdder 6 years ago
junderw e4e5111376
Refactor: cache 6 years ago
junderw 88de1e7b0e
Refactor: nonWitnessUtxo cache 6 years ago
junderw 36a966cfcd
Check actual sighash flags instead of psbtInput one 6 years ago
junderw 09fcb1c6ee
Use function keyword 6 years ago
junderw f66b568e4d
Add sign all inputs method 6 years ago
junderw d0d94c7f06
Add signature verify method 6 years ago
junderw 5f26654802
Add tests 6 years ago
junderw 8d52ce1668
Add some tests and an input duplicate checker 6 years ago
junderw 93e1661c6c
Remove need for ts-ignore 6 years ago
junderw 51133c8051
Add type instance check tests 6 years ago
junderw 14eeb309df
Add fee checking before extract 6 years ago
Luke Childs 275618ed43 Remove console.log 6 years ago
junderw 45bd5b4751
Check for signatures, add setSequence 6 years ago
junderw 3e7f490093
Check for input empty on parse 6 years ago
junderw 5b5daf84dd
Remove unnecessary extra Transaction Buffer parsing 6 years ago
junderw b98761a283
Promise fixes for async 6 years ago
junderw 539c88596a
Add version and locktime setters 6 years ago
junderw f7e726a8eb
Add TX cache and addInput addOutput 6 years ago
junderw b28c96d228
Set to version 2 by default 6 years ago
junderw 2b8e8001bc
Support Addresses for outputs 6 years ago
junderw 48fc75c4f0
Fix p2sh and p2wsh not working 6 years ago
junderw 1c8fc69780
Stick with ES2015 for now 6 years ago
junderw 77dde89acc
Add async signing method 6 years ago
junderw 813b84f91f
Finalize and extract done 6 years ago
Luke Childs 8d74bebe04 Throw error when signing with a privkey that doesn't match the pubkey 6 years ago
junderw 354d67a31a
Just some ideas, TODO mostly. 6 years ago
junderw 4644e9d2eb
Finish canFinalize 6 years ago
junderw f28e9cef71
Refactor 6 years ago
junderw f72c915ff1
Start towards finalizing inputs 6 years ago
junderw f87b66eb24
Finish sign 6 years ago
junderw 667ffb58eb
Use signature encode 6 years ago
Luke Childs 18e7c9de80 Move comments to main check logic 6 years ago
Luke Childs f961724c73 Prefer buf1.equals(buf2) over Buffer.compare(buf1, buf2) !== 0 6 years ago
Luke Childs 95b4a2806d Improve code re-use for redeem script checks 6 years ago
Luke Childs 08627e65a3 Check redeem script matches witness utxo when signing PSBT input 6 years ago
Luke Childs 1afac399b1 Update BIP174 package to fix inheritance issues 6 years ago
Luke Childs 5fd18d806f Check redeem script matches when signing PSBT input 6 years ago
Luke Childs 98dff9a47e Check Non-witness UTXO hash when signing PSBT input 6 years ago
Luke Childs ff3caa02fe Add BIP174 pseudo code for signing checks 6 years ago
Luke Childs 6ed635d7b4 Flesh out signInput interface 6 years ago