@midnight-ntwrk/compact-runtime v0.7.0 • Readme | API
@midnight-ntwrk/compact-runtime v0.7.0 / degradeToTransient
Function: degradeToTransient()
degradeToTransient(x): bigint
The Compact builtin degrade_to_transient
function
This function "degrades" the output of a persistentHash or persistentCommit to a field element, which can then be used in transientHash or transientCommit.
Parameters
• x: Uint8Array
Returns
bigint
Throws
If x
is not 32 bytes long