taproot gossip
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 22/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- rust
- Ambito
- backend, blockchain, networking
Direzione di ricerca
This is a protocol-wide gossip v2 / taproot implementation, not a first issue. Start from the linked BOLTs PR 1059 and the checklist in the issue body: new ChannelAnnouncementV2 / ChannelUpdateV2 / NodeAnnouncementV2 types, TLV serialization (including unknown odd TLVs), NetworkGraph dual v1/v2 storage, P2PGossipSync handlers, UtxoLookup outpoint+SCID checks, and ChannelReady nonce / AnnouncementSignaturesV2 for option_gossip_v2_p2wsh. Done means those features are implemented and messages can be verified, stored, and forwarded; option_gossip_announce_private is out of the first iteration.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Issue for taproot gossip - https://github.com/lightning/bolts/pull/1059
The upgrade specifies three distinct features:
option_gossip_v2(70/71) node understands gossip v2 messagesoption_gossip_v2_p2wsh(72/73) node can announce P2WSH channels through the v2 protocoloption_gossip_announce_private(74/75) node is able to announce a previously unannounced channel.
For an initial iteration, I think features option_gossip_v2 and option_gossip_v2_p2wsh could be covered
as option_gossip_announce_private is somewhat orthogonal to the new gossip protocol.
I started sketching out the changes that I think would be needed. Comments welcomed. If there is interest in adding it to LDK, I can work on it.
For option_gossip_v2 feature
- Add v2 types
ChannelAnnouncementV2,ChannelUpdateV2andNodeAnnouncementV2- add
CommonFieldsforchannel_update/_2andchannel_announcement/_2fields in common
- add
- Serialization of new message types added. Since
v2messages are pure TLV streams, we can add
a new serialization macro similar toencode_tlv_streambut that can encode unknown TLVs. This is
needed if we received an unknown odd TLV that was in the signed range. I looked at the BOLT-12
code since the structs there are also TLV streams but IIUC, those keep a separatebytesfield
that is the serialized struct if there are any unknown fields that need to be preserved. Given
that we need to persist these messages (for later forwarding), I think it's better to keep a
separateexcess_tlvsof unknown fields and serialize them ensuring they are kept in the correct
ascending order to avoid storing those duplicate bytes. - Integrate new v2 message types into
NetworkGraphNote: While the network upgrades, this will require storing both
v1 and v2 messages. - Handlers for new messages -
handle_channel_announcement_v2, channel update and node announcement v2 versions toP2PGossipSync- Apply block-height based rate limits for
channel_update_2andnode_announcement_2
- Apply block-height based rate limits for
- Handle inbound fees
- Extend
GossipTimestampFilterto include block height range TLV. - Add v2 messages to
Messageenum in the wire - Forward v2 messages
Channel verification
-
UtxoLookupchanges. This trait is used to lookup UTXOs backing channels but is somewhat
specific for v1 in that it only allows for querying by SCID.channel_announcement_2message
will also include an outpoint so a node with bitcoind backend with txindex enabled can query
for it. This also requires verifying that both the outpoint and the SCID point to the same
output. We can add a new method toUtxoLookupand the RPC/rest client impls. - MuSig2 key aggregation helper
-
MsgHashfunction for constructing the message to sign
For option_gossip_v2_p2wsh feature
- Add
announcement_node_pubnonceandannouncement_bitcoin_pubnonceTLV fields toChannelReady- If
option_gossip_v2andoption_gossip_v2_p2wshfeature bits have been negotiated, exchange
nonces inchannel_ready. For new P2WSH channels this should be straightforward if both nodes support the feature.
For old channels that have already been announced in current gossip protocol, it would require some handling
to advertise the already existing channel with new protocol. - Similar nonce exchange extension for
splice_lockedafter a splice has been confirmed.
- If
- Add
AnnouncementSignaturesV2message type. Needs calculating partial signatures - Aggregate partial signatures
- Sign
channel_announcement_2messages - Extend
UnsignedGossipMessageto include v2 messageschannel_update_2andnode_announcement_2. Used byNodeSignertosign_gossip_message - Handle
update_channel_configcalls from user if this generates more updates than the rate limit of one update per block
- Lingua principale
- Rust
- Stelle
- 1.4k
- Fork
- 482
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lightningdevkit/rust-lightning
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
lightningdevkit/rust-lightning#4767 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
lightningdevkit/rust-lightning#1849 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
lightningdevkit/rust-lightning#4764 · 3 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 22/100
lightningdevkit/rust-lightning#4757 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
lightningdevkit/rust-lightning#4739 ·
Tutte le issue di lightningdevkit/rust-lightning
Issue simili
-
bug help wanted ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
userFRM/egui-charts#4292 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
Tripstack-Corp/spyc#1352 ·
I maintainer di solito rispondono entro 1 giorno
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
area:tui enhancement P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
agent-of-empires/agent-of-empires#6077 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno