Notes

In Ola, a note serves as a fundamental data structure for encoding user assets and application state. The Zexe platform calls it Record, they all have the same meaning.

Each account note includes data that defines the note's owner, its stored value, and its associated application state. Within Ola, notes are both consumed and newly generated through a transition function. A transaction within Ola is designed to contain multiple transitions, with each transition being responsible for the consumption and creation of individual notes. Additionally, for notes with private visibility, they can be encrypted using the owner's address secret key as an optional security measure.

Every notes are appended as UTXO model in Ola.

Components of a Note

An Ola note is serialized in the following format:

TypeDescription

address

The address of the owner of the contract note

data

A data payload containing arbitrary application-dependent information

nonce

The serial number nonce of the contract note

visibility

The note's visibility, which can either be public or private

(Optional) Note Encryption

A "Note" with a private visibility in Ola is cryptographically encrypted during the transition and securely stored on the blockchain. This feature empowers users to confidentially exchange Note data and values across the public network. Decryption of these Notes is only possible for the sender and receiver, using their respective account view keys.

Last updated