fix createCommitment.

This commit is contained in:
Christopher Jeffrey 2016-04-03 05:23:30 -07:00
parent 1e0b585f10
commit f3b8b4cd80

View File

@ -1370,7 +1370,7 @@ Script.createWitnessProgram = function createWitnessProgram(version, data) {
return new Script([version === 0 ? 0 : version + 0x50, data]);
};
Script.prototype.createCommitment = function createCommitment(hash) {
Script.createCommitment = function createCommitment(hash) {
return new Script([
opcodes.OP_RETURN,
Buffer.concat([new Buffer([0xaa, 0x21, 0xa9, 0xed]), hash])