Add ACL interface

This commit is contained in:
lash
2023-08-03 15:16:33 +01:00
parent b9a29b7827
commit db35d389ec
6 changed files with 74 additions and 0 deletions

View File

@@ -47,6 +47,27 @@ in CIC native interfaces.
## Native interfaces
### ACL
A simple Access Control List definition that returns true of false
depending on whether an signatory (address) is allowed to operate in a
given context.
#### ERC165 Interface identifier
3ef25013
#### Solidity interface definition
interface IACL {
// Returns true if the address has permission to operate in the given context.
function have(address _address) external view returns(bool);
}
#### Example implementation
<git://holbrook.no/eth-accounts-index.git>
### Accounts Index
Append-only list of addresses. Typically used for access control lists.
@@ -83,6 +104,7 @@ b7bca625
function add(address) external returns (bool);
// Verify that the entry exists in the index.
// Implements ACL
function have(address) external view returns (bool);
// Retrieve the timestamp when account was added.