diff options
| author | Bitflash <btf01@proton.me> | 2026-08-01 17:57:07 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-01 17:57:07 -0300 |
| commit | 7de7ef89d3365f8f9c2eb2b6ed0193c3033e221c (patch) | |
| tree | dba509ae6b245be76b88ad0ae467aeb997a85b4d /src/Makefile | |
| parent | ce59d8c72c667ce638bd12f37db26d8b3408a5d2 (diff) | |
wallet: create and restore a recovery phrase (#96)
Adds -newphrase, -restorephrase, -restoredepth, -newaddress and -showderived, plus the window buttons that reach the same code. Restore derives forward in batches of 100 and rescans after each, stopping when a whole batch turns up nothing; the phrase is shown on the terminal only, never in debug.log. Proved end to end on a live wallet: paid a derived address, deleted wallet.dat, restored from the twelve words and recovered the coin. Coins on the pre-seed default address do not come back, and the command says so.
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index bbdc9e2..3eaf2ba 100644 --- a/src/Makefile +++ b/src/Makefile | |||
| @@ -42,7 +42,7 @@ LIBS = -L$(SECP_LIB) -lsecp256k1 \ | |||
| 42 | HEADERS = headers_core.h headers.h util.h main.h serialize.h uint256.h \ | 42 | HEADERS = headers_core.h headers.h util.h main.h serialize.h uint256.h \ |
| 43 | key.h bignum.h script.h db.h base58.h net.h nostr.h \ | 43 | key.h bignum.h script.h db.h base58.h net.h nostr.h \ |
| 44 | randomx_pow.h btfaddr.h btfchan.h btfrv.h btftunnel.h market.h \ | 44 | randomx_pow.h btfaddr.h btfchan.h btfrv.h btftunnel.h market.h \ |
| 45 | selftest.h compat.h | 45 | selftest.h walletcmd.h compat.h |
| 46 | 46 | ||
| 47 | IMGUI_OBJS = obj/imgui.o obj/imgui_draw.o obj/imgui_tables.o \ | 47 | IMGUI_OBJS = obj/imgui.o obj/imgui_draw.o obj/imgui_tables.o \ |
| 48 | obj/imgui_widgets.o obj/imgui_impl_glfw.o obj/imgui_impl_opengl3.o | 48 | obj/imgui_widgets.o obj/imgui_impl_glfw.o obj/imgui_impl_opengl3.o |
| @@ -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 obj/bip32.o | 53 | obj/selftest.o obj/bip32.o obj/walletcmd.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 | ||