Skip to content

Conversation

@Kixunil
Copy link
Collaborator

@Kixunil Kixunil commented Feb 10, 2022

This removes the deprecated From conversion, replaces it with
TryFrom, and adds more convenience conversions. A new error type is
created for the invalid parity error with conversion to catch-all
Error.

This is intended for an API-breaking version.

@tcharding
Copy link
Member

TryFrom isn't available until Rust 1.34

@Kixunil
Copy link
Collaborator Author

Kixunil commented Feb 11, 2022

Aren't we doing ecosystem-wide MSRV bump to 1.41.1?

@tcharding
Copy link
Member

tcharding commented Feb 11, 2022

Sure thing. Perhaps we could have a label for 'will work once we bump MSRV' to help us queue these changes up and to save others checking what the CI fail is about?

@Kixunil Kixunil force-pushed the parity-error-handling branch 2 times, most recently from 7d66770 to e0767d3 Compare February 24, 2022 16:46
@Kixunil
Copy link
Collaborator Author

Kixunil commented Feb 24, 2022

Spurious CI error

@apoelstra apoelstra closed this Feb 28, 2022
@apoelstra apoelstra reopened this Feb 28, 2022
@apoelstra
Copy link
Member

Looks like CI is working again -- but PR still needs update if we're going to get it into this major version (which does not increase MSRV)

@apoelstra
Copy link
Member

ACK cf6badf aside from the source stuff (or whatever it is that is breaking 1.29)

This removes the deprecated `From` conversion and adds a new error
type for the invalid parity error with a conversion to the catch-all
`Error`.
@Kixunil Kixunil force-pushed the parity-error-handling branch from e0767d3 to 5acf6d2 Compare February 28, 2022 19:59
@Kixunil
Copy link
Collaborator Author

Kixunil commented Feb 28, 2022

Fixed (changed to cause())

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 5acf6d2

@apoelstra apoelstra merged commit dc90a43 into rust-bitcoin:master Mar 1, 2022
@Kixunil Kixunil deleted the parity-error-handling branch March 1, 2022 15:10
chain-forgexcr45 added a commit to chain-forgexcr45/rust-secp256k1 that referenced this pull request Sep 28, 2025
…handling cleanup

5acf6d23d3636d88d628cb53306b37a8af81b133 `Parity` conversion and error handling cleanup (Martin Habovstiak)

Pull request description:

  This removes the deprecated `From` conversion, replaces it with
  `TryFrom`, and adds more convenience conversions. A new error type is
  created for the invalid parity error with conversion to catch-all
  `Error`.

  This is intended for an API-breaking version.

ACKs for top commit:
  apoelstra:
    ACK 5acf6d23d3636d88d628cb53306b37a8af81b133

Tree-SHA512: 49b73fc90455c172012b46f36eafa7d256b940f4b431b4eedb577ab07d9402eae40af931e00b3c409bbe502dbcac064a742e874a5e8bedd8d0cbe92a468ae4f6
william2332-limf added a commit to william2332-limf/rust-secp256k1 that referenced this pull request Oct 2, 2025
…handling cleanup

5acf6d23d3636d88d628cb53306b37a8af81b133 `Parity` conversion and error handling cleanup (Martin Habovstiak)

Pull request description:

  This removes the deprecated `From` conversion, replaces it with
  `TryFrom`, and adds more convenience conversions. A new error type is
  created for the invalid parity error with conversion to catch-all
  `Error`.

  This is intended for an API-breaking version.

ACKs for top commit:
  apoelstra:
    ACK 5acf6d23d3636d88d628cb53306b37a8af81b133

Tree-SHA512: 49b73fc90455c172012b46f36eafa7d256b940f4b431b4eedb577ab07d9402eae40af931e00b3c409bbe502dbcac064a742e874a5e8bedd8d0cbe92a468ae4f6
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.

3 participants