Cryptography
Main cryptography related functions.
Hash functions
Blake2b256
// Input of hash function must be an expression representable as an array of bytes.
// The class Txt assures a consistent byte encoding for textual strings.
const toHash = Txt.of('hello world');
const hash = Blake2b256.of(toHash.bytes);Keccak256
// Input of hash function must be an expression representable as an array of bytes.
// The class Txt assures a consistent byte encoding for textual strings.
const toHash = Txt.of('hello world');
//
const hash = Keccak256.of(toHash.bytes);Public key cryptography
Last updated
Was this helpful?