Skip to content

Change handling of "h" versus "'" marker for hardened derivation in descriptors #15740

@gwillen

Description

@gwillen

Per some discussion in #bitcoin-core-dev -- getdescriptorinfo should probably not canonicalize the descriptor given, but return it exactly as provided. This is because it is the easiest way to get a checksum for a descriptor written by hand, and it's profoundly annoying that there's no way to get a checksum for a non-canonical descriptor right now (one containing the "h" marker for hardened, or containing a private key.)

Also discussed was the possibility of switching the default marker from "'" to "h". The apostrophe is very annoying to work with over RPC because of quoting problems, which is why "h" is accepted. Better to just use "h" everywhere for the same reason.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions