keccak256
For the complete documentation index, see llms.txt
@midnight-ntwrk/compact-runtime v0.19.0
@midnight-ntwrk/compact-runtime / keccak256
Function: keccak256()
function keccak256<A>(rtType, value): Uint8Array;
The Compact builtin keccak256 function
Hashes value using Keccak-256 and returns the 32-byte digest.
Type Parameters
A
A
Parameters
rtType
CompactType<A>
value
A
Returns
Uint8Array
Throws
If rtType encodes a type containing Compact 'Opaque' types