rust-bitcoin / rust-bitcoin/rust-miniscript
Descriptor doesn't roundtrip in fuzz test
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 426
- Forks
- 200
- Avg merge
- 7d 17h
- Merged PRs (30d)
- 8
Description
miniscript version: 8.0.0
fuzz_target: roundtrip_descriptor
data: b"c:pk_h()"
result:
---- tests::roundtrip_descriptor stdout ----
thread 'tests::roundtrip_descriptor' panicked at 'assertion failed: `(left == right)`
left: `[B/nduesm]c:[K/nduesm]pk_h(DummyKey)`,
right: `pkh(DummyKey)`', fuzz_targets/roundtrip_descriptor.rs:14:9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with fuzz_targets/roundtrip_descriptor.rs and reproduce the roundtrip_descriptor failure using data b"c:pk_h()". Compare the reported left and right descriptor values to determine the roundtrip mismatch. Done means this input no longer causes the assertion to fail.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100