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 the old message PublicKey proto oneof #7390

Merged
merged 10 commits into from
Sep 29, 2020
Merged

Conversation

blushi
Copy link
Contributor

@blushi blushi commented Sep 25, 2020

Description

ref: #7357


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

@codecov
Copy link

codecov bot commented Sep 25, 2020

Codecov Report

Merging #7390 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #7390   +/-   ##
=======================================
  Coverage   55.33%   55.33%           
=======================================
  Files         587      587           
  Lines       36502    36502           
=======================================
  Hits        20200    20200           
  Misses      14204    14204           
  Partials     2098     2098           

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.

Left one comment to change wording.

Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

LGTM! small wording proposals

Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
@@ -2,33 +2,9 @@ syntax = "proto3";
package cosmos.base.crypto.v1beta1;
Copy link
Contributor

Choose a reason for hiding this comment

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

@blushi would it actually make sense to remove this proto file, and put the 2 remaining messages inside cosmos.crypto.multisig?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes I believe that makes sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved the proto file to proto/crypto/multisig but kept the generated types in crypto/types because:

  • putting it in crypto/keys/multisig wouldn't make much sense ;
  • it would introduce some import cycles.

@@ -0,0 +1,25 @@
syntax = "proto3";
package cosmos.crypto.multisig.v1beta1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we remove v1beta1 here? I believe in cosmos.crypto.* we kind of decided not to put any v1beta1 anywhere

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It made sense to remove the versioning for PubKey types which are then used to generate addresses but it might be better to keep it for MultiSignature and CompactBitArray like it's the case for the rest of the proto types.

docs/architecture/adr-020-protobuf-transaction-encoding.md Outdated Show resolved Hide resolved
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
@amaury1093 amaury1093 added the A:automerge Automatically merge PR once all prerequisites pass. label Sep 29, 2020
// CompactBitArray is an implementation of a space efficient bit array.
// This is used to ensure that the encoded data takes up a minimal amount of
// space after proto encoding.
// This is not thread safe, and is not intended for concurrent usage.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you provide a link in the comment to the encoding spec?

@mergify mergify bot merged commit 489599b into master Sep 29, 2020
@mergify mergify bot deleted the marie/7357-rm-publickey branch September 29, 2020 10:01
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.

None yet

3 participants