NoteWhere assets and rules connect

A Note holds assets and application data. The ledger records which rules apply to each part, and checks those rules when the Note is created or spent.

Explore bindings

One asset. Many rules. One rule. Many targets.

In a Tondi Note, any asset, state field (Facet) or whole Note can bind several rules. The same rule can bind several targets. This many-to-many relationship is part of the ledger.

The license NFT, its terms and the payment share checks. The buyer receives the license as the creator and seller receive their shares.

Select an asset or rule to trace its connections.

Accepted in this example

The 100-token payment meets the agreed 90/10 split.

License
Moves to the buyer
Stays with the seller
License terms
Carried forward
Original terms stay in place
Payment token
90 seller · 10 creator
Stays with the buyer
Execution rules and UTXO comparison
Every edge is a check
The ledger invokes the validator for every target on every consumed or created Note that lists it. When the same rule covers two targets, the ledger checks both separately.
The old Note still gets a say
The ledger checks bindings on consumed and created Notes. Deleting a binding from the output still leaves the original check in force. To preserve a rule on later transfers, the contract must require that it appear on the successor Note.
All changes commit together
A Note is spent as a whole. Bindings apply alongside spending authorization (Auth) and native asset policy. When any required check fails, the illustrated asset and state changes do not take effect.
How other UTXO ledgers express this
Cardano’s spending purpose follows an input’s script address, and its minting purpose follows the asset’s policy ID. A CKB Cell has a Lock Script and an optional Type Script. Those contracts can compose checks in code or across outputs. Tondi records each asset or state field’s own validator set directly in the Note.
Tondi ledger specification

Extend a Note as needed

Note grows out of Bitcoin’s UTXO model. Each Note is a self-contained record. Using it consumes the old record, and any change goes into a new one.

Each asset or state field can have several rules. The same rule can constrain several targets, so a license, its terms and its payment can use shared checks.

UTXO Value and spending conditions
The value and spending permissions form a basic Note. Assets, data and rules attach as needed.
A Note is spent as a whole.
Inspect the Note structure
                
                  Note { value, auth, assets?, facets?, bindings? }
                
              

A transaction consumes the entire Note, including its data and rules. Its fields cannot be spent independently; separate Notes remain separate resources. This record model is called UTXO.

Note fields

Value value
The amount of TND, Tondi’s native token, in this Note.
Access auth
A digital fingerprint of the program and inputs that determine who may spend the Note.
Assets assets
The identities and quantities of tokens or collectibles carried by the Note.
Data facets
Data an app stores under its own keys. These data fields are called Facets.
Rules bindings
Links from the whole Note, a Facet or an asset to the rules it must pass. Each target can have several rules, and each rule can cover several targets.

Note model rules

A common record model

Payments, tokens, app data and scheduled tasks all use Notes, so they can follow the same accounting and checking rules.

Separate data and rules

Facets hold an app’s data. Bindings specify checks that must run. A rule can exist without adding an empty data field.

Validate old and new rules

Tondi checks rules associated with both the old and new records. Moving or removing data does not silently bypass its existing checks.

Stable shared identity

SharedNote lets an app keep one identity as its data changes. At execution, Tondi finds the current Note and applies the same permissions and whole-record checks.

A minimal base record

A basic Note occupies 44 bytes in the current format. Asset lists, app data and rules are encoded only when present. This figure covers the Note, not the complete transaction.

44bytes · basic Note record

From the current Note
to its successor

01

Declare the changes

List the records to use, the new records to create and the resources the program may spend.

02

Identify required checks

Tondi identifies the permissions, asset rules and other checks required by those records.

03

Run and verify

Tondi VM runs the required programs with verified input data and fixed resource limits.

04

Commit the result

All related business changes are recorded together only after their checks pass.

Explore Tondi VM