aboutsummaryrefslogtreecommitdiff
path: root/shard/config
diff options
context:
space:
mode:
Diffstat (limited to 'shard/config')
-rw-r--r--shard/config/config.exs13
1 files changed, 5 insertions, 8 deletions
diff --git a/shard/config/config.exs b/shard/config/config.exs
index a5aa071..55eda61 100644
--- a/shard/config/config.exs
+++ b/shard/config/config.exs
@@ -22,15 +22,12 @@ use Mix.Config
#
-# Peer id suffix
+# Network secret
# ==============
-# This Shard instance will only connect to other instances that use
-# the same suffix.
-#
-# On first run, the instance will try to generate a peer id that
-# has this suffix. This is done by brute-force testing, therefore
-# it is not recommended to use long suffixes.
-config :shard, peer_id_suffix: "SH"
+# The secret value that identifies the shard network this peer
+# participates in. Used in the secure handshake protocol.
+# Must be 32 bytes long.
+config :shard, network_key: :crypto.hash(:sha256, "ShardTestNet")
# Identity suffix
# ===============