deterministicGenerateK function
Deterministic Generate K
Implementation
ECSignature deterministicGenerateK(Uint8List hash, Uint8List x) {
final signer = ECDSASigner(null, HMac(SHA256Digest(), 64));
var pkp = PrivateKeyParameter(ECPrivateKey(_decodeBigInt(x), _secp256k1));
signer.init(true, pkp);
// signer.init(false, PublicKeyParameter(ECPublicKey(secp256k1.curve.decodePoint(x), secp256k1)));
return signer.generateSignature(hash) as ECSignature;
}