Chaincode Statement Segmentation for Blockchain Endorsement
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Centralized databases face issues such as single points of failure, dependency on network connectivity, limited access, and lack of customizable post-settlement processes, leading to inefficiencies and vulnerabilities.
Innovation Solution
A decentralized database system utilizing a multistate peer network with a smart contract that includes threshold and final state logic, enabling post-settlement processes after endorsement to a blockchain, which improves resource optimization and transaction efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If a centralized database is used to store and maintain data, then data redundancy is minimized and security control is simplified, but the system has a single point of failure and limited access capability
Solution Approach 1:
The patent divides the centralized database into multiple distributed ledger nodes, where each node maintains a copy of the ledger. This segmentation allows multiple users to access data simultaneously from different nodes, improving adaptability while maintaining data security through distributed consensus mechanisms.
Solution Approach 2:
The patent creates multiple copies of the database across different nodes in the network. Each node stores identical copies of the ledger, enabling simultaneous access by multiple users without compromising data integrity or security, as all copies are synchronized through consensus.
2Reliability
If all chaincode statements are executed during endorsement, then transaction validation is complete, but resource consumption increases and transaction throughput decreases
Solution Approach 1:
The patent segments chaincode statements into two groups: pre-settlement statements executed during endorsement and post-settlement statements executed after commitment. This segmentation allows critical validation to occur during endorsement while deferring resource-intensive operations to after commitment, improving transaction throughput without compromising validation reliability.
Solution Approach 2:
The patent performs preliminary validation using pre-settlement statements during the endorsement phase, which is sufficient for transaction validation. Resource-intensive post-settlement statements are deferred to after commitment, allowing faster transaction processing while maintaining validation integrity through the preliminary check.
3Adaptability or versatility
If customizable logic is added to blockchain transactions, then post-settlement processes become possible, but smart contract complexity increases
Solution Approach 1:
The patent segments smart contract logic into pre-settlement and post-settlement statements, allowing customizable post-settlement processes to be defined separately from the core validation logic. This segmentation reduces the complexity of the endorsement process while enabling flexible post-commitment operations through clearly defined separate execution phases.
Data Source
AI summary
An example operation may include one or more of storing chaincode that comprises a plurality of statements to be executed, receiving a message to endorse a blockchain storage request, delaying execution of one or more statements within the chaincode based on content included within the chaincode, endorsing the blockchain storage request via execution of remaining statements included in the chaincode which are not delayed to generate an endorsement result, and transmitting the endorsement result to a node.


