You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[[programs]]
path = "src/secret_addition.py"
name = "secret_addition"
prime_size = 128
It should end up looking like:
name = "nada"
version = "0.1.0"
authors = [""]
[[programs]]
path = "src/secret_addition.py"
name = "secret_addition"
prime_size = 128
nada build to build your program
nada generate-test --test-name secret_addition_test secret_addition to generate tests
nada run secret_addition_test to run the program
nada test secret_addition_test to run the tests
Connecting the Next.js app <> Nada Program
Upload your program from your nada/src/target/secret_addition.nada.bin
Copy the programID and use it in the Compute section
Copy the computeOutputID and use it in the Compute Output section
Congratulations! You have run the Nada Program via your frontend 🎉
Wrapping up
Host your github on a public repository
Once you are finished, create a PR on this repo (awesome-nillion) to be added to the community page -- see this example + answer the questions from the example
Thank you for taking the time to be a part of the Create Blind App Challenge! 🎉 🥳 🎉
We are looking for contributors for the Examples (Community) Section in Awesome Nillion.
🚨 First things first 🚨
If you ever get stuck, feel free to ask any questions in our Github Discussion.
Quickstart Guide
CNA_quickstart.mp4
CLI
npx @nillion/create-nillion-appand then follow the CLI instructionscdinto your folder and runnpm run devto start your dev server + your app should appear onlocalhost:3000nillion-devnetin another terminal windowCreating a Simple Nada app
Now let's get started with the magic of Nada! 🧙♂️ First, let's set it up our environment.
cd nadato go into your nada folder and runsource .venv/bin/activatepip install --upgrade nada-dslto install Nada DSLNow that our Python environment is ready, we will create a
secret_additionNada Program -- you may also follow along this section.touch src/secret_addition.pynada-project.tomlconfig fileIt should end up looking like:
nada buildto build your programnada generate-test --test-name secret_addition_test secret_additionto generate testsnada run secret_addition_testto run the programnada test secret_addition_testto run the testsConnecting the Next.js app <> Nada Program
nada/src/target/secret_addition.nada.binprogramIDand use it in the Compute sectioncomputeOutputIDand use it in the Compute Output sectionWrapping up