The NOTE protocol marks a major development in the history of Bitcoin.
The NOTE protocol is a digital asset issuance protocol based on the Bitcoin UTXO model. It is different from other protocols that have appeared recently in that it is truly built on Bitcoins UTXO model.
NOTE The protocol uses a smart contract language compatible with TypeScript, and its reduced compilation results are Bitcoin native opcodes, Turing complete, and can include a powerful set of functions including Oracle and zero-knowledge proofs.
1. Basic summary
Different from protocols such as Ordinals and Atomics, although NOTE also counts user assets through indexers, it is all based on cryptography, and Bitcoin miners ensure asset ownership, avoiding misoperation problems caused by indexer tags. Additionally, NOTE’s transaction costs are extremely low, eliminating the need to send two transactions like Ordinals and Atomics. More importantly, the NOTE protocol supports smart contracts, such as Bitwork mining and mining volume decreasing over time. It uses actual Token values, rather than the prime number protocol based on Satoshi numbers or the dyed currency scheme that relies on UTXO balances.
Compared with many inter-chain bridging protocols, NOTE issues native Bitcoin assets and does not involve the use of BTC as collateral to issue and trade assets on other chains.
NOTE The protocol supports cross-chain, which can send native assets on Bitcoin to other UTXO chains and receive assets from other UTXO chains. Its all based on cryptography and the Bitcoin blockchain consensus.
NOTE protocol is entirely developed by developers in the Bitcoin development community.
2. Technical interpretation
The advantages of the UTXO model are returning to the public consciousness. Bitcoin, as the anchor of digital currency, needs available and easy-to-use technical solutions, and the NOTE protocol came into being.
The Bitcoin UTXO model has huge efficiency and concurrency advantages compared to the EVM model. However, issuance of native assets on the UTXO model of Bitcoin involves multiple problems that are difficult to solve. The main issue is how to identify the assets. The other is how assets are preserved in a tight transaction structure.
A transaction in the form of UTXO is as shown below
The NOTE protocol takes an innovative approach to handling Bitcoin transactions and asset management that is significantly different from other protocol solutions. In a traditional Bitcoin transaction, the input portion of the transaction unlocks the output of the previous transaction (i.e., the old UTXO) and generates a new transaction output (i.e., the new UTXO). In other protocol schemes, assets are bound to newly generated UTXOs, causing users assets to be scattered among different UTXOs. This approach requires indexers and wallets to maintain an exhaustive list of UTXOs to ensure the accuracy of asset binding relationships. At the same time, UTXOs with asset tags must be managed very carefully to avoid incorrect spending, and the entire UTXO must be spent at once.
In contrast, the NOTE protocol adopts an approach that treats transaction outputs as user account numbers, where a users account number is represented by their transaction output script hash, as shown in the TX 1 transaction output in the example. This kind of account is completely private, and the type and amount of assets bound to it are derived from the unlocking input of TX 1. When these assets are spent in TX 2, new transaction outputs are generated after being confirmed and unlocked by Bitcoin miners. In this process, the NOTE protocols indexer only needs to record the transaction details disclosed at the time of unlocking, and can provide Merkle proofs to verify the validity of the transaction after the block is confirmed.
This design not only simplifies the tracking and management of assets, reduces the problem of user asset segmentation, but also increases the privacy of transactions. By using transaction outputs as account numbers and relying on the Bitcoin networks miner verification and blockchain consensus mechanisms, the NOTE protocol provides a more secure, efficient and privacy-preserving method for the management of digital assets.
A typical transaction in Taproot P 2 TR format looks like this
The technical strategy adopted by the NOTE protocol is significantly different from that of the Ordinals and Atomicals protocols. Ordinals and Atomicals utilize P 2 TR (Taproot)s redemption script to embed additional data by constructing an inaccessible data region by adding the OP_FALSE OP_IF opcode. The NOTE protocol allows direct manipulation of unlocked data through opcodes, improving data availability. In the NOTE protocol, the sample script can pop data directly from the stack, and more complex scripts can implement on-chain checking functions such as hashlock.
In addition, the NOTE protocol is not limited to using P 2 TR, it can also be implemented through P 2 SH (Pay to Script Hash), P 2 WSH (Pay to Witness Script Hash) and non-standard scripts, which increases the flexibility and The ability to trade cross-chain assets. NOTE The protocol uses msgpack data encoding instead of json encoding, which is more compact and helps reduce the amount of data in each transaction, thereby reducing the users transaction costs.
In the NOTE protocol, addresses constructed from specific redemption scripts act as user accounts. These account addresses can only be confirmed by miners when they are correctly unlocked. The asset transaction data contained in the unlocking script is recognized by the indexer when unlocked and processed by off-chain smart contracts. Only asset transactions that pass verification in the off-chain contract will be recorded by the indexer. This mechanism effectively prevents Bitcoin wallets from accidentally spending NOTE UTXO, and allows trace amounts of Bitcoin (such as 546 Satoshi) in UTXO to be recycled.
The NOTE protocol was designed taking into account the multiple upgrades to the Bitcoin network since 2017 regarding privacy and transaction space optimization. At the same time, it also draws on the large block strategy represented by BSV (Bitcoin SV) to deeply explore the potential of Bitcoin scripts. NOTE Protocols smart contract solution is based on the Bitcoin smart contract language developed by the sCrypt team, which supports off-chain contract verification. Since the Bitcoin script language is Turing complete and can ensure execution within a given script length, the indexer will not fall into an infinite loop due to improper smart contract design, ensuring the stability and efficiency of the system.
The demonstration N 20 asset issuance smart contract project has been published on GitHub.
https://github.com/NoteProtocol/scryptdemo
It demonstrates that the Pow contract under the NOTE protocol demonstrates the ability to implement complex logic on the Bitcoin network by simulating the halving mechanism of Bitcoin mining and Atomics’ Bitwork difficulty mining. By generating a 1 KB Bitcoin script, the contract allows the indexer to call and verify whether the transaction complies with the protocol. This process demonstrates the feasibility and flexibility of smart contracts in the Bitcoin network.
More complex Oracles based on the Rabin signature algorithm and complex contracts based on zero-knowledge proofs provide high-level application scenarios. These technologies play a vital role in the implementation of smart contracts, especially when specific conditions need to be verified or specific logic needs to be executed.
By leveraging these smart contracts, asset issuance on Bitcoin can be used to implement real-world application scenarios, such as bounty scenarios for AI to solve problems. In this type of scenario, as long as someone can submit a verifiable calculation result, they can get a reward. This not only shows the utility of Bitcoin smart contracts, but also how they facilitate the implementation of complex applications that go beyond traditional financial transactions and asset management.
The N 20 Token asset issuance function is part of the many functions in the NOTE protocol. The NOTE protocol also includes DID (decentralized identity) as well as encrypted data and ownership identification, and with the development and verification process of N 721 NFT and Alias (Bitcoin Alias System), the capabilities and application scope of the NOTE protocol are expected to be further expanded.
In order to allow users to experience the mint and transfer of N 20 Token, a command line wallet has been released on GitHub, and an open source indexer is also planned to be released.
NOTE The open source code contributors behind the protocol emphasize that all content is only for technical discussion, and the issuance and hype of any assets have nothing to do with the code contributors. NOTE is just an open source technology project.
With the further development and improvement of the NOTE protocol, it is foreseeable that more real applications based on this protocol will be born. These applications will take advantage of the unique functions and advantages of the NOTE protocol to create new ones in Bitcoin and the wider blockchain field. value and possibility. The continuous contribution and collaborative spirit of the open source community are indispensable forces in promoting this process.
3. Summary
The NOTE protocol represents an important advancement in the expansion of the Bitcoin network into smart contract functionality. By introducing smart contracts onto Bitcoin, the most original and widely used cryptocurrency platform, the NOTE protocol not only enhances Bitcoins functionality, but also provides unprecedented innovation possibilities for developers and users. Here are a few key features of the NOTE protocol:
1. Smart contract support:The NOTE protocol expands the scope of Bitcoins applications through smart contracts, allowing more complex logic and transaction types to be created and executed on the Bitcoin network. This includes but is not limited to asset issuance, decentralized finance (DeFi) applications, and other scenarios that require conditional execution.
2. UTXO-based model:Unlike account-based smart contract platforms, the NOTE protocol is built on Bitcoins UTXO model, leveraging Bitcoins security and efficiency.
3. Cross-chain function:The NOTE protocol supports cross-chain transactions, enabling digital assets to be moved between different UTXO chains, further improving its flexibility and application scope.
4. Real world applications:NOTE protocol supports advanced cryptography technologies, such as zero-knowledge proof and Rabin signature algorithm, and can be applied in more complex real-world application scenarios.
5. Low cost and high efficiency:By optimizing data storage and using msgpack encoding, the NOTE protocol aims to reduce transaction costs and improve network efficiency.
6. Open source and community driven:The NOTE protocol emphasizes the open source spirit and community contributions, promotes the transparency and trustworthiness of technology, and also encourages wider development and application innovation.
With the development and application of the NOTE protocol, we can expect more innovative applications and services to appear in the Bitcoin ecosystem, which will provide users with richer functions and better services while maintaining the core values of Bitcoin. experience.
NOTE protocol
website:https://noteprotocol.org
X: https://twitter.com/NoteProtocol
GitHub: https://github.com/NoteProtocol
