mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
input: add tapscript full key only helper function
This commit is contained in:
parent
9f47d31681
commit
db73e640d9
1 changed files with 9 additions and 0 deletions
|
@ -126,3 +126,12 @@ func TapscriptRootHashOnly(internalKey *btcec.PublicKey,
|
||||||
RootHash: rootHash,
|
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,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue