View source: R/secret-sharing.R
| recover_shared_key | R Documentation |
Inverse of share_keys(). Given a SecretShareMap holding
at least threshold shares, reconstructs a PrivateKey
equivalent to the original secret at the point of sharing.
The reconstructed key participates in distributed decryption
identically to the original, so a dropped-out party's share
of a threshold decryption can still be completed by the
remaining parties.
recover_shared_key(
cc,
share_map,
n_parties,
threshold,
sharing_scheme = "additive"
)
cc |
A |
share_map |
A |
n_parties |
Integer; must match the value used at
|
threshold |
Integer; must match the value used at
|
sharing_scheme |
Character; must match the value used at
|
Under the hood, the C++ API takes a mutable PrivateKey
reference that must be pre-allocated as an empty
PrivateKeyImpl bound to cc. The R wrapper constructs that
empty placeholder internally so R users do not have to know
about the in-place-fill convention.
A PrivateKey holding the reconstructed secret.
share_keys()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.