fedimint / fedimint

Federated E-Cash Mint
https://fedimint.org/
MIT License
536 stars 209 forks source link

chore: simplify FederationId and FederationIdPrefix string decoding #5201

Closed tvolk131 closed 2 weeks ago

tvolk131 commented 2 weeks ago

Necessary when upgrading to bitcoin v0.31 since Error::InvalidLength is replaced with hex_conservative::error::InvalidLengthError which is marked as #[non_exhaustive] and therefore cannot be constructed directly outside of that crate.

This change shouldn't affect behavior, since the implementation we're switching to (here) essentially does what we were previously doing here.