lnd
lnd copied to clipboard
Import Taproot pubkey
Fixes https://github.com/lightningnetwork/lnd/issues/6657.
~Depends on https://github.com/btcsuite/btcwallet/pull/806.~
Change Description
Allows public keys to be imported as BIP-0086 Taproot public keys through WalletKit.ImportPublicKey.
Any other use case (non BIP-0086) for Taproot scripts can use the new WalletKit.ImportTapscript RPC that allows Taproot outputs to be constructed from different levels of knowledge about the internal key and the script tree and then track those outputs on chain.
Updated to merged btcwallet dependency. This is ready for full review.
I noticed we were missing the type lnrpc.OutputScriptType_SCRIPT_TYPE_WITNESS_V1_TAPROOT for wallet transaction outputs of the GetTransactions RPC. Added a commit and itest case for it.
@roasbeef: review reminder
Needs a rebase, then this is g2g.