ReadonlynameAlways "SskrError"; the cross-copy identity SskrError.isSskrError checks.
ReadonlycodeThe discriminant; equals details.code.
ReadonlydetailsThe structured payload, discriminated by code.
StaticisType guard for an SskrError, including one from another copy of this package.
StaticofAn error with the reference message for one of the fourteen plain codes.
StaticshamirA Shamir failure surfaced through SSKR; cause is the ShamirError.
Staticinvalidparameter is outside its domain: expected says what it must be
("an integer in [0, 15]"), and value is what was received; the
message renders it exactly (2n, 18446744073709551616, "2").
Thrown for invalid specs and secrets, malformed or inconsistent share sets, an unmet quorum, Shamir failures (
Shamir, with theShamirErrorascause), and (JS-only) an argument outside its domain or of the wrong type (InvalidParameter). Messages match the Rust reference where a variant exists; branch oncode.Instances come from the static factories only.
Example