hooks
- Description:
The hooks for this instance. Checkout the hooks documentation
- Source:
- See:
Methods
(static) computeShares(jiffClient, secret, parties_list, threshold, Zp)
- Description:
Hook for computing shares of a secret
- Source:
Parameters:
Name | Type | Description |
---|---|---|
jiffClient |
module:jiff-client~JIFFClient | the jiff client instance |
secret |
number | the secret to share |
parties_list |
Array.<number> | array of party ids to share with |
threshold |
number | threshold of sharing |
Zp |
number | the field prime |
(static) execute_array_hooks(hook_name, params, acc_index) → {object}
- Description:
Execute all hooks attached to the given name in order. Hooks are executed sequentially such that the first hook's return value is passed into the second and so on.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
hook_name |
string | the name of the hook |
params |
Array | parameters to pass to the hooks |
acc_index |
number | the index in params in which the result of the hooks must be saved, if no hooks exist for the name, then params[acc_index] is returned. |
Returns:
returns the result of the last hook.
- Type
- object