loopout: create LoopOutSwapInfo struct

This commit is contained in:
Joost Jager 2020-06-30 13:45:12 +02:00
parent c6c30e2988
commit 68012f051a
No known key found for this signature in database
GPG key ID: A61B9D4C393C59C7
4 changed files with 27 additions and 14 deletions

View file

@ -250,6 +250,17 @@ type LoopInSwapInfo struct { // nolint
HtlcAddressNP2WSH btcutil.Address
}
// LoopOutSwapInfo contains essential information of a loop-out swap after the
// swap is initiated.
type LoopOutSwapInfo struct { // nolint:golint
// SwapHash contains the sha256 hash of the swap preimage.
SwapHash lntypes.Hash
// HtlcAddressP2WSH contains the native segwit swap htlc address that
// the server will publish to.
HtlcAddressP2WSH btcutil.Address
}
// SwapInfoKit contains common swap info fields.
type SwapInfoKit struct {
// Hash is the sha256 hash of the preimage that unlocks the htlcs. It