Skip to main content

sha512

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.20.0


@midnight-ntwrk/compact-runtime / sha512

Function: sha512()

function sha512<A>(rtType, value): Uint8Array;

The Compact builtin sha512 function

Hashes value using sha-512 and returns the 64-byte digest.

Type Parameters​

A​

A

Parameters​

rtType​

CompactType<A>

value​

A

Returns​

Uint8Array

Throws​

If rtType encodes a type containing Compact Opaque types