Skip to main content

transientCommit

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.19.0


@midnight-ntwrk/compact-runtime / transientCommit

Function: transientCommit()

function transientCommit<A>(
rtType,
value,
opening): bigint;

The Compact builtin transientCommit function

This function is a circuit-efficient commitment function from arbitrary values representable in Compact, and a field element commitment opening, to field elements, which is not guaranteed to persist between upgrades. It should not be used to derive state data, but can be used for consistency checks.

Type Parameters​

A​

A

Parameters​

rtType​

CompactType<A>

value​

A

opening​

bigint

Returns​

bigint

Throws​

If opening is out of range for field elements