multi: add p2tr keyspend wallet support
This commit is contained in:
24 files changed
+416
-163
No files matched your search
+8
-1
@@ -1112,7 +1112,14 @@ func importWatchOnlyAccounts(wallet *wallet.Wallet,
|
||||
|
||||
for _, scope := range scopes {
|
||||
addrSchema := waddrmgr.ScopeAddrMap[waddrmgr.KeyScopeBIP0084]
|
||||
if scope.Scope.Purpose == waddrmgr.KeyScopeBIP0049Plus.Purpose {
|
||||
|
||||
// We want witness pubkey hash by default, except for BIP49
|
||||
// where we want mixed and BIP86 where we want taproot address
|
||||
// formats.
|
||||
switch scope.Scope.Purpose {
|
||||
case waddrmgr.KeyScopeBIP0049Plus.Purpose,
|
||||
waddrmgr.KeyScopeBIP0086.Purpose:
|
||||
|
||||
addrSchema = waddrmgr.ScopeAddrMap[scope.Scope]
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user