hasCoinCommitment
@midnight-ntwrk/compact-runtime v0.14.0
@midnight-ntwrk/compact-runtime / hasCoinCommitment
Function: hasCoinCommitment()
function hasCoinCommitment(
context,
coinInfo,
recipient): boolean;
Checks whether a coin commitment has already been added to the current query context.
Parameters
context
The current circuit context.
coinInfo
The coin information to check.
recipient
The coin recipient to check.
Returns
boolean