2023-11-07 18:01:28 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if test -f ./keystore/keystore.json; then
|
|
|
|
echo "keystore/keystore.json alredy exists. Use it instead of creating a new one."
|
|
|
|
echo "Exiting"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# TODO: Set nwaku release when ready instead of quay
|
|
|
|
|
2023-11-09 08:44:21 +00:00
|
|
|
docker run -v $(pwd)/keystore:/keystore/:Z quay.io/wakuorg/nwaku-pr:2189 generateRlnKeystore \
|
|
|
|
--rln-relay-eth-client-address=${ETH_CLIENT_ADDRESS} \
|
|
|
|
--rln-relay-eth-private-key=${ETH_TESTNET_KEY} \
|
2023-11-07 18:01:28 +00:00
|
|
|
--rln-relay-eth-contract-address=0xF471d71E9b1455bBF4b85d475afb9BB0954A29c4 \
|
|
|
|
--rln-relay-cred-path=/keystore/keystore.json \
|
2023-11-09 08:44:21 +00:00
|
|
|
--rln-relay-cred-password=${KEYSTORE_PASSWORD} \
|
|
|
|
--execute
|