Class

KVHash

KVHash()

Hash that can be stored in the ledger's custom data store.

Constructor

# new KVHash()

View Source pkg/wasm.js, line 1529

Methods

# static new_no_blind(data) → {KVHash}

Generate a new custom data hash without a blinding factor.

Parameters:
Name Type Description
data JsValue

Data to hash. Must be an array of bytes.

View Source pkg/wasm.js, line 1550

KVHash

# static new_with_blind(data, kv_blind) → {KVHash}

Generate a new custom data hash with a blinding factor.

Parameters:
Name Type Description
data JsValue

Data to hash. Must be an array of bytes.

kv_blind KVBlind

Optional blinding factor.

View Source pkg/wasm.js, line 1566

KVHash