-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature option_scid_alias
separate from zero-conf
#923
Conversation
This is an alternative to lightning#910, it is very close with the following changes: - make zero-conf and `scid` `alias` independent Fundee may signal that it is willing to trust the funder by setting `minimum_depth` to zero, but that's unenforceable anyway. - make `scid` `alias` and channel announcement independent There is no reason to advertize the "real" `scid` in `funding_locked`, because the real `scid` is already provided in `announcement_signatures` - have nodes only advertise their ability to understand `scid` `alias` (feature `option_scid_alias`) If this feature is negotiated (both peers support it), then they must only use `alias`es (but that's unenforceable). - accept that some combinations don't make sense, like "zero-conf without alias", or "alias and public channels"
Some thoughts:
|
I think the notion of "zero-conf" and "private/public" should be kept completely separate: private zero-conf channels stay private, public zero-conf channels stay public. Maybe it makes sense to support making channels go
That would be a spec violation though: if both peers support |
Ah I see
What happens if an alias is not received? |
I'm a bit confused why this was opened as a new PR instead of discussing the requirements/changes you want here? I mean PRs are great, but but it seems if there's disagreement its a better use of everyone's time to hash it out in discussion first - there's alreay three PRs for this and a seeming lack of discussion around requirements.
Why? You need an SCID alias in order for this to work, presumably?
Did you see my comment on 970? Should this be a channel type instead?
One question on this - do we want to support this with an assumption that in the future we'll have public key aliases as well? Like, for non-routing payments that are just to the final node over a public channel, we may want to support that lost hop being "private" by having an alias, and if we support it here the only requirement is a public key alias which can come separately. |
This is a follow up of #910 (review) detailing what I had in mind. Just easier to actually write it than explain with a lot of words -- and I think easier to understand the proposed changes too. But I get your point about further dividing the discussion, could have just linked a branch to the same effect. Doing that now and addressing your comments there. |
This is an alternative to #910, it is very close with the following changes:
make zero-conf and
scid
alias
independentFundee may signal that it is willing to trust the funder by setting
minimum_depth
to zero, but that's unenforceable anyway.make
scid
alias
and channel announcement independentThere is no reason to advertize the "real"
scid
infunding_locked
, because the realscid
is already provided inannouncement_signatures
have nodes only advertise their ability to understand
scid
alias
(featureoption_scid_alias
)If this feature is negotiated (both peers support it), then they must only use
alias
es (but that's unenforceable).accept that some combinations don't make sense, like "zero-conf without alias", or "alias and public channels"