mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +02:00
input: add tapscript full key only helper function
This commit is contained in:
@@ -126,3 +126,12 @@ func TapscriptRootHashOnly(internalKey *btcec.PublicKey,
|
||||
RootHash: rootHash,
|
||||
}
|
||||
}
|
||||
|
||||
// TapscriptFullKeyOnly creates a waddrmgr.Tapscript for the given full Taproot
|
||||
// key.
|
||||
func TapscriptFullKeyOnly(taprootKey *btcec.PublicKey) *waddrmgr.Tapscript {
|
||||
return &waddrmgr.Tapscript{
|
||||
Type: waddrmgr.TaprootFullKeyOnly,
|
||||
FullOutputKey: taprootKey,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user