/** * EIP-712 Typed Structured Data Utilities for Sequence0 Auth * * Provides domain-separated, replay-protected ownership proofs * using the EIP-712 standard. Wallets like MetaMask display * human-readable signing prompts instead of raw hex. * * Domain: { name: "Sequence0", version: "1", chainId, verifyingContract: WalletFactory } * Type: Sequence0Auth(string walletId, string action, uint256 timestamp) */ export { WALLET_FACTORY_ADDRESSES, SEQUENCE0_CHAIN_IDS } from './contracts'; /** EIP-712 type hash: keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)") */ export declare const EIP712_DOMAIN_TYPEHASH: string; /** EIP-712 type hash: keccak256("Sequence0Auth(string walletId,string action,uint256 timestamp)") */ export declare const SEQUENCE0_AUTH_TYPEHASH: string; /** * Compute the EIP-712 digest for a Sequence0 auth message. * * digest = keccak256("\x19\x01" || domainSeparator || hashStruct) * * where: * domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256("Sequence0"), keccak256("1"), chainId, verifyingContract)) * hashStruct = keccak256(abi.encode(AUTH_TYPEHASH, keccak256(walletId), keccak256(action), timestamp)) * * @param walletId - The wallet ID string * @param action - The action string (e.g. "sign", "dkg", "refresh", "reshare") * @param timestamp - Unix timestamp in seconds * @param chainId - Sequence0 chain ID (800800 for testnet, 800801 for mainnet) * @param walletFactory - WalletFactory contract address (verifyingContract) * @returns 32-byte digest as Uint8Array, ready for signing */ export declare function computeEip712Digest(walletId: string, action: string, timestamp: number, chainId: number, walletFactory: string): Uint8Array; //# sourceMappingURL=eip712.d.ts.map