@midnight-ntwrk/compact-runtime v0.7.0 • Readme | API
@midnight-ntwrk/compact-runtime v0.7.0 / upgradeFromTransient
Function: upgradeFromTransient()
upgradeFromTransient(x): Uint8Array
The Compact builtin upgrade_from_transient
function
This function "upgrades" the output of a transientHash or transientCommit to 256-bit byte string, which can then be used in persistentHash or persistentCommit.
Parameters
• x: bigint
Returns
Uint8Array
Throws
If x
is not a valid field element