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

Investigate Using Cap'n Proto for serializatrion #78

Closed
ethanfrey opened this issue Dec 17, 2019 · 1 comment
Closed

Investigate Using Cap'n Proto for serializatrion #78

ethanfrey opened this issue Dec 17, 2019 · 1 comment
Labels
enhancement New feature or request Regen Issues requested by Regen

Comments

@ethanfrey
Copy link
Member

ethanfrey commented Dec 17, 2019

Requested by @aaronc

The idea is to use Cap'n Proto as a serialization codec. It is fast. But also requires schemas to decode, nothing as nice for devs as easily readable json in the messages.

I could see this first used to pass Params between the cosmos SDK and the wasm module, as that is never exposed to the end user, rather used internally. If this shows it works, Individual contracts could decide to use either json or cap'n Proto for their storage and message formats (which are just opaque bytes to every level between client and server). It would make it a bit harder to call between contracts with different serialization, but in the end only require another import for the codec.

@ethanfrey ethanfrey added the Regen Issues requested by Regen label Dec 17, 2019
@ethanfrey ethanfrey added this to To do in CosmWasm development via automation Dec 17, 2019
@ethanfrey ethanfrey added the enhancement New feature or request label Dec 17, 2019
@ethanfrey ethanfrey moved this from To do to Backlog in CosmWasm development Dec 17, 2019
@ethanfrey ethanfrey removed this from Backlog in CosmWasm development Mar 10, 2020
@ethanfrey ethanfrey added this to Backlog in Blockchain Development Mar 10, 2020
@webmaster128
Copy link
Member

This idea has been discarded long time ago.

If we want to migrate away from JSON for performance reasons, we probably switch to protobuf as this is what the ecosystem is familiar with already. However, no encoding changes are planned.

Blockchain Development automation moved this from Backlog to Done Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Regen Issues requested by Regen
Projects
No open projects
Development

No branches or pull requests

2 participants