Skip to main content

hasValidDleq

@cashu/cashu-ts


@cashu/cashu-ts / hasValidDleq

Function: hasValidDleq()

hasValidDleq(proof, keyset): boolean

Defined in: cashu-ts/src/utils.ts:497

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

Parameters

proof

Proof

The proof subject to verification

keyset

MintKeys

The Mint's keyset to be used for verification

Returns

boolean

true if verification succeeded, false otherwise

Throws

Error if