input: add tapscript full key only helper function

This commit is contained in:
Oliver Gugger committed 2022-08-25 09:20:24 +02:00
1 parent 9f47d31681
commit db73e640d9
1 file changed
+9
+9
View File
@@ -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,
}
}