feat: Bitcoin key derivation, secrets storage, and chain-family plumbing

Derives a BIP84 (native SegWit) keypair alongside the existing substrate/
ethereum/tron ones, stores it in MetaAccountSecrets/CloudBackup, persists
bitcoinPublicKey/bitcoinAddress on meta_accounts (DB migration 74->75), and
threads isBitcoinBased through Chain/ChainLocal/mappers/ChainExt/ChainRegistry
the same way isTronBased was wired. Adds BitcoinAddressBackfillMigration,
mirroring TronAddressBackfillMigration, so existing wallets get a Bitcoin
address without re-import.
This commit is contained in:
Satoshi Qazi Muhammed committed 2026-07-12 14:47:07 -07:00
1 parent 2a0ccffbe4
commit 36b5a17644
29 files changed
+365 -29

No files matched your search

@@ -125,6 +125,7 @@ class CustomChainFactory(
types = prefilledChain?.types,
isEthereumBased = isEthereumBased,
isTronBased = false,
isBitcoinBased = false,
isTestNet = prefilledChain?.isTestNet.orFalse(),
source = Chain.Source.CUSTOM,
hasSubstrateRuntime = hasSubstrateRuntime,