ECSignature: rename parsing functions to parse*
This commit is contained in:
parent
f42993297c
commit
1f0a54fb41
5 changed files with 11 additions and 11 deletions
|
@ -10,7 +10,7 @@ function ECSignature(r, s) {
|
|||
}
|
||||
|
||||
// Import operations
|
||||
ECSignature.fromCompact = function(buffer) {
|
||||
ECSignature.parseCompact = function(buffer) {
|
||||
assert.equal(buffer.length, 65, 'Invalid signature length')
|
||||
var i = buffer.readUInt8(0) - 27
|
||||
|
||||
|
@ -52,7 +52,7 @@ ECSignature.fromDER = function(buffer) {
|
|||
return new ECSignature(r, s)
|
||||
}
|
||||
|
||||
ECSignature.fromScriptSignature = function(buffer) {
|
||||
ECSignature.parseScriptSignature = function(buffer) {
|
||||
return {
|
||||
signature: ECSignature.fromDER(buffer.slice(0, -1)),
|
||||
hashType: buffer.readUInt8(buffer.length - 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue