Expand description
Error type for the FROST-ed25519 scheme plugin.
The framework’s confium_tc::Error::SchemeInternalError carries a
single u32 code; this module gives those codes stable, disambiguating
values so a caller (or test) can tell a malformed commitment apart from
a bad Lagrange weight. Codes are reported through the FFI as
0x1041 | sub, where sub is the FrostError::code of the
underlying cause — they share the
confium_tc::error::ErrorCode::SCHEME_INTERNAL_ERROR envelope but
the low bits identify the FROST-specific failure.
Structs§
- Aggregate
Verification Failed Snafu - SNAFU context selector for the
FrostError::AggregateVerificationFailedvariant - Below
Threshold Snafu - SNAFU context selector for the
FrostError::BelowThresholdvariant - Invalid
Commitment Snafu - SNAFU context selector for the
FrostError::InvalidCommitmentvariant - Invalid
Share Response Snafu - SNAFU context selector for the
FrostError::InvalidShareResponsevariant - Invalid
Share Signature Snafu - SNAFU context selector for the
FrostError::InvalidShareSignaturevariant - Malformed
Message Snafu - SNAFU context selector for the
FrostError::MalformedMessagevariant - Malformed
Share Snafu - SNAFU context selector for the
FrostError::MalformedSharevariant - Missing
Commitment Snafu - SNAFU context selector for the
FrostError::MissingCommitmentvariant - Roster
Config Snafu - SNAFU context selector for the
FrostError::RosterConfigvariant - Round
Overflow Snafu - SNAFU context selector for the
FrostError::RoundOverflowvariant - Session
NotComplete Snafu - SNAFU context selector for the
FrostError::SessionNotCompletevariant - VssShare
Verification Failed Snafu - SNAFU context selector for the
FrostError::VssShareVerificationFailedvariant
Enums§
- Frost
Error - FROST-specific failure modes. Each variant maps to a distinct code so a failure cause can be identified without string-matching.
Constants§
- CODE_
AGG_ VERIFY_ FAILED - CODE_
BELOW_ THRESHOLD - CODE_
INVALID_ COMMITMENT - CODE_
INVALID_ SHARE_ RESPONSE - CODE_
INVALID_ SHARE_ SIG - CODE_
MALFORMED_ MESSAGE - CODE_
MALFORMED_ SHARE - CODE_
MISSING_ COMMITMENT - CODE_
ROSTER_ CONFIG - CODE_
ROUND_ OVERFLOW - CODE_
SESSION_ NOT_ COMPLETE - CODE_
VSS_ VERIFY_ FAILED - FROST_
ERROR_ BASE - Sub-range of error codes used by this scheme. The framework reports
these via
confium_tc::Error::SchemeInternalError’scodefield. They begin at0x2100to avoid colliding with future schemes.