diff options
author | Alex Auvolat <alex@adnab.me> | 2018-10-10 15:04:11 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-10-10 15:04:11 +0200 |
commit | 1ee9c3fa6d4259d63685aea95d23b515f59a74cf (patch) | |
tree | 418decf98286040d67aa11533092f1bcf0a996e5 /shard/config | |
parent | 3ba44d72a09d3da72d0dd3e495e5cdea07a0bdac (diff) | |
download | shard-1ee9c3fa6d4259d63685aea95d23b515f59a74cf.tar.gz shard-1ee9c3fa6d4259d63685aea95d23b515f59a74cf.zip |
BROKE EVERYTHING SORRY
Diffstat (limited to 'shard/config')
-rw-r--r-- | shard/config/config.exs | 13 |
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 # =============== |