Implement access revocation via smart contract
It is possible to implement Revocation using Conditions that rely on a function call to a Custom Smart Contract. This allows the handling of revocation to be decentralized and transparent. Here is an example of a smart contract (not suitable for production):
And the associated Condition:
The condition we have defined calls the isRevoked
function of the smart contract and passes the user's address. If the call returns false
(not revoked, i.e. granted), then decryption will occur. If the call returns true
(is revoked), then decryption will fail.
Last updated