convex icon indicating copy to clipboard operation
convex copied to clipboard

Use initial State as network ID

Open mikera opened this issue 4 years ago • 2 comments

We should use the initial state Hash as the network ID when syncing Peers to test compatibility.

If a Peer creates its own local network, it will need to include its own public key in the state, which will guarantee a unique hash compared to the public network or a network created by other private peers.

mikera avatar May 28 '21 06:05 mikera

I've added the initial state Hash to the Peer STATUS response to support this capability. Just need to ensure that relying parties check this appropriately.

mikera avatar May 29 '21 00:05 mikera

@billbsing can you check that this is used and enforced correctly? Might want an integration test where a Peer tries to connect to another Network (should fail)

mikera avatar Jul 02 '21 03:07 mikera