This is a GitHub repository created to accompany this livestream.
It's 2023 and everyone is cuckoo for points. So I thought a fun workshop project would be to build a retro CLI points advent calendar.
This project:
- Permanently stores Proof of Points using Irys SDK
- Verifies point counts using Irys signed receipts
- Generates real-time point counts with Irys query package
- Makes an old-school CLI ... just for fun
- Clone this repository
- Change
.env.example
to.env
and add a EVM private key. This can be a throwaway key and does not need to be funded, it is only used to sign transactions npm install
node scripts/pointmass.js ______
And add a EVM wallet address
There are two main files in this project:
scripts/pointmass.js
- CLI UI build using blessedscripts/pointmass-irys.js
- Functions to store points onchain using Irys and query point counts using the Irys query package
So, yeah, this is a demo. Everything executes on the client side, including storage of points and random number generation. That's obviously not very secure, but it makes it easiser when teaching. There's a lot you'd want to do if you were actually going to use this to release a point promotion, first off you'd move the Irys functions to the server where you could control the code.