scripts: add dataOutput convenience function
This commit is contained in:
parent
27e69ba716
commit
ea66edeb5c
3 changed files with 22 additions and 1 deletions
src
|
@ -241,9 +241,14 @@ function multisigInput(signatures, scriptPubKey) {
|
|||
return Script.fromChunks([].concat(ops.OP_0, signatures))
|
||||
}
|
||||
|
||||
function dataOutput(data) {
|
||||
return Script.fromChunks([ops.OP_RETURN, data])
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
classifyInput: classifyInput,
|
||||
classifyOutput: classifyOutput,
|
||||
dataOutput: dataOutput,
|
||||
multisigInput: multisigInput,
|
||||
multisigOutput: multisigOutput,
|
||||
pubKeyHashInput: pubKeyHashInput,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue