|
@ -38,8 +38,6 @@ function extractChunks (type, chunks, script) { |
|
|
return chunk.length === 0 ? undefined : chunk |
|
|
return chunk.length === 0 ? undefined : chunk |
|
|
}) |
|
|
}) |
|
|
break |
|
|
break |
|
|
default: |
|
|
|
|
|
throw new Error('Only bare scripts can be handled here: not ', type) |
|
|
|
|
|
} |
|
|
} |
|
|
return { |
|
|
return { |
|
|
pubKeys: pubKeys, |
|
|
pubKeys: pubKeys, |
|
@ -142,10 +140,6 @@ function expandInput (scriptSig, witnessStack) { |
|
|
chunks = scriptSigChunks |
|
|
chunks = scriptSigChunks |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (SIGNABLE.indexOf(scriptType) === -1) { |
|
|
|
|
|
throw new Error(scriptType + ' not supported') |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var expanded = extractChunks(scriptType, chunks, script) |
|
|
var expanded = extractChunks(scriptType, chunks, script) |
|
|
|
|
|
|
|
|
var result = { |
|
|
var result = { |
|
|