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
Inherent functions to_bytes
/ from_bytes
#2583
Comments
This issue needs concept ack'ing by other maintainers please. |
concept ACK from me. |
I feel like I already opened this but too lazy to search. Anyway, maybe |
I'd be okay with that, though these names would be a bit less discoverable. |
Oh yes that one is similar, should be done at the same time. Leaving this one open too because of the differences. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All types that have a fixed length binary encoding should have inherent functions:
to_bytes
orinto_bytes
(depending on naming convention)from_bytes
If the type implements the consensus traits then the encoding produced by
to_bytes
should match that produced byconsensus_encode
.references
Please consider doing #1458 at the same time.
The text was updated successfully, but these errors were encountered: