CN109816531A - Intelligent contract method of commerce based on double chain framework - Google Patents

Intelligent contract method of commerce based on double chain framework Download PDF

Info

Publication number
CN109816531A
CN109816531A CN201910137090.1A CN201910137090A CN109816531A CN 109816531 A CN109816531 A CN 109816531A CN 201910137090 A CN201910137090 A CN 201910137090A CN 109816531 A CN109816531 A CN 109816531A
Authority
CN
China
Prior art keywords
intelligent contract
manager
contract
transaction
chain framework
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.)
Granted
Application number
CN201910137090.1A
Other languages
Chinese (zh)
Other versions
CN109816531B (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.)
Nanjing Post and Telecommunication University
Original Assignee
Nanjing Post and Telecommunication University
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 Nanjing Post and Telecommunication University filed Critical Nanjing Post and Telecommunication University
Priority to CN201910137090.1A priority Critical patent/CN109816531B/en
Publication of CN109816531A publication Critical patent/CN109816531A/en
Application granted granted Critical
Publication of CN109816531B publication Critical patent/CN109816531B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

Present invention discloses a kind of intelligent contract method of commerce based on double chain framework, comprising: centralized configuration is combined with distributed frame S1, obtains centralized and distributed mixed structure;S2, manager are managed intelligent contract using double chain framework;S3, user both sides formulate contract, create intelligent contract;S4, the intelligent contract is digitally signed, and the intelligent contract is passed in the double chain framework and is audited;S5, manager execute corresponding operating according to the auditing result selection of the intelligent contract;S6, when user both sides need to modify contract or abolish contract when, need first be audited through administrator, relevant operation can be performed by rear.It is of the invention it is centralized and distributed combine, the double-chain method for managing intelligent contract transaction, excellent effect is easily achieved, practical.The present invention is also that every a intelligent contract on chain transaction carries out audit inspection, it is ensured that the legitimacy and safety of contract.

Description

