Skip to main content

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​

EncodedCoinInfo

The coin information to check.

recipient​

EncodedRecipient

The coin recipient to check.

Returns​

boolean