/** * Cross-platform CSPRNG. * * Deliberately backed by `nacl.randomBytes` rather than Node's `crypto.randomBytes`: * tweetnacl resolves to `crypto.getRandomValues` in browsers and to Node's CSPRNG * under Node, so this module carries no `node:crypto` import. That matters because * every deposit path reaches this code via `createUTXO`/`generateKeypair`, and a * bare `import { randomBytes } from "crypto"` throws at bundle time in browser * builds that have no Node polyfill. * * tweetnacl is already a hard dependency, so this adds no install weight. */ /** `length` cryptographically-secure random bytes. */ export declare function randomBytes(length: number): Uint8Array; /** 32 cryptographically-secure random bytes — the common case for blindings and seeds. */ export declare function randomBytes32(): Uint8Array;