-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat: Add compact protobuf format #76
Conversation
Why not use CBOR? |
Hmmm... which one is smaller? |
9b829bb
to
b79235f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a test to cover this?
@pgte Requested changes applied. Could you please re-review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add some documentation?
Also, Travis CI is complaining.. |
@pgte Applied requested changes, additionally fixed some other things |
@mkg20001 great, thank you! |
@pgte Yes, although it's unclear to me what exactly is wrong with the commit message. It only shows it's not in the required format, not where exactly the error is |
@victorbjelkholm could you help clarifying this question about the commit message? |
Updated this PR to async/await |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestions to fix linting
@jacobheun Thx, changes commited |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! ⛵️
released in 0.13.2 |
Nice 🎉 |
This adds a significantly smaller (about 30%) protobuf format
It's smaller because
.toJSON()
encodes the binary keys as base64 which makes it bigger and is sometimes not needed - like when transferring the id over the networkAdditionally an
excludePriv
option is added because the removal of the private key is not as easy as in json