Skip to content

Manage multiaddrs between DKG and post-DKG #170

@CluEleSsUK

Description

@CluEleSsUK

When running an ADKG, we provide a multiaddr in the group file for other nodes to connect to us. This same multiaddr is filled into the keyshare.pub file created by the ADKG.

Most dcipher nodes are using this same multiaddr for operating their verifier nodes. This means, if we wish to run another DKG (using the same multiaddrs), they will have to turn off the verifier binary which could cause downtime.

Here are a few pros and cons of different ideas:

rewrite the config file multiaddrs before running a verifier
This is the most flexible, though relies on committee members typing things in correctly/reading the latest slack message/etc. A committee member forgetting to tell us a new multiaddr could cause downtime, and versions of configs get confusing fast.

allow output of a different "listening" port
This would allow committee members to define a "dkg hostname" and a "post-dkg hostname". It'd be convenient for the verifier use case, but in a future world we may want to run multiple binaries using the same keyshare.pub so this wouldn't solve the problem entirely.

multiplexing of libp2p connections
I'm not sure how possible this is, but if we could multiplex different libp2p connections/protocols/messages onto different hosts, everything would be solved. This is easy in HTTP land by just using different contexts, but I'm not sure it's so easy with libp2p

Open to other ideas

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions