https://github.com/rayniel95/giftlist
My solution to week 2 project of Alchemy University.
https://github.com/rayniel95/giftlist
alchemy-university blockchain cryptography docker express nextjs react reactjs web3
Last synced: 2 months ago
JSON representation
My solution to week 2 project of Alchemy University.
- Host: GitHub
- URL: https://github.com/rayniel95/giftlist
- Owner: rayniel95
- Created: 2023-05-20T21:14:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T02:01:56.000Z (almost 2 years ago)
- Last Synced: 2025-01-17T04:13:19.531Z (4 months ago)
- Topics: alchemy-university, blockchain, cryptography, docker, express, nextjs, react, reactjs, web3
- Language: JavaScript
- Homepage: https://rayniel95.github.io/GiftList/
- Size: 180 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# About
## GiftListThis project is an application which gives out gifts, but only to names [on the list](https://github.com/ChainShot/GiftList/blob/main/utils/niceList.json). The catch is that on the server you are only allowed to store one **32 byte value** in the server memory. This 32 byte value has to be enough for the server to be able to determine who is [on the list](https://github.com/ChainShot/GiftList/blob/main/server/index.js#L10).
The **client** is the **prover** here. They are the ones trying to prove to the server that the one name is in the list. Likewise think of the **server** as the **verifier** here. They are taking the client's proof and, using minimal information, able to verify that the name sent from the client is actually in the list.
## Requirements
- Docker
## Hot to execute
### Steps to create the Nextjs client1. Go to https://rayniel95.github.io/GiftList/
### Steps to create the node server
1. Install [Docker](https://www.docker.com/)
2. Download the project
3. Open a terminal in the project folder
4. Build the image, execute: `docker build ./ -f Dockerfile-node -t server-node`
5. Run the container, execute: `docker run -it -p 1225:1225 server-node`## How it works

### Demo[Watch the demo in Youtube](https://youtu.be/7YLYQ4dOur0)
Watch the code explanation in on Youtube
### TODO
- [ ] add golang server
- [ ] add rust server
- [ ] add a demo