Intelligent contract method of commerce based on double chain framework
Technical field
The present invention relates to a kind of method of commerce of intelligent contract, and in particular to a kind of intelligent contract based on double chain framework Method of commerce belongs to the innovation and application field of intelligent contract.
Background technique
The concept of intelligent contract (Smart contract) is put forward for the first time in nineteen ninety-five by Nick Szabo, it is a kind of It is intended to propagate, verify or execute in a manner of information-based the computer protocol of contract.Intelligent contract allows in no third-party feelings Credible transaction is carried out under condition, these transaction are traceable and irreversible.The purpose of intelligent contract is to provide better than traditional contract Safety method, and reduce other transaction costs relevant to contract.
From 2016, national governments began to focus on the development of intelligent contract industry, the Ministry of Community Development, the United Nations, English one after another Government Office, state, Ministry of Industry and Information, China have issued intelligent contract correlation report.2017, both at home and abroad to block chain and intelligence The research of contract such as blowout is broken out, and each field shows growth trend, and major part all concentrates on digital encryption currency Transaction.Academic circles at present is to the research of intelligent contract mainly for encoded question, safety problem, privacy concern and performance issue Deng four aspects, wherein the concerned degree highest of safety and privacy concern.
Intelligent contract as the program on block chain, block chain can be helped preferably to operate, realize it is more multi-functional, therefore People have very big expectation for intelligent contract technology report.But a DAO attack in 2016, exposes existing Intelligent contract technology problems.These problems mainly include the following aspects: 1, ununified exploitation and supervision Standard management.2, lack the counter-measure to risk or crisis.3, lack effective risk management measures.4, relevant method law Rule are still not perfect, and responsibility judgment is indefinite.
In conclusion how to propose a kind of safer, stronger intelligence of the ability to ward off risks on the basis of existing technology Contract method of commerce also just becomes current those skilled in that art institute urgent problem to be solved.
Summary of the invention
In view of the prior art there are drawbacks described above, the purpose of the present invention is to propose to a kind of, and the intelligence based on double chain framework is closed About method of commerce includes the following steps:
S1, centralized configuration is combined with distributed frame, obtains centralized and distributed mixed structure;
S2, manager are managed intelligent contract using double chain framework;
S3, user both sides formulate contract, create intelligent contract;
S4, the intelligent contract is digitally signed, and the transaction that the intelligent contract is passed to the double chain framework is examined It is audited in core chain;
S5, manager execute corresponding operating according to the auditing result selection of the intelligent contract;
S6, when user both sides need to modify contract or abolish contract, need first audit through administrator, it is executable by rear Relevant operation.
Preferably, further include following steps:
S7, setting check the time limit, manager according to the inspection time limit, periodically to the conjunction in the chain transaction of the double chain framework It is about checked, if the intelligent contract that discovery is dangerous, initiates the request of pause contract immediately and broadcast to the transaction to examine In core chain, when the manager's agreement request in the transaction auditing chain being more than half, then the intelligence contract is stopped operation, The intelligent contract of remaining safety operates normally.
Preferably, in the centralized and distributed mixed structure described in S1: all users connect in a distributed manner Together, the center of connection is the transaction auditing chain being made of manager;All managers link together in a distributed manner, The auditing result of the manager need to be published to the whole network, and the auditing result need to can after the manager for being more than half agrees to It executes.
Preferably, between two step of S1 and S2, there is also a managers to elect step, specifically includes:
Manager is elected by the personnel in different regions, and each manager is responsible for the intelligent contract in some areas;It is described Whether just manager can not obtain user and the specific identity of other managers, only other people identity are confirmed by zero-knowledge proof Really.
Preferably, double chain framework described in S2 include a chain transaction and a transaction auditing chain, the chain transaction with Bi-directional data transmitting can be carried out between the transaction auditing chain.
Preferably, the intelligent contract is digitally signed in S4, is specifically comprised the following steps:
Manager carries out self verification to intelligent contract, after self verification is errorless, carries out packing processing to the intelligent contract, and It is digitally signed with private key;Comprising being used for anti-fake hash function in the digital signature.
Preferably, auditing result selection execution corresponding operating of the manager according to the intelligent contract in S5, specifically includes Following steps:
Manager obtains the auditing result of the intelligent contract, and for the intelligent contract that audit passes through, the manager is added Enter in chain transaction;For the intelligent contract that the audit fails, the manager is returned to user both sides and illustration.
Compared with prior art, advantages of the present invention is mainly reflected in the following aspects:
It is of the present invention it is centralized and distributed combine, the double-chain method for managing intelligent contract transaction, be not used only Excellent effect, and be easily achieved, there is very high practicability.The present invention is also chain transaction using the method for addition audit chain On every a intelligent contract carry out audit inspection, it is ensured that the legitimacy and safety of contract may meet in face of intelligent contract The attack received can control prevention in time.Meanwhile the centralized and distributed method combined of the present invention, so that side Method integrally existing distributed high computing capability and low cost, possess again centralization stability and be convenient for coordinating pipe rationality, then In addition zero-knowledge proof method used in the present invention, further ensure that safety of the user information in transmission process.
In addition, the present invention also provides reference for other relevant issues in same domain, can be opened up on this basis Extension is stretched, and is applied in other technical solutions about intelligent contract method of commerce, has very wide application prospect.
Just attached drawing in conjunction with the embodiments below, the embodiment of the present invention is described in further detail, so that of the invention Technical solution is more readily understood, grasps.
Detailed description of the invention
Fig. 1 is the flow diagram of the method for the present invention;
Fig. 2 is mixed structure schematic diagram centralized and distributed in the present invention.
Specific embodiment
As shown in Figure 1, present invention discloses a kind of intelligent contract method of commerce based on double chain framework, including walk as follows It is rapid:
S1, centralized configuration is combined with distributed frame, obtains centralized and distributed mixed structure.
S2, manager are managed intelligent contract using double chain framework.The double chain framework includes a transaction Chain and a transaction auditing chain, can carry out bi-directional data transmitting between the chain transaction and the transaction auditing chain.
S3, user both sides formulate contract, create intelligent contract.
S4, the intelligent contract is digitally signed, and the intelligent contract is passed to the friendship of the double chain framework Easily audited in audit chain.
S5, manager execute corresponding operating according to the auditing result selection of the intelligent contract.
Manager obtains the auditing result of the intelligent contract, and for the intelligent contract that audit passes through, the manager will It is added in chain transaction.For the intelligent contract that the audit fails, the manager is returned to user both sides and illustrates original Cause.
S6, when user both sides need to modify contract or abolish contract when, need first be audited through administrator, can after Execute relevant operation.
Intelligent contract method of commerce based on double chain framework of the invention, further includes following steps:
S7, setting check the time limit, manager according to the inspection time limit, periodically to the conjunction in the chain transaction of the double chain framework It is about checked, if the intelligent contract that discovery is dangerous, initiates the request of pause contract immediately and broadcast to the transaction to examine In core chain, when the manager's agreement request in the transaction auditing chain being more than half, then the intelligence contract is stopped operation, The intelligent contract of remaining safety operates normally.
As shown in Fig. 2, in centralized and distributed mixed structure described in S1: all users connect in a distributed manner It is connected together, the center of connection is the transaction auditing chain being made of manager.All managers are connected to one in a distributed manner It rises, the auditing result of the manager need to be published to the whole network, and the auditing result need to be after the manager for being more than half agrees to It can execute.
Between two step of S1 and S2, there is also a managers to elect step, specifically includes:
Manager by different regions relevant departments and professional auditor elect, each manager is responsible for some areas Interior intelligent contract.The manager does not have right of veto by one vote, and acquired results need to broadcast the whole network.The manager can not obtain use The specific identity of family and other managers only confirm whether other people identity are correct by zero-knowledge proof.
The intelligent contract is digitally signed in S4, is specifically comprised the following steps:
Manager carries out self verification to intelligent contract, after self verification is errorless, carries out packing processing to the intelligent contract, and It is digitally signed with private key.Comprising being used for anti-fake hash function in the digital signature.Due to the hash function Discrete nature has the characteristics that one-way and can not forge, therefore in addition to signer, other people can not generate same number Word signature, to play anti-fake effect.
It is of the present invention it is centralized and distributed combine, the double-chain method for managing intelligent contract transaction, not only Using effect is excellent, and is easily achieved, and has very high practicability.The present invention is also using the method for addition audit chain, to hand over Every a intelligent contract on easy chain carries out audit inspection, it is ensured that the legitimacy and safety of contract, it can in face of intelligent contract The attack that can be subjected to can control prevention in time.Meanwhile the centralized and distributed method combined of the present invention, make Method integrally existing distributed high computing capability and low cost, possess again centralization stability and convenient for coordinate and manage Property, along with zero-knowledge proof method used in the present invention, it further ensure that peace of the user information in transmission process Quan Xing.
In addition, the present invention also provides reference for other relevant issues in same domain, can be opened up on this basis Extension is stretched, and is applied in other technical solutions about intelligent contract method of commerce, has very wide application prospect.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit and essential characteristics of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included within the present invention, and any reference signs in the claims should not be construed as limiting the involved claims.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art The other embodiments being understood that.

