Replies: 3 comments 1 reply
-
@damip my understanding is that only write access to the entire datastore of the address is handled by this RFC. Is it planned to :
Some use cases:
|
Beta Was this translation helpful? Give feedback.
-
Why the SC just have access to all the addresses the called have access by default so that we don't have to specify |
Beta Was this translation helpful? Give feedback.
-
To do that you would have to add this call at the top of every externally called function, right ? In that case I would probably find it better to use more involved access right at the account level (using account numbers or registered names...). |
Beta Was this translation helpful? Give feedback.
-
RFC: advanced SC access rights
General idea
Currently, smart contracts can write on:
This RFC proposes solutions to achieve finer control over access rights.
Proposed additions
Right delegation on calls
Modify the
call
ABI to add the following OPTIONAL parameter:This parameter adds extra write access rights to the called SC (the called SC still has implicit write rights on itself) on the listed addresses.
The call fails if the caller doesn't have write access to the listed addresses.
List access rights
Since this RFC allows smart contracts to inherit extra rights, they need to be able to list them in order to pre-check for proper access right delegation.
Add an ABI allowing a smart contract to list the addresses on which it has write access:
Removing access rights
Add the following ABI:
that drops write access to a list of addresses at this call stack level.
Note that the list can include the smart contract itself !
This is used for security, in order to provably lose an access right.
Beta Was this translation helpful? Give feedback.
All reactions