tests: add missing context information to Sighash V1 description
This commit is contained in:
parent
47e5a0e179
commit
1fba0c62a5
2 changed files with 10 additions and 3 deletions
|
@ -15,11 +15,18 @@ const ECPair = require('./ecpair')
|
|||
const Transaction = require('./transaction')
|
||||
|
||||
function supportedType (type) {
|
||||
return SIGNABLE.indexOf(type) !== -1
|
||||
return [
|
||||
btemplates.types.P2PKH,
|
||||
btemplates.types.P2PK,
|
||||
btemplates.types.MULTISIG
|
||||
].indexOf(type) !== -1
|
||||
}
|
||||
|
||||
function supportedP2SHType (type) {
|
||||
return P2SH.indexOf(type) !== -1
|
||||
return supportedType(type) || [
|
||||
btemplates.types.P2WPKH,
|
||||
btemplates.types.P2WSH
|
||||
].indexOf(type) !== -1
|
||||
}
|
||||
|
||||
function extractChunks (type, chunks, script) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue