Closed 0xc0de4c0ffee closed 1 year ago
The error is pretty clear: you need padded hex. d06 bad, 0d06 good.
The error is pretty clear: you need padded hex. d06 bad, 0d06 good.
I've used let privateKey = hashToPrivateScalar(hashKey, ed25519.CURVE.n).toString(16).padStart(64, "0")
.
it's always 63 char long so privkey always starts with "0x0...".