Page MenuHomePhabricator

Cache parent xpub inside of BIP32PubkeyProvider
ClosedPublic

Authored by deadalnix on Nov 13 2020, 01:27.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABCec5a073bd022: Cache parent xpub inside of BIP32PubkeyProvider
Summary

Optimize Expand by having BIP32PubkeyProvider also cache the parent
(or only) xpub within itself. Since Expand does not provide a read
cache, it is useful to internally cache this xpub to avoid re-deriving
the same xpub.

Backport of Core PR18204 part [7/7] : https://github.com/bitcoin/bitcoin/pull/18204/commits/09e25071f40c564af08a1386c39c4f2d8eb484b6

Depends on D8387

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable