@welshare/sdk
    Preparing search index...

    Function deriveKey

    • Derive a new key with cryptographic binding to master key

      Parameters

      • userSecret: UserSecret

        A user chosen secret to add more entropy for the key. If you use a string, encode it to bytes first, e.g. with new TextEncoder().encode("user@secret.com")

      • bindingSignature: Uint8Array

        The binding signature to use for the derivation

      • authMessage: SessionKeyAuthMessage

        The authentication message that was used in the EIP-712 bindingSignature

      Returns Promise<SessionKeypair>

      The derived keypair