Use predefined public key for mixnodes
This commit is contained in:
parent
98b59edf1a
commit
ddc79f2b0e
|
@ -24,6 +24,9 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- bootstrap
|
- bootstrap
|
||||||
- etcd
|
- etcd
|
||||||
|
- mix-node-0
|
||||||
|
- mix-node-1
|
||||||
|
- mix-node-2
|
||||||
environment:
|
environment:
|
||||||
- LIBP2P_REPLICAS=${DOCKER_COMPOSE_LIBP2P_REPLICAS:-1}
|
- LIBP2P_REPLICAS=${DOCKER_COMPOSE_LIBP2P_REPLICAS:-1}
|
||||||
- ETCDCTL_ENDPOINTS=${DOCKER_COMPOSE_ETCDCTL_ENDPOINTS:-etcd:2379}
|
- ETCDCTL_ENDPOINTS=${DOCKER_COMPOSE_ETCDCTL_ENDPOINTS:-etcd:2379}
|
||||||
|
|
|
@ -23,7 +23,7 @@ network:
|
||||||
log_level: "fatal"
|
log_level: "fatal"
|
||||||
node_key: "0000000000000000000000000000000000000000000000000000000000000001"
|
node_key: "0000000000000000000000000000000000000000000000000000000000000001"
|
||||||
discV5BootstrapNodes: []
|
discV5BootstrapNodes: []
|
||||||
initial_peers: []
|
initial_peers: ["/dns/bootstrap/tcp/3000"]
|
||||||
relayTopics: []
|
relayTopics: []
|
||||||
# Mixclient configuration to communicate with mixnodes.
|
# Mixclient configuration to communicate with mixnodes.
|
||||||
# The libp2p network backend always requires this mixclient configuration
|
# The libp2p network backend always requires this mixclient configuration
|
||||||
|
@ -40,11 +40,16 @@ network:
|
||||||
layers:
|
layers:
|
||||||
- nodes:
|
- nodes:
|
||||||
- address: mix-node-0:7777 # A listen address of the mixnode
|
- 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
|
- 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
|
- 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.
|
# A max number of connections that will stay connected to mixnodes in the first mixnet layer.
|
||||||
connection_pool_size: 255
|
connection_pool_size: 255
|
||||||
max_retries: 5
|
max_retries: 5
|
||||||
|
|
|
@ -7,7 +7,7 @@ mixnode:
|
||||||
client_listen_address: 0.0.0.0:7778
|
client_listen_address: 0.0.0.0:7778
|
||||||
# A ed25519 private key for decrypting inbound Sphinx packets
|
# A ed25519 private key for decrypting inbound Sphinx packets
|
||||||
# received from mixclients or mixnodes in the previous mixnet layer.
|
# 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.
|
# A max number of connections that will stay connected to mixnodes in the next layer.
|
||||||
connection_pool_size: 255
|
connection_pool_size: 255
|
||||||
log:
|
log:
|
||||||
|
|
Loading…
Reference in New Issue