Test the sighashtype is checked when signing
This commit is contained in:
parent
f25938d3ca
commit
d790288048
1 changed files with 9 additions and 0 deletions
9
test/fixtures/psbt.json
vendored
9
test/fixtures/psbt.json
vendored
|
@ -428,6 +428,15 @@
|
|||
"WIF": "KxnAnQh6UJBxLF8Weup77yn8tWhLHhDhnXeyJuzmmcZA5aRdMJni"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "checks the sighash type",
|
||||
"shouldThrow": {
|
||||
"errorMessage": "Sighash type is not allowed. Retry the sign method passing the sighashTypes array of whitelisted types. Sighash type: SIGHASH_ANYONECANPAY | SIGHASH_ALL",
|
||||
"psbt": "cHNidP8BADMBAAAAAYaq+PdOUY2PnV9kZKa82XlqrPByOqwH2TRg2+LQdqs2AAAAAAD/////AAAAAAAAAQEgAOH1BQAAAAAXqRSTNeWHqa9INvSnQ120SZeJc+6JSocBAwSBAAAAAQQWABQvLKRyDqYsPYImhD3eURpDGL10RwAA",
|
||||
"inputToCheck": 0,
|
||||
"WIF": "KxnAnQh6UJBxLF8Weup77yn8tWhLHhDhnXeyJuzmmcZA5aRdMJni"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "allows signing non-whitelisted sighashtype when explicitly passed in",
|
||||
"shouldSign": {
|
||||
|
|
Loading…
Add table
Reference in a new issue