Thursday, January 15, 2026

deal with – How do HD wallets retailer the keys and addresses?

1. Storage of Keys, Addresses and many others

How precisely is all this saved?

In Basic

Any manner that the builders of a selected pockets need. It’s probably that totally different wallets retailer their knowledge in a different way.


In Bitcoin core, for instance.

The pockets software program named “Bitcoin core” will retailer the non-public keys within the pockets.dat file within the specified or default knowledge listing. The default is %APPDATA%/Bitcoin/ or ~/.bitcoin/ relying on platform. If a pockets password is offered, the important thing knowledge is saved in encrypted type with the password being the encryption key (probably not directly and possibly utilizing AES IIRC).

The addresses generated are saved in the identical file however needn’t be encrypted.

I do not know if the total derivation paths are explicitly saved. I think about that at the very least the least vital digits must be saved together with every derived deal with. Possibly somebody can remark.

BDB vs SQLite wallets

The general organisation of this file has modified and relies on easy key-value database libraries, initially Berkeley-DB (BDB) and extra lately SQLite AFAIK.

Descriptor vs non-Descriptor wallets

The keys and values have modified from the unique type to a “descriptor” type. So there are non-descriptor wallets and descriptor wallets.

HD vs non-HD wallets

There was additionally a change to Hierarchical Deterministic (HD) wallets from the unique non-HD pockets.


2. Derivation Paths

I see that each one addresses are recognized utilizing a path naming conference. Does that imply that each one the paths are saved, and in a state of affairs the place an deal with must be reused, it’s regenerated every time?

These are implementation particulars. I do not know the way Bitcoin core or different wallets deal with this and I imagine anybody writing a pockets ought to make their very own selections.

If writing a pockets app, I might in all probability explicitly retailer all generated addresses and paths. Another folks would do one thing very totally different.


3. Additional studying:

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Stay Connected

0FansLike
0FollowersFollow
0SubscribersSubscribe
- Advertisement -spot_img

Latest Articles