Browse Source

templates/pubkey: only canonical pubkeys to encode

hk-custom-address
Daniel Cousens 8 years ago
committed by Daniel Cousens
parent
commit
152eed57a0
  1. 3
      src/templates/pubkey/input.js

3
src/templates/pubkey/input.js

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

Loading…
Cancel
Save