hasCoinCommitment
@midnight-ntwrk/compact-runtime v0.9.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​
CircuitContext<unknown>
The current circuit context.
coinInfo​
The coin information to check.
recipient​
The coin recipient to check.
Returns​
boolean