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

Remove serde_keypair module #531

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

tcharding
Copy link
Member

Done while unsuccessfully trying to solve #514

The serde_keypair module appears to be only used for testing, however it is part of the public API for the key module?

serde de/serialization is already implemented on KeyPair by way of the normal serde traits, there is no obvious reason for the serde_keypair and the KeyPairWrapper.

Remove the KeyPairWrapper and test KeyPair serde impls directly.

The `serde_keypair` module appears to be only used for testing, however
it is part of the public API for the `key` module?

serde de/serialization is already implemented on `KeyPair` by way of the normal
`serde` traits, there is no obvious reason for the `serde_keypair`
and the `KeyPairWrapper`.

Remove the `KeyPairWrapper` and test `KeyPair` serde impls directly.
@apoelstra
Copy link
Member

concept ACK. This looks like this module was added in #379 apparently obliviously to the fact that we'd just added the serde impl in #379. Much later we noticed that the original impl was broken, which we fixed in #492.

There is a lesson here I guess that we should apply stronger review even to shit that none of us use.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 513144c

@apoelstra apoelstra merged commit e4ed848 into rust-bitcoin:master Nov 24, 2022
@tcharding tcharding deleted the 11-24-key-pair-serde branch November 30, 2022 01:23
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.

2 participants