Skip to main content

🔒 Revoke Access

If you've shared an encrypted file with another wallet and want to remove their access, you can revoke their permissions by removing them from the file's allowlist.

Revoking Access to an Encrypted File​

Follow these steps from the Lighthouse Files Dapp:


Step 1: Locate Your Encrypted File​

From your files dashboard, find the encrypted file whose access you want to revoke. Encrypted files are marked with a lock icon.

Encrypted File

Click on the file to open its details view.


Step 2: Open the Access List​

In the file details view, click the Share button to view the current allowlist. You'll see all wallet addresses that currently have permission to decrypt the file.

Access List


Step 3: Select the Wallet to Revoke​

Find the wallet address you want to remove from the allowlist. Click the X button next to that address.

Revoke Button

A confirmation dialog will appear asking you to confirm the revocation.


Step 4: Sign the Transaction​

After confirming, your Sui wallet will prompt you to sign a transaction. This transaction:

  • Calls the remove_user function on the file's FileAllowlist object
  • Removes the specified wallet address from the allowlist
  • Updates the on-chain access control

Sign Revoke Transaction


Step 5: Confirmation​

Once the transaction is confirmed on-chain, the wallet address is removed from the allowlist. The revoked user:

  • Can no longer prove ownership for decryption
  • Will be denied by the SEAL key servers when attempting to retrieve decryption key material
  • Cannot access the file contents, even if they still have the encrypted data

The wallet will no longer appear in your file's access list.