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

Add v2 serde #51

Merged
merged 2 commits into from
May 17, 2024
Merged

Add v2 serde #51

merged 2 commits into from
May 17, 2024

Conversation

nyonson
Copy link
Collaborator

@nyonson nyonson commented May 10, 2024

Add v2 message serde leveraging as much of rust-bitcoin's NetworkMessage encodings as possible. There is some weirdness here since rust-bitcoin has a NetworkMessage as well as a RawNetworkMessage wrapper which focuses on the serde. The RawNetworkMessage is V1 specific however (e.g. checksums and lengths) which does not play nice with V2. Some of the logic is spread across the structs. NetworkMessage is V2 friendly so that is our lingua franca here, but some bespoke code needed to be copied over for now.

@nyonson nyonson marked this pull request as ready for review May 17, 2024 02:58
@nyonson nyonson merged commit 4d6d9bc into rust-bitcoin:main May 17, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant