Documentation
    Preparing search index...

    Class EnokiPublicKey

    Hierarchy

    • ZkLoginPublicIdentifier
      • EnokiPublicKey
    Index

    Constructors

    • Create a new ZkLoginPublicIdentifier object

      Parameters

      • value: PublicKeyInitData

        zkLogin public identifier as buffer or base-64 encoded string

      • Optional__namedParameters: { client?: ZkLoginCompatibleClient }

      Returns EnokiPublicKey

    Methods

    • Checks if two zkLogin public identifiers are equal

      Parameters

      • publicKey: ZkLoginPublicIdentifier

      Returns boolean

    • Return the Sui address associated with this ZkLogin public identifier

      Returns number

    • Return the base-64 representation of the public key

      Returns string

    • Return the byte array representation of the zkLogin public identifier

      Returns Uint8Array<ArrayBuffer>

    • Returns never

    • Return the Sui address associated with this Ed25519 public key

      Returns string

    • Returns the bytes representation of the public key prefixed with the signature scheme flag

      Returns Uint8Array<ArrayBuffer>

    • Return the Sui representation of the public key encoded in base-64. A Sui public key is formed by the concatenation of the scheme flag with the raw bytes of the public key

      Returns string

    • Verifies that the signature is valid for for the provided message

      Parameters

      • _message: Uint8Array
      • _signature: string | Uint8Array<ArrayBufferLike>

      Returns Promise<boolean>

    • Verifies that the public key is associated with the provided address

      Parameters

      • address: string

      Returns boolean

    • Verifies that the signature is valid for for the provided PersonalMessage

      Parameters

      • message: Uint8Array
      • signature: string | Uint8Array<ArrayBufferLike>

      Returns Promise<boolean>

    • Verifies that the signature is valid for for the provided Transaction

      Parameters

      • transaction: Uint8Array
      • signature: string | Uint8Array<ArrayBufferLike>

      Returns Promise<boolean>

    • Parameters

      • bytes: Uint8Array
      • signature: string | Uint8Array<ArrayBufferLike>
      • intent: IntentScope

      Returns Promise<boolean>

    • Parameters

      • bytes: Uint8Array
      • Optional__namedParameters: { address?: string; client?: ZkLoginCompatibleClient; legacyAddress?: boolean }

      Returns ZkLoginPublicIdentifier

    • Parameters

      • address: string
      • 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 ZkLoginPublicIdentifier