Blockchain implements metadata-driven rule engine
It mainly describes the system, method and device for providing metadata definition, verification and rule execution for data records on the blockchain platform by combining distributed ledger technology (DLT) and cloud computing environment. The following is a summary of the key points of the document:
System architecture:
Blockchain service interface: Operate the blockchain interface to access the blockchain on behalf of multiple tenants of the host organization, each tenant as a participating node on the blockchain.
Metadata definition manager: Define and manage metadata rules on the blockchain, which control the structure and verification logic of data records.
Smart contract executor: Automatically generate and execute smart contracts based on metadata rules to verify transactions and data updates on the blockchain.
Metadata rule definition:
Graphical user interface (GUI): Provides a user-friendly interface that allows non-technical users to define metadata rules, such as data fields, conditions, triggers, etc.
Rule engine: Automatically converts the rule definition entered in the GUI into smart contract code and pushes it to the blockchain for consensus verification.
Condition builder: Allows users to define complex logical conditions through the GUI, which will be applied to transaction verification on the blockchain.
Data verification and storage:
Data merging operation: When performing data updates on the blockchain, merge the old data and the new data into a complete record, then store the new record and discard the old version.
Serialization: Convert the merged data record into a serialized byte stream (such as JSON, Protobuf format) to improve storage efficiency and data security.
Index mechanism: Use Merkle tree index to quickly retrieve data records on the blockchain and reduce data retrieval time.
Blockchain interaction:
Consensus mechanism: Ensure the validity and legitimacy of transactions and data updates through the consensus process of participating nodes. Support multiple consensus protocols such as PoW, PoS, etc.
Sidechain and fork: Describes the implementation of sidechain and forked blockchains, allowing assets and data to be transferred between different blockchains.
Dynamic metadata verification: Before data records are added to the blockchain, dynamic verification is performed through smart contracts to ensure that the data complies with the defined metadata rules.
Security and permission control:
Access control layer: Defines the access rights of different participating nodes to blockchain data and functions.
Encryption and privacy protection: Ensure the security and privacy of data on the blockchain through encryption technology and privacy protection mechanisms.
Metadata governance model: Before metadata rules are deployed to the blockchain, they are verified and simulated through the governance model to ensure the correctness and security of the rules.
Application cases:
Supply chain management: Use the immutable nature of blockchain to record and manage asset transfers and events in the supply chain.
Financial transactions: Automatically execute complex financial transaction rules through smart contracts to improve transaction transparency and security.
Data sharing: Securely share data between multiple organizations while ensuring data integrity and compliance.
This patent document details how to implement a flexible, scalable and secure metadata-driven rule engine on a blockchain platform, combining distributed ledger technology and cloud computing environments to provide powerful data management and verification capabilities for various application scenarios.