Skip to main content

@midnight-ntwrk/compact-runtime v0.6.13Readme | API


@midnight-ntwrk/compact-runtime v0.6.13 / transientHash

Function: transientHash()

transientHash(x, y): bigint

The Compact builtin transient_hash function

This function is a circuit-efficient compression function from field elements 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.

Parameters

x: bigint

y: bigint

Returns

bigint

Throws

If x or y are out of range for field elements