Skip to main content

Module error

Module error 

Source
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§

AggregateVerificationFailedSnafu
SNAFU context selector for the FrostError::AggregateVerificationFailed variant
BelowThresholdSnafu
SNAFU context selector for the FrostError::BelowThreshold variant
InvalidCommitmentSnafu
SNAFU context selector for the FrostError::InvalidCommitment variant
InvalidShareResponseSnafu
SNAFU context selector for the FrostError::InvalidShareResponse variant
InvalidShareSignatureSnafu
SNAFU context selector for the FrostError::InvalidShareSignature variant
MalformedMessageSnafu
SNAFU context selector for the FrostError::MalformedMessage variant
MalformedShareSnafu
SNAFU context selector for the FrostError::MalformedShare variant
MissingCommitmentSnafu
SNAFU context selector for the FrostError::MissingCommitment variant
RosterConfigSnafu
SNAFU context selector for the FrostError::RosterConfig variant
RoundOverflowSnafu
SNAFU context selector for the FrostError::RoundOverflow variant
SessionNotCompleteSnafu
SNAFU context selector for the FrostError::SessionNotComplete variant
VssShareVerificationFailedSnafu
SNAFU context selector for the FrostError::VssShareVerificationFailed variant

Enums§

FrostError
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’s code field. They begin at 0x2100 to avoid colliding with future schemes.

Type Aliases§

Result