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.

statements

An array of statement strings to be hashed.

options: HashingOptions= {}

Optional hasher arguments.

Array<object>

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

digest: HexString

nonce: string

saltedHash: HexString

statement: string

utils/src/Crypto.ts:327