pub enum ProtocolError {
Show 73 variants
IdentifierError(String),
StringDecodeError(String),
EmptyPublicKeyDataError,
MaxEncodedBytesReachedError {
max_size_kbytes: usize,
size_hit: usize,
},
EncodingError(String),
DecodingError(String),
FileNotFound(String),
UnsupportedVersionMismatch {
method: String,
allowed_versions: Vec<FeatureVersion>,
received: FeatureVersion,
},
UnknownVersionMismatch {
method: String,
known_versions: Vec<FeatureVersion>,
received: FeatureVersion,
},
CurrentProtocolVersionNotInitialized,
UnknownVersionError(String),
UnknownProtocolVersionError(String),
NoProtocolVersionError,
ParsingError(String),
ParsingJsonError(Error),
Error(Error),
InvalidKeyContractBoundsError(String),
UnknownStorageKeyRequirements(String),
UnknownContestedIndexResolution(String),
DataContractError(DataContractError),
StateTransitionError(StateTransitionError),
InvalidStateTransitionType(String),
PlatformVersionError(PlatformVersionError),
ConsensusError(Box<ConsensusError>),
Document(Box<DocumentError>),
Token(Box<TokenError>),
Generic(String),
ExternalSignerError(String),
AddressWitnessError(String),
ShieldedBuildError(String),
NotSupported(String),
InvalidSigningKeyTypeError(String),
InvalidIdentityPublicKeyTypeError(InvalidIdentityPublicKeyTypeError),
StateTransitionIsNotSignedError(StateTransitionIsNotSignedError),
PublicKeySecurityLevelNotMetError(PublicKeySecurityLevelNotMetError),
WrongPublicKeyPurposeError(WrongPublicKeyPurposeError),
PublicKeyMismatchError(PublicKeyMismatchError),
InvalidSignaturePublicKeyError(InvalidSignaturePublicKeyError),
NonConsensusError(NonConsensusError),
CompatibleProtocolVersionIsNotDefinedError(CompatibleProtocolVersionIsNotDefinedError),
InvalidDocumentTypeError(InvalidDocumentTypeError),
DataContractNotPresentError(DataContractNotPresentError),
InvalidSignaturePublicKeySecurityLevelError(InvalidSignaturePublicKeySecurityLevelError),
InvalidStateTransitionTypeError(InvalidStateTransitionTypeError),
PublicKeyIsDisabledError(PublicKeyIsDisabledError),
UncompressedPublicKeyNotAllowedError(UncompressedPublicKeyNotAllowedError),
IdentityNotPresentError(IdentityNotPresentError),
Overflow(&'static str),
DivideByZero(&'static str),
DesiredKeyWithTypePurposeSecurityLevelMissing(String),
ValueError(Error),
PlatformSerializationError(String),
PlatformDeserializationError(String),
DashCoreError(Error),
InvalidIdentityError {
errors: Vec<ConsensusError>,
raw_identity: Value,
},
VoteError(String),
PublicKeyGenerationError(String),
GroupMemberNotFound(String),
GroupNotFound(String),
CorruptedCodeExecution(String),
CorruptedSerialization(String),
CriticalCorruptedCreditsCodeExecution(String),
InvalidVectorSizeError(InvalidVectorSizeError),
InvalidCBOR(String),
BlsError(BlsError),
PrivateKeySizeError {
got: u32,
},
InvalidBLSPrivateKeyError(String),
BlsSignatureSizeError {
got: u32,
},
AddingDifferentTypes(String),
InvalidDistributionStep(&'static str),
MissingEpochInfo(String),
InvalidBatchedTransitionActionVariant {
expected: &'static str,
found: &'static str,
},
InvalidVerificationWrongNumberOfElements {
needed: u16,
using: u16,
msg: &'static str,
},
}Variants§
IdentifierError(String)
StringDecodeError(String)
EmptyPublicKeyDataError
MaxEncodedBytesReachedError
EncodingError(String)
DecodingError(String)
FileNotFound(String)
UnsupportedVersionMismatch
Platform expected some specific versions
Fields
allowed_versions: Vec<FeatureVersion>the allowed versions for this method
received: FeatureVersionrequested core height
UnknownVersionMismatch
Platform expected some specific versions
Fields
known_versions: Vec<FeatureVersion>the allowed versions for this method
received: FeatureVersionrequested core height
CurrentProtocolVersionNotInitialized
UnknownVersionError(String)
UnknownProtocolVersionError(String)
NoProtocolVersionError
ParsingError(String)
ParsingJsonError(Error)
Error(Error)
InvalidKeyContractBoundsError(String)
UnknownStorageKeyRequirements(String)
UnknownContestedIndexResolution(String)
DataContractError(DataContractError)
StateTransitionError(StateTransitionError)
InvalidStateTransitionType(String)
PlatformVersionError(PlatformVersionError)
ConsensusError(Box<ConsensusError>)
Document(Box<DocumentError>)
Token(Box<TokenError>)
Generic(String)
ExternalSignerError(String)
External signer (e.g. Swift Keychain-backed
MnemonicResolverCoreSigner) reported a failure or returned a
non-conformant result. This is a distinct surface from
Self::Generic so callers (FFI layer, retry policies) can
distinguish a signer-side failure from a generic protocol
invariant.
Examples of failures that surface here:
- The signer’s
sign_ecdsafuture returned an error (resolver miss, derivation failure, invalid mnemonic, etc.). - The signer returned a signature whose recovery id does not match the returned public key (invariant violation by a non-conformant signer — distinct from a soft failure, but surfaced uniformly here so the FFI layer doesn’t need to pattern-match on signer-specific shapes).
AddressWitnessError(String)
ShieldedBuildError(String)
NotSupported(String)
InvalidSigningKeyTypeError(String)
InvalidIdentityPublicKeyTypeError(InvalidIdentityPublicKeyTypeError)
StateTransitionIsNotSignedError(StateTransitionIsNotSignedError)
PublicKeySecurityLevelNotMetError(PublicKeySecurityLevelNotMetError)
WrongPublicKeyPurposeError(WrongPublicKeyPurposeError)
PublicKeyMismatchError(PublicKeyMismatchError)
InvalidSignaturePublicKeyError(InvalidSignaturePublicKeyError)
NonConsensusError(NonConsensusError)
CompatibleProtocolVersionIsNotDefinedError(CompatibleProtocolVersionIsNotDefinedError)
InvalidDocumentTypeError(InvalidDocumentTypeError)
DataContractNotPresentError(DataContractNotPresentError)
InvalidSignaturePublicKeySecurityLevelError(InvalidSignaturePublicKeySecurityLevelError)
InvalidStateTransitionTypeError(InvalidStateTransitionTypeError)
PublicKeyIsDisabledError(PublicKeyIsDisabledError)
UncompressedPublicKeyNotAllowedError(UncompressedPublicKeyNotAllowedError)
IdentityNotPresentError(IdentityNotPresentError)
Overflow(&'static str)
Error
DivideByZero(&'static str)
DesiredKeyWithTypePurposeSecurityLevelMissing(String)
Error
ValueError(Error)
Value error
PlatformSerializationError(String)
Value error
PlatformDeserializationError(String)
Value error
DashCoreError(Error)
Dash core error
InvalidIdentityError
VoteError(String)
PublicKeyGenerationError(String)
GroupMemberNotFound(String)
GroupNotFound(String)
CorruptedCodeExecution(String)
CorruptedSerialization(String)
CriticalCorruptedCreditsCodeExecution(String)
InvalidVectorSizeError(InvalidVectorSizeError)
InvalidCBOR(String)
Invalid CBOR error
BlsError(BlsError)
BLS signature error
PrivateKeySizeError
InvalidBLSPrivateKeyError(String)
BlsSignatureSizeError
AddingDifferentTypes(String)
Error when trying to add two different types of RewardDistributionMoment.
InvalidDistributionStep(&'static str)
MissingEpochInfo(String)
InvalidBatchedTransitionActionVariant
InvalidVerificationWrongNumberOfElements
Trait Implementations§
Source§impl Debug for ProtocolError
impl Debug for ProtocolError
Source§impl Display for ProtocolError
impl Display for ProtocolError
Source§impl Error for ProtocolError
impl Error for ProtocolError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<&str> for ProtocolError
impl From<&str> for ProtocolError
Source§fn from(v: &str) -> ProtocolError
fn from(v: &str) -> ProtocolError
Source§impl From<BlsError> for ProtocolError
impl From<BlsError> for ProtocolError
Source§impl From<CompatibleProtocolVersionIsNotDefinedError> for ProtocolError
impl From<CompatibleProtocolVersionIsNotDefinedError> for ProtocolError
Source§fn from(source: CompatibleProtocolVersionIsNotDefinedError) -> Self
fn from(source: CompatibleProtocolVersionIsNotDefinedError) -> Self
Source§impl From<ConsensusError> for ProtocolError
impl From<ConsensusError> for ProtocolError
Source§fn from(e: ConsensusError) -> Self
fn from(e: ConsensusError) -> Self
Source§impl From<DashPlatformProtocolInitError> for ProtocolError
impl From<DashPlatformProtocolInitError> for ProtocolError
Source§fn from(e: DashPlatformProtocolInitError) -> Self
fn from(e: DashPlatformProtocolInitError) -> Self
Source§impl From<DataContractError> for ProtocolError
impl From<DataContractError> for ProtocolError
Source§fn from(source: DataContractError) -> Self
fn from(source: DataContractError) -> Self
Source§impl From<DataContractNotPresentError> for ProtocolError
impl From<DataContractNotPresentError> for ProtocolError
Source§fn from(err: DataContractNotPresentError) -> Self
fn from(err: DataContractNotPresentError) -> Self
Source§impl From<DocumentError> for ProtocolError
impl From<DocumentError> for ProtocolError
Source§fn from(e: DocumentError) -> Self
fn from(e: DocumentError) -> Self
Source§impl From<Error> for ProtocolError
impl From<Error> for ProtocolError
Source§impl From<Error> for ProtocolError
impl From<Error> for ProtocolError
Source§impl From<Error> for ProtocolError
impl From<Error> for ProtocolError
Source§impl From<Error> for ProtocolError
impl From<Error> for ProtocolError
Source§impl From<IdentityNotPresentError> for ProtocolError
impl From<IdentityNotPresentError> for ProtocolError
Source§fn from(err: IdentityNotPresentError) -> Self
fn from(err: IdentityNotPresentError) -> Self
Source§impl From<InvalidDocumentTypeError> for ProtocolError
impl From<InvalidDocumentTypeError> for ProtocolError
Source§fn from(err: InvalidDocumentTypeError) -> Self
fn from(err: InvalidDocumentTypeError) -> Self
Source§impl From<InvalidIdentityPublicKeyTypeError> for ProtocolError
impl From<InvalidIdentityPublicKeyTypeError> for ProtocolError
Source§fn from(err: InvalidIdentityPublicKeyTypeError) -> Self
fn from(err: InvalidIdentityPublicKeyTypeError) -> Self
Source§impl From<InvalidSignaturePublicKeyError> for ProtocolError
impl From<InvalidSignaturePublicKeyError> for ProtocolError
Source§fn from(err: InvalidSignaturePublicKeyError) -> Self
fn from(err: InvalidSignaturePublicKeyError) -> Self
Source§impl From<InvalidVectorSizeError> for ProtocolError
impl From<InvalidVectorSizeError> for ProtocolError
Source§fn from(err: InvalidVectorSizeError) -> Self
fn from(err: InvalidVectorSizeError) -> Self
Source§impl From<NonConsensusError> for ProtocolError
impl From<NonConsensusError> for ProtocolError
Source§fn from(source: NonConsensusError) -> Self
fn from(source: NonConsensusError) -> Self
Source§impl From<PlatformVersionError> for ProtocolError
impl From<PlatformVersionError> for ProtocolError
Source§fn from(source: PlatformVersionError) -> Self
fn from(source: PlatformVersionError) -> Self
Source§impl From<PublicKeyMismatchError> for ProtocolError
impl From<PublicKeyMismatchError> for ProtocolError
Source§fn from(err: PublicKeyMismatchError) -> Self
fn from(err: PublicKeyMismatchError) -> Self
Source§impl From<PublicKeySecurityLevelNotMetError> for ProtocolError
impl From<PublicKeySecurityLevelNotMetError> for ProtocolError
Source§fn from(err: PublicKeySecurityLevelNotMetError) -> Self
fn from(err: PublicKeySecurityLevelNotMetError) -> Self
Source§impl From<SerdeParsingError> for ProtocolError
impl From<SerdeParsingError> for ProtocolError
Source§fn from(e: SerdeParsingError) -> Self
fn from(e: SerdeParsingError) -> Self
Source§impl From<StateTransitionError> for ProtocolError
impl From<StateTransitionError> for ProtocolError
Source§fn from(source: StateTransitionError) -> Self
fn from(source: StateTransitionError) -> Self
Source§impl From<StateTransitionIsNotSignedError> for ProtocolError
impl From<StateTransitionIsNotSignedError> for ProtocolError
Source§fn from(err: StateTransitionIsNotSignedError) -> Self
fn from(err: StateTransitionIsNotSignedError) -> Self
Source§impl From<String> for ProtocolError
impl From<String> for ProtocolError
Source§fn from(v: String) -> ProtocolError
fn from(v: String) -> ProtocolError
Source§impl From<TokenError> for ProtocolError
impl From<TokenError> for ProtocolError
Source§fn from(e: TokenError) -> Self
fn from(e: TokenError) -> Self
Source§impl From<WrongPublicKeyPurposeError> for ProtocolError
impl From<WrongPublicKeyPurposeError> for ProtocolError
Source§fn from(err: WrongPublicKeyPurposeError) -> Self
fn from(err: WrongPublicKeyPurposeError) -> Self
Auto Trait Implementations§
impl Freeze for ProtocolError
impl !RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnsafeUnpin for ProtocolError
impl !UnwindSafe for ProtocolError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T, U> IntoOnNetwork<U> for Twhere
U: FromOnNetwork<T>,
impl<T, U> IntoOnNetwork<U> for Twhere
U: FromOnNetwork<T>,
§fn into_on_network(self, network: Network) -> U
fn into_on_network(self, network: Network) -> U
Calls U::from_on_network(self).
§impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
§fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.