dedis / cothority

Scalable collective authority
Other
426 stars 106 forks source link

BEvm: separate `transaction` and `deploy` methods to make authorization more flexible #2467

Open ineiti opened 3 years ago

ineiti commented 3 years ago

Currently, the bevm ByzCoin contract supports two methods:

The latter one comprises both EVM transactions to deploy a new contract and transactions to execute a state-changing method on an already deployed contract (as they are very similar from the EVM point of view). In order to allow for more flexible authorization management through DARCs, these two operations should be separated into deploy and transaction so that an identity can be granted the right to execute operations on already deployed EVM contracts, but not to deploy new ones.