Merge pull request #357 from bitcoinjs/nodocs

doc: no section headers
This commit is contained in:
Daniel Cousens 2015-02-12 14:38:07 +11:00
commit 7ad3ac5353
3 changed files with 0 additions and 8 deletions

View file

@ -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)

View file

@ -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

View file

@ -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]