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

    Function signP2PKProof

    • Signs a single proof with the provided private key if required NB: Will only sign if the proof requires a signature from the key.

      Parameters

      • proof: Proof

        A proof to sign.

      • privateKey: string

        A single private key.

      Returns Proof

      Error if signature is not required or proof is already signed.