Skip to content

Comments

refactor: descriptor errors instead of panicking on invalid fingerprints#880

Merged
reez merged 1 commit intobitcoindevkit:masterfrom
reez:descript
Oct 20, 2025
Merged

refactor: descriptor errors instead of panicking on invalid fingerprints#880
reez merged 1 commit intobitcoindevkit:masterfrom
reez:descript

Conversation

@reez
Copy link
Collaborator

@reez reez commented Oct 13, 2025

Description

Fixes the four descriptor constructors to return and map invalid fingerprints instead of unwrapping.

People using bindings will now get typed error they can handle instead of a possible panic.

Previously constructors handed back nothing on malformed input because they crashed so now they surface concrete error.

Notes to the reviewers

Changelog notice

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

Copy link
Member

@thunderbiscuit thunderbiscuit left a comment

Choose a reason for hiding this comment

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

ACK 3b5332e

@reez reez merged commit f20f6cc into bitcoindevkit:master Oct 20, 2025
6 checks passed
@reez reez deleted the descript branch October 20, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants