Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC: User authorisation levels #39

Closed
jamalv opened this issue Nov 16, 2017 · 4 comments
Closed

POC: User authorisation levels #39

jamalv opened this issue Nov 16, 2017 · 4 comments

Comments

@jamalv
Copy link
Contributor

jamalv commented Nov 16, 2017

poc-user-authorisation-levels

v0.0

Background / Context

Goal/user story: Enable a user to act in the name of an organisation. Enable the organisation to manage authorisation levels.

More:

Hypothesis:

Method

documentation/code

Result

present findings

Recommendation

write recomendation

@maxvisser
Copy link
Contributor

ethereum/EIPs#745

@maxvisser
Copy link
Contributor

maxvisser commented Jan 3, 2018

pragma solidity ^0.4.17;

contract ERC745 {

    event Authorized(address _destination, uint _maxValue, bytes4 _method, uint expiration);
    event Unauthorized(address _destination, bytes4 _method);
    event Executed(address _destination, uint _value, bytes4 _method);

    /**
     * @notice Authorizes call method `_method` to `_destination` with maximum value of `_maxValue` with expiration of `_expiration`;
     */
    function authorize(address _destination, uint _maxValue, bytes4 _method, uint _expiration) public;
    
    /**
     * @notice Unauthorizes call method `_method` to `_destination`.
     */
    function unauthorize(address _destination, bytes4 _method) public;
    
    /**
     * @dev executes into `_destination`.
     */
    function execute(address _destination, uint _value, bytes _data) public returns (bool result);
    
    /**
     * @dev reads authorization
     */
    function isAuthorized(address _trustedCaller, address _destination, uint256 _value, bytes _data) public constant returns(bool);

}

@martijndoornik
Copy link
Contributor

Is this still relevant, @jamalv ?

@jamalv
Copy link
Contributor Author

jamalv commented Dec 1, 2018

closing due to inactivity, not directly relevant right now

@jamalv jamalv closed this as completed Dec 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants