@arklabs/wallet-sdk
Version:
Bitcoin wallet SDK with Taproot and Ark integration
14 lines (13 loc) • 418 B
TypeScript
/**
* MuSig2 nonce pair containing public and secret values.
* Public nonces are two compressed points (33 bytes each).
* Secret nonces are the corresponding private scalars plus pubkey.
*/
export type Nonces = {
pubNonce: Uint8Array;
secNonce: Uint8Array;
};
/**
* Generates a pair of public and secret nonces for MuSig2 signing
*/
export declare function generateNonces(publicKey: Uint8Array): Nonces;