Scope of Permissions
Last updated
Last updated
In this section, we will discuss the scope of what permissions can be attached to the distributed key that is generated with the MPC network.
The following list is the list of ERC standards and functions within the standards you can set the permissions for:
Standard: ERC20Functions:
(address spender, uint256 amount)
(address sender, address recipient, uint256 amount)
Standard: ERC 721Functions:
(address to, uint256 tokenId)
(address operator, bool _approved)
(address from, address to, uint256 tokenId)
(address from, address to, uint256 tokenId, bytes data)
Standard: ERC 4626Functions:
(uint256 assets, address receiver)
(uint256 shares, address receiver)
(uint256 assets, address receiver, address owner)
(uint256 shares, address receiver, address owner)
Each parameter of this function should be limited—boolean checks for address and conditional operators for the value fields.
Each parameter in these functions can have a limit attached. For example:
TransferFrom validation can check the “to” address to ensure tokens go to a permitted address.
The “amount” parameter can be allowed to follow a conditional operator (<,>,=) because the transaction can be equal to, and must be less than or greater than a value