From 5481bde49c3e45c1a6302e94d3c7964bc04660b1 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Fri, 13 Jul 2018 13:09:41 +1000 Subject: [PATCH] templates: rm unused nulldata code --- src/templates/nulldata.js | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/templates/nulldata.js b/src/templates/nulldata.js index 2ad09d7..d42fd71 100644 --- a/src/templates/nulldata.js +++ b/src/templates/nulldata.js @@ -1,8 +1,6 @@ // OP_RETURN {data} const bscript = require('../script') -const types = require('../types') -const typeforce = require('typeforce') const OPS = require('bitcoin-ops') function check (script) { @@ -13,22 +11,4 @@ function check (script) { } check.toJSON = function () { return 'null data output' } -function encode (data) { - typeforce([types.Buffer], data) - - return bscript.compile([OPS.OP_RETURN].concat(data)) -} - -function decode (buffer) { - typeforce(check, buffer) - - return bscript.decompile(buffer).slice(1) -} - -module.exports = { - output: { - check: check, - decode: decode, - encode: encode - } -} +module.exports = { output: { check: check } }