diff --git a/input/taproot.go b/input/taproot.go index 621ec731d..78294f03a 100644 --- a/input/taproot.go +++ b/input/taproot.go @@ -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, + } +}