[RPC] deriveaddresses pk(descriptor) returns p2pkh address #32570

issue portlandhodl openend this issue on May 20, 2025
  1. portlandhodl commented at 4:12 pm on May 20, 2025: contributor

    Current behaviour

    While trying to extract the public key from a descriptor I might have walked into this bug. My thought was passing a pk(xpub) descriptor would return either an error or a pubkey to push instead it returned the p2pkh address. This is IMO inconsistent and frankly not very useful because the PK is behind the hash.

    Note there are both pk and pkh types.

    0[bitcoin@qrsnaps0 ~]$ bitcoin-cli deriveaddresses "pk([deadbeef/48'/0'/0'/2']xpub ... /0/*)#deadbeef" 0
    1[
    2  "1address..."
    3]
    

    Expected behaviour

    Error or return compressed pubkey

  2. portlandhodl commented at 5:26 pm on May 20, 2025: contributor
    Closing, incorrect version
  3. portlandhodl closed this on May 20, 2025


portlandhodl


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-05-25 18:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me