@silencelaboratories/walletprovider-sdk
    Preparing search index...

    Class EphAuth

    The EphAuth module is only used for signing requests to the network.

    An Ephmeral key used to locally sign the signature requests to network. This eph key is registered during keygen. The key is used to sign the requests without asking the user to sign the request each time.

    Implements

    • AuthModule
    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • ephId: string

        Ephemeral key ID

      • ephSK: Uint8Array

        Ephemeral secret key

      • signAlg: EphKeySignAlgorithm

        Signature algorithm

      Returns EphAuth

    Methods

    • Prepares a message for Ephemeral secret key to sign.

      Parameters

      • payload: { challenge: string; payload: EphemeralAuthPayload }

        request payload to be sent to the backend

      Returns Promise<UserAuthentication>