Janiczek / elm-secret-sharing / Secret.Key


type alias Key =
Internal.Key

A key used to reconstruct the secret.

Can be thought of as a set of points on a given x = constant vertical line.

fromList : ( Basics.Int, List Basics.Int ) -> Key

Construct a Key from a list of points on a vertical line.

Mostly useful for deserialization.

In case you want to create these by hand, note the integers in the list must be in the 0-255 range, and the first integer in the tuple must be greater than 0.

toList : Key -> ( Basics.Int, List Basics.Int )

Convert a Key to a list of points on a vertical line.

Mostly useful for serialization.