Closed dstadulis closed 3 months ago
To address this issue, I think it's sufficient to concentrate on this type introduced in PR https://github.com/lightningnetwork/lnd/pull/8622 :
// AuxFundingDesc stores a series of attributes that may be used to modify the
// way the channel funding occurs
type AuxFundingDesc struct {
// CustomFundingBlob is a custom blob that'll be stored in the database
// within the OpenChannel struct. This should represent information
// static to the channel lifetime.
CustomFundingBlob tlv.Blob
// TapscriptRoot is the root of the tapscript tree that will be used to
// create the funding output.
TapscriptRoot chainhash.Hash
// CustomLocalCommitBlob is a custom blob that'll be stored in the
// first commitment entry for the local party.
CustomLocalCommitBlob tlv.Blob
// CustomRemoteCommitBlob is a custom blob that'll be stored in the
// first commitment entry for the remote party.
//
// TODO(roasbeef): have this just use the leaf fetcher?
CustomRemoteCommitBlob tlv.Blob
// InitAuxLeaves is the set of aux leaves that'll be used for the very
// first commitment state.
InitAuxLeaves CommitAuxLeaves
}
And then the question becomes: are those fields sufficient to setup a tap payment channel? I think the answer is yes. Do you agree @guggero ? Is there anything else we need to consider here?
And then the question becomes: are those fields sufficient to setup a tap payment channel? I think the answer is yes. Do you agree @guggero ?
Yes, I think answering that question by implementing the MsgRouter
and AuxFundingController
is the main task of this issue.
And then the question becomes: are those fields sufficient to setup a tap payment channel? I think the answer is yes. Do you agree @guggero ?
Yes, I think answering that question by implementing the
MsgRouter
andAuxFundingController
is the main task of this issue.
Oh I thought this issue was about checking that the AuxFundingController
setup was flexible enough for tap. Rather than the actually implementing for tap. Ah I think you want to check by implementing.
I've unassigned myself. There is nothing for me to do here. Oli is writing the code for this issue.
https://github.com/lightningnetwork/lnd/pull/8622 Adds AuxFundingController functionality to lnd and relies on a new MsgRouter to intercept messages passed over the wire for use in processing/arbitrating tap channel state.
Editable deliverable list tapd would need
Design implementation commentary: