Closed xumy29 closed 6 months ago
The generated private key is on P256 curve, which does not match secp256k1 VRF.
Do so to generate secp256k1 pk.
s, err := secp256k1.GeneratePrivateKey()
if err != nil {
// log.Error("generate private key fail", "err", err)
}
privateKey := s.ToECDSA()
It works now, thanks! @qianbin
It does not work for me.