descriptor: speed-up Parse (xpub/xpriv) in ~30% #35041

Manually merged
brunoerg merged 2 commits from 2026-04-descriptor into master 2026-11-04 11:47:28 +00:00 AGit
brunoerg commented 2026-04-09 18:19:20 +00:00 (Migrated from github.com)

This PR speeds up descriptor parsing, for basically descriptors that use xpub/xpriv, through some targeted improvements (I've been working on fuzz targets for wallet stuff for a while. I've noticed that some of them are slow so I started to work on understanding why and improve what can be improved. The finding came from it):

  • Avoid redundant base58 decoding when parsing extended keys (this is the major improvement)

    ParsePubkeyInner unconditionally called both DecodeExtKey() and DecodeExtPubKey(), each running a full DecodeBase58Check (two SHA256 passes over ~111 bytes). A new DecodeExtKeyOrPubKey() function performs a single base58 decode and then checks the prefix, halving the cryptographic work per key. The interfaces of DecodeSecret, DecodeExtKey, and DecodeExtPubKey are also updated to accept string_view instead of const std::string&, eliminating unnecessary string copies in the descriptor parser and allowing DecodeBase58/DecodeBase58Check to use pointer-range iteration instead of strlen.

  • Replace O(n) charset lookup with precomputed table

    DescriptorChecksum previously called std::string::find() for every character in the descriptor string, doing up to 96 comparisons per character. This replaces it with a 256-entry precomputed lookup table for O(1) lookups. The benefit scales with descriptor length.


Parse() with the following descriptor:

tr(xpub6CGCzpvrZVssNNXuP1Awcz8GoakYyJHra2WHASXfCzsD9szbQFoT1pLMdQopyqaSqXUprH7fkk8NG2pUbQa5HpNzpWmEsdNZDHxXvSLPTrn/*,{{multi_a(20,xpub6CGCzpvrZVssNNXuP1Awcz8GoakYyJHra2WHASXfCzsD9szbQFoT1pLMdQopyqaSqXUprH7fkk8NG2pUbQa5HpNzpWmEsdNZDHxXvSLPTrn/*,xpub6C5MW95EE8hAmxm96LdAFYkweaAktQoojCf2MwJmNL9Fi6oUPeBnpFdEzhs9zHwr4HQEeF1r1yAUR8MqDJqk4YPteh75rNoCKCtud7shDDk/*,xpub6DNEUJP1zLAZ1P6gYRba9FyxuppmkrPmSKz3FLM7msRwn2LEr4LnKfAnNoSoAbnbW2orTfsitdfWTxLbJCZ6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wWyqzQe99Uiyxpfy1ow42xUGpPGBHf8ErxDbQojBf7Uy7hKFgYk8KpgMm2/*,xpub6DQ2qVMZ2o2QGGpYDsw5hpAcygNVEycAkkCib2Lexwm8gYWMCSecZ256AbAV93Rgze6h8yEoTcqUnvnz7L69WUqp7cXd85X8HoeKWjPHRRZ/*)}})

This PR:

|               ns/op |                op/s |    err% |     total | benchmark
|--------------------:|--------------------:|--------:|----------:|:----------
|           90,253.50 |           11,079.90 |    0.2% |      0.01 | `ParseDescriptor`

Master:

|               ns/op |                op/s |    err% |     total | benchmark
|--------------------:|--------------------:|--------:|----------:|:----------
|          127,812.50 |            7,823.96 |    0.5% |      0.01 | `ParseDescriptor`

I didn't put the benchmark itself here but if reviewers think worth, I can do it.


Joint work with claude 😅

This PR speeds up descriptor parsing, for basically descriptors that use xpub/xpriv, through some targeted improvements (I've been working on fuzz targets for wallet stuff for a while. I've noticed that some of them are slow so I started to work on understanding why and improve what can be improved. The finding came from it): - Avoid redundant base58 decoding when parsing extended keys (this is the major improvement) ParsePubkeyInner unconditionally called both DecodeExtKey() and DecodeExtPubKey(), each running a full DecodeBase58Check (two SHA256 passes over ~111 bytes). A new DecodeExtKeyOrPubKey() function performs a single base58 decode and then checks the prefix, halving the cryptographic work per key. The interfaces of DecodeSecret, DecodeExtKey, and DecodeExtPubKey are also updated to accept string_view instead of const std::string&, eliminating unnecessary string copies in the descriptor parser and allowing DecodeBase58/DecodeBase58Check to use pointer-range iteration instead of strlen. - Replace O(n) charset lookup with precomputed table DescriptorChecksum previously called std::string::find() for every character in the descriptor string, doing up to 96 comparisons per character. This replaces it with a 256-entry precomputed lookup table for O(1) lookups. The benefit scales with descriptor length. ----------- `Parse()` with the following descriptor: ```sh tr(xpub6CGCzpvrZVssNNXuP1Awcz8GoakYyJHra2WHASXfCzsD9szbQFoT1pLMdQopyqaSqXUprH7fkk8NG2pUbQa5HpNzpWmEsdNZDHxXvSLPTrn/*,{{multi_a(20,xpub6CGCzpvrZVssNNXuP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SQZaBHut/*,xpub6D1Ey5JAYnBxFE8i2V2SUsEpJt7r3ykJKcShcpT2xN9CXtVQy5dKeYiZ9D1bdnkPrmgEajrSuA5nWqf94s6u7FwvXy3cU4BXUMgAt9C8wGT/*,xpub6CwJ2vicnoSJNFDzhonucHNVHDwyb1vyiu2VF6zmjQrzGb4qoAma1i2QJ7qRNe1qmpvvWwzSuQDgMnCECFQhZaPKuPFjcMo33r2xenBauxf/*,xpub6CiLNz8mFB4fB51x6gMNu44Up9PyVhq7fSxQb8UzYQermvMShwWyqzQe99Uiyxpfy1ow42xUGpPGBHf8ErxDbQojBf7Uy7hKFgYk8KpgMm2/*,xpub6DQ2qVMZ2o2QGGpYDsw5hpAcygNVEycAkkCib2Lexwm8gYWMCSecZ256AbAV93Rgze6h8yEoTcqUnvnz7L69WUqp7cXd85X8HoeKWjPHRRZ/*)}}) ``` This PR: ```sh | ns/op | op/s | err% | total | benchmark |--------------------:|--------------------:|--------:|----------:|:---------- | 90,253.50 | 11,079.90 | 0.2% | 0.01 | `ParseDescriptor` ``` Master: ```sh | ns/op | op/s | err% | total | benchmark |--------------------:|--------------------:|--------:|----------:|:---------- | 127,812.50 | 7,823.96 | 0.5% | 0.01 | `ParseDescriptor` ``` I didn't put the benchmark itself here but if reviewers think worth, I can do it. -------- Joint work with claude 😅
DrahtBot commented 2026-04-09 18:19:42 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK hodlinator, fametrano, sedited

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36648 (descriptor, rpc, wallet: do not echo key material in error messages by fametrano)
  • #36154 (wallet: fill PSBT_GLOBAL_XPUB by jeanpablojp)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

LLM Linter (✨ experimental)

Possible places where named args for integral literals may be used (e.g. func(x, /*named_arg=*/0) in C++, and func(x, named_arg=0) in Python):

  • src/key_io.cpp: DecodeBase58Check(str, data, 78)

