taco-web
taco-web copied to clipboard
Grant Decryption Permissions to Specific Wallet Addresses
trafficstars
Feature Request: Grant Decryption Permissions to Specific Wallet Addresses
Description
Add a new decryption condition to grant permissions to specific wallet addresses. The condition will work by asking the user to sign a message (authenticate) from one of the addresses in a list. This makes the condition non-transferable. It also has the advantage of being gas-free because it doesn't need a transaction or on-chain data like NFTs or smart contracts.
Motivation
This feature will give an easy and gas-free way to manage decryption permissions. It uses wallet authentication with message signing as an alternative to other methods that require transactions or on-chain data.
Proposed Implementation
- Add a new condition type, for example,
AuthenticatedAddressesCondition. - The condition should take an array of wallet addresses.
- At decryption time, check if the user's wallet is in the list by verifying the signed message.
Pros
- Gas-free: No transactions are needed for authentication.
- Lightweight: Doesn't rely on on-chain data or contracts.
Cons
- Non-transferable: Permissions can't be transferred to another wallet. This could be a limitation or a feature depending on the use case.
Additional Notes
This feature will become even more powerful when combined with the other existing conditions in the system.