CN106775619B - Flexible blockchain architecture system - Google Patents

Flexible blockchain architecture system Download PDF

Info

Publication number
CN106775619B
CN106775619B CN201610996011.9A CN201610996011A CN106775619B CN 106775619 B CN106775619 B CN 106775619B CN 201610996011 A CN201610996011 A CN 201610996011A CN 106775619 B CN106775619 B CN 106775619B
Authority
CN
China
Prior art keywords
layer
consensus
chain
orders
contract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610996011.9A
Other languages
Chinese (zh)
Other versions
CN106775619A (en
Inventor
王志文
吴思进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Jiaoda Chain Technology Co.,Ltd.
Original Assignee
Hangzhou Fuzamei Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN201610996011.9A priority Critical patent/CN106775619B/en
Publication of CN106775619A publication Critical patent/CN106775619A/en
Application granted granted Critical
Publication of CN106775619B publication Critical patent/CN106775619B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The flexible block chain architecture system divides the block chain into a first layer of log consensus chain, a second layer of contract logic execution and a third layer of state change consensus chain, thereby reducing the complexity, increasing the stability and improving the performance. The first layer of log chain is not modifiable, other chains can be modified, but can still be identified, consistency is kept, if the code of the second layer of intelligent contracts has errors, the intelligent contract code can be updated, the transaction result is traced back according to the data on the log chain, and the third layer of block chain is updated.

Description

Flexible blockchain architecture system
Technical Field
The invention relates to a block chain technology.
Background
At present, the verification consensus of transaction records of most block chains and the logic operation of an intelligent contract are executed together, the program complexity is high, and the intelligent contract code cannot be modified when in error.
Disclosure of Invention
The invention aims to design a new block chain architecture, which ensures that transaction data can not be tampered by using the consensus of a transaction order log chain and can also modify program errors by replacing intelligent contract codes.
The scheme better solves the contradiction between the requirement that the block chain cannot be tampered and the program error.
1. The technical scheme adopted by the invention is as follows: the flexible block chain architecture system divides the block chain into a first layer of log consensus chain, a second layer of contract logic execution and a third layer of state change consensus chain, reduces the complexity, increases the stability and improves the performance, and the following is a realization process;
step S1, the first layer of log consensus link receives the order sent by the user wallet, whether the order signature is correct or not needs to be checked, the order can be the order of different contracts, the order can be classified consensus, the order can be charged with a certain fee or the user public key identity authentication can be carried out for preventing attack, the user wallet only needs to download the contract code needed to be used, and the first layer of contract logic is not executed;
step S2, the second layer executes contract logic, different contracts can be executed separately, different contracts first go to the third layer to obtain the latest state of the relevant user, such as the amount on the address, whether the object is mortgage or not, and the formed result can be transmitted to the third layer for consensus after the logic can be executed after the check;
step S3, when reaching the third layer, all the latest state changes can be checked for consistency by using a Hash algorithm, all the latest state changes are written into a third layer block chain after consensus is achieved, encrypted digital currency and encrypted digital assets can be written into different chains of the third layer separately, and the third layer can be identified by using different chains separately according to contract classification;
in step S4, the new block of the consensus link at the third layer may only record the latest change of the state, and may establish a Key-Value database table to store all the state values for the second layer to query when executing the contract logic.
The first layer of log chain is not modifiable, other chains can be modified, but can still be identified, consistency is kept, if the code of the second layer of intelligent contracts has errors, the intelligent contract code can be updated, the transaction result is traced back according to the data on the log chain, and the third layer of block chain is updated.
2. The header hash value of each block can be calculated by using a Meckel tree, or the header hash values can be calculated after hash values are directly connected in series.
3. The chips such as FPGA and GPU can be used for calculating the hash value or checking the signature.
4. And after the second layer is executed, invalid orders are removed, and the rest valid orders or delivery orders are put on a block chain of a fourth layer after a consensus algorithm is implemented, so that a user can download and query the orders.
Compared with the prior art, the invention has the beneficial effects that:
the scheme better solves the contradiction between the requirement that the block chain cannot be tampered and the program error. The consensus of the transaction order log chain is used to ensure that the transaction data is not tamper-able, and also to modify program errors by replacing smart contract code.
Drawings
FIG. 1 is an illustration of a flexible blockchain architecture system
Detailed Description
Embodiment 1, referring to the accompanying fig. 1 of the specification, this example illustrates a flexible blockchain architecture system;
1. dividing the block chain into a first layer of log consensus chain, a second layer of contract logic execution and a third layer of state change consensus chain, reducing complexity, increasing stability and improving performance, wherein the following is an implementation process;
step S1, the first layer of log consensus link receives orders sent by the user wallet, whether the order signature is correct needs to be checked, the orders can be orders of different contracts and can be classified consensus, in order to prevent attacks, a certain fee can be charged for the orders or user public key identity authentication can be carried out, the user wallet only needs to download contract codes needing to be used, the first layer of log link does not execute contract logic, the first layer of user wallet has A, B intelligent contracts and sends orders Ai and Bj to the first layer of log chain, the second layer of user wallet has B, C, D intelligent contracts and sends orders Bj +1, Ck and Dn to the first layer of log chain;
step S2, the second layer executes contract logic, different contracts can be executed separately, different contracts first go to the third layer to obtain the latest state of the relevant user, such as the amount on the public key address, whether the object is mortgage or not, and the formed result can be transmitted to the third layer for consensus after the logic can be executed after the check;
step S3, when reaching the third layer, all the latest state changes can be checked for consistency by using a Hash algorithm, all the latest state changes are written into a third layer block chain after consensus is achieved, encrypted digital currency and encrypted digital assets can be written into different chains of the third layer separately, and the third layer can be identified by using different chains separately according to contract classification;
in step S4, the new block of the consensus link at the third layer may only record the latest change of the state, and may establish a Key-Value database table to store all the state values for the second layer to query when executing the contract logic.
Step S5, after the second layer is executed, the remaining effective orders or the remaining transaction orders after the invalid orders are removed are placed on a fourth layer block chain after implementing a consensus algorithm, so that a user can download and query;
according to the scheme, the first layer of log chain does not run intelligent contracts, the execution efficiency can be greatly improved, the speed of calculating the hash value or checking the signature can be improved by using chips such as an FPGA (field programmable gate array) and a GPU (graphics processing unit), the first layer of log chain is not modifiable, other chains can be modified and still can be identified together, and consistency is kept;
if the code of the second layer intelligent contract is wrong, the transaction result can be traced back according to the data on the log chain by updating the intelligent contract code.

Claims (4)

1. The flexible blockchain architecture system is characterized in that the blockchain is divided into a first-layer log consensus chain, a second-layer contract logic execution chain and a third-layer state change consensus chain, and the following is an implementation process; step S1, the first layer of log consensus link receives orders sent by the user wallet, whether the order signature is correct or not needs to be checked, the orders are orders of different contracts or orders of the same contract, the order can be classified and consensus can be realized, the attack can be prevented by charging a certain fee for the orders or carrying out user public key identity authentication, the user wallet only needs to download contract codes needing to be used, and the first layer does not execute contract logic; step S2, the second layer executes contract logic, different contracts can be executed separately, different contracts first go to the third layer to obtain the latest status of the amount and/or object on the relevant user address, the logic can be executed after checking, and the formed result can be transmitted to the third layer for consensus; step S3, when reaching the third layer, all the latest state changes can be checked for consistency by using a Hash algorithm, all the latest state changes are written into a third layer block chain after consensus is achieved, encrypted digital currency and encrypted digital assets can be written into different chains of the third layer separately, and the third layer can be identified by using different chains separately according to contract classification; step S4, recording the latest change of the state by the new area block of the consensus link of the third layer, and establishing a Key-Value database table to store all state values for the second layer to inquire when executing contract logic; the first layer of log chain is not modifiable, other chains can be modified, but can still be identified, consistency is kept, if the code of the second layer of intelligent contracts has errors, the intelligent contract code can be updated, the transaction result is traced back according to the data on the log chain, and the third layer of block chain is updated.
2. The flexible blockchain architecture system of claim 1 wherein the header hash value for each chunk can be computed using a Meckel tree or directly concatenating the hashes.
3. The flexible blockchain architecture system of claim 1 wherein a FPGA or GPU chip is used to compute a hash value or check signature.
4. The flexible blockchain architecture system of claim 1 wherein after the second tier is executed, invalid orders are removed, and remaining valid orders or deal orders are placed on a fourth tier blockchain after implementing a consensus algorithm for user download queries.
CN201610996011.9A 2016-11-12 2016-11-12 Flexible blockchain architecture system Active CN106775619B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610996011.9A CN106775619B (en) 2016-11-12 2016-11-12 Flexible blockchain architecture system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610996011.9A CN106775619B (en) 2016-11-12 2016-11-12 Flexible blockchain architecture system

Publications (2)

Publication Number Publication Date
CN106775619A CN106775619A (en) 2017-05-31
CN106775619B true CN106775619B (en) 2020-05-12

Family

ID=58973383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610996011.9A Active CN106775619B (en) 2016-11-12 2016-11-12 Flexible blockchain architecture system

Country Status (1)

Country Link
CN (1) CN106775619B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110771093B (en) 2017-06-20 2023-01-10 707 有限公司 Method and system for proving existence of digital document
CN107230056B (en) * 2017-06-28 2021-02-26 无锡井通网络科技有限公司 Quick transaction system based on block chain contract
CN108063758A (en) * 2017-11-27 2018-05-22 众安信息技术服务有限公司 For the node in the signature verification method of block chain network and block chain network
CN108520307A (en) * 2018-03-31 2018-09-11 深圳慧通商务有限公司 Data processing method and relevant apparatus
CN110580624B (en) * 2018-06-07 2022-02-18 华为技术有限公司 Chain code upgrading method and device
CN108900505B (en) * 2018-06-28 2020-08-11 中国科学院软件研究所 Cluster audit management and control method based on block chain technology
CN108985934B (en) * 2018-07-06 2021-12-17 深圳源码智能科技有限公司 Block chain modification method and device
CN110263091B (en) * 2019-05-20 2021-06-04 创新先进技术有限公司 Receipt storage method and node combining code marking with user and event type
CN111177777B (en) * 2019-12-20 2022-08-02 语联网(武汉)信息技术有限公司 Intelligent contract deployment method and electronic equipment
CN112115116B (en) * 2020-08-05 2024-04-16 西安电子科技大学 Construction method of high-performance tamper-proof database based on blockchain
CN112184434A (en) * 2020-09-02 2021-01-05 上海树图区块链研究院 Block chain system, data interaction and processing method, node and storage medium
US20230315880A1 (en) * 2022-03-28 2023-10-05 International Business Machines Corporation Using smart contracts to manage hyper protect database as a service

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488675A (en) * 2015-11-25 2016-04-13 布比(北京)网络技术有限公司 Distributed shared general ledger construction method of block chain
CN105809062A (en) * 2016-03-01 2016-07-27 布比(北京)网络技术有限公司 Contract construction and execution methods and apparatuses

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150379510A1 (en) * 2012-07-10 2015-12-31 Stanley Benjamin Smith Method and system to use a block chain infrastructure and Smart Contracts to monetize data transactions involving changes to data included into a data supply chain.

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488675A (en) * 2015-11-25 2016-04-13 布比(北京)网络技术有限公司 Distributed shared general ledger construction method of block chain
CN105809062A (en) * 2016-03-01 2016-07-27 布比(北京)网络技术有限公司 Contract construction and execution methods and apparatuses

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WhitePaper;ethereum;《ethereum/wiki/White Paper》;20161029;全文 *
区块链技术发展现状与展望;袁勇 等;《自动化学报》;20160430;第42卷(第4期);全文 *

Also Published As

Publication number Publication date
CN106775619A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106775619B (en) Flexible blockchain architecture system
US20220414252A1 (en) Immutable bootloader and firmware validator
US10902419B2 (en) Blockchain-based system for efficient storage and retrieval of disparate supply-side transaction information
CN113329031B (en) Method and device for generating state tree of block
US20200412526A1 (en) Method and apparatus for verifying smart contracts in blockchain, and storage medium
US12010213B2 (en) Pruning entries in tamper-evident data stores
WO2020253467A1 (en) Blockchain system-based data processing method, system and device
TWI726573B (en) Block chain-based data compression and query method and device and electronic equipment
US20210049715A1 (en) Blockchain-based data procesing method, apparatus, and electronic device
US20200057865A1 (en) Management of co-ownership database system
CN108829691B (en) Rural electronic commerce data storage method
US11671262B2 (en) Asynchronously determining relational data integrity using cryptographic data structures
GB2582078A (en) System and method for composite-key based blockchain device control
CN113988857A (en) NFT transaction method, transaction system, computer-readable storage medium and terminal device
CN115659417A (en) Audit log storage method, audit log verification method, audit log storage device, audit log verification device and computer equipment
CN113362068B (en) Method for verifying block chain state transfer by light node
WO2021129005A1 (en) Blockchain state change-based transaction tracking method and device
CN113994324B (en) Block chain system with efficient world state data structure
CN111552738B (en) Block chain ecological system and block chain uplink method based on Internet of things
CN105550220A (en) Fetching method and apparatus for heterogeneous system
US20210374125A1 (en) Method and system for improved consensus using bootstrap resampling
CN113159952A (en) Method, system, device and storage medium for storing digital assets based on block chain
White A theory for lightweight cryptocurrency ledgers
CN111158994A (en) Pressure testing performance testing method and device
Byeon et al. Editable blockchain for secure IoT transactions

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210421

Address after: 310000 Room 702, 7th Floor, Building 6, East Software Park, No. 90 Wensan Road, Xihu District, Hangzhou City, Zhejiang Province

Patentee after: HANGZHOU FUZAMEI TECHNOLOGY Co.,Ltd.

Patentee after: Suzhou Jiaoda Chain Technology Co.,Ltd.

Address before: 310012 Huaxing 409, Xueyuan Road 58, Zhejiang, Hangzhou

Patentee before: HANGZHOU FUZAMEI TECHNOLOGY Co.,Ltd.