Function backup

Source
pub fn backup(
    entropy_seed: &[u8],
    signing_share: &SigningShare,
    sub_share: &SubShare,
    identity_provider: &impl IdentityProvider,
) -> Result<EncryptedShareBackup, ShareBackupRecoveryError>
Expand description

Given an entropy seed (i.e typically a standardized phrase), “signing share”, “sub-share” and identity provider, returns an ok result including the encrypted share backup (i.e an encrypted “signing share” and “sub-share”, and a random nonce) or an encryption error result.

Ref: https://wamu.tech/specification#share-recovery-backup-encrypt.