thread '<unnamed>' panicked at 'internal error: entered unreachable code: cryptographically unreachable: secp: malformed or out-of-range secret key', /home/darosior/.cargo/registry/src/github.com-1ecc6299db9ec823/miniscript-5.1.0/src/descriptor/key.rs:453:31
Happened when fuzzing my transaction chain creation (deriving a Miniscript descriptor). Still need to dive into it but wanted to share it first.
EDIT: can't reproduce when not in fuzzing mode.. Weird.
EDIT 2: i fixed it on my end by not generating random keys in the fuzzing target, but i guess it shouldn't happen anyways? I'll write a fuzz target here reproducing it asap.