diff options
| author | Bitflash <btf01@proton.me> | 2026-08-01 17:53:17 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-01 17:53:17 -0300 |
| commit | ce59d8c72c667ce638bd12f37db26d8b3408a5d2 (patch) | |
| tree | 95c62a0d0cc0a21bc3349264ce0a3c949deb32c3 /src/Makefile | |
| parent | 593cf346dbce0a8ce46a13a73a4f78ddd044ab52 (diff) | |
wallet: derive the key pool from a seed, so a phrase could bring it back (#93)
Adds BIP32 derivation behind the wallet key pool, with no user-facing way to create a seed yet. wallet.dat gains hdmaster/hdchaincode/hdnext; the mnemonic is never stored. TopUpKeyPool derives m/n' when a seed exists and falls back to a random key, with a log line, if derivation fails. New -selftest=wallet-hd, wired into make tests on both platforms.
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index d4b1837..bbdc9e2 100644 --- a/src/Makefile +++ b/src/Makefile | |||
| @@ -50,7 +50,7 @@ IMGUI_OBJS = obj/imgui.o obj/imgui_draw.o obj/imgui_tables.o \ | |||
| 50 | NODE_OBJS = obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o \ | 50 | NODE_OBJS = obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o \ |
| 51 | obj/market.o obj/sha.o obj/nostr.o obj/randomx_pow.o \ | 51 | obj/market.o obj/sha.o obj/nostr.o obj/randomx_pow.o \ |
| 52 | obj/btfaddr.o obj/btfchan.o obj/btfrv.o obj/btftunnel.o obj/rpc.o \ | 52 | obj/btfaddr.o obj/btfchan.o obj/btfrv.o obj/btftunnel.o obj/rpc.o \ |
| 53 | obj/selftest.o | 53 | obj/selftest.o obj/bip32.o |
| 54 | 54 | ||
| 55 | GUI_OBJS = obj/gui.o obj/main_gui.o | 55 | GUI_OBJS = obj/gui.o obj/main_gui.o |
| 56 | 56 | ||
| @@ -131,3 +131,4 @@ test_bip32: test_bip32.cpp bip32.cpp bip32.h bip39_english.h | |||
| 131 | tests: test_bip32 bitflash-node | 131 | tests: test_bip32 bitflash-node |
| 132 | ./test_bip32 | 132 | ./test_bip32 |
| 133 | ./bitflash-node -selftest=wallet-keypool | 133 | ./bitflash-node -selftest=wallet-keypool |
| 134 | ./bitflash-node -selftest=wallet-hd | ||