Skip to content

Class: Hash

Table of contents

Constructors

Methods

Constructors

constructor

new Hash(): Hash

Returns

Hash

Methods

free

free(): void

Returns

void

Defined in

web.d.ts:996


computeArgon2d

computeArgon2d(data): Uint8Array

Computes a 32-byte Argon2 hash from the input data.

Parameters

NameType
dataUint8Array

Returns

Uint8Array

Defined in

web.d.ts:1008


computeBlake2b

computeBlake2b(data): Uint8Array

Computes a 32-byte Blake2b hash from the input data. Blake2b is used for example to compute a public key's address.

Parameters

NameType
dataUint8Array

Returns

Uint8Array

Defined in

web.d.ts:1002


computeSha256

computeSha256(data): Uint8Array

Computes a 32-byte SHA256 hash from the input data.

Parameters

NameType
dataUint8Array

Returns

Uint8Array

Defined in

web.d.ts:1014


computeSha512

computeSha512(data): Uint8Array

Computes a 64-byte SHA512 hash from the input data.

Parameters

NameType
dataUint8Array

Returns

Uint8Array

Defined in

web.d.ts:1020