UNPKG

@bit-gpt/h402

Version:

BitGPT's 402 open protocol for blockchain-native payments

13 lines 505 B
import { type Hex } from "viem"; /** * Creates a cryptographically secure random nonce. * * A nonce is a random value used to ensure uniqueness in cryptographic operations. * This function generates a 32-byte random value using the Web Crypto API. * * @returns {Hex} A hexadecimal string prefixed with '0x' representing the random nonce * @throws {Error} If the random bytes generation fails */ declare function createNonce(): Hex; export { createNonce }; //# sourceMappingURL=createNonce.d.ts.map