🆕 Nillion SDK Release v0.6.0 #123
oceans404
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What’s new
nada-test
, a new Nada testing framework with enhanced features like ordered inputs/outputs and execution results in test files.⛓️💥 Breaking changes
Developers will need to upgrade to the latest versions of the Nillion SDK and Nillion Clients due to breaking changes:
nillion
tools will not work until they are recompiled with the latest version of the nillion SDK. Please follow the upgrade steps to recompile your programs.nada test
tool has been updated, and older test files will no longer be compatible. You must regenerate all test files using the new format. Refer to the upgrade steps for detailed instructions on how to generate the new test files.📋 How to upgrade
Upgrade to the latest SDK version using nilup], the installer and version manager for the Nillion SDK
Upgrade Python packages: Nada, Python Client, and other Nillion libraries
Upgrade JavaScript packages: ts-client
Version 0.6.0 introduces updates to nada test, and removes the need to define a Nada value’s type within the test file. Re-generate nada test files with this command:
Nada test file before 0.6.0
Nada test file after 0.6.0
Re-compile all Nada programs
Python Client users should update their Python .env to use the recommended Lavender Five GRPC endpoint.
Previous GRPC:
65.109.228.73:9090
Recommended GRPC:
https://testnet-nillion-grpc.lavenderfive.com
Store all re-compiled Nada programs (using the new [program].nada.bin binary files) on the Nillion Testnet (Photon or Nucleus) - endpoints haven’t changed
🔧 New feature descriptions & resources
Metrics flag for nada run
We’ve introduced a new --metrics flag for the nada run command, allowing you to capture detailed test execution metrics in text, a yaml file, or a json file. This feature helps developers analyze program performance and protocol efficiency.
Benchmarking tool for Nada CLI
Our new Nada CLI benchmarking tool allows you to evaluate the performance of your programs across multiple runs. The benchmark summary includes test duration, number of protocol rounds, round data, preprocessing elements, local operations executed, and online protocol steps.
NOT (~) Nada Operator
The NOT operator, represented by the tilde symbol (~), is used in the Nada DSL to invert or negate a boolean value. When applied to a boolean expression, the ~ operator flips its value—turning True to False and False to True.
Nada-Test Framework
nada-test
is a testing framework designed for Nada programs, allowing you to write tests in a simple and flexible way. Unlike the static YAML test files that can be generated with thenada
tool, nada-test generates dynamic tests at runtime based on the test functions you write, offering greater flexibility.Retrieve Permissions API
The Retrieve Permissions API lets you access the current permissions associated with your secret data and check if a user has access to an operation. Use this feature to check who has retrieval rights before performing operations, ensuring that your security policies are enforced.
Beta Was this translation helpful? Give feedback.
All reactions