doc: no section headers
This commit is contained in:
parent
abf870fb37
commit
c13f1df9bf
3 changed files with 0 additions and 8 deletions
|
@ -23,7 +23,6 @@ function Address(hash, version) {
|
||||||
this.version = version
|
this.version = version
|
||||||
}
|
}
|
||||||
|
|
||||||
// Import functions
|
|
||||||
Address.fromBase58Check = function(string) {
|
Address.fromBase58Check = function(string) {
|
||||||
var payload = base58check.decode(string)
|
var payload = base58check.decode(string)
|
||||||
var version = payload.readUInt8(0)
|
var version = payload.readUInt8(0)
|
||||||
|
@ -41,7 +40,6 @@ Address.fromOutputScript = function(script, network) {
|
||||||
assert(false, script.toASM() + ' has no matching Address')
|
assert(false, script.toASM() + ' has no matching Address')
|
||||||
}
|
}
|
||||||
|
|
||||||
// Export functions
|
|
||||||
Address.prototype.toBase58Check = function () {
|
Address.prototype.toBase58Check = function () {
|
||||||
var payload = new Buffer(21)
|
var payload = new Buffer(21)
|
||||||
payload.writeUInt8(this.version, 0)
|
payload.writeUInt8(this.version, 0)
|
||||||
|
|
|
@ -11,7 +11,6 @@ function ECSignature(r, s) {
|
||||||
this.s = s
|
this.s = s
|
||||||
}
|
}
|
||||||
|
|
||||||
// Import operations
|
|
||||||
ECSignature.parseCompact = function(buffer) {
|
ECSignature.parseCompact = function(buffer) {
|
||||||
assert.equal(buffer.length, 65, 'Invalid signature length')
|
assert.equal(buffer.length, 65, 'Invalid signature length')
|
||||||
var i = buffer.readUInt8(0) - 27
|
var i = buffer.readUInt8(0) - 27
|
||||||
|
@ -82,7 +81,6 @@ ECSignature.parseScriptSignature = function(buffer) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Export operations
|
|
||||||
ECSignature.prototype.toCompact = function(i, compressed) {
|
ECSignature.prototype.toCompact = function(i, compressed) {
|
||||||
if (compressed) i += 4
|
if (compressed) i += 4
|
||||||
i += 27
|
i += 27
|
||||||
|
|
|
@ -12,7 +12,6 @@ function Script(buffer, chunks) {
|
||||||
this.chunks = chunks
|
this.chunks = chunks
|
||||||
}
|
}
|
||||||
|
|
||||||
// Import operations
|
|
||||||
Script.fromASM = function(asm) {
|
Script.fromASM = function(asm) {
|
||||||
var strChunks = asm.split(' ')
|
var strChunks = asm.split(' ')
|
||||||
|
|
||||||
|
@ -90,10 +89,8 @@ Script.fromHex = function(hex) {
|
||||||
return Script.fromBuffer(new Buffer(hex, 'hex'))
|
return Script.fromBuffer(new Buffer(hex, 'hex'))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Constants
|
|
||||||
Script.EMPTY = Script.fromChunks([])
|
Script.EMPTY = Script.fromChunks([])
|
||||||
|
|
||||||
// Operations
|
|
||||||
Script.prototype.getHash = function() {
|
Script.prototype.getHash = function() {
|
||||||
return crypto.hash160(this.buffer)
|
return crypto.hash160(this.buffer)
|
||||||
}
|
}
|
||||||
|
@ -105,7 +102,6 @@ Script.prototype.without = function(needle) {
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Export operations
|
|
||||||
var reverseOps = []
|
var reverseOps = []
|
||||||
for (var op in opcodes) {
|
for (var op in opcodes) {
|
||||||
var code = opcodes[op]
|
var code = opcodes[op]
|
||||||
|
|
Loading…
Add table
Reference in a new issue