Skip to main content

make_new_account_recovery_key

Function make_new_account_recovery_key 

Source
fn make_new_account_recovery_key(
    organization_private_key: &OrganizationPrivateKey<KeySlotIds>,
    organization_public_key: &PublicKey,
    membership: &OrganizationUserPendingV2UpgradeResponseModel,
    ctx: &mut KeyStoreContext<'_, KeySlotIds>,
) -> Result<String, PendingMembershipError>
Expand description

Reads the V2 user key out of the membership’s upgrade token and encapsulates it to the organization as the member’s new account recovery key.