ecdsa: parseSigCompact use Buffer API
parseSigCompact also now returns the correct recovert parameter without the need to subtract the compression bit. This makes it easier to use.
This commit is contained in:
parent
f7c7265d64
commit
a3f691bf7c
3 changed files with 22 additions and 22 deletions
test
|
@ -134,10 +134,8 @@ describe('ecdsa', function() {
|
|||
|
||||
assert.equal(signature.r.toString(), f.signature.r)
|
||||
assert.equal(signature.s.toString(), f.signature.s)
|
||||
|
||||
//TODO
|
||||
// assert.equal(signature.i, f.signature.i)
|
||||
// assert.equal(signature.compressed, f.publicKey.compressed)
|
||||
assert.equal(signature.i, f.signature.i)
|
||||
assert.equal(signature.compressed, f.signature.compressed)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue