Cashu-TS - v4.5.1
    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.

      Throws if the proof amount does not match any key in the provided keyset.