Shards is a library for secret sharing using Shamir's secret sharing algorithm.
This implementation uses
package main
import "shards"
main :: proc() {
secret := "the owls are not what they seem"
threshold := 3
parts := 4
// splits secret into shares with given threshold for recovery
shares, split_err := shards.split(transmute([]u8)secret, parts, threshold)
// recovers secret given at least threshold shares
recovered_secret, recover_err := shards.recover(shares[:threshold])
}