hyperledger-iroha / iroha

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

refactor(multisig)!: move from triggers to custom instructions #5217

Closed s8sato closed 1 week ago

s8sato commented 3 weeks ago

Context

  1. Calling a trigger with args as a multisig operation was not a clear interface
  2. The multisig implementation as triggers introduced validation exceptions for registering and executing triggers to bridge the authority gap between the caller and the executor: #5027

Solution

  1. Assign dedicated custom instructions to the multisig operations
  2. Switch to the executor context and package validation and execution logics as the custom instructions

Migration Guide

Future Work


Checklist

github-actions[bot] commented 3 weeks ago

@BAStos525

s8sato commented 3 weeks ago

Self-reviewed and made fixes 4e4a6b9b3 0e4fc3a31 for now. I'm going to address your comments tomorrow @mversic

s8sato commented 2 weeks ago

Updates:

s8sato commented 2 weeks ago

Updates:

s8sato commented 2 weeks ago

Updates:

Left to next PR: https://github.com/hyperledger-iroha/iroha/issues/4930#issuecomment-2458917150

s8sato commented 1 week ago

Updates: