CN110932864A - Transaction instruction preauthorization and transaction execution method and system based on intelligent contract - Google Patents
Transaction instruction preauthorization and transaction execution method and system based on intelligent contract Download PDFInfo
- Publication number
- CN110932864A CN110932864A CN201911142148.8A CN201911142148A CN110932864A CN 110932864 A CN110932864 A CN 110932864A CN 201911142148 A CN201911142148 A CN 201911142148A CN 110932864 A CN110932864 A CN 110932864A
- Authority
- CN
- China
- Prior art keywords
- transaction
- contract
- information
- instruction
- key
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0894—Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a transaction instruction preauthorization and transaction execution method and system based on an intelligent contract. The transaction instruction preauthorization method based on the intelligent contract comprises the steps of obtaining transaction ID information, initiator information and receiver information; generating a transaction instruction according to the transaction ID information, the initiator information and the receiver information; acquiring a key of a trusteeship mechanism; generating a pre-authorization contract according to the escrow mechanism secret key and the transaction instruction; pre-authorization contracts are stored on blockchains. The method and the system solve the problem of abuse of the mechanism escrow key possibly caused by the mechanism escrow key pre-authorization method.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a transaction instruction preauthorization and transaction execution method and system based on an intelligent contract.
Background
A smart contract is a computer protocol that propagates, validates, or enforces contracts in an informational manner, allowing trusted transactions to be conducted without third parties, which transactions are traceable and irreversible. As shown in fig. 1, a plurality of organization operators are generally present in an organization, and since the organization is represented by an unnatural person, a key management method of the organization is a key escrow method, and a key is generally managed by an organization operator in a key-self-supporting manner. The use of the escrow authority key requires the authority operator to authorize the key by himself, and the authorization rule can be full authorization n/n or partial authorization x/n. However, the method of pre-authorization of the institution escrow key may present problems with the abuse of the institution escrow key, since the transaction instruction is executed later than the institution administrator's authorization for the use of the institution escrow key.
Disclosure of Invention
The invention aims to provide a transaction instruction pre-authorization and transaction execution method and system based on an intelligent contract, and solves the problem of mechanism escrow key abuse possibly caused by a mechanism escrow key pre-authorization method.
In order to achieve the purpose, the invention provides the following scheme:
a transaction instruction preauthorization method based on intelligent contracts comprises the following steps:
acquiring transaction ID information, initiator information and receiver information;
generating a transaction instruction according to the transaction ID information, the initiator information and the receiver information;
acquiring a key of a trusteeship mechanism;
generating a pre-authorization contract according to the escrow mechanism key and the transaction instruction;
storing the pre-authorization contract on a blockchain.
Optionally, the generating a pre-authorization contract according to the escrow mechanism key and the transaction instruction specifically includes:
and signing the transaction instruction by adopting the escrow mechanism secret key to generate a pre-authorization contract.
The invention also provides a transaction instruction preauthorization system based on the intelligent contract, which comprises the following steps:
the first acquisition module is used for acquiring transaction ID information, initiator information and receiver information;
the first transaction instruction generating module is used for generating a transaction instruction according to the transaction ID information, the initiator information and the receiver information;
the second acquisition module is used for acquiring the key of the trusteeship mechanism;
the first pre-authorized contract generating module is used for generating a pre-authorized contract according to the escrow mechanism key and the transaction instruction;
a first storage module, configured to store the pre-authorization contract on a blockchain.
Optionally, the pre-authorized contract generating module specifically includes:
and the first pre-authorized contract generating unit is used for signing the transaction instruction by adopting the escrow mechanism key to generate a pre-authorized contract.
The invention also provides a transaction execution method based on the intelligent contract, which comprises the following steps:
acquiring a key of a trustee and a target transaction instruction; the target transaction instruction comprises initiator information, receiver information and transaction ID information;
obtaining a pre-authorized contract, wherein the pre-authorized contract is generated according to the escrow mechanism secret key and a transaction instruction corresponding to the escrow mechanism secret key;
judging whether the escrow mechanism key is matched with the target transaction instruction according to the pre-authorization contract; if the matching is true, executing the transaction; if not, the transaction is not executed.
The invention also provides a transaction execution system based on the intelligent contract, which comprises the following components:
the third acquisition module is used for acquiring the key of the escrow organization and the target transaction instruction; the target transaction instruction comprises initiator information, receiver information and transaction ID information;
the fourth acquisition module is used for acquiring a pre-authorized contract, and the pre-authorized contract is generated according to the escrow mechanism key and the transaction instruction corresponding to the escrow mechanism key;
the first matching module is used for judging whether the escrow mechanism key is matched with the target transaction instruction according to the pre-authorized contract; if the first execution transaction module is matched with the second execution transaction module, the instruction is sent to the first execution transaction module; if not, sending the instruction to a first stopping module;
the first transaction executing module is used for executing transaction when the matching module judges that the result is matching;
and the first stopping module is used for not executing the transaction when the judgment result of the matching module is not matched.
The invention also provides a transaction instruction preauthorization and transaction execution method based on the intelligent contract, which comprises the following steps:
acquiring transaction ID information, initiator information and receiver information;
generating a transaction instruction according to the transaction ID information, the initiator information and the receiver information;
acquiring a key of a trusteeship mechanism;
generating a pre-authorization contract according to the escrow mechanism key and the transaction instruction;
storing the pre-authorization contract on a blockchain;
acquiring a key of a trustee to be traded and a target trading instruction; the target transaction instruction comprises target transaction initiator information, target transaction receiver information and target transaction ID information;
acquiring the pre-authorized contract, wherein the pre-authorized contract is generated according to the escrow mechanism key and the transaction instruction corresponding to the escrow mechanism key;
judging whether the escrow mechanism key to be transacted is matched with the target transaction instruction according to the pre-authorization contract; if the matching is true, executing the transaction; if not, the transaction is not executed.
Optionally, the generating a pre-authorization contract according to the escrow mechanism key and the transaction instruction specifically includes:
and signing the transaction instruction by adopting the escrow mechanism secret key to generate a pre-authorization contract.
The invention also provides a transaction instruction preauthorization and transaction execution system based on the intelligent contract, which comprises the following steps:
the fifth acquisition module is used for acquiring the transaction ID information, the initiator information and the receiver information;
the second transaction instruction generating module is used for generating a transaction instruction according to the transaction ID information, the initiator information and the receiver information;
a sixth obtaining module, configured to obtain a key of the escrow organization;
the second pre-authorized contract generating module is used for generating a pre-authorized contract according to the escrow mechanism key and the transaction instruction;
a second storage module, configured to store the pre-authorization contract on a blockchain;
the seventh acquisition module is used for acquiring a key of the escrow organization to be transacted and a target transaction instruction; the target transaction instruction comprises target transaction initiator information, target transaction receiver information and target transaction ID information;
an eighth obtaining module, configured to obtain the pre-authorized contract, where the pre-authorized contract is generated according to the escrow mechanism key and the transaction instruction corresponding to the escrow mechanism key;
the second matching module is used for judging whether the escrow mechanism key to be transacted is matched with the target transaction instruction according to the pre-authorization contract; if the first execution transaction module is matched with the second execution transaction module, the instruction is sent to the second execution transaction module; if not, sending the instruction to a second stopping module;
the second transaction execution module is used for executing transaction when the matching module judges that the result is matching;
and the second stopping module is used for not executing the transaction when the judgment result of the matching module is not matched.
Optionally, the second pre-authorized contract generating module specifically includes:
and the second pre-authorized contract generating unit is used for signing the transaction instruction by adopting the escrow mechanism key to generate a pre-authorized contract.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a transaction instruction pre-authorization method and a transaction instruction pre-authorization system based on an intelligent contract, wherein transaction ID information, initiator information and receiver information are used for generating a transaction instruction, a pre-authorization contract is generated according to a escrow mechanism secret key and the transaction instruction, and the pre-authorization contract is stored on a block chain, so that the escrow mechanism secret key can only be used for binding the transaction instruction, specific authorization can only be used for specific transaction, and the abuse problem of the escrow key of a mechanism is avoided.
The invention also provides a transaction execution method and a system based on the intelligent contract, which are used for obtaining the key of the hosting organization and the target transaction instruction and obtaining the pre-authorized contract and judging whether the key of the hosting organization is matched with the target transaction instruction or not according to the pre-authorized contract; if the matching is true, executing the transaction; if not, the transaction is not executed. When the transaction is executed, whether the mechanism key is matched with the target transaction instruction is judged, so that the security performance of the transaction is improved, and the abuse problem of the mechanism escrow key can be effectively avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a diagram illustrating key management in the background of the invention;
FIG. 2 is a flowchart of a transaction instruction pre-authorization method based on smart contracts according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a task contract according to an embodiment of the present invention;
FIG. 4 is a diagram of a system for pre-authorizing a transaction order based on an intelligent contract according to an embodiment of the present invention;
FIG. 5 is a flowchart of a transaction execution method based on smart contracts according to a second embodiment of the invention;
FIG. 6 is a diagram of a transaction execution system based on smart contracts according to a second embodiment of the present invention;
FIG. 7 is a flowchart of a transaction instruction pre-authorization and transaction execution method based on an intelligent contract according to a third embodiment of the present invention;
fig. 8 is a diagram of a transaction instruction pre-authorization and transaction execution system structure based on an intelligent contract according to a third embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide a transaction instruction pre-authorization and transaction execution method and system based on an intelligent contract, and solves the problem of mechanism escrow key abuse possibly caused by a mechanism escrow key pre-authorization method.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Example one
FIG. 2 is a flow chart of a transaction instruction pre-authorization method based on smart contracts according to an embodiment of the present invention. As shown in fig. 2, a transaction instruction preauthorization method based on a smart contract includes:
step 101: transaction ID information, initiator information, and receiver information are obtained. FIG. 3 is a schematic diagram of a task contract according to an embodiment of the present invention, and as shown in FIG. 3, the task contract is used for executing a trading order, the task contract includes one or more trading orders, and a trading order includes 3 features: initiator, receiver, transaction ID, 3 features may uniquely identify a transaction instruction.
Step 102: and generating a transaction instruction according to the transaction ID information, the initiator information and the receiver information.
Step 103: a escrow authority key is obtained.
Step 104: and generating a pre-authorization contract according to the escrow mechanism key and the transaction instruction.
and signing the transaction instruction by adopting the key of the escrow organization to generate a pre-authorization contract.
Step 105: pre-authorization contracts are stored on blockchains.
The transaction instruction pre-authorization method based on the intelligent contract requires that transaction instruction characteristics are transmitted, and the pre-authorization contract associates a escrow mechanism secret key with the transmitted specific transaction instruction characteristics and stores the transaction instruction characteristics as pre-authorization transaction instruction data. The transaction instruction features which have been transmitted in uniquely correspond to a certain transaction instruction which is not generated. The escrow mechanism key can only be used for binding transaction instructions, so that specific authorization can only be used for specific transactions, and the problem of abuse of the escrow mechanism key is avoided by authorizing transactions instead of people.
Fig. 4 is a diagram of a transaction instruction preauthorization system based on an intelligent contract according to an embodiment of the invention. As shown in fig. 4, a transaction instruction preauthorization system based on a smart contract includes:
the first obtaining module 201 is configured to obtain transaction ID information, initiator information, and recipient information.
The first transaction instruction generating module 202 is configured to generate a transaction instruction according to the transaction ID information, the initiator information, and the receiver information.
And a second obtaining module 203, configured to obtain the escrow organization key.
The first pre-authorized contract generating module 204 is configured to generate a pre-authorized contract according to the escrow organization key and the transaction instruction.
The pre-authorized contract generating module 204 specifically includes:
and the first pre-authorized contract generating unit is used for signing the transaction instruction by adopting the key of the escrow organization to generate the pre-authorized contract.
A first storage module 205 for storing the pre-authorization contract on the blockchain.
Example two
FIG. 5 is a flow chart of a transaction execution method based on smart contracts in an embodiment of the invention. As shown in fig. 5, a transaction execution method based on a smart contract includes:
step 301: acquiring a key of a trustee and a target transaction instruction; the target transaction instruction includes initiator information, recipient information, and transaction ID information.
Step 302: and acquiring a pre-authorized contract, wherein the pre-authorized contract is generated according to the escrow mechanism secret key and the transaction instruction corresponding to the escrow mechanism secret key.
Step 303: judging whether the key of the escrow organization is matched with the target transaction instruction according to the pre-authorization contract; if so, go to step 304; if not, go to step 305.
Step 304: the transaction is executed.
Step 305: no transaction is performed.
The invention relates to a transaction execution method based on an intelligent contract, wherein the task contract comprises a task execution method, and the method requires that a key of a hosting organization is called to sign the task execution and simultaneously target transaction instruction characteristics (initiator information, receiver information and transaction ID information) are transmitted. The task execution method firstly calls a pre-authorization query method of a pre-authorization contract to query whether the organization escrow key and the target transaction instruction feature have corresponding pre-authorization associated data. If the corresponding pre-authorization associated data exists, the target transaction instruction is executed, and if the pre-authorization associated data does not exist, the transaction instruction is refused to be executed, so that the security performance of the transaction is improved, and the abuse problem of mechanism escrow keys can be effectively avoided.
Fig. 6 is a diagram of a transaction execution system based on smart contracts according to an embodiment of the present invention. As shown in fig. 6, a transaction execution system based on a smart contract includes:
a third obtaining module 401, configured to obtain a escrow mechanism key and a target transaction instruction; the target transaction instruction includes initiator information, recipient information, and transaction ID information.
A fourth obtaining module 402, configured to obtain a pre-authorized contract, where the pre-authorized contract is generated according to the escrow mechanism key and the transaction instruction corresponding to the escrow mechanism key.
A first matching module 403, configured to determine whether the escrow mechanism key matches the target transaction instruction according to the pre-authorization contract; if so, the instruction is sent to the first execution transaction module 404; if not, the instruction is sent to the first stop module 405.
A first transaction executing module 404, configured to execute a transaction when the first matching module 403 determines that the two modules match.
A first stopping module 405, configured to not execute the transaction when the first matching module 403 determines that the result is not matching.
EXAMPLE III
FIG. 7 is a flow chart of a transaction instruction pre-authorization and transaction execution method based on smart contracts in an embodiment of the present invention. As shown in fig. 7, a transaction instruction preauthorization and transaction execution method based on a smart contract includes:
step 501: transaction ID information, initiator information, and receiver information are obtained.
Step 502: and generating a transaction instruction according to the transaction ID information, the initiator information and the receiver information.
Step 503: a escrow authority key is obtained.
Step 504: and generating a pre-authorization contract according to the escrow mechanism key and the transaction instruction.
and signing the transaction instruction by adopting the key of the escrow organization to generate a pre-authorization contract.
Step 505: pre-authorization contracts are stored on blockchains.
Step 506: acquiring a key of a trustee to be traded and a target trading instruction; the target transaction instruction includes target transaction initiator information, target transaction receiver information, and target transaction ID information.
Step 507: and acquiring a pre-authorized contract, wherein the pre-authorized contract is generated according to the escrow mechanism secret key and the transaction instruction corresponding to the escrow mechanism secret key.
Step 508: judging whether the key of the escrow organization to be transacted is matched with the target transaction instruction according to the pre-authorization contract; if so, go to step 509; if not, go to step 510.
Step 509: the transaction is executed.
Step 510: no transaction is performed.
Fig. 8 is a diagram of a transaction instruction pre-authorization and transaction execution system based on an intelligent contract according to an embodiment of the present invention. As shown in fig. 8, a transaction instruction preauthorization and transaction execution system based on a smart contract includes:
a fifth obtaining module 601, configured to obtain the transaction ID information, the initiator information, and the receiver information.
And a second transaction instruction generating module 602, configured to generate a transaction instruction according to the transaction ID information, the initiator information, and the receiver information.
A sixth obtaining module 603, configured to obtain the escrow organization key.
And a second pre-authorized contract generating module 604, configured to generate a pre-authorized contract according to the escrow organization key and the transaction instruction.
The second pre-authorized contract generating module 604 specifically includes:
and the second pre-authorized contract generating unit is used for signing the transaction instruction by adopting the key of the escrow organization to generate the pre-authorized contract.
A second storing module 605 for storing the pre-authorization contract on the blockchain.
A seventh obtaining module 606, configured to obtain a escrow mechanism key to be transacted and a target transaction instruction; the target transaction instruction includes target transaction initiator information, target transaction receiver information, and target transaction ID information.
An eighth obtaining module 607, configured to obtain a pre-authorized contract, where the pre-authorized contract is generated according to the escrow mechanism key and the transaction instruction corresponding to the escrow mechanism key.
A second matching module 608, configured to determine whether the escrow mechanism key matches the target transaction instruction according to the pre-authorized contract; if the first execution transaction module is matched with the second execution transaction module, the instruction is sent to the second execution transaction module; and if not, sending the instruction to a second stopping module.
And a second transaction executing module 609, configured to execute a transaction when the second matching module 608 determines that the result is a match.
And a second stopping module 610, configured to not execute the transaction when the second matching module 608 determines that the result is not matching.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In summary, this summary should not be construed to limit the present invention.
Claims (10)
1. A transaction instruction preauthorization method based on intelligent contracts is characterized by comprising the following steps:
acquiring transaction ID information, initiator information and receiver information;
generating a transaction instruction according to the transaction ID information, the initiator information and the receiver information;
acquiring a key of a trusteeship mechanism;
generating a pre-authorization contract according to the escrow mechanism key and the transaction instruction;
storing the pre-authorization contract on a blockchain.
2. The intelligent contract-based transaction instruction preauthorization method according to claim 1, wherein the generating a preauthorization contract according to the escrow authority key and the transaction instruction specifically includes:
and signing the transaction instruction by adopting the escrow mechanism secret key to generate a pre-authorization contract.
3. A smart contract-based transaction instruction preauthorization system, comprising:
the first acquisition module is used for acquiring transaction ID information, initiator information and receiver information;
the first transaction instruction generating module is used for generating a transaction instruction according to the transaction ID information, the initiator information and the receiver information;
the second acquisition module is used for acquiring the key of the trusteeship mechanism;
the first pre-authorized contract generating module is used for generating a pre-authorized contract according to the escrow mechanism key and the transaction instruction;
a first storage module, configured to store the pre-authorization contract on a blockchain.
4. The intelligent contract-based transaction instruction preauthorization system of claim 3, wherein the preauthorization contract generation module specifically comprises:
and the first pre-authorized contract generating unit is used for signing the transaction instruction by adopting the escrow mechanism key to generate a pre-authorized contract.
5. A method for executing a transaction based on a smart contract, comprising:
acquiring a key of a trustee and a target transaction instruction; the target transaction instruction comprises initiator information, receiver information and transaction ID information;
obtaining a pre-authorized contract, wherein the pre-authorized contract is generated according to the escrow mechanism secret key and a transaction instruction corresponding to the escrow mechanism secret key;
judging whether the escrow mechanism key is matched with the target transaction instruction according to the pre-authorization contract; if the matching is true, executing the transaction; if not, the transaction is not executed.
6. A smart contract-based transaction execution system, comprising:
the third acquisition module is used for acquiring the key of the escrow organization and the target transaction instruction; the target transaction instruction comprises initiator information, receiver information and transaction ID information;
the fourth acquisition module is used for acquiring a pre-authorized contract, and the pre-authorized contract is generated according to the escrow mechanism key and the transaction instruction corresponding to the escrow mechanism key;
the first matching module is used for judging whether the escrow mechanism key is matched with the target transaction instruction according to the pre-authorized contract; if the first execution transaction module is matched with the second execution transaction module, the instruction is sent to the first execution transaction module; if not, sending the instruction to a first stopping module;
the first transaction executing module is used for executing transaction when the matching module judges that the result is matching;
and the first stopping module is used for not executing the transaction when the judgment result of the matching module is not matched.
7. A transaction instruction preauthorization and transaction execution method based on an intelligent contract is characterized by comprising the following steps:
acquiring transaction ID information, initiator information and receiver information;
generating a transaction instruction according to the transaction ID information, the initiator information and the receiver information;
acquiring a key of a trusteeship mechanism;
generating a pre-authorization contract according to the escrow mechanism key and the transaction instruction;
storing the pre-authorization contract on a blockchain;
acquiring a key of a trustee to be traded and a target trading instruction; the target transaction instruction comprises target transaction initiator information, target transaction receiver information and target transaction ID information;
acquiring the pre-authorized contract, wherein the pre-authorized contract is generated according to the escrow mechanism key and the transaction instruction corresponding to the escrow mechanism key;
judging whether the escrow mechanism key to be transacted is matched with the target transaction instruction according to the pre-authorization contract; if the matching is true, executing the transaction; if not, the transaction is not executed.
8. The intelligent contract-based transaction instruction preauthorization and transaction execution method according to claim 7, wherein the generating a preauthorization contract according to the escrow mechanism key and the transaction instruction specifically includes:
and signing the transaction instruction by adopting the escrow mechanism secret key to generate a pre-authorization contract.
9. A transaction instruction preauthorization, transaction execution system based on a smart contract, comprising:
the fifth acquisition module is used for acquiring the transaction ID information, the initiator information and the receiver information;
the second transaction instruction generating module is used for generating a transaction instruction according to the transaction ID information, the initiator information and the receiver information;
a sixth obtaining module, configured to obtain a key of the escrow organization;
the second pre-authorized contract generating module is used for generating a pre-authorized contract according to the escrow mechanism key and the transaction instruction;
a second storage module, configured to store the pre-authorization contract on a blockchain;
the seventh acquisition module is used for acquiring a key of the escrow organization to be transacted and a target transaction instruction; the target transaction instruction comprises target transaction initiator information, target transaction receiver information and target transaction ID information;
an eighth obtaining module, configured to obtain the pre-authorized contract, where the pre-authorized contract is generated according to the escrow mechanism key and a transaction instruction corresponding to the escrow mechanism key;
the second matching module is used for judging whether the escrow mechanism key to be transacted is matched with the target transaction instruction according to the pre-authorization contract; if the first execution transaction module is matched with the second execution transaction module, the instruction is sent to the second execution transaction module; if not, sending the instruction to a second stopping module;
the second transaction execution module is used for executing transaction when the matching module judges that the result is matching;
and the second stopping module is used for not executing the transaction when the judgment result of the matching module is not matched.
10. The intelligent contract-based transaction instruction preauthorization and transaction execution system according to claim 9, wherein the second preauthorization contract generation module specifically comprises:
and the second pre-authorized contract generating unit is used for signing the transaction instruction by adopting the escrow mechanism key to generate a pre-authorized contract.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911142148.8A CN110932864B (en) | 2019-11-20 | 2019-11-20 | Transaction instruction preauthorization and transaction execution method and system based on intelligent contract |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911142148.8A CN110932864B (en) | 2019-11-20 | 2019-11-20 | Transaction instruction preauthorization and transaction execution method and system based on intelligent contract |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110932864A true CN110932864A (en) | 2020-03-27 |
CN110932864B CN110932864B (en) | 2022-06-28 |
Family
ID=69851391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911142148.8A Active CN110932864B (en) | 2019-11-20 | 2019-11-20 | Transaction instruction preauthorization and transaction execution method and system based on intelligent contract |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110932864B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106788987A (en) * | 2016-11-28 | 2017-05-31 | 树读(上海)信息科技有限公司 | A kind of collage-credit data based on block chain is shared and transaction system |
CN107330681A (en) * | 2017-06-27 | 2017-11-07 | 中链科技有限公司 | A kind of method and apparatus of exchange hour for being used to determine to merchandise outside block chain chain |
CN109523302A (en) * | 2018-10-19 | 2019-03-26 | 中链科技有限公司 | Advertisement sending method, device and calculating equipment based on block chain |
CN110113244A (en) * | 2018-02-09 | 2019-08-09 | 中企云链(北京)金融信息服务有限公司 | A kind of instant communicating system and method based on block chain technology |
US20190349199A1 (en) * | 2018-05-10 | 2019-11-14 | Alibaba Group Holding Limited | Blockchain data processing methods, apparatuses, processing devices, and systems |
-
2019
- 2019-11-20 CN CN201911142148.8A patent/CN110932864B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106788987A (en) * | 2016-11-28 | 2017-05-31 | 树读(上海)信息科技有限公司 | A kind of collage-credit data based on block chain is shared and transaction system |
CN107330681A (en) * | 2017-06-27 | 2017-11-07 | 中链科技有限公司 | A kind of method and apparatus of exchange hour for being used to determine to merchandise outside block chain chain |
CN110113244A (en) * | 2018-02-09 | 2019-08-09 | 中企云链(北京)金融信息服务有限公司 | A kind of instant communicating system and method based on block chain technology |
US20190349199A1 (en) * | 2018-05-10 | 2019-11-14 | Alibaba Group Holding Limited | Blockchain data processing methods, apparatuses, processing devices, and systems |
CN109523302A (en) * | 2018-10-19 | 2019-03-26 | 中链科技有限公司 | Advertisement sending method, device and calculating equipment based on block chain |
Also Published As
Publication number | Publication date |
---|---|
CN110932864B (en) | 2022-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI831760B (en) | System and method for authenticating off-chain data based on proof verification | |
CN108833081B (en) | Block chain-based equipment networking authentication method | |
US11743052B2 (en) | Platform for generating authenticated data objects | |
CN111316615B (en) | System and method for ensuring correct execution of a computer program using a mediator computer system | |
CN106504094B (en) | Transaction matching method and system of distributed general ledger system based on block chain technology | |
CN111373431A (en) | Credible insurance letter based on block chain | |
CN111049806B (en) | Joint authority control method and device, electronic equipment and storage medium | |
CN110677259B (en) | Full-link real-time notarization system and method for electronic contract | |
CN111433798B (en) | Credible insurance letter based on block chain | |
CN111357026A (en) | Credible insurance letter based on block chain | |
CN113988857A (en) | NFT transaction method, transaction system, computer-readable storage medium and terminal device | |
CN114760071B (en) | Zero-knowledge proof based cross-domain digital certificate management method, system and medium | |
CN113826134A (en) | Credible insurance letter based on block chain | |
CN112734423A (en) | Transaction method based on block chain and terminal equipment | |
CN113609224A (en) | Crowdsourcing operation method and system for realizing privacy protection based on block chain | |
KR20090095940A (en) | System and Method for Non-faced Financial Transaction by Using Verification of Transaction Step and Program Recording Medium | |
CN112184245B (en) | Transaction identity confirmation method and device for cross-region block chain | |
CN110647553B (en) | Block chain-based power transaction contract management method and system | |
CN110932864B (en) | Transaction instruction preauthorization and transaction execution method and system based on intelligent contract | |
CN112163845B (en) | Transaction identity confirmation method and device for cross-region block chain | |
CN112861184A (en) | Asset certification verification and generation method and device and electronic equipment | |
CN117094717B (en) | Multi-user receivables right verification system based on blockchain encryption | |
KR102687781B1 (en) | System and method for authenticating off-chain data based on proof verification | |
CN112632636B (en) | Ciphertext data comparison result proving and verifying method and device | |
CN116707985A (en) | Multi-party aggregation and message increasing acquisition method, equipment and storage medium |
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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Room 3005, No.9, Lane 803, Shuangcheng Road, Baoshan District, Shanghai 201900 Patentee after: Shanghai Ouye Jincheng Information Service Co.,Ltd. Address before: Room 3005, No.9, Lane 803, Shuangcheng Road, Baoshan District, Shanghai 201900 Patentee before: SHANGHAI OUYE FINANCE INFORMATION SERVICE Co.,Ltd. |