Documentation
¶
Index ¶
- func GetHtlc(hash lntypes.Hash, contract *loopdb.SwapContract, chainParams *chaincfg.Params) (*swap.Htlc, error)
- func GetHtlcScriptVersion(protocolVersion loopdb.ProtocolVersion) swap.ScriptVersion
- func MuSig2Sign(version input.MuSig2Version, privKeys []*btcec.PrivateKey, ...) ([]byte, error)
- func ObtainSwapPaymentAddr(swapInvoice string, chainParams *chaincfg.Params) (*[32]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHtlc ¶
func GetHtlc(hash lntypes.Hash, contract *loopdb.SwapContract, chainParams *chaincfg.Params) (*swap.Htlc, error)
GetHtlc composes and returns the on-chain swap script.
func GetHtlcScriptVersion ¶
func GetHtlcScriptVersion( protocolVersion loopdb.ProtocolVersion) swap.ScriptVersion
GetHtlcScriptVersion returns the correct HTLC script version for the passed protocol version.
func MuSig2Sign ¶
func MuSig2Sign(version input.MuSig2Version, privKeys []*btcec.PrivateKey, pubKeys []*btcec.PublicKey, tweaks *input.MuSig2Tweaks, msg [32]byte) ([]byte, error)
MuSig2Sign will create a MuSig2 signature for the passed message using the passed private keys.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.