Expand description
The adss
crate defines functionality for performing secret
sharing with established security guarantees. We use this framework
as it allows for specifying the random coins that are used for
establishing the lagrange polynomial coefficients explicitly. A
description of the Adept Secret Sharing framework is provided in
the paper by Bellare et al..
Structs§
- Access
Structure - The
AccessStructure
struct defines the policy under which shares can be recovered. Currently, this policy is simply whether there arethreshold
number of independent shares. - Commune
- A a unique instance of sharing across multiple parties
- Share
- The
Share
struct holds the necessary data that is encoded in a single secret share. A share itself reveals nothing about the encoded secret data until it is grouped with a set of shares that satisfy the policy in the associatedAccessStructure
.
Constants§
- ACCESS_
STRUCTURE_ LENGTH - The length of a serialized
AccessStructure
, in bytes. - MAC_
LENGTH - The length of a message authentication code used in
Share
, in bytes.
Functions§
- load_
bytes - Parse the next data chunk out of a byte slice
- load_
u32 - Attempt to parse a little-endian value from a byte serialization
- recover
- The
recover
function attempts to recover a secret shared value from a set of shares that meet the threshold requirements. - store_
bytes - Append a chunk of data
- store_
u32 - Append a
u32
in little-endian coding