Claims (7)

1. a kind of intelligent contract method of commerce based on double chain framework, which comprises the steps of:
S1, centralized configuration is combined with distributed frame, obtains centralized and distributed mixed structure;
S2, manager are managed intelligent contract using double chain framework;
S3, user both sides formulate contract, create intelligent contract;
S4, the intelligent contract is digitally signed, and the transaction that the intelligent contract is passed to the double chain framework is examined It is audited in core chain;
S5, manager execute corresponding operating according to the auditing result selection of the intelligent contract;
S6, when user both sides need to modify contract or abolish contract, need first audit through administrator, it is executable by rear Relevant operation.
2. the intelligent contract method of commerce according to claim 1 based on double chain framework, which is characterized in that further include as Lower step:
S7, setting check the time limit, manager according to the inspection time limit, periodically to the conjunction in the chain transaction of the double chain framework It is about checked, if the intelligent contract that discovery is dangerous, initiates the request of pause contract immediately and broadcast to the transaction to examine In core chain, when the manager's agreement request in the transaction auditing chain being more than half, then the intelligence contract is stopped operation, The intelligent contract of remaining safety operates normally.
3. the intelligent contract method of commerce according to claim 1 based on double chain framework, which is characterized in that the institute in S1 In the centralized and distributed mixed structure stated: all users link together in a distributed manner, and the center of connection is by pipe The transaction auditing chain of reason person's composition;All managers link together in a distributed manner, and the auditing result of the manager needs It is published to the whole network, the auditing result need to agree to that rear is executable by the manager more than half.
4. the intelligent contract method of commerce according to claim 1 based on double chain framework, which is characterized in that in S1 and S2 Between two steps, there is also a managers to elect step, specifically includes:
Manager is elected by the personnel in different regions, and each manager is responsible for the intelligent contract in some areas;It is described Whether just manager can not obtain user and the specific identity of other managers, only other people identity are confirmed by zero-knowledge proof Really.
5. the intelligent contract method of commerce according to claim 1 based on double chain framework, it is characterised in that: described in S2 Double chain framework includes a chain transaction and a transaction auditing chain, can be carried out between the chain transaction and the transaction auditing chain Bi-directional data transmitting.
6. the intelligent contract method of commerce according to claim 1 based on double chain framework, which is characterized in that institute in S4 It states intelligent contract to be digitally signed, specifically comprise the following steps:
Manager carries out self verification to intelligent contract, after self verification is errorless, carries out packing processing to the intelligent contract, and It is digitally signed with private key;Comprising being used for anti-fake hash function in the digital signature.
7. the intelligent contract method of commerce according to claim 1 based on double chain framework, which is characterized in that managed in S5 Person executes corresponding operating according to the auditing result selection of the intelligent contract, specifically comprises the following steps:
Manager obtains the auditing result of the intelligent contract, and for the intelligent contract that audit passes through, the manager is added Enter in chain transaction;For the intelligent contract that the audit fails, the manager is returned to user both sides and illustration.
CN201910137090.1A 2019-02-25 2019-02-25 Intelligent contract trading method based on double-chain structure Active CN109816531B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910137090.1A CN109816531B (en) 2019-02-25 2019-02-25 Intelligent contract trading method based on double-chain structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910137090.1A CN109816531B (en) 2019-02-25 2019-02-25 Intelligent contract trading method based on double-chain structure

