@midnight-ntwrk/compact-runtime v0.7.0 • Readme | API
@midnight-ntwrk/compact-runtime v0.7.0 / transientHash
Function: transientHash()
transientHash<a>(rt_type, value): bigint
The Compact builtin transient_hash
function
This function is a circuit-efficient compression function from arbitrary data 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
Parameters
• rt_type: CompactType
<a
>
• value: a
Returns
bigint