Expand description
Error type for the threshold-cryptography crate.
Mirrors the snafu-based pattern used by confium-core. FFI entry
points in [crate::ffi] map these into the numeric u32 return
codes the C ABI expects.
Structs§
- Duplicate
Party IdSnafu - SNAFU context selector for the
Error::DuplicatePartyIdvariant - Empty
Party List Snafu - SNAFU context selector for the
Error::EmptyPartyListvariant - Insufficient
Buffer Snafu - SNAFU context selector for the
Error::InsufficientBuffervariant - InvalidUT
F8Snafu - SNAFU context selector for the
Error::InvalidUTF8variant - NotA
DkgSession Snafu - SNAFU context selector for the
Error::NotADkgSessionvariant - NulByte
Snafu - SNAFU context selector for the
Error::NulBytevariant - Null
Pointer Snafu - SNAFU context selector for the
Error::NullPointervariant - Party
Index OutOf Range Snafu - SNAFU context selector for the
Error::PartyIndexOutOfRangevariant - Round
Overflow Snafu - SNAFU context selector for the
Error::RoundOverflowvariant - Scheme
Internal Snafu - SNAFU context selector for the
Error::SchemeInternalErrorvariant - Scheme
NotFound Snafu - SNAFU context selector for the
Error::SchemeNotFoundvariant - Session
Already Complete Snafu - SNAFU context selector for the
Error::SessionAlreadyCompletevariant - Session
NotComplete Snafu - SNAFU context selector for the
Error::SessionNotCompletevariant - Share
Invalid Scheme Snafu - SNAFU context selector for the
Error::ShareInvalidSchemevariant - Share
Scheme Mismatch Snafu - SNAFU context selector for the
Error::ShareSchemeMismatchvariant - Share
Truncated Snafu - SNAFU context selector for the
Error::ShareTruncatedvariant - This
Party IdxOut OfRange Snafu - SNAFU context selector for the
Error::ThisPartyIdxOutOfRangevariant - Threshold
TooLarge Snafu - SNAFU context selector for the
Error::ThresholdTooLargevariant - Threshold
TooSmall Snafu - SNAFU context selector for the
Error::ThresholdTooSmallvariant
Enums§
- Error
- Error
Code - Numeric error codes for the
cfm_tc_*ABI. These are deliberately disjoint from the core engine’s codes (which start at 1) so a caller can disambiguate the source — TC codes begin at 0x1000.