Miden Notes Explained
Introduction to Miden Notes
What Are Miden Notes?
In any blockchain, there needs to be a way to move assets and communicate between different accounts. Miden handles this with a powerful concept called a note.
A note is a self-contained message that can carry assets, data, and instructions for how it should be handled.
Think of a note like a secure, programmable envelope. You can put digital assets (like tokens) inside it, address it to another account, and include specific rules for what that account must do to open it and claim the contents. The recipient account then consumes the note, executing its instructions and taking ownership of the assets.
A Hybrid Model
Miden combines ideas from two common blockchain models: the account model (used by Ethereum) and the UTXO (Unspent Transaction Output) model (used by Bitcoin). Notes are the key to this hybrid approach.
Like in the UTXO model, notes are distinct, single-use objects. Once a note is consumed, it's gone forever, similar to how an unspent Bitcoin output is spent. However, these notes are sent between and processed by persistent accounts, which is the core idea of the account model.
This system allows for a unique transaction workflow.
A user creates a transaction locally on their own machine. This transaction might produce one or more notes. These notes are then broadcast to the network. Later, a recipient can create another transaction to consume those notes. Because the creation and consumption of notes happen in separate transactions, they don't have to be processed by the network at the same time.
Key Benefits
This asynchronous, note-based system offers some major advantages.
Parallel Execution: Since note creation and consumption are independent, they can be processed in parallel. The sender doesn't need to wait for the recipient to act. This greatly improves the network's overall throughput and efficiency.
Imagine sending a package. You can drop it off at the post office without waiting for the recipient to be home to sign for it. The delivery happens later, independently of your actions. Miden notes work similarly, decoupling the sender's and receiver's transactions.
Enhanced Privacy: A user generates the proof for their transaction locally. This means sensitive details about the transaction, including the logic for creating or consuming a note, are not revealed on-chain. The network only needs to verify the proof, not see the underlying details.
By using notes, Miden creates a flexible and scalable system for communication and asset transfers. It combines the strengths of different models to build a more private and efficient decentralized network.
Ready to check your understanding?
What is the best analogy for a Miden note?
Miden's note system is described as a hybrid of which two common blockchain models?
Now that we've covered what notes are and why they're important, we can dive into their specific structure and how they're created and consumed.