2023-11-07 18:01:28 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-11-13 11:55:46 +00:00
|
|
|
if test -f $(pwd)/keystore/keystore.json; then
|
2024-01-04 05:04:48 +00:00
|
|
|
echo "keystore/keystore.json already exists. Use it instead of creating a new one."
|
2023-11-07 18:01:28 +00:00
|
|
|
echo "Exiting"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-11-13 11:55:46 +00:00
|
|
|
if test -f .env; then
|
|
|
|
echo "Using .env file"
|
|
|
|
. $(pwd)/.env
|
|
|
|
fi
|
2024-01-04 05:04:48 +00:00
|
|
|
|
2023-11-23 15:49:31 +00:00
|
|
|
# TODO: Set go-waku release when ready
|
2023-11-07 18:01:28 +00:00
|
|
|
|
2023-11-23 15:49:31 +00:00
|
|
|
docker run -v $(pwd)/keystore:/keystore/:Z wakuorg/go-waku:v0.9.0 generate-rln-credentials \
|
|
|
|
--eth-client-address=${ETH_CLIENT_ADDRESS} \
|
|
|
|
--eth-account-private-key=${ETH_TESTNET_KEY} \
|
|
|
|
--eth-contract-address=0xF471d71E9b1455bBF4b85d475afb9BB0954A29c4 \
|
|
|
|
--cred-path=/keystore/keystore.json \
|
2024-01-04 05:04:48 +00:00
|
|
|
--cred-password="${RLN_RELAY_CRED_PASSWORD}"
|
2023-11-07 18:01:28 +00:00
|
|
|
|