Artificial Intelligence

Mobility Smart


1. Scalability
The hierarchical structure of the AI distributed ledger improves the scalability and pluggability of the architecture, making it convenient for developers to develop in modules and provide more data support capabilities for applications.
2. Stable and easy to use
Convenient and efficient account book operations have lowered the threshold to a certain extent; many key operation functions are built in the account book level, and many business models have been integrated to provide convenience for users in multiple industries.
3. Safety and compatibility
Digital assets and their operations are the most typical application methods of blockchain ledgers. Through the compatibility of multiple assets, it supports a variety of mainstream digital assets on the market, while ensuring the atomicity of account asset operations, and enhancing the practical application and control functions of the ledgers .
Account address: the unique identifier of a blockchain account. When you query the information of an account or want to transfer money to an account, you need to use the account address to locate the account;
Account balance: the number of native tokens in the account;
Smart contract code: If the field is not empty, the account is a smart contract account, which is used to store the corresponding smart contract code;
Transaction serial number: In order to avoid the disorder of transactions under the account, each time a transaction is processed, the transaction serial number of the account is incremented to record the current maximum serial number. Each account has its own transaction serial number, which does not affect each other;
Asset list: The asset list user records the asset code, issuer and balance of various digital assets under the account. On the premise of meeting the requirements of system security and reliability, the scalability and convenience of asset issuance and circulation are realized to the greatest extent.
Metadata: The metadata field provides a private data storage with a Key-Value structure for each account, and user-defined data processing for extended business. At the same time, the design of metadata provides data access for smart contract code execution status;
Weight and threshold: In account operations, permission control is a very important requirement, because different entities often have different roles and permissions in the display business. AI proposes a multi-weight operation threshold control method, which can set different operation weights for different member accounts and set certain thresholds for operation execution.
A block includes two parts: a block header and a block body. The block header mainly contains the following data fields: Block number: the serial number of the block in the entire ledger, the serial number increases in the order in which the block is generated;
The hash value of the block: the hash value obtained by hashing the serialized text of the block; the hash value of the previous block: the hash value of the previous block of the block;
Block generation time: the time when the block was generated;
The hash of the account tree: the root hash of the account tree constructed with MPT, can any bit-level data changes of each node on the MPT be fed back to the root hash if the account tree hash is found during block comparison Inconsistent, you can start from the root node to compare the child nodes layer by layer to quickly find inconsistent accounts;
Hashing of consensus information: Before the block is generated, the verification node set needs to package the transaction to generate a proposal, and then reach a consensus on the proposal and reach an agreement. The consensus information hash is the value obtained by hashing the consensus proposal;The hash of the verification node machine: the value obtained by hashing the addresses of all verification nodes participating in the consensus;
Cost hash: the cost configuration of the current block, including the gas price and minimum reservation cost, etc., is the value obtained after hashing;Block version: the version number of the block structure, used to achieve downward compatibility; Number of transactions: the total number of transactions contained in the block.
The block body mainly contains transaction information and signatures.
All types of key information are quoted into each field of the block through the hash index, so that any part of the data change in the entire ledger can be reflected and represented in the block field value, which improves the convenience of information verification. At the same time, once there is an inconsistency, the problem can be quickly located according to the index of the zone field and the problem solving efficiency can be improved.
In the account design, the multi-weight operation threshold control attribute is considered, and different operation weights can be set for different member accounts, and no operation is performed to set the threshold. Through the above method, it is possible to achieve the goal of multi-user joint control of accounts and precise operations in accordance with operating thresholds, meeting the needs of diversified collaboration, refined operation models, and rich business models.
As shown in the figure, if user A\B\C wants to operate on the joint account, he first needs to calculate the sum of the user's weight, and then compare the weight with the operation threshold. If it is not less than the operation threshold, he has operation authority. Otherwise, the operation is rejected.
AI builds a scalaIn the account design, the multi-weight operation threshold control attribute is considered, and different operation weights can be set for different member accounts, and no operation is performed to set the threshold. Through the above method, it is possible to achieve the goal of multi-user joint control of accounts and precise operations in accordance with operating thresholds, meeting the needs of diversified collaboration, refined operation models, and rich business models.

