Crate shamirss

Crate shamirss 

Source

Modules§

errors

Enums§

EncodingStd
Encoding standard for secret and shares.

Functions§

combine_inlined
Combines shares to a secrets. Function will be inlined.
combine_std
Combines shares to a secrets. Function will not be inlined.
create_inlined
Creates shared secrets from given secret. Function will be inlined. Can calculate shares for secret divisible by 32 without rest (secret_size mod 32 == 0).
create_std
Creates shared secrets from given secret. Function will not be inlined. Can calculate shares for secret divisible by 32 without rest (secret_size mod 32 == 0).
decode_secret_to_bytes
Decodes secret to bytes from string in given encoding standard.
decode_shares_to_bytes
Decodes slice of shares strings encoded in given encoding standard to slice of shares in bytes.
encode_secret_bytes
Encodes secret bytes to string in given encoding standard.
encode_shares_bytes
Encodes slice of shares bytes to slice of strings in given encoding standard.