Further isolates failure tests and joins [un]/compressed key tests

This commit is contained in:
Daniel Cousens 2014-03-29 05:52:15 +11:00
parent 38f09b49e9
commit 78e91e8648
2 changed files with 49 additions and 40 deletions

View file

@ -26,7 +26,7 @@ function sign(key, message) {
var hash = magicHash(message)
var sig = key.sign(hash)
var obj = ecdsa.parseSig(sig)
var i = ecdsa.calcPubkeyRecoveryParam(key.getPub(), obj.r, obj.s, hash)
var i = ecdsa.calcPubkeyRecoveryParam(key.getPub(key.compressed), obj.r, obj.s, hash)
i += 27
if (key.compressed) {