Crate adss

Source
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§

AccessStructure
The AccessStructure struct defines the policy under which shares can be recovered. Currently, this policy is simply whether there are threshold 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 associated AccessStructure.

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