As shown in the figure, if user A\B\C wants to operate on the joint account, he first needs to calculate the sum of the user's weight, and then compare the weight with the operation threshold. If it is not less than the operation threshold, he has operation authority. Otherwise, the operation is rejected.
AI builds a scalable ledger structure for multi-asset atomic operations through systematic design, module collaboration, and rich operation types. It provides powerful data support for multiple types of business operations to meet the needs of users in complex application scenarios, while at the same time May take into account the user's needs for high performance and low consumption.
With the development and improvement of technology, blockchain application scenarios are no longer limited to areas such as payment transfers and information tracing. Various new application scenarios continue to emerge, and there are more and more large-scale data such as videos, pictures, and medical information. The land needs to be stored in the blockchain. The storage and management requirements of large-scale distributed data have made the time and space consumption of blockchain data processing more and more prominent. AI fully considered the above challenges in data storage design, and proposed a differentiated distributed storage system Trailer for massive data.
Through the differentiated classification of data, the data is divided into on-chain data and off-chain data according to the characteristics of the data. On-chain data refers to data stored in blockchain nodes in real time, such as basic chain data such as accounts, transactions, and block headers. However, off-chain data needs to be anchored on-chain, that is, data hash value is stored as on-chain data. Secondly, according to the different characteristics of on-chain data and off-chain data, different storage engines are selected, and interface encapsulation and cost calculation are performed to meet the needs of differentiated storage of large-scale data, while having high user-friendliness.
ble ledger structure for multi-asset atomic operations through systematic design, module collaboration, and rich operation types. It provides powerful data support for multiple types of business operations to meet the needs of users in complex application scenarios, while at the same time May take into account the user's needs for high performance and low consumption.
With the development and improvement of technology, blockchain application scenarios are no longer limited to areas such as payment transfers and information tracing. Various new application scenarios continue to emerge, and there are more and more large-scale data such as videos, pictures, and medical information. The land needs to be stored in the blockchain. The storage and management requirements of large-scale distributed data have made the time and space consumption of blockchain data processing more and more prominent. AI fully considered the above challenges in data storage design, and proposed a differentiated distributed storage system Trailer for massive data.
Through the differentiated classification of data, the data is divided into on-chain data and off-chain data according to the characteristics of the data. On-chain data refers to data stored in blockchain nodes in real time, such as basic chain data such as accounts, transactions, and block headers. However, off-chain data needs to be anchored on-chain, that is, data hash value is stored as on-chain data. Secondly, according to the different characteristics of on-chain data and off-chain data, different storage engines are selected, and interface encapsulation and cost calculation are performed to meet the needs of differentiated storage of large-scale data, while having high user-friendliness.

On-chain data refers to the data stored in the blockchain node in real time. The blockchain node has the ability to fully copy the data on the chain. It is the smallest unit data collection that can form a proof of block validity. Typical data is as follows:
Chain basic data: such as direct data such as accounts, transactions, block headers, block validity proof data such as account trees, transaction trees, and block generation certificates, and necessary index data for user data queries;
Smart contract and contract operation data: The Turing complete script of the smart contract and its dependent data need to be stored on the chain to ensure its executable and decentralized characteristics, and provide smart contract access capabilities at any time;
 Asset data: This type of data storage has a small demand, but has extremely high security requirements. On-chain storage can provide a secure computing environment while providing sufficient redundant storage;
Short static data: data with a small amount of data such as transaction notes.
Off-chain data refers to data that does not need to be stored in blockchain nodes in real time. It is usually a collection of data with low frequency of use and relatively large storage volume, such as historical video data required for existence proof. Off-chain data usually needs to be anchored on-chain, that is, data hash value, data index, etc. are stored as on-chain data. Typical data are as follows:
Large volume of data: This type of data is characterized by large storage space, such as video, pictures, logs, geographic location and other data;
Block historical data: low frequency of use, users do not need to query in real time, off-chain data can be used as a backup method; data with high confidentiality requirements: such as personal identification information, medical data, etc., off-chain data is stored in desensitization, only for verification Provide proof of original data when requesting or authorization request.