https://github.com/fluencelabs/dev-rewards
https://github.com/fluencelabs/dev-rewards
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fluencelabs/dev-rewards
- Owner: fluencelabs
- License: apache-2.0
- Created: 2024-02-27T12:12:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-23T20:07:27.000Z (almost 2 years ago)
- Last Synced: 2025-06-09T23:08:58.187Z (about 1 year ago)
- Language: Python
- Size: 121 KB
- Stars: 571
- Watchers: 10
- Forks: 371
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fluence Developer Rewards
This repo allows one to generate a proof signature for Fluence dev reward claiming.
> [!CAUTION]
> Beware of scam emails, asking you to generate proofs for someone! See [#98](https://github.com/fluencelabs/dev-rewards/pull/98).
The methods for generating signature are described below:
## Generate proof in docker
1. Build docker image
> `docker build -t dev-reward-script .`
2. If your ssh keys are in ~/.ssh, run the script:
> `docker run -it --rm --network none -v ~/.ssh:/root/.ssh:ro dev-reward-script`
If your ssh keys are in other directories, replace
{dir_path_for_your_ssh_keys} with your directory path:
> `docker run -it --rm --network none -v /{dir_path_for_your_ssh_keys}:/root/.ssh:ro dev-reward-script`
## Generate proof via local sh script
1. Install dependencies
> `./install.sh`
2. Run the script
> `./proof-sh/proof.sh`
## Generate proof via local python script
1. Install python
> https://www.python.org/downloads/
2. Install dependencies
> `./install.sh`
> `python3 -m venv claim-venv`
> `source claim-venv/bin/activate`
> `pip3 install -r python/requirements.txt`
3. Run the script
> `python3 python/proof.py`
## Generate proof through a website
1. Enter the `web` directory
> cd web
2. Download the metadata.json file
> curl https://fluence-dao.s3.eu-west-1.amazonaws.com/metadata.json > metadata.json
3. Spin up an HTTP server
> python3 -m http.server
4. Open `http://127.0.0.1:8000` in your browser and follow the instructions
## Notes:
Also check out [paranoid](./MANUAL_INSTRUCTIONS.md) instruction
in case you have any security concerns regarding the methods above.