@midnight-ntwrk/compact-runtime v0.8.1
@midnight-ntwrk/compact-runtime / degradeToTransient
Function: degradeToTransient()
function 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