Documentation
    Preparing search index...

    Class SessionKey

    Index

    Methods

    • Create request params for the given transaction bytes.

      Parameters

      • txBytes: Uint8Array

        The transaction bytes.

      Returns Promise<
          {
              encKey: Uint8Array;
              encKeyPk: Uint8Array;
              encVerificationKey: Uint8Array;
              requestSignature: string;
          },
      >

      The request params containing the ephemeral secret key, its public key and its verification key.

    • Export the Session Key object from the instance. Store the object in IndexedDB to persist.

      Returns ExportedSessionKey

    • Returns string

    • Returns Promise<Certificate>

    • Returns string

    • Returns string

    • Returns Uint8Array

    • Returns boolean

    • Parameters

      • personalMessageSignature: string

      Returns Promise<void>

    • Create a new SessionKey instance.

      Parameters

      • __namedParameters: {
            address: string;
            mvrName?: string;
            packageId: string;
            signer?: Signer;
            suiClient: SealCompatibleClient;
            ttlMin: number;
        }

      Returns Promise<SessionKey>

      A new SessionKey instance.