-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor - Bincode 2 (usages) #48
base: develop
Are you sure you want to change the base?
Refactor - Bincode 2 (usages) #48
Conversation
This allows other structs which wrap a fixed-length byte array to simply use it as a field, and not have to deal with any of the details of formatting or JSON hex (de)serialization.
this makes it clear which serialization format is being used where, as we are going to be changing this up soon
This will enable us to keep JSON serialization separate from the binary encoding, and also be much more explicit about the exact binary representation of objects.
Also implemented PlaceholderIndexed for all crypto structs
… temporary buffer
…-2-usages # Conflicts: # src/primitives/asset.rs
@DaMatrix I will stop here, as this is dealing with bincode serialization I'd prefer to have this released and tagged as a new version on I'll leave comments on the other PRs, even if it's just to tacitly approve. Once the new release is out and tested in a dev environment, I'll carry on with official approvals |
Description
This PR depends on #47 (
bincode-2
) and #45 (crypto
).This implements the new Bincode 2
Encode
/Decode
traits on virtually every relevant type.Note that this simply uses the default trait derivations, the exact encoding of objects will come in a subsequent PR.
Changelog
Encode
andDecode
for all types which could be contained in aTransaction
Type of Change
Please mark the appropriate option by putting an "x" inside the brackets:
Checklist
Put an "x" in the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!
Screenshots (if applicable)
If the changes affect the UI or have visual effects, please provide screenshots or GIFs showcasing the changes.
Additional Context (if applicable)
Add any additional context or information about the changes that may be helpful in understanding the pull request.
Related Issues (if applicable)
If this pull request is related to any existing issues, please list them here.
Requested Reviewers
Mention any specific individuals or teams you would like to request a review from.