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

x/ibc proto migration #5704

Closed
wants to merge 62 commits into from
Closed

x/ibc proto migration #5704

wants to merge 62 commits into from

Conversation

fedekunze
Copy link
Collaborator

@fedekunze fedekunze commented Feb 26, 2020

Description

Switches IBC module from amino to Protobuf encoding


For contributor use:

  • 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

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@fedekunze fedekunze added this to the IBC Implementation milestone Feb 26, 2020
Comment on lines +140 to +144
protoValset, err := tmVals.ToProto()
if err != nil {
// TODO: should this return false instead?
panic(err)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

self-reminder: address

@@ -34,6 +35,8 @@ func New() *Codec {
// codec.
func RegisterCrypto(cdc *Codec) {
cryptoamino.RegisterAmino(cdc)
cryptoamino.RegisterKeyType(protokeys.PrivateKey{}, "tendermint/proto/PrivateKey")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@marbar3778 I'm getting some errors with the encoding because it doesn't recognize the new priv/pubkey. Can you take a look when you have time?

Copy link
Member

Choose a reason for hiding this comment

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

you will have to define your own proto type. we decided to only support ed25519 in tendermints proto key types

Copy link
Member

Choose a reason for hiding this comment

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

created a pr to show how this could be done simply: #5997

if this works i can work on completing that PR

@fedekunze fedekunze marked this pull request as ready for review April 14, 2020 23:07
@fedekunze fedekunze added R4R and removed WIP labels Apr 14, 2020
@@ -1,7 +1,7 @@
syntax = "proto3";
package tendermint.proto.crypto;
package tendermint.proto.crypto.keys;
Copy link
Member

Choose a reason for hiding this comment

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

you dont need this file as you will have to define your own proto type

@fedekunze fedekunze added the S:blocked Status: Blocked label Apr 15, 2020
@fedekunze fedekunze mentioned this pull request Apr 15, 2020
11 tasks
Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

I don't quite have the proto experience to comment in detail, but the basic structure here looks solid to me, particularly the oneof types corresponding to abstractions (e.g. client types) in IBC, that's exactly what we want.

@fedekunze fedekunze mentioned this pull request Apr 29, 2020
11 tasks
@cwgoes
Copy link
Contributor

cwgoes commented May 18, 2020

Per discussion with @fedekunze this is out-of-date but updating it is blocked on the Tendermint protobuf changes upstream (for ICS 7 client migration to protobuf).

@fedekunze fedekunze mentioned this pull request May 19, 2020
8 tasks
@fedekunze
Copy link
Collaborator Author

replaced by #6254

@fedekunze fedekunze closed this May 19, 2020
@fedekunze fedekunze deleted the fedekunze/ibc-proto branch May 19, 2020 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants