Supercontract Executor
One key role of a Sirius Storage node is being a Supercontract executor. In Supercontracts, all contract files are stored on Sirius Storage, when a contract code is called upon for execution, the group of replicators who handles or stores the contract code becomes executors. The execution run through a consensus and in the end, the replicator who accepts to sign the execution will be the one assigned to execute the digital contract code.
Here are the steps in contract execution:
- A Drive owner uses the command line interface or the availabe tools to deploy SC.
- Any DFMS user that is interested in the SC function execution publishes to Blockchain the
execute transaction
. - Executors get this transaction and automatically start the SC execution.
- When the function is finished all Drive participants sign the execution result.
Executors are motivated to perform SCs by rewards. They get rewards if they sign a transaction with the SC results. It provides the consensus and clarity of the results obtaining mechanism during the execution of SC.
Storage Executor Responsibilities
Bases on previous steps any executor has next obligations: