Enum openmls::group::ValidationError
source · pub enum ValidationError {
Show 25 variants
LibraryError(LibraryError),
WrongGroupId,
WrongEpoch,
NotACommit,
NotAnExternalAddProposal,
NoPath,
UnencryptedApplicationMessage,
UnknownMember,
MissingMembershipTag,
InvalidMembershipTag,
MissingConfirmationTag,
WrongWireFormat,
InvalidSignature,
NonMemberApplicationMessage,
UnableToDecrypt(MessageDecryptionError),
NoPastEpochData,
UnauthorizedExternalSender,
NoExternalSendersExtension,
KeyPackageVerifyError(KeyPackageVerifyError),
UpdatePathError(UpdatePathError),
InvalidLeafNodeSignature,
InvalidLeafNodeSourceType,
InvalidSenderType,
CommitterIncludedOwnUpdate,
InvalidAddProposalCiphersuite,
}
Expand description
Validation error
Variants§
LibraryError(LibraryError)
See LibraryError
for more details.
WrongGroupId
Message group ID differs from the group’s group ID.
WrongEpoch
Message epoch differs from the group’s epoch.
NotACommit
The PublicMessage is not a Commit despite the sender begin of type NewMemberCommit.
NotAnExternalAddProposal
The PublicMessage is not an External Add Proposal despite the sender begin of type NewMemberProposal.
NoPath
The Commit doesn’t have a path despite the sender being of type NewMemberCommit.
UnencryptedApplicationMessage
The PublicMessage contains an application message but was not encrypted.
UnknownMember
Sender is not part of the group.
MissingMembershipTag
Membership tag is missing.
InvalidMembershipTag
Membership tag is invalid.
MissingConfirmationTag
The confirmation tag is missing.
WrongWireFormat
Wrong wire format.
InvalidSignature
Verifying the signature failed.
NonMemberApplicationMessage
An application message was sent from an external sender.
UnableToDecrypt(MessageDecryptionError)
Could not decrypt the message
NoPastEpochData
The message is from an epoch too far in the past.
The provided external sender is not authorized to send external proposals
NoExternalSendersExtension
The group doesn’t contain external senders extension.
KeyPackageVerifyError(KeyPackageVerifyError)
The KeyPackage could not be validated.
UpdatePathError(UpdatePathError)
The UpdatePath could not be validated.
InvalidLeafNodeSignature
Invalid LeafNode signature.
InvalidLeafNodeSourceType
Invalid LeafNode source type
InvalidSenderType
Invalid sender type.
CommitterIncludedOwnUpdate
The Commit includes update proposals from the committer.
InvalidAddProposalCiphersuite
The ciphersuite in the KeyPackage of the Add proposal does not match the group context.
Trait Implementations§
source§impl Clone for ValidationError
impl Clone for ValidationError
source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ValidationError
impl Debug for ValidationError
source§impl Display for ValidationError
impl Display for ValidationError
source§impl Error for ValidationError
impl Error for ValidationError
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
source§impl From<KeyPackageVerifyError> for ValidationError
impl From<KeyPackageVerifyError> for ValidationError
source§fn from(source: KeyPackageVerifyError) -> Self
fn from(source: KeyPackageVerifyError) -> Self
source§impl From<LibraryError> for ValidationError
impl From<LibraryError> for ValidationError
source§fn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
source§impl From<MessageDecryptionError> for ValidationError
impl From<MessageDecryptionError> for ValidationError
source§fn from(source: MessageDecryptionError) -> Self
fn from(source: MessageDecryptionError) -> Self
source§impl From<UpdatePathError> for ValidationError
impl From<UpdatePathError> for ValidationError
source§fn from(source: UpdatePathError) -> Self
fn from(source: UpdatePathError) -> Self
source§impl From<ValidationError> for ProcessMessageError
impl From<ValidationError> for ProcessMessageError
source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
source§impl<KeyStoreError> From<ValidationError> for ProposalError<KeyStoreError>
impl<KeyStoreError> From<ValidationError> for ProposalError<KeyStoreError>
source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
source§impl PartialEq<ValidationError> for ValidationError
impl PartialEq<ValidationError> for ValidationError
source§fn eq(&self, other: &ValidationError) -> bool
fn eq(&self, other: &ValidationError) -> bool
self
and other
values to be equal, and is used
by ==
.