Cashu-TS - v3.3.0
    Preparing search index...

    Function signP2PKProof

    • Signs a single proof with the provided private key if required.

      Parameters

      • proof: Proof

        A proof to sign.

      • privateKey: PrivKey

        A single private key (hex string or Uint8Array).

      • Optionalmessage: string

        Optional. The message to sign (for SIG_ALL)

      Returns Proof

      Signed proofs.

      Will only sign if the proof requires a signature from the key.

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