Publications (2)

Publication Number Publication Date
CN109816531A true CN109816531A (en) 2019-05-28
CN109816531B CN109816531B (en) 2022-08-23

Family

ID=66607366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910137090.1A Active CN109816531B (en) 2019-02-25 2019-02-25 Intelligent contract trading method based on double-chain structure

Country Status (1)

Country Link
CN (1) CN109816531B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929177A (en) * 2020-12-29 2021-06-08 合肥达朴汇联科技有限公司 Block chain anonymous user auditing method and system applied to block chain server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911216A (en) * 2017-10-26 2018-04-13 矩阵元技术(深圳)有限公司 A kind of block chain transaction method for secret protection and system
CN108664787A (en) * 2018-05-15 2018-10-16 深圳市网心科技有限公司 Contract deployment, call method, contract audit equipment, storage medium and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911216A (en) * 2017-10-26 2018-04-13 矩阵元技术(深圳)有限公司 A kind of block chain transaction method for secret protection and system
CN108664787A (en) * 2018-05-15 2018-10-16 深圳市网心科技有限公司 Contract deployment, call method, contract audit equipment, storage medium and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929177A (en) * 2020-12-29 2021-06-08 合肥达朴汇联科技有限公司 Block chain anonymous user auditing method and system applied to block chain server
CN112929177B (en) * 2020-12-29 2024-05-03 合肥达朴汇联科技有限公司 Block chain anonymous user auditing method and system applied to block chain server

Also Published As

Publication number Publication date
CN109816531B (en) 2022-08-23

Similar Documents

Publication Publication Date Title
CN107222478B (en) Software defined network control layer security mechanism construction method based on block chain
CN109871669B (en) Data sharing solution based on block chain technology
Tao et al. Food safety supervision system based on hierarchical multi-domain blockchain network
Hu Some thoughts on agent trust and delegation
Lee et al. Blockchain-based RBAC for user authentication with anonymity
Miloslavskaya Designing blockchain-based SIEM 3.0 system
He et al. Blotisrt: Blockchain-based threat intelligence sharing and rating technology
Lee et al. Blockchain-based perfect sharing project platform based on the proof of atomicity consensus algorithm
Qiu et al. Traceability anti-counterfeiting system based on the ownership of edge computing on the blockchain
CN109816531A (en) Intelligent contract method of commerce based on double chain framework
Jacob et al. Matrix decomposition: Analysis of an access control approach on transaction-based DAGs without finality
Chow et al. On sustainable ring-based anonymous systems
Zhu et al. A study on the challenges and solutions of blockchain interoperability
CN112837023A (en) Business collaboration platform, method and device of organization and electronic equipment
CN115729994B (en) Integrated big data application method for public data development and utilization
CN112583598A (en) Complex Internet of things alliance chain system communication mechanism
CN116800541A (en) Classified and hierarchical access control and access method for flight operation data
CN113807700B (en) Method and system for issuing and receiving aircraft in-wing command scheduling based on block chain
Yang et al. [Retracted] Framework Design of Science and Technology Venture Capital Salary Management System Driven by Blockchain Technology
Shuanglin Data security policy in the cloud computing
Fan et al. A generic blockchain framework to secure decentralized applications
Miloslavskaya et al. Blockchain application for iot cybersecurity management
Bakhtiary et al. Combo-Chain: Towards a hierarchical attribute-based access control system for IoT with smart contract and sharding technique
Liu et al. Turing Machine-based cross-network isolation and data exchange theory model
CN111818057B (en) Relay distribution transmission system and method for network configuration data

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