Documentation

    Class EnokiKeypair

    TODO: Document

    Hierarchy (View Summary, Expand)

    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 Promise<Uint8Array<ArrayBufferLike>>

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

      Parameters

      • bytes: Uint8Array

      Returns Promise<SignatureWithBytes>

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

      Parameters

      • bytes: Uint8Array

      Returns Promise<SignatureWithBytes>

    • Sign messages with a specific intent. By combining the message bytes with the intent before hashing and signing, it ensures that a signed message is tied to a specific purpose and domain separator is provided

      Parameters

      Returns Promise<SignatureWithBytes>

    • Returns string

    MMNEPVFCICPMFPCPTTAAATR