hyperledger-iroha / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
438 stars 280 forks source link

Transactional smart contracts #5147

Open mversic opened 2 weeks ago

mversic commented 2 weeks ago

Make executing smart contract an instruction instead of part of Executable. I propose we introduce Execute<Wasm> and Execute<Trigger> instead of having ExecuteTrigger instruction

This will take care of some API weirdness because we'll now have Vec<InstructionBox> and will also enable us to combine smart contract execution with other instructions (or smart contracts) in a transaction where all have to succeed together or fail together