ConsenSysMesh / cava

ConsenSys core libraries for Java & Kotlin
Apache License 2.0
84 stars 34 forks source link

Update SECP256K1 encoding of v (recovery id) #62

Closed cleishm closed 6 years ago

cleishm commented 6 years ago

Encodes recovery id using 0/1, rather than 27/28.

Also adds sign and verify methods that take a precomputed hash.