Skip to main content

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

CircuitContext

The current circuit context.

coinInfo

EncodedShieldedCoinInfo

The coin information to check.

recipient

EncodedRecipient

The coin recipient to check.

Returns

boolean