CN113592650A - Transaction method, device and equipment based on block chain intelligent contract - Google Patents

Transaction method, device and equipment based on block chain intelligent contract Download PDF

Info

Publication number
CN113592650A
CN113592650A CN202110866456.6A CN202110866456A CN113592650A CN 113592650 A CN113592650 A CN 113592650A CN 202110866456 A CN202110866456 A CN 202110866456A CN 113592650 A CN113592650 A CN 113592650A
Authority
CN
China
Prior art keywords
data
transaction
contract
encrypted
encrypted transaction
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
CN202110866456.6A
Other languages
Chinese (zh)
Other versions
CN113592650B (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.)
Chengdu Quality Starker Technology Co Ltd
Original Assignee
Chengdu Quality Starker 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 Chengdu Quality Starker Technology Co Ltd filed Critical Chengdu Quality Starker Technology Co Ltd
Priority to CN202110866456.6A priority Critical patent/CN113592650B/en
Publication of CN113592650A publication Critical patent/CN113592650A/en
Application granted granted Critical
Publication of CN113592650B publication Critical patent/CN113592650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Signal Processing (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention relates to the technical field of video content analysis, in particular to a transaction method, a device and equipment based on a block chain intelligent contract, which are used for receiving first encrypted transaction data submitted by a transaction expenditure node; the validity of the first encrypted transaction data is detected, if the first encrypted transaction data is valid, the first encrypted transaction data is uploaded to a block chain network, the first encrypted transaction data is used for triggering the block chain network to call a corresponding intelligent contract according to the contract certificate data, and then the transaction is automatically completed through the intelligent contract.

Description

Transaction method, device and equipment based on block chain intelligent contract
Technical Field
The invention relates to the technical field of video content analysis, in particular to a transaction method, a transaction device, transaction equipment and a readable storage medium based on a block chain intelligent contract.
Background
The blockchain technology is based on decentralized distributed protocol, consensus algorithm, asymmetric key signature, Hash and other technologies, can safely store digital asset information, information cannot be forged and falsified, all nodes on a blockchain network execute transactions respectively and complete result confirmation together, and the consensus algorithm ensures the consistency of the transactions executed by all the nodes.
The existing block chain network can only complete simpler transfer transaction and can not complete more complex transaction, for example, whether the transaction meets the related agreement preset by both parties or whether the transaction meets the existing financial supervision agreement is judged according to the fulfillment condition of a contract.
Disclosure of Invention
The invention aims to provide a transaction method, a transaction device, a transaction equipment and a readable storage medium based on a block chain intelligent contract, so as to improve the problems.
In order to achieve the above object, the embodiments of the present application provide the following technical solutions:
on one hand, the embodiment of the application provides a transaction method based on a block chain intelligent contract, the method is applied to any transaction auditing node in a block chain network, the transaction auditing node is an upper node common to both transaction parties, and the method comprises the following steps:
receiving first encrypted transaction data submitted by a transaction spending node, the first encrypted transaction data including contract credential data for indicating that a transaction initiator has fulfilled a contract;
and detecting the validity of the first encrypted transaction data, if the first encrypted transaction data is valid, uploading the first encrypted transaction data to a blockchain network, wherein the first encrypted transaction data is used for triggering the blockchain network to call a corresponding intelligent contract according to the contract certificate data, and then automatically completing the transaction through the intelligent contract.
Optionally, the detecting the validity of the first encrypted transaction data includes:
retrieving the first encrypted transaction data;
decrypting the first encrypted transaction data to obtain first transaction data;
and checking the balance of balance and the validity of the signature in the first transaction data, and if the balance of balance in the first transaction data is in a balanced state and the signature is valid, judging that the first encrypted transaction data is valid data.
In a second aspect, an embodiment of the present application provides a transaction method based on a blockchain intelligent contract, where the method is applied to a blockchain network, and includes:
acquiring first encrypted transaction data sent by a transaction auditing node, wherein the first encrypted transaction data comprises contract voucher data, expenditure data and income data, and the contract voucher data comprises a contract number;
calling a corresponding intelligent contract according to the contract number;
detecting whether the contract voucher data, the expenditure data and the income data all meet preset terms in the intelligent contract, and if the contract voucher data, the expenditure data and the income data all meet the preset terms, performing consensus voting on the first encrypted transaction data;
the agreed first encrypted transaction data is sent to each node in the blockchain network.
In a third aspect, the present application provides a transaction method based on a blockchain intelligent contract, where the method is applied to a blockchain network, and includes:
acquiring first encrypted transaction data sent by a transaction auditing node, wherein the first encrypted transaction data comprises contract voucher data, expenditure data and income data, and the contract voucher data comprises contract number transaction initiation time;
calling a corresponding intelligent contract according to the contract number;
judging whether the contract voucher data, the expenditure data and the income data all meet preset terms in the intelligent contract through the intelligent contract, if the contract voucher data, the expenditure data and the income data all meet the preset terms, detecting whether the first encrypted transaction data meet corresponding supervision rules, and if the first encrypted transaction data meet the supervision rules, performing consensus voting on the first encrypted transaction data;
the agreed first encrypted transaction data is sent to each node in the blockchain network.
Optionally, the detecting whether the first encrypted transaction data satisfies a corresponding regulatory rule includes:
calling first encrypted transaction data, wherein the first encrypted transaction data comprises a contract number;
determining a transaction type corresponding to the first encrypted transaction data according to the contract number;
calling a corresponding supervision rule in the block chain network according to the transaction type;
verifying whether the first encrypted transaction data satisfies the regulatory rules.
In a fourth aspect, an embodiment of the present application provides a transaction device based on a blockchain intelligent contract, where the device is applied to any transaction auditing node in a blockchain network, and the transaction auditing node is an upper node common to both transaction parties, and includes:
a first receiving module for receiving first encrypted transaction data submitted by a transaction expenditure node, the first encrypted transaction data comprising contract credential data for indicating that a transaction initiator has fulfilled a contract;
the first calculation module is used for detecting the validity of the first encrypted transaction data, if the first encrypted transaction data is valid, the first encrypted transaction data is uploaded to a block chain network, the first encrypted transaction data is used for triggering the block chain network to call a corresponding intelligent contract according to the contract certificate data, and then the transaction is automatically completed through the intelligent contract.
In a fifth aspect, an embodiment of the present application provides a transaction apparatus based on a blockchain intelligent contract, where the apparatus is applied to a blockchain network, and includes:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring first encrypted transaction data sent by a transaction auditing node, the first encrypted transaction data comprises contract voucher data, expenditure data and income data, and the contract voucher data comprises a contract number;
the first calling module is used for calling the corresponding intelligent contract according to the contract number;
the second calculation module is used for detecting whether the contract voucher data, the expenditure data and the income data all meet preset terms in the middle of the intelligent contract, and if the contract voucher data, the expenditure data and the income data all meet the preset terms, consensus voting is carried out on the first encrypted transaction data;
and the third calculation module is used for sending the agreed first encrypted transaction data to each node in the blockchain network.
In a fifth aspect, an embodiment of the present application provides a transaction apparatus based on a blockchain intelligent contract, where the apparatus is applied in a blockchain network, and includes:
the second acquisition module is used for acquiring first encrypted transaction data sent by the transaction auditing node, wherein the first encrypted transaction data comprises contract voucher data, expenditure data and income data, and the contract voucher data comprises contract number transaction initiation time;
the second calling module is used for calling the corresponding intelligent contract according to the contract number;
a fourth calculation module, configured to determine, through the intelligent contract, whether the contract credential data, the expenditure data, and the income data all satisfy preset terms inside the intelligent contract, detect whether the first encrypted transaction data satisfies a corresponding supervision rule if the contract credential data, the expenditure data, and the income data all satisfy the preset terms, and perform consensus voting on the first encrypted transaction data if the first encrypted transaction data satisfies the supervision specification;
and the fifth calculation module is used for sending the agreed first encrypted transaction data to each node in the blockchain network.
In a sixth aspect, embodiments of the present application provide a transaction device based on a blockchain smart contract, where the device includes a memory and a processor. The memory is used for storing a computer program; the processor is used for realizing the steps of the transaction method based on the block chain intelligent contract when executing the computer program.
In a seventh aspect, an embodiment of the present application provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the steps of the transaction method based on the blockchain intelligent contract are implemented.
The invention has the beneficial effects that:
the invention packages the contract voucher in the first encrypted transaction data, uploads the compiled intelligent contract to the block chain network before the transaction is initiated, and checks whether the two transaction parties complete the preset contract clauses or not by checking the contract voucher after the validity of the first encrypted transaction data is checked, thereby enabling the block chain network to complete more complex transactions.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic flow chart of a transaction method based on a blockchain smart contract according to an embodiment of the present invention;
fig. 2-1 is a schematic structural diagram of a transaction apparatus a based on a blockchain intelligent contract according to an embodiment of the present invention;
fig. 2-2 is a schematic structural diagram of a transaction apparatus b based on a blockchain intelligent contract according to an embodiment of the present invention;
fig. 2-3 are schematic structural diagrams of a transaction apparatus c based on a blockchain intelligent contract according to an embodiment of the present invention;
FIG. 3 is a block chain intelligent contract-based transaction facility architecture diagram according to an embodiment of the present invention;
FIG. 4 is a schematic view of a multi-layer monitor frame configuration according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. 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.
It should be noted that: like reference numbers or letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example one
As shown in fig. 1 and fig. 4, the present embodiment provides a transaction method based on a blockchain intelligent contract, which is applied to any transaction auditing node in a blockchain network, where the transaction auditing node is an upper node common to both transaction parties, and the method includes step S1 and step S2.
Step S1, receiving first encrypted transaction data submitted by a transaction expenditure node, wherein the first encrypted transaction data comprises contract voucher data which is used for representing that a transaction initiator has fulfilled a contract;
wherein the specific steps of the transaction expenditure node submitting the first encrypted transaction data comprise:
s11, the transaction expenditure node extracts an expenditure UTXO from a local account of the transaction expenditure node, then information of a payee is edited, and a plurality of income data are generated, wherein one payee corresponds to one income data, and the expenditure UTXO and the income data are called as first transaction data;
s12, then, the transaction expenditure node encrypts each revenue data and each expenditure UTXO respectively by using a HIBE hierarchical identity based encryption manner, so that each expenditure UTXO can only be decrypted and read by a node on the expenditure path, and each revenue data can only be decrypted and read by a node on a corresponding collection path, in order to further explain related concepts, this embodiment explains in a form of a multi-layer supervisory organization architecture between nodes in an exemplary block chain network as shown in fig. 4, for example, it is assumed that the escrow mechanism 1 needs to pay 2 yuan to the escrow mechanism 4, at this time, the escrow mechanism a is a transaction node of the escrow mechanism 1 and the escrow mechanism 4, the collection path is an audit mechanism a-escrow mechanism b-escrow mechanism 4, and the expenditure path is the escrow mechanism 1-escrow mechanism a;
and S13, after the first encrypted transaction data are generated at the transaction expenditure node, the first encrypted transaction data are approved and signed layer by layer according to a preset expenditure path until the first encrypted transaction data are received by the transaction auditing node.
And S2, detecting the validity of the first encrypted transaction data, if the first encrypted transaction data is valid, uploading the first encrypted transaction data to a block chain network, wherein the first encrypted transaction data is used for triggering the block chain network to call a corresponding intelligent contract according to the contract certificate data, and then automatically completing the transaction through the intelligent contract.
The specific implementation step of detecting the validity of the first encrypted transaction data in step S2 includes:
s21, calling the first encrypted transaction data;
s22, decrypting the first encrypted transaction data to obtain first transaction data;
and S23, checking the balance and signature validity in the first transaction data, and if the balance and the signature in the first transaction data are in a balance state and the signature is valid, judging that the first encrypted transaction data are valid data.
The method for verifying the balance of the balance in the first transaction data comprises the following specific steps:
step S231, calling the first transaction data, wherein the first transaction data comprises expenditure UTXO and two income party data, and the income party data reflects collection information of a collection party;
and S232, checking the validity of the expenditure UTXO, and if the expenditure UTXO is valid, detecting the balance of income and expenditure of income data.
In step S232, the specific method steps for checking the validity of the expenditure UTXO and checking the revenue data balance if valid may be:
s2321, detecting the denomination of the expenditure UTXO to obtain the expenditure denomination;
s2322, calling the two income party data, wherein the income party data comprises income accounts and to-be-collected denominations;
s2323, sequentially checking the effectiveness of each income account, and counting the sum of the two to-be-collected denominations to obtain income denominations if the two income accounts are effective accounts;
s2324, comparing whether the income denomination is the same as the expenditure denomination;
step S2325, if the income denomination is the same as the expenditure denomination, the balance of the income and expenditure of the first transaction data is determined to be in a balance state.
Secondly, the specific step of verifying the validity of the signature in the first transaction data comprises:
step S233, the first transaction data is called, and the first transaction data comprises expenditure UTXO;
and S234, checking whether the signature of the expenditure UTXO is valid, and if the signature of the UTXO is valid, judging that the signature of the transaction data is a valid signature.
Example two
Based on the first embodiment, the present embodiment provides a transaction method based on a blockchain intelligent contract, which is applied to a blockchain network, and includes:
s31, first encrypted transaction data sent by a transaction auditing node are obtained, wherein the first encrypted transaction data comprise contract voucher data, expenditure data and income data, and the contract voucher data comprise contract numbers;
s32, calling a corresponding intelligent contract according to the contract number;
s33, detecting whether the contract voucher data, the expenditure data and the income data all meet preset terms in the intelligent contract, and if the contract voucher data, the expenditure data and the income data all meet the preset terms, performing consensus voting on the first encrypted transaction data;
and S34, sending the agreed first encrypted transaction data to each node in the blockchain network.
EXAMPLE III
Based on the first embodiment, the present embodiment provides a transaction method based on a blockchain intelligent contract, which is applied to a blockchain network, and includes:
s41, first encrypted transaction data sent by a transaction auditing node are obtained, wherein the first encrypted transaction data comprise contract voucher data, expenditure data and income data, and the contract voucher data comprise contract number transaction initiation time;
s42, calling a corresponding intelligent contract according to the contract number;
s43, judging whether the contract voucher data, the expenditure data and the income data all meet preset terms in the intelligent contract through the intelligent contract, if so, detecting whether the first encrypted transaction data meets corresponding supervision rules, and if so, performing consensus voting on the first encrypted transaction data;
wherein, the specific step of detecting whether the first encrypted transaction data satisfies the corresponding regulation rule in step S43 includes:
step S431, calling first encrypted transaction data, wherein the first encrypted transaction data comprises a contract number;
step S432, according to the contract number, judging a transaction type corresponding to the first encrypted transaction data;
step S433, calling a corresponding supervision rule in the block chain network according to the transaction type;
step s434. check whether the first encrypted transaction data satisfies the regulatory rule.
And S44, sending the agreed first encrypted transaction data to each node in the block chain network.
Example four
As shown in fig. 2-1, this embodiment provides a transaction apparatus based on a blockchain intelligent contract, which is applied to any transaction auditing node in a blockchain network, where the transaction auditing node is an upper node common to both parties of a transaction, and includes:
a first receiving module 71, configured to receive first encrypted transaction data submitted by a transaction expenditure node, the first encrypted transaction data including contract credential data indicating that a transaction initiator has fulfilled a contract;
the first calculation module 72 is configured to detect validity of the first encrypted transaction data, and if the first encrypted transaction data is valid, upload the first encrypted transaction data to a blockchain network, where the first encrypted transaction data is used to trigger the blockchain network to invoke a corresponding intelligent contract according to the contract credential data, and then automatically complete a transaction through the intelligent contract.
It should be noted that, regarding the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated herein.
EXAMPLE five
As shown in fig. 2-2, the present embodiment provides a transaction apparatus based on a blockchain intelligent contract, applied to a blockchain network, including:
a first obtaining module 73, configured to obtain first encrypted transaction data sent by a transaction auditing node, where the first encrypted transaction data includes contract credential data, expenditure data, and income data, and the contract credential data includes a contract number;
the first calling module 74 is used for calling the corresponding intelligent contract according to the contract number;
a second calculating module 75, configured to detect whether the contract voucher data, the expenditure data, and the income data all satisfy a preset term in the middle of the intelligent contract, and perform consensus voting on the first encrypted transaction data if the contract voucher data, the expenditure data, and the income data all satisfy the preset term;
a third calculation module 76 for sending the agreed first encrypted transaction data to each node in the blockchain network.
EXAMPLE six
As shown in fig. 2 to 3, the present embodiment provides a transaction apparatus based on a blockchain intelligent contract, applied to a blockchain network, including:
a second obtaining module 77, configured to obtain first encrypted transaction data sent by a transaction auditing node, where the first encrypted transaction data includes contract credential data, expenditure data, and income data, and the contract credential data includes contract number transaction initiation time;
a second calling module 78, configured to call a corresponding intelligent contract according to the contract number;
a fourth calculating module 79, configured to determine, by the intelligent contract, whether the contract credential data, the expenditure data, and the income data all satisfy preset terms inside the intelligent contract, detect whether the first encrypted transaction data satisfies a corresponding supervision rule if the contract credential data, the expenditure data, and the income data all satisfy the preset terms, and perform consensus voting on the first encrypted transaction data if the first encrypted transaction data satisfies the supervision specification;
a fifth calculation module 710 for sending the agreed first encrypted transaction data to each node in the blockchain network.
EXAMPLE seven
Corresponding to the above method embodiment, the present disclosure further provides a transaction device based on a blockchain intelligent contract, and a transaction device based on a blockchain intelligent contract described below and a transaction method based on a blockchain intelligent contract described above may be referred to correspondingly to each other.
Fig. 3 is a block diagram illustrating a transaction device 800 based on blockchain smart contracts, according to an example embodiment. As shown in fig. 3, the electronic device 800 may include: a processor 801, a memory 802. The electronic device 800 may also include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communications component 805.
The processor 801 is configured to control the overall operation of the electronic device 800 to complete all or part of the steps in the above-described transaction method based on the blockchain smart contract. The memory 402 is used to store various types of data to support operation at the electronic device 800, such as instructions for any application or method operating on the electronic device 800 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 802 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 803 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 802 or transmitted through the communication component 805. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the electronic device 800 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding communication component 805 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components, for executing the above-mentioned transaction method based on the blockchain smart contract.
In another exemplary embodiment, a computer readable storage medium is also provided that includes program instructions which, when executed by a processor, implement the steps of the above-described blockchain intelligent contract-based trading method. For example, the computer readable storage medium may be the memory 802 described above that includes program instructions executable by the processor 801 of the electronic device 800 to perform the method for trading based on blockchain smart contracts described above.
Example eight
Corresponding to the above method embodiment, the disclosed embodiment also provides a readable storage medium, and a readable storage medium described below and a transaction method based on a blockchain intelligent contract described above may be correspondingly referred to each other.
A readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the block chain smart contract-based transaction method of the above-mentioned method embodiment.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A transaction method based on a block chain intelligent contract is characterized in that the transaction method is applied to any transaction auditing node in a block chain network, the transaction auditing node is an upper node common to both transaction parties, and the transaction method comprises the following steps:
receiving first encrypted transaction data submitted by a transaction spending node, the first encrypted transaction data including contract credential data for indicating that a transaction initiator has fulfilled a contract;
and detecting the validity of the first encrypted transaction data, if the first encrypted transaction data is valid, uploading the first encrypted transaction data to a blockchain network, wherein the first encrypted transaction data is used for triggering the blockchain network to call a corresponding intelligent contract according to the contract certificate data, and then automatically completing the transaction through the intelligent contract.
2. The method for trading based on blockchain smart contracts of claim 1, wherein the detecting the validity of the first encrypted trading data comprises:
retrieving the first encrypted transaction data;
decrypting the first encrypted transaction data to obtain first transaction data;
and checking the balance of balance and the validity of the signature in the first transaction data, and if the balance of balance in the first transaction data is in a balanced state and the signature is valid, judging that the first encrypted transaction data is valid data.
3. A transaction method based on a blockchain intelligent contract is applied to a blockchain network and comprises the following steps:
acquiring first encrypted transaction data sent by a transaction auditing node, wherein the first encrypted transaction data comprises contract voucher data, expenditure data and income data, and the contract voucher data comprises a contract number;
calling a corresponding intelligent contract according to the contract number;
detecting whether the contract voucher data, the expenditure data and the income data all meet preset terms in the intelligent contract, and if the contract voucher data, the expenditure data and the income data all meet the preset terms, performing consensus voting on the first encrypted transaction data;
the agreed first encrypted transaction data is sent to each node in the blockchain network.
4. A transaction method based on a blockchain intelligent contract is applied to a blockchain network and comprises the following steps:
acquiring first encrypted transaction data sent by a transaction auditing node, wherein the first encrypted transaction data comprises contract voucher data, expenditure data and income data, and the contract voucher data comprises contract number transaction initiation time;
calling a corresponding intelligent contract according to the contract number;
judging whether the contract voucher data, the expenditure data and the income data all meet preset terms in the intelligent contract through the intelligent contract, if the contract voucher data, the expenditure data and the income data all meet the preset terms, detecting whether the first encrypted transaction data meet corresponding supervision rules, and if the first encrypted transaction data meet the supervision rules, performing consensus voting on the first encrypted transaction data;
the agreed first encrypted transaction data is sent to each node in the blockchain network.
5. The blockchain smart contract-based transaction method according to claim 4, wherein the detecting whether the first encrypted transaction data satisfies the corresponding regulatory rule includes:
calling first encrypted transaction data, wherein the first encrypted transaction data comprises a contract number;
determining a transaction type corresponding to the first encrypted transaction data according to the contract number;
calling a corresponding supervision rule in the block chain network according to the transaction type;
verifying whether the first encrypted transaction data satisfies the regulatory rules.
6. A transaction device based on a block chain intelligent contract is characterized in that the transaction device is applied to any transaction auditing node in a block chain network, the transaction auditing node is an upper node common to both transaction parties, and the transaction device comprises:
a first receiving module for receiving first encrypted transaction data submitted by a transaction expenditure node, the first encrypted transaction data comprising contract credential data for indicating that a transaction initiator has fulfilled a contract;
the first calculation module is used for detecting the validity of the first encrypted transaction data, if the first encrypted transaction data is valid, the first encrypted transaction data is uploaded to a block chain network, the first encrypted transaction data is used for triggering the block chain network to call a corresponding intelligent contract according to the contract certificate data, and then the transaction is automatically completed through the intelligent contract.
7. A transaction device based on a blockchain intelligent contract is applied to a blockchain network and comprises:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring first encrypted transaction data sent by a transaction auditing node, the first encrypted transaction data comprises contract voucher data, expenditure data and income data, and the contract voucher data comprises a contract number;
the first calling module is used for calling the corresponding intelligent contract according to the contract number;
the second calculation module is used for detecting whether the contract voucher data, the expenditure data and the income data all meet preset terms in the middle of the intelligent contract, and if the contract voucher data, the expenditure data and the income data all meet the preset terms, consensus voting is carried out on the first encrypted transaction data;
and the third calculation module is used for sending the agreed first encrypted transaction data to each node in the blockchain network.
8. A transaction device based on a blockchain intelligent contract is applied to a blockchain network and comprises:
the second acquisition module is used for acquiring first encrypted transaction data sent by the transaction auditing node, wherein the first encrypted transaction data comprises contract voucher data, expenditure data and income data, and the contract voucher data comprises contract number transaction initiation time;
the second calling module is used for calling the corresponding intelligent contract according to the contract number;
a fourth calculation module, configured to determine, through the intelligent contract, whether the contract credential data, the expenditure data, and the income data all satisfy preset terms inside the intelligent contract, detect whether the first encrypted transaction data satisfies a corresponding supervision rule if the contract credential data, the expenditure data, and the income data all satisfy the preset terms, and perform consensus voting on the first encrypted transaction data if the first encrypted transaction data satisfies the supervision specification;
and the fifth calculation module is used for sending the agreed first encrypted transaction data to each node in the blockchain network.
9. A transaction device based on blockchain smart contracts, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the blockchain smart contract-based transaction method according to any one of claims 1 to 5 when executing the computer program.
CN202110866456.6A 2021-07-29 2021-07-29 Transaction method, device and equipment based on blockchain intelligent contract Active CN113592650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110866456.6A CN113592650B (en) 2021-07-29 2021-07-29 Transaction method, device and equipment based on blockchain intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110866456.6A CN113592650B (en) 2021-07-29 2021-07-29 Transaction method, device and equipment based on blockchain intelligent contract

Publications (2)

Publication Number Publication Date
CN113592650A true CN113592650A (en) 2021-11-02
CN113592650B CN113592650B (en) 2023-10-24

Family

ID=78252075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110866456.6A Active CN113592650B (en) 2021-07-29 2021-07-29 Transaction method, device and equipment based on blockchain intelligent contract

Country Status (1)

Country Link
CN (1) CN113592650B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
CN110009323A (en) * 2019-02-01 2019-07-12 阿里巴巴集团控股有限公司 Block chain method of commerce and device, electronic equipment, storage medium
US20190280880A1 (en) * 2018-12-21 2019-09-12 Alibaba Group Holding Limited Blockchain data protection based on generic account model and homomorphic encryption
CN110289962A (en) * 2019-07-22 2019-09-27 国网电子商务有限公司 A kind of IBE key updating method and device based on UTXO model
CN110969531A (en) * 2020-03-03 2020-04-07 支付宝(杭州)信息技术有限公司 Borrowing deposit verification and online checking method and system
CN110999204A (en) * 2017-07-24 2020-04-10 区块链控股有限公司 Method and system for block chain implemented event lock encryption
CN111489143A (en) * 2020-04-08 2020-08-04 中央财经大学 Auditable encrypted digital currency supervision method based on alliance side chain
CN111640016A (en) * 2020-04-07 2020-09-08 山东浪潮质量链科技有限公司 Verification method, device, equipment and medium for private transaction
CN111786785A (en) * 2020-07-24 2020-10-16 国网冀北电力有限公司电力科学研究院 Block chain-based power distribution Internet of things node switching method and device
CN112738233A (en) * 2020-12-29 2021-04-30 福州数据技术研究院有限公司 Medical data safety sharing method and system based on block chain under multi-party cooperation analysis scene and storage device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110999204A (en) * 2017-07-24 2020-04-10 区块链控股有限公司 Method and system for block chain implemented event lock encryption
CN107464118A (en) * 2017-08-16 2017-12-12 济南浪潮高新科技投资发展有限公司 A kind of data trade method based on block chain intelligence contract
US20190280880A1 (en) * 2018-12-21 2019-09-12 Alibaba Group Holding Limited Blockchain data protection based on generic account model and homomorphic encryption
CN110009323A (en) * 2019-02-01 2019-07-12 阿里巴巴集团控股有限公司 Block chain method of commerce and device, electronic equipment, storage medium
CN110289962A (en) * 2019-07-22 2019-09-27 国网电子商务有限公司 A kind of IBE key updating method and device based on UTXO model
CN110969531A (en) * 2020-03-03 2020-04-07 支付宝(杭州)信息技术有限公司 Borrowing deposit verification and online checking method and system
CN111640016A (en) * 2020-04-07 2020-09-08 山东浪潮质量链科技有限公司 Verification method, device, equipment and medium for private transaction
CN111489143A (en) * 2020-04-08 2020-08-04 中央财经大学 Auditable encrypted digital currency supervision method based on alliance side chain
CN111786785A (en) * 2020-07-24 2020-10-16 国网冀北电力有限公司电力科学研究院 Block chain-based power distribution Internet of things node switching method and device
CN112738233A (en) * 2020-12-29 2021-04-30 福州数据技术研究院有限公司 Medical data safety sharing method and system based on block chain under multi-party cooperation analysis scene and storage device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
张若雪;全骐;: "基于UTXO和区块链的资金穿透记账系统", 上海金融, no. 04, pages 42 - 47 *
梁艳丽;凌捷;: "基于区块链的云存储加密数据共享方案", 计算机工程与应用, no. 17, pages 41 - 47 *
王子钰;刘建伟;张宗洋;喻辉;: "基于聚合签名与加密交易的全匿名区块链", 计算机研究与发展, no. 10, pages 2185 - 2198 *
黄洁华等: "众筹区块链上的智能合约设计", pages 211 - 219 *

Also Published As

Publication number Publication date
CN113592650B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
US20220084013A1 (en) Identity management, smart contract generator, and blockchain mediating system, and related methods
US11050690B2 (en) Method for providing recording and verification service for data received and transmitted by messenger service, and server using method
CN109102269B (en) Transfer method and device based on block chain, block chain node and storage medium
US11676117B2 (en) Blockchain compliance verification network
US20170293898A1 (en) Static ctyptographic currency value
CN107968709A (en) Business data processing method, identity management method and operating audit method
CN111724153A (en) Prepaid consumption supervision system and method based on block chain and storage medium
US11599858B2 (en) Blockchain settlement network
US20190188708A1 (en) Digital payment system
CN106650495A (en) File verification method and device
US20220172198A1 (en) Real-time blockchain settlement network
Garcia Bringas et al. BlockChain platforms in financial services: current perspective
CN113595724B (en) Block chain-based accounting method, device, equipment and readable storage medium
Pouwelse et al. Laws for creating trust in the blockchain age
JP2022517042A (en) Preventing erroneous copies of data records from being sent to distributed ledger systems
CN113034275B (en) Management system and method based on block chain network and terminal equipment
CN113761064A (en) Block chain based daily cutting account checking method, device, equipment and readable storage medium
CN108875407A (en) For the sensitive information processing method and processing device of financial business, client, data framework
CN113570369B (en) Block chain privacy transaction method, device, equipment and readable storage medium
KR20210117731A (en) The blockchain-based transaction history confirmation system
CN113592650B (en) Transaction method, device and equipment based on blockchain intelligent contract
CN112712353B (en) Digital currency zero-payment method, system and terminal
CN114418769A (en) Block chain transaction charging method and device and readable storage medium
CN113987574A (en) Block chain private transaction method, device, equipment and readable storage medium
CN113269649A (en) System and method for tracking digital currency

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