pub struct RecoveryCode {
pub auth_hash: Vec<u8>,
pub wrapped_keys: Vec<u8>,
}Expand description
A recovery code as the relay keeps it (#154): the SHA-256 of its auth key to check it, and the account’s private keys wrapped under its wrapping key, to give a device back the keys when no approved device is left. Both keys come from the code (HKDF), which never reaches the relay.
Fields§
§auth_hash: Vec<u8>The SHA-256 of the code’s auth key.
wrapped_keys: Vec<u8>The account’s private keys, wrapped under the code’s wrapping key.
Trait Implementations§
Source§impl Clone for RecoveryCode
impl Clone for RecoveryCode
Source§impl Debug for RecoveryCode
impl Debug for RecoveryCode
Source§impl<'de> Deserialize<'de> for RecoveryCode
impl<'de> Deserialize<'de> for RecoveryCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RecoveryCode
Source§impl PartialEq for RecoveryCode
impl PartialEq for RecoveryCode
Source§impl Serialize for RecoveryCode
impl Serialize for RecoveryCode
impl StructuralPartialEq for RecoveryCode
Auto Trait Implementations§
impl Forget for RecoveryCode
impl Freeze for RecoveryCode
impl Move for RecoveryCode
impl RefUnwindSafe for RecoveryCode
impl Send for RecoveryCode
impl Sync for RecoveryCode
impl Unpin for RecoveryCode
impl UnsafeUnpin for RecoveryCode
impl UnwindSafe for RecoveryCode
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