ecdsa-kotlin
ecdsa-kotlin copied to clipboard
SignData returning inconsistent number of bytes
This code here:
val signature = EcSign.signData(keyPair, data, EcSha256)
From what I've tried this code returns varying size of both r and s bytes. Sometimes it returns 32, sometimes 33. r and s should return consistent 32 bytes