UNPKG

cyphertap

Version:

Nostr, Lightning and Ecash on a single Button component

17 lines (16 loc) 560 B
/** * Generate a random numeric PIN of specified length * @param length The length of the PIN (default: 4) * @returns A string containing the PIN */ export declare function generateRandomPin(length?: number): string; /** * Create a QR link payload with encrypted private key * @param privateKey The user's private key * @param pin The PIN used for encryption * @returns An object with encrypted key and formatted QR data */ export declare function createLinkPayload(privateKey: string, pin: string): { encryptedKey: string; qrData: string; };