2026-10-19 15:15:11

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/35041 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/35041.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/35041#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [hodlinator](https://github.com/bitcoin/bitcoin/pull/35041#pullrequestreview-5597422173), [fametrano](https://github.com/bitcoin/bitcoin/pull/35041#pullrequestreview-5740003117), [sedited](https://github.com/bitcoin/bitcoin/pull/35041#pullrequestreview-5767614502) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#36648](https://github.com/bitcoin/bitcoin/pull/36648) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36648.svg"></sub> (descriptor, rpc, wallet: do not echo key material in error messages by fametrano) * [#36154](https://github.com/bitcoin/bitcoin/pull/36154) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36154.svg"></sub> (wallet: fill PSBT_GLOBAL_XPUB by jeanpablojp) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3--> ### LLM Linter (✨ experimental) Possible places where named args for integral literals may be used (e.g. `func(x, /*named_arg=*/0)` in C++, and `func(x, named_arg=0)` in Python): - `src/key_io.cpp`: `DecodeBase58Check(str, data, 78)` <sup>2026-10-19 15:15:11</sup>
l0rinc commented 2026-04-09 20:39:07 +00:00 (Migrated from github.com)

Avoid redundant base58 decoding when parsing extended keys (this is the major improvement)

There have been a few base58 optimization attempts before (https://github.com/bitcoin/bitcoin/pull/29473 and independently before https://github.com/bitcoin/bitcoin/pull/21176) - would it help if we revived them?

> Avoid redundant base58 decoding when parsing extended keys (this is the major improvement) There have been a few base58 optimization attempts before (https://github.com/bitcoin/bitcoin/pull/29473 and independently before https://github.com/bitcoin/bitcoin/pull/21176) - would it help if we revived them?
brunoerg commented 2026-04-10 12:08:59 +00:00 (Migrated from github.com)

Avoid redundant base58 decoding when parsing extended keys (this is the major improvement)

There have been a few base58 optimization attempts before (#29473 and independently before #21176) - would it help if we revived them?

I'll take a look on those PRs and try, thank you. I think their focus is to improve/rewrites the algorithm itself, here is more about the way it's been used.

> > Avoid redundant base58 decoding when parsing extended keys (this is the major improvement) > > There have been a few base58 optimization attempts before (#29473 and independently before #21176) - would it help if we revived them? I'll take a look on those PRs and try, thank you. I think their focus is to improve/rewrites the algorithm itself, here is more about the way it's been used.
sedited (Migrated from github.com) reviewed 2026-06-07 14:04:32 +00:00
sedited (Migrated from github.com) left a comment

Concept ACK

Concept ACK
sedited (Migrated from github.com) commented 2026-06-07 13:53:30 +00:00

Shouldn't really matter, but I thinks this could be constexpr too.

Shouldn't really matter, but I thinks this could be constexpr too.
brunoerg (Migrated from github.com) reviewed 2026-06-10 15:52:00 +00:00
brunoerg (Migrated from github.com) commented 2026-06-10 15:52:00 +00:00

Done.

Done.
DrahtBot commented 2026-06-10 17:18:04 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task iwyu: https://github.com/bitcoin/bitcoin/actions/runs/27288256306/job/80601410847
LLM reason (✨ experimental): CI failed because IWYU detected missing/incorrect includes in src/script/descriptor.cpp (autofix ran and then the IWYU check failed).

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `iwyu`: https://github.com/bitcoin/bitcoin/actions/runs/27288256306/job/80601410847</sub> <sub>LLM reason (✨ experimental): CI failed because IWYU detected missing/incorrect includes in `src/script/descriptor.cpp` (autofix ran and then the IWYU check failed).</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * An intermittent issue. Leave a comment here, if you need help tracking down a confusing failure. </details>
DrahtBot commented 2026-08-24 11:32:48 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
hodlinator (Migrated from github.com) reviewed 2026-08-25 12:10:31 +00:00
hodlinator (Migrated from github.com) left a comment

ACK 0339b33e41f13f87111c2e03e1ddc42bc6a596c4

Why this change is acceptable when prior optimization attempts in this area were rejected (https://github.com/bitcoin/bitcoin/pull/35041#issuecomment-4217337173):

  • First commit is a higher level change to combine two calls to DecodeBase58Check() into one.
  • Second commit trivially replaces linear lookup with O(1) lookup table.

In my subjective view they have a lower impact on code readability than the rejected PRs. Also, the author of this PR motivates it through the concrete second-order effect of speeding up fuzz targets.

(I'm still open to reviewing further optimizations in this area, without guarantees of priority).

Benchmark code
--- a/src/bench/descriptors.cpp
+++ b/src/bench/descriptors.cpp
@@ -3,10 +3,12 @@
 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
 
 #include <bench/bench.h>
+#include <chainparams.h>
 #include <key.h>
 #include <script/descriptor.h>
 #include <script/script.h>
 #include <script/signingprovider.h>
+#include <util/chaintype.h>
 #include <util/check.h>
 
 #include <cstdint>
@@ -36,3 +38,21 @@ static void ExpandDescriptor(benchmark::Bench& bench)
 }
 
 BENCHMARK(ExpandDescriptor);
+
+static void ParseDescriptor(benchmark::Bench& bench)
+{
+    SelectParams(ChainType::MAIN);
+
+    constexpr std::string_view desc_str{"tr(xpub6CGCzpvrZVssNNXuP1Awcz8GoakYyJHra2WHASXfCzsD9szbQFoT1pLMdQopyqaSqXUprH7fkk8NG2pUbQa5HpNzpWmEsdNZDHxXvS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ZgF9rQ3j3NKUiZ2MoaC2QoZUfi4nwxbpH39SQZaBHut/*,xpub6D1Ey5JAYnBxFE8i2V2SUsEpJt7r3ykJKcShcpT2xN9CXtVQy5dKeYiZ9D1bdnkPrmgEajrSuA5nWqf94s6u7FwvXy3cU4BXUMgAt9C8wGT/*,xpub6CwJ2vicnoSJNFDzhonucHNVHDwyb1vyiu2VF6zmjQrzGb4qoAma1i2QJ7qRNe1qmpvvWwzSuQDgMnCECFQhZaPKuPFjcMo33r2xenBauxf/*,xpub6CiLNz8mFB4fB51x6gMNu44Up9PyVhq7fSxQb8UzYQermvMShwWyqzQe99Uiyxpfy1ow42xUGpPGBHf8ErxDbQojBf7Uy7hKFgYk8KpgMm2/*,xpub6DQ2qVMZ2o2QGGpYDsw5hpAcygNVEycAkkCib2Lexwm8gYWMCSecZ256AbAV93Rgze6h8yEoTcqUnvnz7L69WUqp7cXd85X8HoeKWjPHRRZ/*)}})"};
+    FlatSigningProvider provider;
+    std::string error;
+
+    bench.run([&] {
+        FlatSigningProvider provider;
+        std::string error;
+        auto descs = Parse(desc_str, provider, error);
+        assert(error.empty());
+        assert(!descs.empty());
+    });
+}
+BENCHMARK(ParseDescriptor);
Benchmark results - 36.7% less time
₿ cmake --build build -t bench_bitcoin && ./build/bin/bench_bitcoin -filter=ParseDescriptor -min-time=20000
[1/4] Generating bitcoin-build-info.h

|               ns/op |                op/s |    err% |          ins/op |          cyc/op |    IPC |         bra/op |   miss% |     total | benchmark
|--------------------:|--------------------:|--------:|----------------:|----------------:|-------:|---------------:|--------:|----------:|:----------
|        2,279,668.50 |              438.66 |    0.0% |   21,336,811.84 |    8,410,310.10 |  2.537 |   2,425,190.55 |    1.9% |     22.00 | `ParseDescriptor`

₿ cmake --build build -t bench_bitcoin && ./build/bin/bench_bitcoin -filter=ParseDescriptor -min-time=20000
[37/37] Linking CXX executable bin/bench_bitcoin

|               ns/op |                op/s |    err% |          ins/op |          cyc/op |    IPC |         bra/op |   miss% |     total | benchmark
|--------------------:|--------------------:|--------:|----------------:|----------------:|-------:|---------------:|--------:|----------:|:----------
|        1,443,634.77 |              692.70 |    0.0% |   13,602,529.65 |    5,326,314.15 |  2.554 |   1,465,145.07 |    2.0% |     21.34 | `ParseDescriptor`

(Run under doas pyperf system tune).

ACK 0339b33e41f13f87111c2e03e1ddc42bc6a596c4 Why this change is acceptable when prior optimization attempts in this area were rejected (https://github.com/bitcoin/bitcoin/pull/35041#issuecomment-4217337173): * First commit is a *higher level* change to combine two calls to `DecodeBase58Check()` into one. * Second commit *trivially* replaces linear lookup with `O(1)` lookup table. In my subjective view they have a lower impact on code readability than the rejected PRs. Also, the author of this PR motivates it through the concrete second-order effect of speeding up fuzz targets. (I'm still open to reviewing further optimizations in this area, without guarantees of priority). <details><summary>Benchmark code</summary> ```diff --- a/src/bench/descriptors.cpp +++ b/src/bench/descriptors.cpp @@ -3,10 +3,12 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> +#include <chainparams.h> #include <key.h> #include <script/descriptor.h> #include <script/script.h> #include <script/signingprovider.h> +#include <util/chaintype.h> #include <util/check.h> #include <cstdint> @@ -36,3 +38,21 @@ static void ExpandDescriptor(benchmark::Bench& bench) } BENCHMARK(ExpandDescriptor); + +static void ParseDescriptor(benchmark::Bench& bench) +{ + SelectParams(ChainType::MAIN); + + constexpr std::string_view desc_str{"tr(xpub6CGCzpvrZVssNNXuP1Awcz8GoakYyJHra2WHASXfCzsD9szbQFoT1pLMdQopyqaSqXUprH7fkk8NG2pUbQa5HpNzpWmEsdNZDHxXvSLPTrn/*,{{multi_a(20,xpub6CGCzpvrZVssNNXuP1Awcz8GoakYyJHra2WHASXfCzsD9szbQFoT1pLMdQopyqaSqXUprH7fkk8NG2pUbQa5HpNzpWmEsdNZDHxXvSLPTrn/*,xpub6C5MW95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7FwvXy3cU4BXUMgAt9C8wGT/*,xpub6CwJ2vicnoSJNFDzhonucHNVHDwyb1vyiu2VF6zmjQrzGb4qoAma1i2QJ7qRNe1qmpvvWwzSuQDgMnCECFQhZaPKuPFjcMo33r2xenBauxf/*,xpub6CiLNz8mFB4fB51x6gMNu44Up9PyVhq7fSxQb8UzYQermvMShwWyqzQe99Uiyxpfy1ow42xUGpPGBHf8ErxDbQojBf7Uy7hKFgYk8KpgMm2/*,xpub6DQ2qVMZ2o2QGGpYDsw5hpAcygNVEycAkkCib2Lexwm8gYWMCSecZ256AbAV93Rgze6h8yEoTcqUnvnz7L69WUqp7cXd85X8HoeKWjPHRRZ/*)}})"}; + FlatSigningProvider provider; + std::string error; + + bench.run([&] { + FlatSigningProvider provider; + std::string error; + auto descs = Parse(desc_str, provider, error); + assert(error.empty()); + assert(!descs.empty()); + }); +} +BENCHMARK(ParseDescriptor); ``` </details> <details><summary>Benchmark results - 36.7% less time</summary> ``` ₿ cmake --build build -t bench_bitcoin && ./build/bin/bench_bitcoin -filter=ParseDescriptor -min-time=20000 [1/4] Generating bitcoin-build-info.h | ns/op | op/s | err% | ins/op | cyc/op | IPC | bra/op | miss% | total | benchmark |--------------------:|--------------------:|--------:|----------------:|----------------:|-------:|---------------:|--------:|----------:|:---------- | 2,279,668.50 | 438.66 | 0.0% | 21,336,811.84 | 8,410,310.10 | 2.537 | 2,425,190.55 | 1.9% | 22.00 | `ParseDescriptor` ₿ cmake --build build -t bench_bitcoin && ./build/bin/bench_bitcoin -filter=ParseDescriptor -min-time=20000 [37/37] Linking CXX executable bin/bench_bitcoin | ns/op | op/s | err% | ins/op | cyc/op | IPC | bra/op | miss% | total | benchmark |--------------------:|--------------------:|--------:|----------------:|----------------:|-------:|---------------:|--------:|----------:|:---------- | 1,443,634.77 | 692.70 | 0.0% | 13,602,529.65 | 5,326,314.15 | 2.554 | 1,465,145.07 | 2.0% | 21.34 | `ParseDescriptor` ``` (Run under `doas pyperf system tune`). </details>
hodlinator (Migrated from github.com) commented 2026-08-25 09:49:17 +00:00

nit: Could document & enforce the end pointer not changing as well:

[[nodiscard]] static bool DecodeBase58(const char* psz, const char* const end, std::vector<unsigned char>& vch, int max_ret_len)
nit: Could document & enforce the `end` pointer not changing as well: ```suggestion [[nodiscard]] static bool DecodeBase58(const char* psz, const char* const end, std::vector<unsigned char>& vch, int max_ret_len) ```
hodlinator (Migrated from github.com) commented 2026-08-25 09:02:24 +00:00

Started experimenting with returning std::optional<std::variant<CExtKey, CExtPubKey>> and validating IsValid() inside of the function but seems cleaner to leave that out of this PR. :)

Started experimenting with returning `std::optional<std::variant<CExtKey, CExtPubKey>>` and validating `IsValid()` inside of the function but seems cleaner to leave that out of this PR. :)
hodlinator (Migrated from github.com) commented 2026-08-25 10:02:10 +00:00

nit-level suggestions:

  1. Omit static for constexpr variables as they are only evaluated once anyway (still needed for INPUT_CHARSET to simplify capture in lambda).
  2. Change element type of INPUT_CHARSET_POS to int8_t to better match range of possible values and decrease size.
  3. Omit cast to unsigned when indexing into table as at least GCC will trigger an assert at compile time when indexing out of bounds in std::array.
  4. Prefer uint8_t over longer unsigned char.
--- a/src/script/descriptor.cpp
+++ b/src/script/descriptor.cpp
@@ -143,23 +143,23 @@ std::string DescriptorChecksum(const std::span<const char>& span)
         "ijklmnopqrstuvwxyzABCDEFGH`#\"\\ ";
 
     /** Lookup table mapping each ASCII byte to its position in INPUT_CHARSET, or -1 if not present. */
-    static constexpr std::array<int, 256> INPUT_CHARSET_POS = []() {
-        std::array<int, 256> table;
+    constexpr std::array<int8_t, 256> INPUT_CHARSET_POS = []() {
+        std::array<int8_t, 256> table;
         table.fill(-1);
         for (size_t i = 0; i < INPUT_CHARSET.size(); ++i) {
-            table[static_cast<unsigned char>(INPUT_CHARSET[i])] = i;
+            table[INPUT_CHARSET[i]] = i;
         }
         return table;
     }();
 
     /** The character set for the checksum itself (same as bech32). */
-    static constexpr std::string_view CHECKSUM_CHARSET = "qpzry9x8gf2tvdw0s3jn54khce6mua7l";
+    constexpr std::string_view CHECKSUM_CHARSET = "qpzry9x8gf2tvdw0s3jn54khce6mua7l";
 
     uint64_t c = 1;
     int cls = 0;
     int clscount = 0;
     for (auto ch : span) {
-        auto pos = INPUT_CHARSET_POS[static_cast<unsigned char>(ch)];
+        int8_t pos = INPUT_CHARSET_POS[static_cast<uint8_t>(ch)];
         if (pos == -1) return "";
         c = PolyMod(c, pos & 31); // Emit a symbol for the position inside the group, for every character.
         cls = cls * 3 + (pos >> 5); // Accumulate the group numbers
nit-level suggestions: 1. Omit `static` for `constexpr` variables as they are only evaluated once anyway (still needed for `INPUT_CHARSET` to simplify capture in lambda). 2. Change element type of `INPUT_CHARSET_POS` to `int8_t` to better match range of possible values and decrease size. 3. Omit cast to unsigned when indexing into `table` as at least GCC will trigger an assert at compile time when indexing out of bounds in `std::array`. 4. Prefer `uint8_t` over longer `unsigned char`. ```diff --- a/src/script/descriptor.cpp +++ b/src/script/descriptor.cpp @@ -143,23 +143,23 @@ std::string DescriptorChecksum(const std::span<const char>& span) "ijklmnopqrstuvwxyzABCDEFGH`#\"\\ "; /** Lookup table mapping each ASCII byte to its position in INPUT_CHARSET, or -1 if not present. */ - static constexpr std::array<int, 256> INPUT_CHARSET_POS = []() { - std::array<int, 256> table; + constexpr std::array<int8_t, 256> INPUT_CHARSET_POS = []() { + std::array<int8_t, 256> table; table.fill(-1); for (size_t i = 0; i < INPUT_CHARSET.size(); ++i) { - table[static_cast<unsigned char>(INPUT_CHARSET[i])] = i; + table[INPUT_CHARSET[i]] = i; } return table; }(); /** The character set for the checksum itself (same as bech32). */ - static constexpr std::string_view CHECKSUM_CHARSET = "qpzry9x8gf2tvdw0s3jn54khce6mua7l"; + constexpr std::string_view CHECKSUM_CHARSET = "qpzry9x8gf2tvdw0s3jn54khce6mua7l"; uint64_t c = 1; int cls = 0; int clscount = 0; for (auto ch : span) { - auto pos = INPUT_CHARSET_POS[static_cast<unsigned char>(ch)]; + int8_t pos = INPUT_CHARSET_POS[static_cast<uint8_t>(ch)]; if (pos == -1) return ""; c = PolyMod(c, pos & 31); // Emit a symbol for the position inside the group, for every character. cls = cls * 3 + (pos >> 5); // Accumulate the group numbers ```
maflcko (Migrated from github.com) reviewed 2026-09-01 16:06:31 +00:00
maflcko (Migrated from github.com) commented 2026-09-01 16:06:31 +00:00

Could also pass a string view in here to clean up the callers and then derive psz and end only in the first line of this function?

Could also pass a string view in here to clean up the callers and then derive `psz` and `end` only in the first line of this function?
brunoerg (Migrated from github.com) reviewed 2026-09-01 23:53:26 +00:00
brunoerg (Migrated from github.com) commented 2026-09-01 23:53:26 +00:00

Yes, I like the string view approach, but I think we would have to rename the internal helpers to avoid recursion.

Yes, I like the string view approach, but I think we would have to rename the internal helpers to avoid recursion.
brunoerg (Migrated from github.com) reviewed 2026-09-01 23:59:30 +00:00
brunoerg (Migrated from github.com) commented 2026-09-01 23:59:30 +00:00

Not sure about dropping static because it guarantees the value is computed at compile time; I cannot see why not using it, especially for debug builds.

The other points are valid, I'm going to address them since I intend to address https://github.com/bitcoin/bitcoin/pull/35041#discussion_r3909496481.

Not sure about dropping `static` because it guarantees the value is computed at compile time; I cannot see why not using it, especially for debug builds. The other points are valid, I'm going to address them since I intend to address https://github.com/bitcoin/bitcoin/pull/35041#discussion_r3909496481.
brunoerg (Migrated from github.com) reviewed 2026-09-02 01:05:02 +00:00
brunoerg (Migrated from github.com) commented 2026-09-02 01:05:02 +00:00

Done.

Done.
brunoerg commented 2026-09-02 01:07:31 +00:00 (Migrated from github.com)

Force-pushed addressing https://github.com/bitcoin/bitcoin/pull/35041#discussion_r3906003696 (string view) and changed INPUT_CHARSET_POS element type from int to int8_t as well as the index casts from unsigned char to uint8_t. Thanks @hodlinator and @maflcko for reviewing it.

Force-pushed addressing https://github.com/bitcoin/bitcoin/pull/35041#discussion_r3906003696 (string view) and changed INPUT_CHARSET_POS element type from int to int8_t as well as the index casts from unsigned char to uint8_t. Thanks @hodlinator and @maflcko for reviewing it.
hodlinator (Migrated from github.com) approved these changes 2026-09-02 07:29:39 +00:00
hodlinator (Migrated from github.com) left a comment
re-ACK ddcacd25e735dad4868bab7f618961a363f23239 Initial ACK: https://github.com/bitcoin/bitcoin/pull/35041#pullrequestreview-5016944887
hodlinator (Migrated from github.com) commented 2026-09-02 07:21:03 +00:00

nit: If you touch again, maybe you could use "Internal" as the disambiguating suffix rather than "Raw"?

nit: If you touch again, maybe you could use "Internal" as the disambiguating suffix rather than "Raw"?
hodlinator (Migrated from github.com) commented 2026-09-02 07:28:17 +00:00

nit: Could further constrain end here:

    const char* const end = str.data() + str.size();

(It both cannot mutate the data it points to and it is not allowed to be modified to point at other memory).

nit: Could further constrain `end` here: ```suggestion const char* const end = str.data() + str.size(); ``` (It both cannot mutate the data it points to *and* it is not allowed to be modified to point at other memory).
hodlinator (Migrated from github.com) commented 2026-09-02 07:22:59 +00:00

Thanks for applying most of my feedback!

It is constexpr which guarantees the value to be computed at compile time, so static is redundant for INPUT_CHARSET_POS and CHECKSUM_CHARSET.

Thanks for applying most of my feedback! It is `constexpr` which guarantees the value to be computed at compile time, so `static` is redundant for `INPUT_CHARSET_POS` and `CHECKSUM_CHARSET`.
First-time contributor

Base: d0d1e49c8c1e5582056e8a843229507871f8d1b8
Head: 61cb3d966a855a551307889daea9c45c2c1db203

Findings

Minor

Avoid pointer arithmetic on an empty string view (src/base58.cpp:45, head)

A default-constructed empty std::string_view may have a null data() pointer. Forming end from it, and later subtracting end - psz, is undefined behavior. The previous string-based decoder handled an empty std::string through its non-null c_str(). Handle an empty view before forming the range or normalize it to a non-null empty buffer. No checked-in caller passing a default-constructed view was identified, so production impact is unconfirmed.

Suggestions

Add a benchmark for extended-key descriptor parsing (src/script/descriptor.cpp:2052, head)

Please add a Parse benchmark using an extended-key descriptor. The existing descriptor benchmark calls Parse before bench.run and times only Expand, so it cannot reproduce the reported parsing improvement or track future parser-throughput regressions. A separate benchmark would measure this path without changing parser behavior.

Review coverage was incomplete. adversarial_glm: Output failed validation: invalid review output

Full review report

<!-- forgejo-review-bot:bitcoin/bitcoin --> Base: `d0d1e49c8c1e5582056e8a843229507871f8d1b8` Head: `61cb3d966a855a551307889daea9c45c2c1db203` ##### Findings **Minor** **Avoid pointer arithmetic on an empty string view** (src/base58.cpp:45, head) A default-constructed empty `std::string_view` may have a null `data()` pointer. Forming `end` from it, and later subtracting `end - psz`, is undefined behavior. The previous string-based decoder handled an empty `std::string` through its non-null `c_str()`. Handle an empty view before forming the range or normalize it to a non-null empty buffer. No checked-in caller passing a default-constructed view was identified, so production impact is unconfirmed. **Suggestions** **Add a benchmark for extended-key descriptor parsing** (src/script/descriptor.cpp:2052, head) Please add a `Parse` benchmark using an extended-key descriptor. The existing descriptor benchmark calls `Parse` before `bench.run` and times only `Expand`, so it cannot reproduce the reported parsing improvement or track future parser-throughput regressions. A separate benchmark would measure this path without changing parser behavior. Review coverage was incomplete. adversarial_glm: Output failed validation: invalid review output [Full review report](<https://review.fish.foo/traces/35041-61cb3d966a855a551307889daea9c45c2c1db203-909-2.html>)
sedited (Migrated from github.com) reviewed 2026-10-19 07:12:30 +00:00
sedited (Migrated from github.com) commented 2026-10-19 07:12:30 +00:00

Could take this opportunity and make this operation 32bit overflow-safe by clamping to max size (not that it really matters, such large inputs are unlikely to reach here)?

Could take this opportunity and make this operation 32bit overflow-safe by clamping to max size (not that it really matters, such large inputs are unlikely to reach here)?
brunoerg (Migrated from github.com) reviewed 2026-10-19 14:19:03 +00:00
brunoerg (Migrated from github.com) commented 2026-10-19 14:19:03 +00:00

Yes, going to address it.

Yes, going to address it.
brunoerg (Migrated from github.com) reviewed 2026-10-19 15:15:00 +00:00
brunoerg (Migrated from github.com) commented 2026-10-19 15:15:00 +00:00

Done.

Done.
brunoerg (Migrated from github.com) reviewed 2026-10-19 15:15:10 +00:00
brunoerg (Migrated from github.com) commented 2026-10-19 15:15:10 +00:00

Done.

Done.
brunoerg commented 2026-10-19 15:15:51 +00:00 (Migrated from github.com)
Force-pushed addressing https://github.com/bitcoin/bitcoin/pull/35041/changes/59daebcf05db41d83f9d1974b5c79be3eaf62770#r3911747081 and https://github.com/bitcoin/bitcoin/pull/35041/changes/59daebcf05db41d83f9d1974b5c79be3eaf62770#r4311175392
hodlinator (Migrated from github.com) approved these changes 2026-10-21 09:12:40 +00:00
hodlinator (Migrated from github.com) left a comment

re-ACK 61cb3d966a

re-ACK 61cb3d966a855a551307889daea9c45c2c1db203
hodlinator (Migrated from github.com) commented 2026-10-21 09:10:52 +00:00

nit: This std::max(..., 0) is only useful when vch doesn't have 1-prefix padding and max_ret_len is negative.

Could instead add a precondition for the argument (or make it unsigned):

--- a/src/base58.cpp
+++ b/src/base58.cpp
@@ -41,6 +41,7 @@ static const int8_t mapBase58[256] = {
 
 [[nodiscard]] static bool DecodeBase58Raw(std::string_view str, std::vector<unsigned char>& vch, int max_ret_len)
 {
+    assert(max_ret_len >= 0);
     const char* psz = str.data();
     const char* const end = str.data() + str.size();
     // Skip leading spaces.
@@ -57,7 +58,7 @@ static const int8_t mapBase58[256] = {
     // Allocate enough space in big-endian base256 representation.
     const size_t size{static_cast<size_t>(std::min<uint64_t>(
         uint64_t(end - psz) * 733 / 1000 + 1, // log(58) / log(256), rounded up.
-        uint64_t(std::max(max_ret_len - zeroes, 0)) + 1))};
+        uint64_t(max_ret_len - zeroes) + 1))};
     std::vector<unsigned char> b256(size);
     // Process the characters.
     static_assert(std::size(mapBase58) == 256, "mapBase58.size() should be 256"); // guarantee not out of range
nit: This `std::max(..., 0)` is only useful when `vch` doesn't have `1`-prefix padding and `max_ret_len` is negative. Could instead add a precondition for the argument (or make it unsigned): ```diff --- a/src/base58.cpp +++ b/src/base58.cpp @@ -41,6 +41,7 @@ static const int8_t mapBase58[256] = { [[nodiscard]] static bool DecodeBase58Raw(std::string_view str, std::vector<unsigned char>& vch, int max_ret_len) { + assert(max_ret_len >= 0); const char* psz = str.data(); const char* const end = str.data() + str.size(); // Skip leading spaces. @@ -57,7 +58,7 @@ static const int8_t mapBase58[256] = { // Allocate enough space in big-endian base256 representation. const size_t size{static_cast<size_t>(std::min<uint64_t>( uint64_t(end - psz) * 733 / 1000 + 1, // log(58) / log(256), rounded up. - uint64_t(std::max(max_ret_len - zeroes, 0)) + 1))}; + uint64_t(max_ret_len - zeroes) + 1))}; std::vector<unsigned char> b256(size); // Process the characters. static_assert(std::size(mapBase58) == 256, "mapBase58.size() should be 256"); // guarantee not out of range ```
fametrano (Migrated from github.com) reviewed 2026-11-02 16:44:26 +00:00
fametrano (Migrated from github.com) left a comment

tACK 61cb3d966a

I checked that this speed-up changes no answer: the new size cap in DecodeBase58Raw sits on every base58 decode, DecodeExtKeyOrPubKey on every extended key in a descriptor, and no test calls the new decoder directly. I built this head and its merge base and ran both over 33,465 seeded cases from the BIP32 library I maintain: the BIP32 vectors, 1,000 random key pairs and their mutations (padding, NUL, wrong versions and lengths, depth 0 with a parent, off-curve keys, scalars out of range), plus raw base58 and 6,323 descriptors.

The output of DecodeBase58 and DecodeBase58Check at seven limits, DecodeExtKey, DecodeExtPubKey, GetDescriptorChecksum and Parse, error strings included, is byte-identical on both builds. On all 11,083 key strings DecodeExtKeyOrPubKey matches the two separate decoders. My library agrees with Core on every key string, except 800 testnet and ypub-style keys it accepts by design and Core rejects on mainnet. The checksums agree on 6,321 descriptors; for # and pkh(#), GetDescriptorChecksum returns nothing.

Ralph's verifier dropped, by reading the code, the candidate that the cap can hit assert(carry == 0); this run exercises it. As controls, removing the cap's + 1 aborts on that assert, and dropping the private prefix check or changing the checksum table's fill value shows up as differences. The unit suites for base58, BIP32, key_io, descriptors and miniscript pass. The comparison is a sample, on mainnet parameters and without sanitizers, and has no valid WIF key, default-constructed string_view or negative limit among its inputs. I did not measure the speed-up. Harness, generator and output: https://gist.github.com/fametrano/90d85e64cc4336a69769ccf978bef12b/7b02fad518ad93b46fe72ae6c739bd3ae087686e

tACK 61cb3d966a855a551307889daea9c45c2c1db203 I checked that this speed-up changes no answer: the new size cap in `DecodeBase58Raw` sits on every base58 decode, `DecodeExtKeyOrPubKey` on every extended key in a descriptor, and no test calls the new decoder directly. I built this head and its merge base and ran both over 33,465 seeded cases from the BIP32 library I maintain: the BIP32 vectors, 1,000 random key pairs and their mutations (padding, NUL, wrong versions and lengths, depth 0 with a parent, off-curve keys, scalars out of range), plus raw base58 and 6,323 descriptors. The output of `DecodeBase58` and `DecodeBase58Check` at seven limits, `DecodeExtKey`, `DecodeExtPubKey`, `GetDescriptorChecksum` and `Parse`, error strings included, is byte-identical on both builds. On all 11,083 key strings `DecodeExtKeyOrPubKey` matches the two separate decoders. My library agrees with Core on every key string, except 800 testnet and ypub-style keys it accepts by design and Core rejects on mainnet. The checksums agree on 6,321 descriptors; for `#` and `pkh(#)`, `GetDescriptorChecksum` returns nothing. Ralph's verifier dropped, by reading the code, the candidate that the cap can hit `assert(carry == 0)`; this run exercises it. As controls, removing the cap's `+ 1` aborts on that assert, and dropping the private prefix check or changing the checksum table's fill value shows up as differences. The unit suites for base58, BIP32, key_io, descriptors and miniscript pass. The comparison is a sample, on mainnet parameters and without sanitizers, and has no valid WIF key, default-constructed `string_view` or negative limit among its inputs. I did not measure the speed-up. Harness, generator and output: https://gist.github.com/fametrano/90d85e64cc4336a69769ccf978bef12b/7b02fad518ad93b46fe72ae6c739bd3ae087686e
sedited (Migrated from github.com) approved these changes 2026-11-04 11:40:41 +00:00
sedited (Migrated from github.com) left a comment
ACK 61cb3d966a855a551307889daea9c45c2c1db203
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!35041
No description provided.