pub async fn revoke_member(
storage: &dyn SyncStorage,
cloud_home: &dyn CloudHome,
chain: &mut MembershipChain,
owner_keypair: &UserKeypair,
revokee_pubkey: &str,
timestamp: &str,
) -> Result<[u8; 32], InviteError>Expand description
Revoke a member from the library. This:
- Revokes access on the cloud home
- Creates a Remove membership entry signed by the owner
- Generates a new library encryption key
- Re-wraps the new key to all remaining members
- Deletes the revoked member’s wrapped key
- Uploads updated entries and keys
Returns the new encryption key (caller must persist it and start using it).