Module sss_rs::basic_sharing[][src]

Enums

Local Error enum, used to report errors that would only occur within this file.

Functions

This ‘decompresses’ a share by taking the x value and adding it to each y value.

Creates a vector of points that serve as the list of shares for a given byte of data.

This is a wrapper around from_secret that loops through the secret slice and secret.

Wrapper around its corresponding share function, this simply uses the reduce_share function to reduce the size of the share.

Reconstructs a secret from a given Vector of shares (points) and returns that secret.

This is a wrapper around reconstruct_secret that iterates over each Vec of shares and reconstructs their respective byte of the secret.

Wrapper around its corresponding share function, it simply uses the expand_share function to reconstruct the secret from shares created using from_secrets_no_points

This ‘compresses’ a share by pulling out it’s X value from each point since they will be identical.

Transposes a Vec of Vecs if it is a valid matrix. If it is not an error is returned.