(map-shares shares)
Takes a raw array of shares (big integers) and returns a bidimensional array with numbered keys for positions
Takes a raw array of shares (big integers) and returns a bidimensional array with numbered keys for positions
(shamir-combine conf shares)
Takes a secret (header and collection of integers) and returns the unlocked big integer. The collection must be ordered and have a nil in place for each missing share.
Takes a secret (header and collection of integers) and returns the unlocked big integer. The collection must be ordered and have a nil in place for each missing share.
(shamir-get-header share)
Takes Tiemen's share and extracts a header
Takes Tiemen's share and extracts a header
(shamir-get-shares si)
Takes Tiemen's share and extract a collection of shares
Takes Tiemen's share and extract a collection of shares
(shamir-load conf shares pos new)
Loads a new share into the Shamir's engine, internal use in combine
Loads a new share into the Shamir's engine, internal use in combine
(shamir-set-header head)
Takes an header and sets it into Tiemen's structure
Takes an header and sets it into Tiemen's structure
(shamir-split conf secnum)
split an integer into shares according to conf return a structure { :header { :quorum :total :prime :description} :shares [ [ pos share ] [ pos share] ... ]
split an integer into shares according to conf return a structure { :header { :quorum :total :prime :description} :shares [ [ pos share ] [ pos share] ... ]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close