mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-05 11:34:45 +00:00
chore(RLN-Relay): onchain rln-relay chat2 testnet editorial feadbacks
Signed-off-by: sanaz <staheri14@ku.edu.tr> adds a newline fixe a minor spacing issue
This commit is contained in:
parent
7a30e485ec
commit
f373f8bc56
BIN
docs/tutorial/imgs/infura-dashboard-mainnet.png
Normal file
BIN
docs/tutorial/imgs/infura-dashboard-mainnet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 273 KiB |
@ -50,7 +50,6 @@ Run the following command to set up your chat2 client.
|
||||
|
||||
```
|
||||
./build/chat2 --fleet:test --content-topic:/toy-chat/2/luzhou/proto --rln-relay:true --rln-relay-dynamic:true --eth-mem-contract-address:0x4252105670fe33d2947e8ead304969849e64f2a6 --eth-account-address:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --eth-account-privatekey:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --eth-client-address:xxxx --ports-shift=1
|
||||
|
||||
```
|
||||
|
||||
In this command
|
||||
@ -65,7 +64,7 @@ In this command
|
||||
It is a hex string of length 40 (not sensitive to the `0x` prefix).
|
||||
- the `eth-account-privatekey` option is for your account private key on the Goerli testnet.
|
||||
It is made up of 64 hex characters (not sensitive to the `0x` prefix).
|
||||
- the `eth-client-address` should be assigned with the address of the hosted node on the Goerli testnet.
|
||||
- the `eth-client-address` is the websocket address of the hosted node on the Goerli testnet.
|
||||
You need to replace the `xxxx` with the actual node's address.
|
||||
|
||||
For the last three config options i.e., `eth-account-address`, `eth-account-privatekey`, and `eth-client-address`, if you do not know how to obtain those, you may use the following tutorial on the [prerequisites of running on-chain spam-protected chat2](./pre-requisites-of-running-on-chain-spam-protected-chat2.md).
|
||||
@ -114,7 +113,7 @@ The RLN identity key is not shown in the figure (replaced by a string of `x`s) f
|
||||
But, you will see your RLN identity key.
|
||||
|
||||
```
|
||||
your membership index is: 63
|
||||
your membership index is: xx
|
||||
your RLN identity key is: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
your RLN identity commitment key is: 6c6598126ba10d1b70100893b76d7f8d7343eeb8f5ecfd48371b421c5aa6f012
|
||||
```
|
||||
@ -156,7 +155,7 @@ quitting...
|
||||
You may reuse your old RLN credential using `rln-relay-membership-index`, `rln-relay-id` and `rln-relay-id-commitment` options.
|
||||
For instance, if the previously generated credential are
|
||||
```
|
||||
your membership index is: 63
|
||||
your membership index is: xx
|
||||
your rln identity key is: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
your rln identity commitment key is: 6c6598126ba10d1b70100893b76d7f8d7343eeb8f5ecfd48371b421c5aa6f012
|
||||
```
|
||||
@ -201,7 +200,7 @@ Connecting to storenode: 16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm
|
||||
<Jun 29, 16:15> b: hi
|
||||
<Jun 29, 16:15> h: hi
|
||||
rln-relay preparation is in progress ...
|
||||
your membership index is: 66
|
||||
your membership index is: xx
|
||||
your rln identity key is: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
your rln identity commitment key is: bd093cbf14fb933d53f596c33f98b3df83b7e9f7a1906cf4355fac712077cb28
|
||||
>> message1
|
||||
@ -232,7 +231,7 @@ Listening on
|
||||
Store enabled, but no store nodes configured. Choosing one at random from discovered peers
|
||||
Connecting to storenode: 16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm
|
||||
rln-relay preparation is in progress ...
|
||||
your membership index is: 65
|
||||
your membership index is: xx
|
||||
your rln identity key is: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
your rln identity commitment key is: d4961a7681521730bc7f9ade185c632b94b70624b2e87e21a97c07b83353f306
|
||||
>> <Jul 26, 13:05> Alice: message1
|
||||
|
@ -64,7 +64,7 @@ Obtain Goerli Ethers from faucet
|
||||
1. [https://goerlifaucet.com/](https://goerlifaucet.com/)
|
||||
2. [https://goerli-faucet.slock.it/](https://goerli-faucet.slock.it/)
|
||||
3. [https://goerli-faucet.pk910.de/](https://goerli-faucet.pk910.de/)
|
||||
(NOTE: We have not tested the security of these faucets so please feel free to do your own research or obtain Gorli ethers from other faucets if needed.)
|
||||
(NOTE: We have not tested the security of these faucets so please feel free to do your own research or obtain Goerli ethers from other faucets if needed.)
|
||||
3. Please follow the instructions on the webpages of these faucets.
|
||||
4. A lot of faucets limit the Goerli ETH to 0.05 ETH/day.
|
||||
5. To obtain more eth, you can do some POW mining. One of those POW faucet is:
|
||||
@ -99,9 +99,9 @@ Setting up a hosted node on Goerli Testnet using Infura
|
||||
|
||||
3. After creating the project, you will be presented with a dashboard like follows. Note that your Project Id and secret will be different.
|
||||
|
||||
![](https://i.imgur.com/PfGmq4i.jpg)
|
||||
![](imgs/infura-dashboard-mainnet.png)
|
||||
|
||||
ß4. Select Gorli network in Endpoints.
|
||||
4. Select Goerli network in Endpoints.
|
||||
|
||||
![](https://i.imgur.com/RgmH7C1.png)
|
||||
|
||||
|
@ -1053,7 +1053,7 @@ proc readPersistentRlnCredentials*(path: string) : RlnMembershipCredentials {.ra
|
||||
|
||||
proc mountRlnRelay*(node: WakuNode, conf: WakuNodeConf|Chat2Conf, spamHandler: Option[SpamHandler] = none(SpamHandler)) {.raises: [Defect, ValueError, IOError, CatchableError, Exception].} =
|
||||
if not conf.rlnRelayDynamic:
|
||||
info " setting up waku-rln-relay in on-chain mode... "
|
||||
info " setting up waku-rln-relay in off-chain mode... "
|
||||
# set up rln relay inputs
|
||||
let (groupOpt, memKeyPairOpt, memIndexOpt) = rlnRelayStaticSetUp(conf.rlnRelayMemIndex)
|
||||
if memIndexOpt.isNone:
|
||||
|
Loading…
x
Reference in New Issue
Block a user