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

encode: Revert io::BufRead requirement on Encodable trait #130

Merged
merged 2 commits into from
Jun 9, 2022

Conversation

stevenroose
Copy link
Member

We really never should have required BufRead just to make the commitment parsing a tad more convenient.

We really never should have required BufRead just to make the commitment
parsing a tad more convenient.
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 203542c

This kinda makes the Decodable impls on these types unnecessary,
but I'm not against keeping them around just in case anyone wants them.
It also makes this whole change backwards compatible.
@stevenroose
Copy link
Member Author

Btw, I think this change can be considered non-breaking. I don't remove the now-unused trait impls and BufRead is a struct supertrait of Read.

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 c1a7641

@apoelstra
Copy link
Member

Agreed that it's non-breaking.

Copy link
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

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

ACK c1a7641. Commitment and Generator are Copy. There is no allocation in them. I would like to keep the decodable Impls because they can come in handy in downstream repos.

@sanket1729 sanket1729 merged commit df63e79 into ElementsProject:master Jun 9, 2022
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.

None yet

3 participants