Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multisign batch command #7787

Merged
merged 74 commits into from
Feb 24, 2021
Merged

Add multisign batch command #7787

merged 74 commits into from
Feb 24, 2021

Conversation

sahith-narahari
Copy link
Contributor

Description

Multisign-batch adds functionality similar to multisign but for batch multisig transactions which are signed using sign-batch

closes: #XXXX


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

sahith-narahari and others added 30 commits October 22, 2020 04:02
@sahith-narahari sahith-narahari marked this pull request as ready for review February 23, 2021 21:11
Copy link
Contributor

@alessio alessio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nihil obstat.

@alessio
Copy link
Contributor

alessio commented Feb 24, 2021

@robert-zaremba Please review again ASAP. I believe all your comments were addressed. This is a non-breaking addition requested by various Cosmos SDK clients.

Unless serious concerns are raised, I intend to merge this by today EOD.

@robert-zaremba
Copy link
Collaborator

  • let's reduce copy-paste

@robert-zaremba It will likely be dealt with in a separate PR.

Why removing copy paste in separate PR? It's not complicated.

@alessio
Copy link
Contributor

alessio commented Feb 24, 2021

  • let's reduce copy-paste

@robert-zaremba It will likely be dealt with in a separate PR.

Why removing copy paste in separate PR? It's not complicated.

Because it looks more important to merge this in and keep the scope of this PR small. Then we iterate. Agree?

Copy link
Collaborator

@robert-zaremba robert-zaremba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving to not block. However would be happy if the author create a follow-up issue to:

  • break the command function (150 lines) into sub-functions (especially the transaction building part)
  • add unit tests for combining signatures (both for happy and failing path)
  • Add documentation with more details (somewhere in /docs)

x/auth/client/cli/tx_multisign.go Outdated Show resolved Hide resolved
x/auth/client/cli/tx_multisign.go Outdated Show resolved Hide resolved
x/auth/client/cli/tx_multisign.go Show resolved Hide resolved
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
@alessio alessio added the A:automerge Automatically merge PR once all prerequisites pass. label Feb 24, 2021
@mergify mergify bot merged commit 77668a3 into master Feb 24, 2021
@mergify mergify bot deleted the sahith/add-batch-ms branch February 24, 2021 19:56
mergify bot pushed a commit that referenced this pull request Feb 24, 2021
* initial commit

* update signing data

* Update signature

* code cleanup

* code cleanup

* Add test for ms batch

* update test

* add build flag

* update flags

* update tests

* add test for signbatch multisig

* update test

* fix sign batch multisig

* add test

* update offline usage

* update with sign batch fix

* fix lint

* update tests

* update test

* update tests

* fix signature only

* update seq

* fix conflicts

* update multisign

* revert unintended

* fix tests

* rename flags

* code refactor

* fix typo

* update docs

* update test

* Update x/auth/client/cli/tx_multisign.go

* use named return values and explicit return

* Update x/auth/client/cli/tx_multisign.go

Co-authored-by: Robert Zaremba <robert@zaremba.ch>

* Update x/auth/client/cli/tx_multisign.go

Co-authored-by: Robert Zaremba <robert@zaremba.ch>

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Jonathan Gimeno <jonathan@tendermint.com>
Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com>
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 77668a3)
@barriebyron
Copy link
Contributor

@sahith-narahari how do docs fit in with multisign? Is there an issue we provide more details in? Would love to learn more.

alessio pushed a commit that referenced this pull request Feb 25, 2021
@sahith-narahari
Copy link
Contributor Author

sahith-narahari commented Feb 26, 2021

I created a followup issue, to address some of robert's concerns and documentation #8711

@robert-zaremba
Copy link
Collaborator

I created a followup issue, to address someof robert's concerns and documentation #8711

Thank you

larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
* initial commit

* update signing data

* Update signature

* code cleanup

* code cleanup

* Add test for ms batch

* update test

* add build flag

* update flags

* update tests

* add test for signbatch multisig

* update test

* fix sign batch multisig

* add test

* update offline usage

* update with sign batch fix

* fix lint

* update tests

* update test

* update tests

* fix signature only

* update seq

* fix conflicts

* update multisign

* revert unintended

* fix tests

* rename flags

* code refactor

* fix typo

* update docs

* update test

* Update x/auth/client/cli/tx_multisign.go

* use named return values and explicit return

* Update x/auth/client/cli/tx_multisign.go

Co-authored-by: Robert Zaremba <robert@zaremba.ch>

* Update x/auth/client/cli/tx_multisign.go

Co-authored-by: Robert Zaremba <robert@zaremba.ch>

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Jonathan Gimeno <jonathan@tendermint.com>
Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com>
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants