pub enum EnvelopeError {
InvalidAttestation,
SealOpenFailed,
OriginHashMismatch,
InvalidSignerKey,
SourceReadOnly,
UnknownVersion {
got: u8,
expected: u8,
},
}Expand description
Errors from envelope sealing / unsealing.
Variants§
InvalidAttestation
The attestation signature did not verify against the
transcript target_static_pub || chain_link.
SealOpenFailed
crypto_box_seal_open failed — either the target X25519
private key doesn’t match the envelope’s target pubkey, or
the ciphertext has been tampered with.
OriginHashMismatch
Decrypted seed produced a keypair whose origin_hash does
not match the expected value. Surfaces at the migration
layer, not at the primitive — the primitive returns the
keypair and the caller cross-checks.
InvalidSignerKey
Source’s signer_pub is not a valid ed25519 point.
SourceReadOnly
Attempted to seal with a public-only source keypair (no signing half). The envelope needs an attestation signature; a public-only caller can’t produce one.
UnknownVersion
Wire-format version byte at the head of the envelope is
not IDENTITY_ENVELOPE_VERSION. Either the bytes were
produced by a pre-v1 peer (the rolling-upgrade cliff
documented in the audit-#102 wire bump) or the bytes are
not an IdentityEnvelope at all.
Trait Implementations§
Source§impl Clone for EnvelopeError
impl Clone for EnvelopeError
Source§fn clone(&self) -> EnvelopeError
fn clone(&self) -> EnvelopeError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EnvelopeError
impl Debug for EnvelopeError
Source§impl Display for EnvelopeError
impl Display for EnvelopeError
Source§impl Error for EnvelopeError
impl Error for EnvelopeError
1.30.0 · 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<EntityError> for EnvelopeError
impl From<EntityError> for EnvelopeError
Source§fn from(e: EntityError) -> Self
fn from(e: EntityError) -> Self
Source§impl PartialEq for EnvelopeError
impl PartialEq for EnvelopeError
Source§fn eq(&self, other: &EnvelopeError) -> bool
fn eq(&self, other: &EnvelopeError) -> bool
self and other values to be equal, and is used by ==.impl Eq for EnvelopeError
impl StructuralPartialEq for EnvelopeError
Auto Trait Implementations§
impl Freeze for EnvelopeError
impl RefUnwindSafe for EnvelopeError
impl Send for EnvelopeError
impl Sync for EnvelopeError
impl Unpin for EnvelopeError
impl UnsafeUnpin for EnvelopeError
impl UnwindSafe for EnvelopeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.