getValueHash
The getValueHash
function returns a hash for a single Value
, based on its value and the HLC of the Value
.
getValueHash(
value: ValueOrUndefined,
valueHlc: string,
): Hash
Type | Description | |
---|---|---|
value | ValueOrUndefined | The |
valueHlc | string | The HLC of the |
returns | Hash | A hash of the |
Example
This example gets the hash of a Value
and its HLC.
import {getValueHash} from 'tinybase';
const value = 42;
const valueHlc = '03E3B------mmxrx';
console.log(getValueHash(value, valueHlc));
// -> 312420374
Since
v6.2.0