|
@ -1,7 +1,6 @@ |
|
|
// {signature}
|
|
|
// {signature}
|
|
|
|
|
|
|
|
|
var bscript = require('../../script') |
|
|
var bscript = require('../../script') |
|
|
var types = require('../../types') |
|
|
|
|
|
var typeforce = require('typeforce') |
|
|
var typeforce = require('typeforce') |
|
|
|
|
|
|
|
|
function check (script) { |
|
|
function check (script) { |
|
@ -13,7 +12,7 @@ function check (script) { |
|
|
check.toJSON = function () { return 'pubKey input' } |
|
|
check.toJSON = function () { return 'pubKey input' } |
|
|
|
|
|
|
|
|
function encodeStack (signature) { |
|
|
function encodeStack (signature) { |
|
|
typeforce(types.Buffer, signature) |
|
|
typeforce(bscript.isCanonicalSignature, signature) |
|
|
return [signature] |
|
|
return [signature] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|