Skip to main content

Module error

Module error 

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

DuplicatePartyIdSnafu
SNAFU context selector for the Error::DuplicatePartyId variant
EmptyPartyListSnafu
SNAFU context selector for the Error::EmptyPartyList variant
InsufficientBufferSnafu
SNAFU context selector for the Error::InsufficientBuffer variant
InvalidUTF8Snafu
SNAFU context selector for the Error::InvalidUTF8 variant
NotADkgSessionSnafu
SNAFU context selector for the Error::NotADkgSession variant
NulByteSnafu
SNAFU context selector for the Error::NulByte variant
NullPointerSnafu
SNAFU context selector for the Error::NullPointer variant
PartyIndexOutOfRangeSnafu
SNAFU context selector for the Error::PartyIndexOutOfRange variant
RoundOverflowSnafu
SNAFU context selector for the Error::RoundOverflow variant
SchemeInternalSnafu
SNAFU context selector for the Error::SchemeInternalError variant
SchemeNotFoundSnafu
SNAFU context selector for the Error::SchemeNotFound variant
SessionAlreadyCompleteSnafu
SNAFU context selector for the Error::SessionAlreadyComplete variant
SessionNotCompleteSnafu
SNAFU context selector for the Error::SessionNotComplete variant
ShareInvalidSchemeSnafu
SNAFU context selector for the Error::ShareInvalidScheme variant
ShareSchemeMismatchSnafu
SNAFU context selector for the Error::ShareSchemeMismatch variant
ShareTruncatedSnafu
SNAFU context selector for the Error::ShareTruncated variant
ThisPartyIdxOutOfRangeSnafu
SNAFU context selector for the Error::ThisPartyIdxOutOfRange variant
ThresholdTooLargeSnafu
SNAFU context selector for the Error::ThresholdTooLarge variant
ThresholdTooSmallSnafu
SNAFU context selector for the Error::ThresholdTooSmall variant

Enums§

Error
ErrorCode
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.

Type Aliases§

Result