[[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
Congratulations on completing your Nillion Hacktoberfest Challenge π₯³ π π
Thank you for taking the time to be a part of Hacktoberfest 2024! π π₯³ π
We are looking for contributors for the Examples (Community) Section in Awesome Nillion.
π¨ First things first π¨
Make sure you are registered at Hacktoberfest.
If you ever get stuck, feel free to ask any questions in our Github Discussion.
Quickstart Guide
...
CLI
npx @nillion/create-nillion-app
and then follow the CLI instructionscd
into your folder and runnpm run dev
to start your dev server + your app should appear onlocalhost:3000
nillion-devnet
in 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 nada
to go into your nada folder and runsource .venv/bin/activate
pip install --upgrade nada-dsl
to install Nada DSLNow that our Python environment is ready, we will create a
secret_addition
Nada Program -- you may also follow along this section.touch src/secret_addition.py
nada-project.toml
config filenada build
to build your programnada generate-test --test-name secret_addition_test secret_addition
to generate testsnada run secret_addition_test
to run the programnada test secret_addition_test
to run the testsConnecting the Next.js app <> Nada Program
nada/src/target/secret_addition.nada.bin
programID
and use it in the Compute sectioncomputeOutputID
and use it in the Compute Output sectionWrapping up
Other
Add other issues here.