Combine raw shares to restore the original secret.
The number of shares must be equal to or greater than threshold, which must also be passed as an argument.
Returns copy of identifier from robust share.
Returns threshold specified when creating this robust share.
Split secret into the given number of robust shares, threshold number of which can be used with combine() to recover it.
Identifier is an arbitrary 16 bytes used to describe and identify shares, which will be appended to shares and can be read with readIdentifier().
The default hash function used to verify correctness of restored secret is SHA-256. To use another function, pass its constructor and identifier. Pass null as hash function to avoid hashing secret.
Split secret into the given number of raw shares, threshold number of which can be used with combineRaw() to recover it.
It is recommended to use split(), which produces robust shares with identifier and hash of secret.
Generated using TypeDoc
Combines robust shares to restore the original secret. The number of shares must be equal to or greater than threshold.
If a custom hash was used when creating shares, it must be passed as an argument along with the hash identifier.