@seda-protocol/secp256k1-vrf
Version:
A TypeScript implementation of Verifiable Random Functions (VRF) for secp256k1
9 lines • 374 B
TypeScript
import type { Bytes, PrivKey } from "@noble/secp256k1";
/**
* Generates a deterministic nonce (ephemeral scalar k) using RFC 6979.
* @param secretKey The private key as bytes
* @param digest The message digest
* @returns The generated nonce as bytes
*/
export declare function generateNonce(secretKey: PrivKey, digest: Bytes): Bytes;
//# sourceMappingURL=nonce.d.ts.map