Skip to content

Gossip #5

@nepet

Description

@nepet

As we already discussed on discord we need to have a way to explore PeerSwap enabled nodes.

Why

In order to utilize PeerSwap, a node operator needs a way to find other PeerSwap enabled nodes in the network. We want to explore the network but we also do not want to extend the gossip bolt#07 as PeerSwap does not need to touch any other bolt and can be run as a plugin on top of the lightning network.

How

Here is an Idea I'd like to share - contains some things we already talked about, lets just save this here:

We set a feature bit, as described in bolt#9 in the node_announcement message. This way we could utilize the gossip to explore nodes that announced that they support the PeerSwap protocol.

We now could connect to every node that has the PeerSwap enabled flag set but we might not want to. We rather would like to only connect to nodes of certain interest, e.g. nodes that have good rates or that support assets we are interested in.

Therefore we need a custom message protocol that allows for communication outside of the bolts. This could be done quite simple with a PeerSwap gossip port that listens for incoming (signed) queries and returns a signed message to the requester containing more swap info.

Please share your thoughts, ideas and suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions