mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 08:02:25 +02:00
multi: add p2tr keyspend wallet support
This commit is contained in:
@@ -139,7 +139,8 @@ var newAddressCommand = cli.Command{
|
||||
Description: `
|
||||
Generate a wallet new address. Address-types has to be one of:
|
||||
- p2wkh: Pay to witness key hash
|
||||
- np2wkh: Pay to nested witness key hash`,
|
||||
- np2wkh: Pay to nested witness key hash
|
||||
- p2tr: Pay to taproot pubkey`,
|
||||
Action: actionDecorator(newAddress),
|
||||
}
|
||||
|
||||
@@ -161,6 +162,8 @@ func newAddress(ctx *cli.Context) error {
|
||||
addrType = lnrpc.AddressType_WITNESS_PUBKEY_HASH
|
||||
case "np2wkh":
|
||||
addrType = lnrpc.AddressType_NESTED_PUBKEY_HASH
|
||||
case "p2tr":
|
||||
addrType = lnrpc.AddressType_TAPROOT_PUBKEY
|
||||
default:
|
||||
return fmt.Errorf("invalid address type %v, support address type "+
|
||||
"are: p2wkh and np2wkh", stringAddrType)
|
||||
|
Reference in New Issue
Block a user