upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorBitflash <btf01@proton.me>2026-08-01 17:53:17 -0300
committerGitHub <noreply@github.com>2026-08-01 17:53:17 -0300
commitce59d8c72c667ce638bd12f37db26d8b3408a5d2 (patch)
tree95c62a0d0cc0a21bc3349264ce0a3c949deb32c3 /src/Makefile
parent593cf346dbce0a8ce46a13a73a4f78ddd044ab52 (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/Makefile3
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 \
50NODE_OBJS = obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o \ 50NODE_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
55GUI_OBJS = obj/gui.o obj/main_gui.o 55GUI_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
131tests: test_bip32 bitflash-node 131tests: 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