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

    Function hasP2PKSignedProof

    • Verifies a pubkey has signed a P2PK Proof.

      Parameters

      • pubkey: string

        The Cashu P2PK public key (hex-encoded, X-only or with 02/03 prefix).

      • proof: Proof

        A Cashu proof.

      Returns boolean

      True if one of the signatures is theirs, false otherwise.