Skip to content

Commit 47ac8a5

Browse files
authored
Add JWT secrets (#5)
1 parent cddab73 commit 47ac8a5

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

scripts/common_tools.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh
22

33
STAKER_GLOBAL_ENVS="EXECUTION_CLIENT CONSENSUS_CLIENT MEVBOOST"
4+
AVAILABLE_NETWORKS="mainnet holesky gnosis lukso sepolia"
45

56
# Internal function to add a flag to EXTRA_OPTS if it's not already included
67
#
@@ -74,6 +75,36 @@ get_client_network_alias() {
7475
echo "${client_alias}.dappnode"
7576
}
7677

78+
get_jwt_secret_by_network() {
79+
network=$1
80+
81+
case $network in
82+
mainnet)
83+
jwt="7ad9cfdec75eceb662f5e48f5765701c17f51a5233a60fbcfa5f9e4000000001"
84+
;;
85+
holesky)
86+
jwt="7ad9cfdec75eceb662f5e48f5765701c17f51a5233a60fbcfa5f9e4000004268"
87+
;;
88+
gnosis)
89+
jwt="7ad9cfdec75eceb662f5e48f5765701c17f51a5233a60fbcfa5f9e4000000064"
90+
;;
91+
lukso)
92+
jwt="7ad9cfdec75eceb662f5e48f5765701c17f51a5233a60fbcfa5f9e400000002a"
93+
;;
94+
sepolia)
95+
jwt="7ad9cfdec75eceb662f5e48f5765701c17f51a5233a60fbcfa5f9e4000aa36a7"
96+
;;
97+
*)
98+
echo "[ERROR - entrypoint] NETWORK $network is not supported" >&2
99+
exit 1
100+
;;
101+
esac
102+
103+
echo "[INFO - entrypoint] JWT secret for $network is: $jwt" >&2
104+
105+
echo "$jwt"
106+
}
107+
77108
get_web3signer_domain() {
78109
network=$1
79110
supported_networks=$2

0 commit comments

Comments
 (0)