Issue Details

Number
30279
Title
docs: Wrong/outdated docs for `tr(KEY)` in doc/descriptors.md
Description
Bitcoin Core uses BIP-386 for `tr(...)` descriptors, and in the case of `tr(KEY)`, the produced key is tweaked according to BIP-341: https://github.com/bitcoin/bips/blob/85cda4e225b4d5fd7aff403f69d827f23f6afbbc/bip-0341.mediawiki?plain=1#L156 In the current descriptors.md, it is documented that `tr(KEY)` uses `KEY` as the internal key, with no further comment: https://github.com/bitcoin/bitcoin/blob/a7bc9b76e73f04dfe4d6ba42033fe38659090e8b/doc/descriptors.md?plain=1#L82 By looking only at descriptors.md without knowledge or reference to BIP-386, one can interpret `tr(KEY)` to use `KEY` directly without tweaking. Ideally the docs should be expanded to reference BIP-386.
URL
https://github.com/bitcoin/bitcoin/issue/30279
Closed by
Back to List