Revoke a capability from an identity.
If the identity has no entry, one is created with default caps minus the revoked cap. Returns a new AclState — the original is not modified.
Current ACL state
Napplet identity
Capability bit constant to revoke (e.g., CAP_RELAY_WRITE)
New AclState with the capability revoked
const state2 = revoke(state, id, CAP_RELAY_WRITE);check(state2, id, CAP_RELAY_WRITE); // false Copy
const state2 = revoke(state, id, CAP_RELAY_WRITE);check(state2, id, CAP_RELAY_WRITE); // false
Revoke a capability from an identity.
If the identity has no entry, one is created with default caps minus the revoked cap. Returns a new AclState — the original is not modified.