Documentation
    Preparing search index...

    Class EnokiKeypair

    A transport- and provider-agnostic zkLogin signer.

    It wraps any ephemeral Signer and, for every signing operation, transforms the ephemeral signature into a zkLogin signature using the supplied proof inputs and maxEpoch. Because every signing method on Signer funnels through signWithIntent, overriding that single method is enough to cover signTransaction, signPersonalMessage, and signAndExecuteTransaction.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • input: {
            address: string;
            ephemeralKeypair: Signer;
            maxEpoch: number;
            proof: {
                addressSeed: string;
                headerBase64: string;
                issBase64Details: { indexMod4: number; value: string };
                proofPoints: {
                    a: Iterable<string, any, any> & { length: number };
                    b: Iterable<Iterable<string, any, any> & { length: number }, any, any> & {
                        length: number;
                    };
                    c: Iterable<string, any, any> & { length: number };
                };
            };
        }

      Returns EnokiKeypair

    Methods

    • Parameters

      • _data: Uint8Array

      Returns never

    • Signs provided personal message by calling signWithIntent() with a PersonalMessage provided as intent scope

      Parameters

      • bytes: Uint8Array

      Returns Promise<{ bytes: string; signature: string }>

    • Signs provided transaction by calling signWithIntent() with a TransactionData provided as intent scope

      Parameters

      • bytes: Uint8Array

      Returns Promise<SignatureWithBytes>

    • Returns string