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

Remove GetSignatures from SigVerifiableTx #6550

Merged
merged 14 commits into from
Sep 2, 2020
Merged

Conversation

aaronc
Copy link
Member

@aaronc aaronc commented Jun 30, 2020

ref: #6213

In #6428, GetSignaturesV2 was added to SigVerifiableTx and is now used for signature verification in the ante handlers.

This PR now removes GetSignatures from SigVerifiableTx because it is no longer needed and can't actually be safely used (because it exposes encoding details such as amino or proto encoding of multi-signatures).


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

@aaronc aaronc marked this pull request as draft June 30, 2020 19:24
@aaronc aaronc marked this pull request as ready for review June 30, 2020 19:24
@aaronc aaronc requested a review from AdityaSripal June 30, 2020 19:24
@aaronc aaronc marked this pull request as draft June 30, 2020 19:24
@codecov
Copy link

codecov bot commented Jun 30, 2020

Codecov Report

Merging #6550 into master will decrease coverage by 0.00%.
The diff coverage is 61.29%.

@@            Coverage Diff             @@
##           master    #6550      +/-   ##
==========================================
- Coverage   54.99%   54.99%   -0.01%     
==========================================
  Files         562      562              
  Lines       38683    38703      +20     
==========================================
+ Hits        21275    21283       +8     
- Misses      15662    15671       +9     
- Partials     1746     1749       +3     

@aaronc aaronc marked this pull request as ready for review June 30, 2020 19:31
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

ACK

@alexanderbez alexanderbez added the A:automerge Automatically merge PR once all prerequisites pass. label Jun 30, 2020
@alexanderbez alexanderbez requested a review from anilcse June 30, 2020 21:05
Copy link
Collaborator

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

ACK. Can you add a test for the MultiSignatureData case?

x/auth/ante/basic.go Show resolved Hide resolved
@alexanderbez alexanderbez removed the R4R label Jul 7, 2020
@aaronc aaronc mentioned this pull request Jul 7, 2020
27 tasks
@fedekunze
Copy link
Collaborator

@aaronc mind fixing the conflicts?

@aaronc
Copy link
Member Author

aaronc commented Jul 17, 2020

@fedekunze I'm waiting on #6661 to finish this.

@aaronc aaronc marked this pull request as draft July 23, 2020 16:23
@amaury1093 amaury1093 added this to the v0.40 [Stargate] milestone Aug 31, 2020
@clevinson clevinson self-assigned this Aug 31, 2020
@clevinson clevinson marked this pull request as ready for review September 1, 2020 21:33
var err error
sigData, err := ModeInfoAndSigToSignatureData(si.ModeInfo, sigs[i])
if err != nil {
return nil, err
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit, wrap error with signer info index

@mergify mergify bot merged commit 9e85e81 into master Sep 2, 2020
@mergify mergify bot deleted the aaronc/6213-cleanup-sig-api branch September 2, 2020 20:41
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. C:x/auth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants