[][src]Module sss_rs::basic_sharing

Enums

Error

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

Functions

expand_share

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

from_secret

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

from_secrets

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

from_secrets_no_points

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

reconstruct_secret

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

reconstruct_secrets

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

reconstruct_secrets_no_points

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

reduce_share

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

transpose_vec_matrix

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