declare function hex(bytes: Uint8Array): string; declare function fromHex(s: string): Uint8Array; export interface Keypair { privateKeyHex: string; publicKeyHex: string; suiAddress: string; } /** Generate a fresh Ed25519 keypair and derive its Sui address. */ export declare function generateKeypair(): Promise; /** * Sui Ed25519 address: blake2b-256(0x00 || pubkey). * The `0x00` is the Ed25519 scheme flag byte. */ export declare function deriveSuiAddress(pubKey: Uint8Array): string; /** * Sign a canonical request message with a delegate private key. * * The relayer authenticates `/api/*` by Ed25519 signature over * `{timestamp}.{method}.{path_and_query}.{body_sha256}.{nonce}.{account_id}` * (`services/server/src/auth.rs`, which calls itself the single source of * truth for that format). Keep the two in lockstep. */ export declare function signMessage(privateKeyHex: string, message: string): Promise; export { hex as bytesToHex, fromHex as hexToBytes }; //# sourceMappingURL=crypto.d.ts.map