pub enum IdentityError {
Show 40 variants
DuplicateDid(Did),
RegistryCapacityExceeded {
max_documents: usize,
attempted_documents: usize,
},
InvalidDidDocumentField {
did: String,
field: String,
reason: String,
},
DidDocumentFieldTooLarge {
did: String,
field: String,
max: usize,
actual: usize,
},
DidNotFound(Did),
DidRevoked(Did),
InvalidSignature,
NonMonotonicTimestamp {
did: Did,
current: Timestamp,
proposed: Timestamp,
},
InvalidRevocationProof(Did),
InvalidRegistrationProof {
did: Did,
reason: String,
},
RegistrationProofPayloadEncoding {
did: Did,
reason: String,
},
RevocationProofPayloadEncoding {
did: Did,
reason: String,
},
KeyRotationProofPayloadEncoding {
did: Did,
reason: String,
},
KeyNotFound(Did),
KeyAlreadyRevoked,
KeyAlreadyRotated,
InvalidShamirConfig {
threshold: u8,
shares: u8,
},
InvalidShamirEntropy {
min_bytes: usize,
got_bytes: usize,
reason: String,
},
ShamirInputTooLarge {
field: &'static str,
max: u64,
got: usize,
},
InsufficientShares {
need: u8,
got: u8,
},
InvalidShareIndex(u8),
ShareIndexOutOfRange {
index: u8,
shares: u8,
},
InvalidShareLength {
index: u8,
expected: usize,
got: usize,
},
ShareCommitmentMismatch {
index: u8,
expected: [u8; 32],
got: [u8; 32],
},
ReconstructedSecretCommitmentMismatch {
expected: [u8; 32],
got: [u8; 32],
},
InvalidShareValue {
index: u8,
byte_index: usize,
expected: u8,
got: u8,
},
DuplicateShareIndices,
InvalidPaceConfig(String),
CannotEscalate,
CannotDeescalate,
AttestationExpired,
RiskAttestationSigningPayloadEncoding {
reason: String,
},
RiskAttestationExpiryOverflow {
now_physical_ms: u64,
validity_ms: u64,
},
DuplicatePaceDid(Did),
VaultKeyDerivationFailed(String),
VaultNonceRequired,
InvalidVaultNonce {
reason: String,
},
VaultEncryptionFailed(String),
VaultDecryptionFailed,
VaultCiphertextTooShort,
}Expand description
Errors that can occur during identity operations.
Variants§
DuplicateDid(Did)
RegistryCapacityExceeded
InvalidDidDocumentField
DidDocumentFieldTooLarge
DidNotFound(Did)
DidRevoked(Did)
InvalidSignature
NonMonotonicTimestamp
InvalidRevocationProof(Did)
InvalidRegistrationProof
RegistrationProofPayloadEncoding
RevocationProofPayloadEncoding
KeyRotationProofPayloadEncoding
KeyNotFound(Did)
KeyAlreadyRevoked
KeyAlreadyRotated
InvalidShamirConfig
InvalidShamirEntropy
ShamirInputTooLarge
ReconstructedSecretCommitmentMismatch
InvalidPaceConfig(String)
CannotEscalate
CannotDeescalate
AttestationExpired
RiskAttestationSigningPayloadEncoding
RiskAttestationExpiryOverflow
DuplicatePaceDid(Did)
VaultKeyDerivationFailed(String)
VaultNonceRequired
InvalidVaultNonce
VaultEncryptionFailed(String)
VaultDecryptionFailed
VaultCiphertextTooShort
Trait Implementations§
Source§impl Debug for IdentityError
impl Debug for IdentityError
Source§impl Display for IdentityError
impl Display for IdentityError
Source§impl Error for IdentityError
impl Error for IdentityError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<IdentityError> for VerificationCeremonyError
impl From<IdentityError> for VerificationCeremonyError
Source§fn from(source: IdentityError) -> Self
fn from(source: IdentityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IdentityError
impl RefUnwindSafe for IdentityError
impl Send for IdentityError
impl Sync for IdentityError
impl Unpin for IdentityError
impl UnsafeUnpin for IdentityError
impl UnwindSafe for IdentityError
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
Mutably borrows from an owned value. Read more