tfollow-up prev: add comment - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d641dfe964d7aad3103d99e0db6d9406cc0cd91e DIR parent 0828454ef1bda75f7436b39225ed6cd31edc4fa7 HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 9 Dec 2019 17:43:08 +0100 follow-up prev: add comment Diffstat: M electrum/keystore.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/electrum/keystore.py b/electrum/keystore.py t@@ -411,6 +411,8 @@ class Xpub: self._root_fingerprint = root_fingerprint self._derivation_prefix = normalize_bip32_derivation(derivation_prefix) + # note: this helper method exists as derive_pubkey returns hex strings, + # and it saves space to cache bytes instead @lru_cache(maxsize=None) def _derive_pubkey_bytes(self, for_change: int, n: int) -> bytes: assert for_change in (0, 1)