pub enum AccountRecovery {
V1(UnsignedSharedKey),
}Expand description
A member’s user key, held by the organization so that admins can recover the account.
Variants§
V1(UnsignedSharedKey)
The member’s user key encapsulated to the organization’s public key.
Encapsulation does not authenticate the sender. A swapped public key hands the member’s user key to whoever holds the matching private key.
Implementations§
Source§impl AccountRecovery
impl AccountRecovery
Sourcepub fn make<Ids: KeySlotIds>(
member_user_key: Ids::Symmetric,
organization_public_key: &PublicKey,
trust_proof: &TrustProof<Ids>,
ctx: &KeyStoreContext<'_, Ids>,
) -> Result<Self, AccountRecoveryMakeError>
pub fn make<Ids: KeySlotIds>( member_user_key: Ids::Symmetric, organization_public_key: &PublicKey, trust_proof: &TrustProof<Ids>, ctx: &KeyStoreContext<'_, Ids>, ) -> Result<Self, AccountRecoveryMakeError>
Makes an account recovery of the member’s user key, after the organization’s public key
passes trust_proof.
Sourcepub fn make_untrusted<Ids: KeySlotIds>(
member_user_key: Ids::Symmetric,
organization_public_key: &PublicKey,
ctx: &KeyStoreContext<'_, Ids>,
) -> Result<Self, AccountRecoveryMakeUntrustedError>
pub fn make_untrusted<Ids: KeySlotIds>( member_user_key: Ids::Symmetric, organization_public_key: &PublicKey, ctx: &KeyStoreContext<'_, Ids>, ) -> Result<Self, AccountRecoveryMakeUntrustedError>
Makes a V1 account recovery of the member’s user key, without verifying the organization’s public key.
Only for V1 flows that have no way to verify the public key. A swapped public key hands the member’s user key to whoever holds the matching private key.
Sourcepub fn unseal_member_user_key<Ids: KeySlotIds>(
&self,
organization_private_key: &OrganizationPrivateKey<Ids>,
ctx: &mut KeyStoreContext<'_, Ids>,
) -> Result<Ids::Symmetric, AccountRecoveryUnsealError>
pub fn unseal_member_user_key<Ids: KeySlotIds>( &self, organization_private_key: &OrganizationPrivateKey<Ids>, ctx: &mut KeyStoreContext<'_, Ids>, ) -> Result<Ids::Symmetric, AccountRecoveryUnsealError>
Opens the member’s user key, returning the id it was added to the context under.
Trait Implementations§
Source§impl From<&AccountRecovery> for String
impl From<&AccountRecovery> for String
Source§fn from(value: &AccountRecovery) -> Self
fn from(value: &AccountRecovery) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AccountRecovery
impl RefUnwindSafe for AccountRecovery
impl Send for AccountRecovery
impl Sync for AccountRecovery
impl Unpin for AccountRecovery
impl UnsafeUnpin for AccountRecovery
impl UnwindSafe for AccountRecovery
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more