Cashu-TS - v4.13.0
    Preparing search index...

    Function hasValidDleq

    • Checks that the proof has a valid DLEQ proof according to keyset keys

      Parameters

      • proof: Proof

        The proof subject to verification.

      • keyset: HasKeysetKeys

        Object containing keyset keys (eg: Keyset, MintKeys, KeysetCache)

      • Optionalopts: { require?: boolean }
        • Optionalrequire?: boolean

          Default true. When false, a proof without a DLEQ payload returns true (NUT-12 "MUST verify-if-present"). The default flips to false in v5.0.

      Returns boolean

      True if verification succeeded, false otherwise.

      Use verifyMintSignatures, which v5 keeps; this is removed in v5. Its default is NUT-12 verify-if-present, so pass { require: true } for this function's default.

      CTSError if the proof amount is not a denomination in the keyset, checked before the missing-DLEQ shortcut so a keyless keyset is reported rather than silently passed.