mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-13 22:41:25 +02:00
a15bdc0598doc: update offline-signing-tutorial to use exportwatchonlywallet rpc (Pol Espinasa)a388076401test: Test for exportwatchonlywallet (Ava Chow)d053e3e5c8wallet, rpc: Add exportwatchonlywallet RPC (Ava Chow)444878efefwallet: Add CWallet::ExportWatchOnly (Ava Chow)f9273f01dbwallet: Move listdescriptors retrieving from RPC to CWallet (Ava Chow)a1c83789a7wallet: Write new descriptor's cache in AddWalletDescriptor (Ava Chow)1e996640e6wallet: Use Descriptor::CanSelfExpand() in CanGetAddresses() (Ava Chow)d2ee9227dadescriptor: Add CanSelfExpand() (Ava Chow) Pull request description: Currently, if a user wants to use an airgapped setup, they need to manually create the watchonly wallet that will live on the online node by importing the public descriptors. This PR introduces `exportwatchonlywallet` which will create a wallet file with the public descriptors to avoid exposing the specific internals to the user. Additionally, this RPC will copy any existing labels, transactions, and wallet flags. This ensures that the exported watchonly wallet is almost entirely a copy of the original wallet but without private keys. ACKs for top commit: polespinasa: lgtm ACKa15bdc0598Sjors: re-utACKa15bdc0598pablomartin4btc: re-ACK [a15bdc0](a15bdc0598) w0xlt: lgtm reACKa15bdc0598Tree-SHA512: cfc59415ad9aa13d1445cf2a85db1c051215496b6edcf5a8db463499b2b51b92ee7bf840b709035dff7635f9d0c533423bceb58c851f220500e1ea254d12f3b8