Recover the secret from shares: serialized bytes (what the reference
takes), share objects, or both in one array, in any order. Each element is
normalised once, in array order: bytes through parseShare, an
object through the checks shareBytes makes; so at every position
an object has exactly the outcome its bytes would have, and errors surface
in array order. Every share must carry the same identifier, group
threshold, group count and value length; a group that fails its Shamir
recovery is skipped.
InvalidParameter for a non-array or an element that
is neither bytes nor a share object; SharesEmpty, the parse codes,
ShareSetInvalid, MemberThresholdInvalid, DuplicateMemberIndex,
NotEnoughGroups, Shamir.
Recover the secret from
shares: serialized bytes (what the reference takes), share objects, or both in one array, in any order. Each element is normalised once, in array order: bytes through parseShare, an object through the checks shareBytes makes; so at every position an object has exactly the outcome its bytes would have, and errors surface in array order. Every share must carry the same identifier, group threshold, group count and value length; a group that fails its Shamir recovery is skipped.