RISC-V instructions
RISC-V defines the instructions a program can use. Tondi specifies which instructions, data access and resource limits its contracts support.
Tondi VM runs smart contracts: programs that define asset and application rules. Each run has resource limits, and the ledger verifies the result before recording changes.
Explore the stepsMilner compiles contract rules into programs for Tondi VM. The VM runs them, and the ledger checks permissions and results before committing the related changes. The walkthrough below explains these steps; it does not compile code or send transactions.
Example rule: allow an action only when its input meets the required condition.
validator gate(minimum: Int) {
authorize(value: Int) {
value >= minimum
}
} Write a contract in Milner. The example allows an action only when its input meets a condition.
RISC-V defines the instructions a program can use. Tondi specifies which instructions, data access and resource limits its contracts support.
Standard signature checks, custom permissions and application rules all run through the same system and have their work counted.
Running instructions, loading code and reading or copying data all count as work. Reusing cached data can save time, but it does not change the amount the protocol charges.
A program returns proposed changes, called Effects. Tondi still checks asset amounts, permissions and other required rules before recording them.
Count the instructions run and the work needed to prepare them.
Limit which records can be read and how much data can be read or sent.
Account for data kept on the network separately from the cost of running a program.
Limit the memory available to each program run.
Review a shared-application test with separate measurements for computation and result validation. The data and test conditions are available to download.
These are program-execution measurements, not network speed or security results. Cycles are units of work used for billing, not seconds; bytes measure data size. The capture date says when this file was copied, not when the original test ran.
ade44d9372837c35710c05c826b028f5376bae3b345e68867281af737ac1b154 docs/SHARED_RUNTIME_BENCHMARK.json The hash is a digital fingerprint for checking that you have the same file. It does not prove exactly which code version was used to run the original test.