@cashu/cashu-ts
    Preparing search index...

    Function deriveP2BKSecretKeys

    • Alpha

      Derive blinded secret keys that correspond to given P2BK blinded pubkeys.

      Pubkeys are processed in order, for a proof that is [data, ...pubkeys, ...refund]. Private key order does not matter.

      Parameters

      • Ehex: string

        Ephemeral public key (E) as SEC1 hex.

      • privateKey: string | string[]

        Secret key or array of secret keys, hex.

      • blindPubKey: string | string[]

        Blinded public key or array of blinded public keys, hex.

      • keysetIdHex: string

        Keyset identifier as hex.

      Returns string[]

      Array of derived secret keys as 64 char hex.

      Security note, this operates on long lived secrets. JavaScript BigInt arithmetic in a JIT is not guaranteed constant time. Do not expose this function on a server that holds private keys.

      This is the Receiver side API.