pub struct SetupGDrive {
pub google_auth_code: String,
pub encrypted_seed: Vec<u8>,
}Fields§
§google_auth_code: StringThe auth code which can used to obtain a set of GDrive credentials.
- Applicable only in staging/prod.
- If GDrive has not been setup, the node will acquire the full set of GDrive credentials and persist them (encrypted ofc) in Lexe’s DB.
encrypted_seed: Vec<u8>The password-encrypted [RootSeed] which can be backed up in
GDrive.
- Applicable only in staging/prod.
- If Drive backup is not setup, instance will back up this encrypted
[
RootSeed] in Google Drive. If a backup already exists, it is overwritten. - We require the client to password-encrypt prior to sending the provision request to prevent leaking the length of the password. It also shifts the burden of running the 600K HMAC iterations from the provision instance to the mobile app.
Trait Implementations§
Source§impl Debug for SetupGDrive
impl Debug for SetupGDrive
Source§impl<'de> Deserialize<'de> for SetupGDrive
impl<'de> Deserialize<'de> for SetupGDrive
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetupGDrive, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetupGDrive, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SetupGDrive
impl PartialEq for SetupGDrive
Source§impl Serialize for SetupGDrive
impl Serialize for SetupGDrive
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SetupGDrive
Auto Trait Implementations§
impl Freeze for SetupGDrive
impl RefUnwindSafe for SetupGDrive
impl Send for SetupGDrive
impl Sync for SetupGDrive
impl Unpin for SetupGDrive
impl UnsafeUnpin for SetupGDrive
impl UnwindSafe for SetupGDrive
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