This:
- Gets a quote from nilvm for secret storage
- Pays for the operation via nilchain
- Stores a secret by passing the receipt + value
- Gets a quote from nilvm for secret retrieval
- Pays for the operation via nilchain
- Retrieves the secret value
- Logs each step to the console and then prints everything out in the browser
Until https://github.com/NillionNetwork/nillion/pull/1780 is merged you will need to run the devnet from
the feat/nillion-devnet-proxy-cors-headers
branch. From the root of the nillion repo:
cd nillion
git fetch
git checkout -t origin/feat/nillion-devnet-proxy-cors-headers
cargo run -p nillion-devnet -- --seed nillion-devnet
cd nilly
npm install
npm run start
- Open http://localhost:8080
- Open dev tools
- If you see the secret number then it worked: