/ README.md
README.md
 1  # Fluence Developer Rewards
 2  
 3  This repo allows one to generate a proof signature for Fluence dev reward claiming.
 4  
 5  > [!CAUTION]
 6  > Beware of scam emails, asking you to generate proofs for someone! See [#98](https://github.com/fluencelabs/dev-rewards/pull/98).
 7  
 8  The methods for generating signature are described below:
 9  
10  ## Generate proof in docker
11  
12  1. Build docker image
13  
14     > `docker build -t dev-reward-script .`
15  
16  2. If your ssh keys are in ~/.ssh, run the script:
17  
18     > `docker run -it --rm --network none -v ~/.ssh:/root/.ssh:ro dev-reward-script`
19  
20     If your ssh keys are in other directories, replace
21     {dir_path_for_your_ssh_keys} with your directory path:
22  
23     > `docker run -it --rm --network none -v /{dir_path_for_your_ssh_keys}:/root/.ssh:ro dev-reward-script`
24  
25  ## Generate proof via local sh script
26  
27  1. Install dependencies
28  
29     > `./install.sh`
30  
31  2. Run the script
32  
33     > `./proof-sh/proof.sh`
34  
35  ## Generate proof via local python script
36  
37  1. Install python
38  
39     > https://www.python.org/downloads/
40  
41  2. Install dependencies
42  
43     > `./install.sh`
44  
45     > `python3 -m venv claim-venv`
46  
47     > `source claim-venv/bin/activate`
48  
49     > `pip3 install -r python/requirements.txt`
50  
51  3. Run the script
52  
53     > `python3 python/proof.py`
54  
55  ## Generate proof through a website
56  
57  1. Enter the `web` directory
58  
59      > cd web
60  
61  2. Download the metadata.json file
62  
63      > curl https://fluence-dao.s3.eu-west-1.amazonaws.com/metadata.json > metadata.json
64  
65  3. Spin up an HTTP server
66  
67      > python3 -m http.server
68  
69  4. Open `http://127.0.0.1:8000` in your browser and follow the instructions
70  
71  ## Notes:
72  
73  Also check out [paranoid](./MANUAL_INSTRUCTIONS.md) instruction
74  in case you have any security concerns regarding the methods above.