Skip to content

hashStatements

hashStatements(statements, options): Array<object>

Configurable computation of salted over an array of statements. Can be used to validate/reproduce salted hashes by means of an optional nonce map.

Parameters

statements

An array of statement strings to be hashed.

options: HashingOptions= {}

Optional hasher arguments.

Returns

Array<object>

An array of objects for each statement which contain a statement, its digest, salted hash and nonce.

digest

digest: HexString

nonce

nonce: string

saltedHash

saltedHash: HexString

statement

statement: string

Source

utils/src/Crypto.ts:327