Use predefined public key for mixnodes

This commit is contained in:
Gusto 2023-10-17 14:08:15 +03:00
parent 98b59edf1a
commit ddc79f2b0e
3 changed files with 13 additions and 5 deletions

View File

@ -24,6 +24,9 @@ services:
depends_on:
- bootstrap
- etcd
- mix-node-0
- mix-node-1
- mix-node-2
environment:
- LIBP2P_REPLICAS=${DOCKER_COMPOSE_LIBP2P_REPLICAS:-1}
- ETCDCTL_ENDPOINTS=${DOCKER_COMPOSE_ETCDCTL_ENDPOINTS:-etcd:2379}

View File

@ -23,7 +23,7 @@ network:
log_level: "fatal"
node_key: "0000000000000000000000000000000000000000000000000000000000000001"
discV5BootstrapNodes: []
initial_peers: []
initial_peers: ["/dns/bootstrap/tcp/3000"]
relayTopics: []
# Mixclient configuration to communicate with mixnodes.
# The libp2p network backend always requires this mixclient configuration
@ -40,11 +40,16 @@ network:
layers:
- nodes:
- address: mix-node-0:7777 # A listen address of the mixnode
public_key: "0000000000000000000000000000000000000000000000000000000000000000"
public_key: "fd3384e132ad02a56c78f45547ee40038dc79002b90d29ed90e08eee762ae715"
- nodes:
- address: mix-node-1:7777 # A listen address of the mixnode
public_key: "0000000000000000000000000000000000000000000000000000000000000000"
public_key: "fd3384e132ad02a56c78f45547ee40038dc79002b90d29ed90e08eee762ae715"
- nodes:
- address: mix-node-2:7777 # A listen address of the mixnode
public_key: "0000000000000000000000000000000000000000000000000000000000000000"
public_key: "fd3384e132ad02a56c78f45547ee40038dc79002b90d29ed90e08eee762ae715"
# A max number of connections that will stay connected to mixnodes in the first mixnet layer.
connection_pool_size: 255
max_retries: 5

View File

@ -7,7 +7,7 @@ mixnode:
client_listen_address: 0.0.0.0:7778
# A ed25519 private key for decrypting inbound Sphinx packets
# received from mixclients or mixnodes in the previous mixnet layer.
private_key: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
private_key: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
# A max number of connections that will stay connected to mixnodes in the next layer.
connection_pool_size: 255
log: