Adds BI.toPaddedBuffer and toBuffer

This commit is contained in:
Daniel Cousens 2014-04-24 07:22:10 +10:00
parent 596b31b1e1
commit d8883e8d32
8 changed files with 131 additions and 26 deletions

View file

@ -39,7 +39,7 @@ describe('ecdsa', function() {
var sig_a = s1.sign([0])
assert.ok(sig_a, 'Sign null')
assert.ok(s1.pub.verify(BigInteger.ZERO, sig_a))
assert.ok(s1.pub.verify([0], sig_a))
var message = new Buffer(1024) // More or less random :P
var hash = crypto.sha256(message)