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

    Class EphKeyClaim

    The EphKeyClaim object represents the public claim of the ephemeral key.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • ephId: string

        Ephemeral key ID

      • ephPK: Uint8Array

        Ephemeral public key

      • signAlg: EphKeySignAlgorithm

        Signature algorithm.

      • expiryInSecs: number = ...

        Expiry date of the ephemeral key in seconds. Default is 1 hour.

      Returns EphKeyClaim

    Properties

    ephId: string
    ephPK: string
    expiry: number

    Methods

    • Returns string

    • Helper method to generate ephemeral keypair and its claim. This uses the generated public key as the ephemeral key ID.

      Parameters

      • algSign: EphKeySignAlgorithm

        Signature algorithm

      • OptionalexpiryInSecs: number

        Expiry date of the ephemeral key in seconds. Default is 1 hour

      Returns { ephClaim: EphKeyClaim; privKey: Uint8Array; pubKey: Uint8Array }

      keypair of ephemeral key and its claim