Add ACL interface
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user