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

proof: migrate ProofOp encoding to Protobuf #287

Merged
merged 9 commits into from
Jul 2, 2020
Merged

Conversation

erikgrinaker
Copy link
Contributor

@erikgrinaker erikgrinaker commented Jul 1, 2020

Fixes #242. Switches ProofOp encoding from Amino to Protobuf, but retains the same byte layout for backwards compatibility. This is not strictly Protobuf since the proofs are length-prefixed, but that's what Amino did so that's what we'll keep doing.

The Protobuf types need to be moved to a separate package and cleaned up: they conflict with the native types, and we're making the same mistake as before by leaking Protobuf types through public APIs. I'll submit a separate PR for this.

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

LGTM

would we want to break the encoding in the future?

@erikgrinaker
Copy link
Contributor Author

LGTM

would we want to break the encoding in the future?

I think we want to migrate to the ICS proofs, which presumably have their own binary encoding. Let's keep the encoding for the current proofs stable until they're removed entirely.

@erikgrinaker erikgrinaker added the S:automerge Automatic merge and/or update Pull requests label Jul 2, 2020
@mergify mergify bot merged commit 40f1fac into master Jul 2, 2020
@mergify mergify bot deleted the erik/proto-proofs branch July 2, 2020 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S:automerge Automatic merge and/or update Pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a standard data encoding
2 participants