From c13f1df9bf5ae63539a0fe9ea2094ec504b8d220 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Mon, 13 Oct 2014 12:52:32 +1100 Subject: [PATCH] doc: no section headers --- src/address.js | 2 -- src/ecsignature.js | 2 -- src/script.js | 4 ---- 3 files changed, 8 deletions(-) diff --git a/src/address.js b/src/address.js index be2b239..e873515 100644 --- a/src/address.js +++ b/src/address.js @@ -23,7 +23,6 @@ function Address(hash, version) { this.version = version } -// Import functions Address.fromBase58Check = function(string) { var payload = base58check.decode(string) var version = payload.readUInt8(0) @@ -41,7 +40,6 @@ Address.fromOutputScript = function(script, network) { assert(false, script.toASM() + ' has no matching Address') } -// Export functions Address.prototype.toBase58Check = function () { var payload = new Buffer(21) payload.writeUInt8(this.version, 0) diff --git a/src/ecsignature.js b/src/ecsignature.js index 073d7f1..1e25a99 100644 --- a/src/ecsignature.js +++ b/src/ecsignature.js @@ -11,7 +11,6 @@ function ECSignature(r, s) { this.s = s } -// Import operations ECSignature.parseCompact = function(buffer) { assert.equal(buffer.length, 65, 'Invalid signature length') var i = buffer.readUInt8(0) - 27 @@ -82,7 +81,6 @@ ECSignature.parseScriptSignature = function(buffer) { } } -// Export operations ECSignature.prototype.toCompact = function(i, compressed) { if (compressed) i += 4 i += 27 diff --git a/src/script.js b/src/script.js index 2283495..e6c6aaa 100644 --- a/src/script.js +++ b/src/script.js @@ -12,7 +12,6 @@ function Script(buffer, chunks) { this.chunks = chunks } -// Import operations Script.fromASM = function(asm) { var strChunks = asm.split(' ') @@ -90,10 +89,8 @@ Script.fromHex = function(hex) { return Script.fromBuffer(new Buffer(hex, 'hex')) } -// Constants Script.EMPTY = Script.fromChunks([]) -// Operations Script.prototype.getHash = function() { return crypto.hash160(this.buffer) } @@ -105,7 +102,6 @@ Script.prototype.without = function(needle) { })) } -// Export operations var reverseOps = [] for (var op in opcodes) { var code = opcodes[op]