fix createCommitment.
This commit is contained in:
parent
1e0b585f10
commit
f3b8b4cd80
@ -1370,7 +1370,7 @@ Script.createWitnessProgram = function createWitnessProgram(version, data) {
|
|||||||
return new Script([version === 0 ? 0 : version + 0x50, data]);
|
return new Script([version === 0 ? 0 : version + 0x50, data]);
|
||||||
};
|
};
|
||||||
|
|
||||||
Script.prototype.createCommitment = function createCommitment(hash) {
|
Script.createCommitment = function createCommitment(hash) {
|
||||||
return new Script([
|
return new Script([
|
||||||
opcodes.OP_RETURN,
|
opcodes.OP_RETURN,
|
||||||
Buffer.concat([new Buffer([0xaa, 0x21, 0xa9, 0xed]), hash])
|
Buffer.concat([new Buffer([0xaa, 0x21, 0xa9, 0xed]), hash])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user