From 152eed57a013d8d9832d3bc1494c31fa5f35f0cc Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Tue, 22 Aug 2017 11:09:31 +1000 Subject: [PATCH] templates/pubkey: only canonical pubkeys to encode --- src/templates/pubkey/input.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/templates/pubkey/input.js b/src/templates/pubkey/input.js index 0e8ed8d..1d34cb4 100644 --- a/src/templates/pubkey/input.js +++ b/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] }