Skip to content

Export the `ToSign` structure from` morley-multisig`

Sandeep.C.R requested to merge sras/export-tosign-structure into master

Description

Problem: Multisig contracts create a structure that embedd the operation and some other data like the contract address, and verifies the incoming signatures on this data. If there is some miscommunication about this structure, then the good signatures can fail on the contract.

Solution: Export this structure from the multisig contract implementations so that the consumers will have a type safe way to form this ToSign structure for signining.

Related issue(s)

Resolves #

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Merge request reports