CN115330538A - Resource transaction method and device based on block chain - Google Patents

Resource transaction method and device based on block chain Download PDF

Info

Publication number
CN115330538A
CN115330538A CN202211032387.XA CN202211032387A CN115330538A CN 115330538 A CN115330538 A CN 115330538A CN 202211032387 A CN202211032387 A CN 202211032387A CN 115330538 A CN115330538 A CN 115330538A
Authority
CN
China
Prior art keywords
transaction
data
resource
verified
intelligent contract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211032387.XA
Other languages
Chinese (zh)
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.)
Ant Blockchain Technology Shanghai Co Ltd
Original Assignee
Ant Blockchain Technology Shanghai 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 Ant Blockchain Technology Shanghai Co Ltd filed Critical Ant Blockchain Technology Shanghai Co Ltd
Priority to CN202211032387.XA priority Critical patent/CN115330538A/en
Publication of CN115330538A publication Critical patent/CN115330538A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2211/00Indexing scheme relating to details of data-processing equipment not covered by groups G06F3/00 - G06F13/00
    • G06F2211/007Encryption, En-/decode, En-/decipher, En-/decypher, Scramble, (De-)compress
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Computing Systems (AREA)
  • Strategic Management (AREA)
  • Medical Informatics (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the specification provides a resource transaction method and device based on a block chain, wherein the resource transaction method based on the block chain comprises the following steps: the method comprises the steps of receiving a resource transaction request of a requesting party, calling an intelligent contract related to the resource transaction request, executing an analysis logic of an intelligent contract statement, analyzing the resource transaction request, determining at least two transaction processing parties according to an analysis result, executing a data processing logic of the intelligent contract statement, obtaining data to be checked related to the resource transaction request in each transaction processing party through a block chain node corresponding to each transaction processing party, executing a check logic of the intelligent contract statement, checking the data to be checked, generating a corresponding check result, obtaining a transaction result generated by the requesting party performing resource transaction based on the check result under the condition that the check is determined to be passed according to the check result, and synchronizing the transaction result to a block chain.

Description

Resource transaction method and device based on block chain
Technical Field
The embodiment of the specification relates to the technical field of block chains, in particular to a resource transaction method based on a block chain. One or more embodiments of the present specification also relate to a blockchain-based resource transaction apparatus, a computing device, and a computer-readable storage medium.
Background
The block chain technology, also called distributed ledger technology, is an emerging technology in which several computing devices participate in "accounting" together, and a complete distributed database is maintained together. The blockchain technology has been widely applied in many fields due to its decentralized and transparent disclosure, the fact that each computing device can participate in database recording, and the data synchronization between the computing devices can be performed rapidly.
At present, the requirement of project data evidence storage usually exists for different project scenes, but the existing evidence storage for data is only a single-point evidence storage, the data of all evidence storage mechanisms independently run in respective servers, the generation and the application of the data are controlled by respective central servers, the data form an isolated island, and the data cannot be communicated with each other. Data sharing and system docking are required among different platforms, access is carried out in an API authorization mode, development and maintenance cost is high, and data integrity and reliability cannot be effectively guaranteed, so that an effective method is urgently needed to solve the problems.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a resource transaction method based on a block chain. One or more embodiments of the present disclosure also relate to a device for trading resources based on a blockchain, a computing device, and a computer-readable storage medium, so as to solve technical deficiencies in the prior art.
According to a first aspect of embodiments herein, there is provided a resource transaction method based on a block chain, applied to a block chain link point in the block chain, including:
receiving a resource transaction request of a requester;
calling an intelligent contract related to the resource transaction request, executing an analysis logic of the intelligent contract statement, analyzing the resource transaction request, and determining at least two transaction processing parties according to an analysis result;
executing the data processing logic of the intelligent contract statement, and acquiring the data to be verified related to the resource transaction request in each transaction processing party through the block chain link point corresponding to each transaction processing party;
executing the checking logic of the intelligent contract statement, checking the data to be checked and generating a corresponding checking result;
and under the condition that the verification is determined to pass according to the verification result, acquiring a transaction result generated by the resource transaction of the requesting party based on the verification result, and synchronizing the transaction result to the block chain.
Optionally, the parsing the resource transaction request and determining at least two transaction processing parties according to a parsing result includes:
analyzing the transaction event carried in the resource transaction request to obtain at least two transaction sub-events of the transaction event;
determining at least two transaction processing parties related to the at least two transaction sub-events based on the event information of the at least two transaction sub-events.
Optionally, the performing verification processing on the data to be verified to generate a corresponding verification result includes:
and verifying the data to be verified related to the resource transaction request in each transaction processing party by adopting a homomorphic encryption algorithm to generate a corresponding verification result.
Optionally, the performing, by using a homomorphic encryption algorithm, verification processing on to-be-verified data related to the resource transaction request in each transaction processing party includes:
acquiring to-be-verified data related to the resource transaction request in a target transaction processing party, wherein the to-be-verified data is generated by encrypting original data through a homomorphic encryption algorithm, and the target transaction processing party is one of each transaction processing party;
and decrypting the data to be verified through a decryption algorithm, and verifying the data to be verified based on a decryption result.
Optionally, the verifying the data to be verified related to the resource transaction request in each transaction processing party by using a homomorphic encryption algorithm includes:
acquiring to-be-verified data related to the resource transaction request in a target transaction processing party, wherein the to-be-verified data is generated by encrypting original data through a public key determined based on a homomorphic encryption algorithm, and the target transaction processing party is one of each transaction processing party;
and decrypting the data to be verified through a private key corresponding to the public key, and verifying the data to be verified based on a decryption result.
Optionally, the resource transaction method based on the blockchain further includes:
analyzing the transaction event carried in the resource transaction request to obtain at least two transaction sub-events of the transaction event;
creating an intelligent contract corresponding to the resource transaction request based on the event information of the at least two transaction sub-events, and writing the intelligent contract into a block chain network;
executing the step of invoking the intelligent contract related to the resource trading request under the condition that the execution condition of the intelligent contract is met.
Optionally, the executing the data processing logic of the intelligent contract declaration obtains, through the corresponding block link point of each transaction processing party, data to be verified in each transaction processing party related to the resource transaction request, and includes:
executing the data processing logic of the intelligent contract statement, and inquiring the first type of data to be verified of a target transaction processing party in the block chain node; and/or the presence of a gas in the gas,
and acquiring second type data to be verified related to the resource transaction request in the target transaction processing party through a block chain node corresponding to the target transaction processing party, wherein the target transaction processing party is one of each transaction processing party.
Optionally, the executing the checking logic of the intelligent contract declaration, performing checking processing on the data to be checked, and generating a corresponding checking result, includes:
executing the checking logic of the intelligent contract statement, and determining at least two groups of transaction processing parties with correlation according to the resource transaction request;
and in the at least two groups of related transaction processing parties, the data to be verified of each group of related transaction processing parties is verified in parallel to generate corresponding verification results.
According to a second aspect of embodiments herein, there is provided a blockchain-based resource transaction apparatus, including:
a receiving module configured to receive a resource transaction request of a requester;
the analysis module is configured to call an intelligent contract related to the resource transaction request, execute analysis logic of the intelligent contract statement, analyze the resource transaction request and determine at least two transaction processing parties according to an analysis result;
the acquisition module is configured to execute the data processing logic of the intelligent contract statement and acquire the data to be verified related to the resource transaction request in each transaction processing party through the block chain link point corresponding to each transaction processing party;
the verification module is configured to execute the verification logic of the intelligent contract statement, perform verification processing on the data to be verified and generate a corresponding verification result;
and the processing module is configured to acquire a transaction result generated by the requester performing resource transaction based on the verification result and upload the transaction result to the block chain node under the condition that the verification is determined to pass according to the verification result.
According to a third aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory is for storing computer-executable instructions, and the processor is for implementing the steps of the blockchain-based resource trading method when executing the computer-executable instructions.
According to a fourth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the blockchain-based resource transaction method.
In one embodiment of the present specification, a resource transaction request of a requesting party is received, an intelligent contract related to the resource transaction request is called, an analysis logic of an intelligent contract statement is executed, the resource transaction request is analyzed, at least two transaction processing parties are determined according to an analysis result, a data processing logic of the intelligent contract statement is executed, data to be checked related to the resource transaction request in each transaction processing party is acquired through a block link point corresponding to each transaction processing party, a checking logic of the intelligent contract statement is executed, the data to be checked is checked to generate a corresponding checking result, and under the condition that a check is determined to be passed according to the checking result, a transaction result generated by the requesting party performing resource transaction based on the checking result is acquired, and the transaction result is synchronized to a block chain.
In the embodiment of the present specification, both the requesting party and each transaction processing party can be used as a blockchain node to jointly form a complete blockchain, and in this case, data generated by the requesting party and each transaction processing party can still be stored in respective servers without uplink; under the condition that a requester has resource transaction requirements and needs to check related data of a transaction processor, a block chain node of the requester on a chain can execute data check logic declared in advance by an intelligent contract, so that to-be-checked data of each transaction processor can be obtained through other block chain nodes, and the data can be checked through a certain privacy algorithm, thereby being beneficial to ensuring the integrity, stability and reliability of the obtained to-be-checked data, simultaneously being beneficial to improving the reliability of a check result, fully ensuring the privacy and safety of the data in the data check process, and being beneficial to reducing the leakage risk of the data.
Drawings
FIG. 1 is a block chain-based resource transaction process according to an embodiment of the present disclosure;
FIG. 2 is a process flow diagram of a method for block chain based resource transaction according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another blockchain-based resource transaction process provided by one embodiment of the present specification;
fig. 4 is a flowchart illustrating a processing procedure of a method for trading resources based on a blockchain according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a resource transaction apparatus based on a blockchain according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a computing device according to an embodiment of the present disclosure.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present description. This description may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, as those skilled in the art will be able to make and use the present disclosure without departing from the spirit and scope of the present disclosure.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at" \8230; "or" when 8230; \8230; "or" in response to a determination ", depending on the context.
In the present specification, a resource transaction method based on a block chain is provided, and the present specification relates to a resource transaction apparatus based on a block chain, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
Fig. 1 is a schematic diagram illustrating a resource transaction process based on a block chain according to an embodiment of the present disclosure, and as shown in fig. 1, a requester and each transaction handler may both serve as a block chain node to jointly form a complete block chain, and when a resource transaction needs to be performed with a transaction handler and relevant data of the transaction handler needs to be checked before the resource transaction, a resource transaction request may be sent to a block link point in the block chain through a terminal, so that the block link point executes an analysis logic declared in advance by an intelligent contract, and the resource transaction request is analyzed and processed, and at least two transaction handlers involved in the resource transaction process are determined according to an analysis result.
After the transaction processing parties are determined, the data to be verified related to the resource transaction request in each transaction processing party can be obtained through the block chain node corresponding to each transaction processing party, and the data to be verified are verified through the verification logic declared by the intelligent contract deployed by the block chain, so that a corresponding verification result is generated.
If the verification is determined to pass according to the verification result, the resource transaction can be determined, in this case, the requesting party can perform the resource transaction with the transaction processing party and can link the transaction result of the resource to synchronize the transaction result of the resource to other transaction processing parties, so that the consistency of the transaction result of the resource on each transaction processing party is ensured.
In the embodiment of the present specification, both the requesting party and each transaction processing party can be used as a blockchain node to jointly form a complete blockchain, and in this case, data generated by the requesting party and each transaction processing party can still be stored in respective servers without uplink; under the condition that a requester has resource transaction requirements and needs to check related data of a transaction processor, a block chain node of the requester on a chain can execute data check logic declared in advance by an intelligent contract, so that to-be-checked data of each transaction processor can be obtained through other block chain nodes, and the data can be checked through a certain privacy algorithm, thereby being beneficial to ensuring the integrity, stability and reliability of the obtained to-be-checked data, simultaneously being beneficial to improving the reliability of a check result, fully ensuring the privacy and safety of the data in the data check process, and being beneficial to reducing the leakage risk of the data.
Fig. 2 shows a processing flow diagram of a method for trading resources based on a blockchain according to an embodiment of the present specification, which includes steps 202 to 210.
At step 202, a resource transaction request of a requester is received.
Specifically, the resource transaction method based on the blockchain provided by the embodiments of the present disclosure is applied to a blockchain link point in the blockchain, where the blockchain link point may be a blockchain node in the blockchain of the requestor.
In this embodiment of the present specification, the requester and each transaction handler may both serve as a blockchain node, and together form a complete blockchain, and in this case, the requester needs to perform resource transaction with the transaction handler, and in a case that the relevant data of the transaction handler needs to be checked before the resource transaction, may send a resource transaction request to a blockchain node in the blockchain, so that the blockchain node executes a processing logic of a relevant resource transaction request declared in advance by an intelligent contract, and processes the resource transaction request.
And 204, calling an intelligent contract related to the resource transaction request, executing an analysis logic of the intelligent contract statement, analyzing the resource transaction request, and determining at least two transaction processing parties according to an analysis result.
Specifically, the transaction processing party is a processing party performing resource transaction with the requesting party or a processing party participating in the resource transaction process of the requesting party.
In specific implementation, after a requester receives a resource transaction request of the requester at a block chain link point of a block chain, a transaction event carried in the resource transaction request can be analyzed to obtain at least two transaction sub-events of the transaction event;
creating an intelligent contract corresponding to the resource transaction request based on the event information of the at least two transaction sub-events, and writing the intelligent contract into a block chain network;
executing the step of invoking the intelligent contract related to the resource trading request under the condition that the execution condition of the intelligent contract is met.
Specifically, the resource transaction request sent by the requester to the blockchain node carries a transaction event, for example, a resource B is transacted with the transaction handler A1, and the transaction event usually includes some sub-items, i.e., transaction sub-events, for example, the transaction sub-events may be: 1) Performing resource transaction with the transaction processing party A1; 2) Transacting resource B; 3) The holding relationship between the transaction processing party A1 and the resource B, and the like. In this case, the resource transaction request is processed, specifically, the transaction sub-event is processed, and different transaction sub-events correspond to different processing steps.
Therefore, after receiving the resource transaction request, the transaction event carried in the resource transaction request can be analyzed to obtain at least two transaction sub-events, namely, the processing steps related to the transaction event are split, after the split, an intelligent contract can be created based on the split result, namely, each transaction sub-event is written into the intelligent contract in the form of codes, and the intelligent contract is diffused to each block chain node in the block chain network.
Under the condition that the execution condition of the intelligent contract is determined to be met, the analysis logic of the intelligent contract statement can be automatically executed, the resource transaction request is analyzed, and the transaction processing party is determined according to the analysis result.
In addition, the resource transaction request is analyzed, and at least two transaction processing parties are determined according to the analysis result, which can be specifically realized by the following modes:
analyzing the transaction event carried in the resource transaction request to obtain at least two transaction sub-events of the transaction event;
determining at least two transaction processing parties related to the at least two transaction sub-events based on the event information of the at least two transaction sub-events.
Specifically, as described above, the resource transaction request sent by the request party to the blockchain node carries transaction events, and the transaction events often include some sub-items, that is, transaction sub-events, and because the request party needs to perform resource transaction with the transaction processing party, the blockchain node can analyze the transaction events carried in the resource transaction request after receiving the resource transaction request of the request party, obtain at least two transaction sub-events, and then determine the transaction processing party based on event information of each transaction sub-event.
For example, the transaction sub-event 1) performs resource transaction with the transaction processing party A1, and the transaction processing party involved in the resource transaction is the transaction processing party A1; transaction sub-event 3) holding relationship between transaction processor A1 and resource B; since the data that can prove the holding relationship between the transaction processor A1 and the resource B is stored in the transaction processor A2, the transaction processor involved in the data may be the transaction processor A2, and the transaction processor A2 can still be used as the transaction processor although it does not directly perform resource transaction with the requesting party.
After the transaction processing parties are determined, verification can be performed based on data related to the resource transaction request in each transaction processing party, and whether resource transaction can be performed or not is determined according to verification results.
And step 206, executing the data processing logic of the intelligent contract statement, and acquiring the data to be verified related to the resource transaction request in each transaction processing party through the block chain link point corresponding to each transaction processing party.
Specifically, after the block link point of the requester in the block chain analyzes and determines at least two transaction processing parties participating in the resource transaction by executing the analysis logic of the intelligent contract statement, the data processing logic of the intelligent contract statement can be continuously executed, and the data to be verified related to the resource transaction request in each transaction processing party is acquired through the block chain node of each transaction processing party in the block chain.
Still taking the transaction of the resource B between the requesting party and the transaction processing party A1 as an example, since the transaction processing parties involved are the transaction processing party A1 and the transaction processing party A2, and the block chain has the block chain node A1 corresponding to the transaction processing party A1 and the block chain node A2 corresponding to the transaction processing party A2, the data processing logic of the intelligent contract declaration is executed, that is, the data to be verified related to the resource B in the transaction processing party A1 can be acquired through the block chain node A1, and similarly, the data to be verified related to the transaction processing party A1 and the resource B in the transaction processing party A2 can be acquired through the block chain A2.
In the embodiment of the specification, the requesting party and each transaction processing party can be used as a blockchain node to jointly form a complete blockchain, and in this case, data generated by the requesting party and each transaction processing party can be stored in respective servers without being linked; and under the condition that the requester has resource transaction requirements and needs to check the related data of the transaction processing party, the block chain node of the requester on the chain can execute the data check logic declared in advance by the intelligent contract, so as to obtain the data to be checked of each transaction processing party through other block chain nodes, thereby fully ensuring the privacy and the safety of the data of the transaction processing party and being beneficial to reducing the risk of data leakage.
In addition, the data processing logic for executing the intelligent contract statement obtains the data to be verified related to the resource transaction request in each transaction processing party through the block link point corresponding to each transaction processing party, and the data to be verified related to the resource transaction request in each transaction processing party can be specifically realized through the following modes:
executing the data processing logic of the intelligent contract statement, and inquiring the first type of data to be verified of a target transaction processing party in the block chain node; and/or the presence of a gas in the gas,
and acquiring second type to-be-verified data related to the resource transaction request in the target transaction processing party through a block chain node corresponding to the target transaction processing party, wherein the target transaction processing party is one of each transaction processing party.
Specifically, the first type of data to be verified may be non-privacy type data or data with a low change frequency, and the second type of data to be verified is privacy type data or data with a high change frequency.
In order to avoid the disclosure of the privacy data of the transaction processing party or the requesting party, after the requesting party and each transaction processing party are used as blockchain nodes to jointly form a complete blockchain, the requesting party or each transaction processing party can select to upload the first type of data to the corresponding blockchain node, and synchronize the data to other blockchain nodes in the blockchain network through the blockchain nodes.
In practical applications, before uploading the first type of data to be verified to the block chain, the requester or each transaction handler may encrypt the first type of data to be verified, and link the encrypted data, specifically, may encrypt the data by using a homomorphic encryption algorithm.
Therefore, when the block chain node of the requester in the block chain needs to obtain the data to be verified related to the resource transaction request in each transaction processing party, the first type of data to be verified of each transaction processing party can be obtained from the node, and then the second type of data to be verified related to the resource transaction request in each transaction processing party is obtained through the block chain node of each transaction processing party. The second type of data to be verified acquired by the block link point is also encrypted data, and the encrypted data can be generated by encrypting by adopting a homomorphic encryption algorithm.
And 208, executing the checking logic of the intelligent contract statement, checking the data to be checked, and generating a corresponding checking result.
Specifically, after the requester acquires the data to be checked of each transaction processing party at the block link point in the block chain, the data to be checked can be automatically checked by executing the checking logic stated by the intelligent contract.
In the specific implementation, the data to be verified is verified to generate a corresponding verification result, and a homomorphic encryption algorithm can be specifically adopted to verify the data to be verified related to the resource transaction request in each transaction processing party to generate a corresponding verification result.
Further, a homomorphic encryption algorithm is adopted to verify the data to be verified related to the resource transaction request in each transaction processing party, and the verification processing can be specifically realized through the following modes:
acquiring data to be checked related to the resource transaction request in a target transaction processing party, wherein the data to be checked is generated by encrypting original data through a homomorphic encryption algorithm, and the target transaction processing party is one of each transaction processing party;
and decrypting the data to be verified through a decryption algorithm, and verifying the data to be verified based on a decryption result.
Specifically, in order to prevent the private data from being leaked, when the transaction processing party provides the data to be verified, the data to be verified can be encrypted through a homomorphic encryption algorithm, so that the data to be verified, which are acquired by the requesting party at the block chain link point in the block chain, are all encrypted data to be verified, and for the data of the type, the data can be decrypted and verified according to the decryption result.
In practical applications, for a general encryption function f, if a plaintext m1 is encrypted by f to a ciphertext m1', a plaintext m2 is encrypted by f to a ciphertext m2', that is, f (m 1) = m1', f (m 2) = m2', and in the case of m1+ m2= m3, the result of m1'+ m2' is decrypted by a decryption function, and the obtained result is generally meaningless scrambled code. However, if f is an encryption function capable of homomorphic encryption, the result of m1'+ m2' is decrypted by using the decryption function corresponding to the encryption function, and m3 is obtained.
Therefore, after the transaction processing party encrypts the original data by using a homomorphic encryption algorithm (namely, an encryption function capable of homomorphic encryption) to generate data to be verified, and uploads the data to be verified to the block chain node, the block chain node can decrypt the data to be verified by using a decryption function corresponding to the encryption function, so that the block chain node cannot acquire specific information of m1 and m2, but can still realize data verification based on a result of m1+ m2, namely m3, and the transaction processing party can prevent leakage of data.
Or, in each transaction processing party, the data to be verified related to the resource transaction request is verified by using a homomorphic encryption algorithm, and the verification processing can be realized by the following method:
acquiring data to be verified related to the resource transaction request in a target transaction processing party, wherein the data to be verified is generated by encrypting original data through a public key determined based on a homomorphic encryption algorithm, and the target transaction processing party is one of each transaction processing party;
and decrypting the data to be verified through a private key corresponding to the public key, and verifying the data to be verified based on a decryption result.
Specifically, the transaction processing party can predetermine an encryption function and a decryption function of a homomorphic encryption algorithm, wherein the encryption function is a public key, the decryption function is a private key, the public key is used for encrypting the original data to generate the data to be verified, the data to be verified and the private key can be uploaded to the block link node together, the block link node can decrypt the received data to be verified of the transaction processing party through the private key, and the data to be verified of each transaction processing party is verified based on the decryption result.
In the embodiment of the specification, the transaction processing party encrypts its own original data through an encryption function (public key) capable of homomorphic encryption to generate and chain the data to be verified, and similarly, the block link points decrypt the data to be verified by using a private key corresponding to the public key and perform data verification according to a decryption result, so that the privacy and the safety of the data of the transaction processing party can be fully guaranteed, and the risk of data leakage can be reduced.
In addition, the verification logic of the intelligent contract statement is executed, the data to be verified is verified, and a corresponding verification result is generated, and the method can also be realized by the following modes:
executing the checking logic of the intelligent contract statement, and determining at least two groups of transaction processing parties with correlation according to the resource transaction request;
and in the at least two groups of related transaction processing parties, the data to be verified of each group of related transaction processing parties is verified in parallel to generate corresponding verification results.
Specifically, when the requesting party performs resource transaction, because data verification is required, there may be a plurality of involved transaction processing parties, there may also be a plurality of involved verification requirements, and the data to be verified stored by different transaction processing parties may be different, in this case, the requesting party may need to simultaneously obtain the data to be verified of at least two transaction processing parties to implement verification of the verification requirement C1, or the requesting party may only need to obtain the data to be verified of a single transaction processing party to implement verification of the verification requirement C2, and the process of implementing different verification requirements may be executed in parallel to improve the verification efficiency.
Therefore, in the embodiments of the present specification, at least two groups of transaction processing parties having an association may be determined according to the resource transaction request, and specifically, according to the verification requirement corresponding to the resource transaction request, each group may include at least two transaction processing parties, and in this case, the data to be verified of at least two transaction processing parties having an association in each group may be verified in parallel, so as to generate a corresponding verification result; meanwhile, for the verification requirement which can be realized only by acquiring the data to be verified of a single transaction processing party, the verification requirement can be processed in parallel with the verification processing process of the data to be verified of at least two transaction processing parties associated in each group.
And step 210, under the condition that the verification is determined to pass according to the verification result, acquiring a transaction result generated by the resource transaction of the requesting party based on the verification result, and synchronizing the transaction result to the block chain.
Specifically, after the requester checks the data to be checked of each transaction processing party at the blockchain node of the blockchain and generates the corresponding check result, if the check is determined to pass according to the check result, the resource transaction can be determined, in this case, the requester can perform the resource transaction with the transaction processing party and can link the transaction result of the resource to synchronize the transaction result of the resource to other transaction processing parties, so as to ensure the consistency of the transaction result of the resource at each transaction processing party.
Another block chain-based resource transaction process provided in the embodiments of the present specification is schematically illustrated in fig. 3. Fig. 3 includes a requester and three transaction processors, where the requester and each transaction processor are used as blockchain nodes to form a complete blockchain, and the requester, the transaction processors, and the blockchain form a transaction network.
In this case, when the requester needs to perform resource transaction with the transaction handler and check the data related to the transaction handler before the resource transaction, the requester may send a resource transaction request to the block link point in the block chain, so that the block link point executes the processing logic of the related resource transaction request declared in advance by the intelligent contract to process the resource transaction request.
Specifically, after the block link point of the requester in the block chain can analyze and determine at least two transaction processing parties participating in the resource transaction by executing the analysis logic declared by the intelligent contract, the data processing logic declared by the intelligent contract is continuously executed, and the data to be verified related to the resource transaction request in each transaction processing party is acquired through the block chain node of each transaction processing party in the block chain; and then, executing the checking logic declared by the intelligent contract, and automatically checking the data to be checked. Under the condition of passing the verification, the requesting party can perform resource transaction with the transaction processing party and can uplink the transaction result of the resource.
The transaction cooperation network based on the block chain thoroughly changes the traditional mode, fully utilizes the technologies of distributed type, real-time data synchronization, non-falsification, homomorphic encryption and the like of the block chain, and can completely solve the traditional problems. Firstly, all data of all transaction processing parties and requesting parties do not need to be gathered to one mechanism of a transaction center, the respective data are still in respective servers, only self-related data need to be stored in own services, and the data are encrypted. When a block chain link of a requester initiates a transaction service, the transaction item is analyzed through an intelligent contract on the block chain, after the analysis, the intelligent contract automatically executes data check in each transaction processing party block chain node, for example, whether the resource belongs to a certain transaction processing party or not, whether the current state of the resource allows the transaction or not and the like, and the check is performed through the intelligent contract in other related nodes by adopting homomorphic encryption calculation, so that the 'available invisibility' of the data check is guaranteed. Therefore, the whole transaction process is completely subjected to parallel encryption verification/analysis through the blockchain intelligent contract, and the whole transaction service process is completed. For external institutions (such as financial institutions), the system is also used as a block chain node for joining, the operations such as resource state query and the like are initiated on own nodes, and the actions are also operated/synchronized in each participating node through intelligent contracts, so that the complete real-time consistency of all parties on the asset state is guaranteed.
In conclusion, in the process of using the transaction network to verify data, data of each transaction processing party does not need to be collected in advance, and communication cost is greatly reduced. The whole transaction processing process realizes multiparty parallel operation and privacy calculation through an intelligent contract and homomorphic encryption calculation service, and further improves the efficiency and the safety of transaction. The change of the resource state by multiple parties can be synchronized among the parties in real time, so that the effectiveness of the resource is greatly guaranteed, and the existence of a arbitrage space is prevented. The operation of the resources is synchronously supervised by multiple parties, so that the safety of the resources and the legality of the transaction are guaranteed.
One embodiment of the specification receives a resource transaction request of a requester, calls an intelligent contract related to the resource transaction request, executes analysis logic of the intelligent contract statement, analyzes the resource transaction request, determines at least two transaction processing parties according to analysis results, executes data processing logic of the intelligent contract statement, acquires data to be checked related to the resource transaction request in each transaction processing party through a block chain node corresponding to each transaction processing party, executes checking logic of the intelligent contract statement, checks the data to be checked, generates a corresponding checking result, acquires a transaction result generated by the requester in resource transaction based on the checking result under the condition that the checking result is determined to be passed, and synchronizes the transaction result to a block chain.
In the embodiment of the present specification, both the requesting party and each transaction processing party can be used as a blockchain node to jointly form a complete blockchain, and in this case, data generated by the requesting party and each transaction processing party can still be stored in respective servers without uplink; under the condition that the requester has resource transaction requirements and needs to check the related data of the transaction processor, the block chain node of the requester on the chain can execute the data check logic declared in advance by the intelligent contract, so that the data to be checked of each transaction processor can be obtained through other block chain nodes, the data can be checked through a certain privacy algorithm, the integrity, the stability and the reliability of the obtained data to be checked can be guaranteed, the reliability of the check result can be improved, the privacy and the safety of the data can be fully guaranteed in the data check process, and the data leakage risk can be reduced.
The following describes the resource transaction method based on the blockchain further by taking an application of the resource transaction method based on the blockchain provided in the present specification in a title transaction scenario as an example, with reference to fig. 4. Fig. 4 shows a processing flow chart of a resource transaction method based on a blockchain according to an embodiment of the present disclosure, where specific steps include step 402 to step 418.
At step 402, a title transaction request of a requesting party is received.
Step 404, analyzing the transaction event carried in the title transaction request to obtain at least two transaction sub-events of the transaction event.
Step 406, creating an intelligent contract corresponding to the title transaction request based on the event information of the at least two transaction sub-events, and writing the intelligent contract into a block chain network.
And step 408, executing the parsing logic of the intelligent contract statement under the condition that the execution condition of the intelligent contract is met, and determining at least two transaction processing parties related to the at least two transaction sub-events based on the event information of the at least two transaction sub-events.
And step 410, executing the data processing logic of the intelligent contract statement, and inquiring the first type of data to be verified of the target transaction processing party in the blockchain node.
Wherein the target transaction handler is one of said each transaction handler.
Step 412, obtaining the second type to-be-verified data related to the title transaction request in the target transaction processing party through the block chain node corresponding to the target transaction processing party.
And 414, executing the verification logic stated by the intelligent contract, and acquiring to-be-verified data related to the property right transaction request in the target transaction processing party, wherein the to-be-verified data is generated by encrypting the original data through a homomorphic encryption algorithm, and the target transaction processing party is one of each transaction processing party.
And 416, decrypting the data to be verified through a decryption algorithm, and verifying the data to be verified based on a decryption result.
And 418, under the condition that the verification is determined to pass according to the verification result, acquiring a transaction result generated by the requesting party performing the property right transaction based on the verification result, and synchronizing the transaction result to the blockchain.
In the embodiment of the present specification, both the requesting party and each transaction processing party can be used as a blockchain node to jointly form a complete blockchain, and in this case, data generated by the requesting party and each transaction processing party can still be stored in respective servers without uplink; under the condition that a request party has a property transaction requirement and needs to verify related data of a transaction processing party, a block chain node of the request party on a chain can execute data verification logic declared in advance by an intelligent contract (intelligent contract) so as to acquire data to be verified of each transaction processing party through other block chain nodes and verify the data through a certain privacy algorithm, thereby being beneficial to ensuring the integrity, stability and reliability of the acquired data to be verified, simultaneously being beneficial to improving the reliability of verification results, fully ensuring the privacy and safety of the data in the data verification process and being beneficial to reducing the leakage risk of the data.
In addition, the property right transaction participants equally participate in the system construction through the block chain alliance, centralized collection of data is not needed, and the threshold of the service development is reduced. Through the intelligent contract of the block chain and the homomorphic encryption technology, transaction services can be executed in a parallel, efficient and transparent mode, and the privacy and the safety of data are fully guaranteed in the data verification process. Through the block chain distribution technology, a transaction facilitator (such as a financial institution) can acquire the property state of the multi-party endorsement, and simultaneously can synchronously update the state change of the property among all the parties in real time, thereby reducing the risk and the arbitrage space of an external service institution.
Corresponding to the above method embodiment, this specification further provides an embodiment of a resource transaction apparatus based on a blockchain, and fig. 5 shows a schematic diagram of a resource transaction apparatus based on a blockchain provided in an embodiment of this specification. As shown in fig. 5, the apparatus includes:
a receiving module 502 configured to receive a resource transaction request of a requester;
the analysis module 504 is configured to execute analysis logic of the intelligent contract declaration, analyze the resource transaction request, and determine at least two transaction processing parties according to an analysis result;
an obtaining module 506, configured to execute the data processing logic of the intelligent contract declaration, and obtain to-be-verified data in each transaction processing party, which is related to the resource transaction request, through a block link point corresponding to each transaction processing party;
the verification module 508 is configured to execute the verification logic of the intelligent contract declaration, perform verification processing on the data to be verified, and generate a corresponding verification result;
and the processing module 510 is configured to, in a case that the verification is determined to pass according to the verification result, obtain a transaction result generated by the requester performing the resource transaction based on the verification result, and synchronize the transaction result to the blockchain.
Optionally, the parsing module 504 is further configured to:
analyzing the transaction event carried in the resource transaction request to obtain at least two transaction sub-events of the transaction event;
determining at least two transaction processing parties related to the at least two transaction sub-events based on the event information of the at least two transaction sub-events.
Optionally, the verification module 508 is further configured to:
and verifying the data to be verified related to the resource transaction request in each transaction processing party by adopting a homomorphic encryption algorithm to generate a corresponding verification result.
Optionally, the verification module 508 is further configured to:
acquiring to-be-verified data related to the resource transaction request in a target transaction processing party, wherein the to-be-verified data is generated by encrypting original data through a homomorphic encryption algorithm, and the target transaction processing party is one of each transaction processing party;
and decrypting the data to be verified through a decryption algorithm, and verifying the data to be verified based on a decryption result.
The verification module 508, further configured to:
acquiring data to be verified related to the resource transaction request in a target transaction processing party, wherein the data to be verified is generated by encrypting original data through a public key determined based on a homomorphic encryption algorithm, and the target transaction processing party is one of each transaction processing party;
and decrypting the data to be verified through a private key corresponding to the public key, and verifying the data to be verified based on a decryption result.
Optionally, the device for trading resources based on a blockchain further includes a creating module configured to:
analyzing the transaction event carried in the resource transaction request to obtain at least two transaction sub-events of the transaction event;
creating an intelligent contract corresponding to the resource transaction request based on the event information of the at least two transaction sub-events, and writing the intelligent contract into a block chain network;
the parsing module 504 is run if the execution condition of the smart contract is satisfied.
Optionally, the obtaining module 506 is further configured to:
executing the data processing logic of the intelligent contract statement, and inquiring the first type of data to be verified of a target transaction processing party in the block chain node; and/or the presence of a gas in the atmosphere,
and acquiring second type to-be-verified data related to the resource transaction request in the target transaction processing party through a block chain node corresponding to the target transaction processing party, wherein the target transaction processing party is one of each transaction processing party.
Optionally, the verification module 508 is further configured to:
executing the checking logic of the intelligent contract statement, and determining at least two groups of transaction processing parties with correlation according to the resource transaction request;
and in the at least two groups of related transaction processing parties, the data to be verified of each group of related transaction processing parties is verified in parallel to generate corresponding verification results.
In the embodiment of the specification, the requesting party and each transaction processing party can be used as a blockchain node to jointly form a complete blockchain, and in this case, data generated by the requesting party and each transaction processing party can be stored in respective servers without being linked; under the condition that a requester has resource transaction requirements and needs to check related data of a transaction processor, a block chain node of the requester on a chain can execute data check logic declared in advance by an intelligent contract (intelligent contract) so as to acquire data to be checked of each transaction processor through other block chain nodes and check the data through a certain privacy algorithm, thereby being beneficial to ensuring the integrity, stability and reliability of the acquired data to be checked, simultaneously being beneficial to improving the reliability of a check result, fully ensuring the privacy and safety of the data in the data check process and being beneficial to reducing the leakage risk of the data.
The above is an illustrative scheme of a resource transaction apparatus based on a block chain according to this embodiment. It should be noted that the technical solution of the resource transaction apparatus based on the blockchain belongs to the same concept as the technical solution of the resource transaction method based on the blockchain, and details of the technical solution of the resource transaction apparatus based on the blockchain, which are not described in detail, can be referred to the description of the technical solution of the resource transaction method based on the blockchain.
FIG. 6 illustrates a block diagram of a computing device 600 provided in accordance with one embodiment of the present description. The components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is coupled to the memory 610 via a bus 630 and a database 650 is used to store data.
Computing device 600 also includes access device 640, access device 640 enabling computing device 600 to communicate via one or more networks 660. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 640 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present description, the above-described components of computing device 600, as well as other components not shown in FIG. 6, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 6 is for purposes of example only and is not limiting as to the scope of the present description. Those skilled in the art may add or replace other components as desired.
Computing device 600 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet computer, personal digital assistant, laptop computer, notebook computer, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smart glasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 600 may also be a mobile or stationary server.
Wherein the memory 610 is configured to store computer-executable instructions and the processor 620 is configured to execute the following computer-executable instructions:
receiving a resource transaction request of a requester;
executing the analysis logic of the intelligent contract statement, analyzing the resource transaction request, and determining at least two transaction processing parties according to the analysis result;
executing the data processing logic of the intelligent contract statement, and acquiring the data to be checked in each transaction processing party related to the resource transaction request through the block chain link point corresponding to each transaction processing party;
executing the checking logic of the intelligent contract statement, checking the data to be checked and generating a corresponding checking result;
and under the condition that the verification is determined to pass according to the verification result, acquiring a transaction result generated by the resource transaction of the requesting party based on the verification result, and synchronizing the transaction result to the block chain.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device belongs to the same concept as the technical solution of the above resource transaction method based on the blockchain, and for details that are not described in detail in the technical solution of the computing device, reference may be made to the description of the technical solution of the above resource transaction method based on the blockchain.
An embodiment of the present specification also provides a computer readable storage medium storing computer instructions which, when executed by a processor, are used for implementing the steps of the blockchain-based resource transaction method.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the resource transaction method based on the blockchain, and details of the technical solution of the storage medium, which are not described in detail, can be referred to the description of the technical solution of the resource transaction method based on the blockchain.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in source code form, object code form, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts, but those skilled in the art should understand that the present embodiment is not limited by the described acts, because some steps may be performed in other sequences or simultaneously according to the present embodiment. Further, those skilled in the art should also appreciate that the embodiments described in this specification are preferred embodiments and that acts and modules referred to are not necessarily required for an embodiment of the specification.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present specification disclosed above are intended only to aid in the description of the specification. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the embodiments and the practical application, to thereby enable others skilled in the art to best understand and utilize the embodiments. The specification is limited only by the claims and their full scope and equivalents.

Claims (11)

1. A resource transaction method based on a block chain is applied to block chain link points in the block chain and comprises the following steps:
receiving a resource transaction request of a requester;
calling an intelligent contract related to the resource transaction request, executing an analysis logic of the intelligent contract statement, analyzing the resource transaction request, and determining at least two transaction processing parties according to an analysis result;
executing the data processing logic of the intelligent contract statement, and acquiring the data to be verified related to the resource transaction request in each transaction processing party through the block chain link point corresponding to each transaction processing party;
executing the checking logic of the intelligent contract statement, checking the data to be checked and generating a corresponding checking result;
and under the condition that the verification is determined to pass according to the verification result, acquiring a transaction result generated by the resource transaction of the requesting party based on the verification result, and synchronizing the transaction result to the block chain.
2. The blockchain-based resource transaction method according to claim 1, wherein the parsing the resource transaction request and determining at least two transaction processing parties according to a result of the parsing includes:
analyzing the transaction event carried in the resource transaction request to obtain at least two transaction sub-events of the transaction event;
determining at least two transaction processing parties related to the at least two transaction sub-events based on the event information of the at least two transaction sub-events.
3. The method for resource transaction based on block chain according to claim 1, wherein the performing the verification processing on the data to be verified to generate the corresponding verification result includes:
and verifying the data to be verified related to the resource transaction request in each transaction processing party by adopting a homomorphic encryption algorithm to generate a corresponding verification result.
4. The blockchain-based resource transaction method according to claim 3, wherein the using a homomorphic encryption algorithm to perform a verification process on the data to be verified related to the resource transaction request in each transaction processing party includes:
acquiring to-be-verified data related to the resource transaction request in a target transaction processing party, wherein the to-be-verified data is generated by encrypting original data through a homomorphic encryption algorithm, and the target transaction processing party is one of each transaction processing party;
and decrypting the data to be verified through a decryption algorithm, and verifying the data to be verified based on a decryption result.
5. The blockchain-based resource transaction method according to claim 3, wherein the verifying the data to be verified related to the resource transaction request in each transaction processing party by using a homomorphic encryption algorithm comprises:
acquiring data to be verified related to the resource transaction request in a target transaction processing party, wherein the data to be verified is generated by encrypting original data through a public key determined based on a homomorphic encryption algorithm, and the target transaction processing party is one of each transaction processing party;
and decrypting the data to be verified through a private key corresponding to the public key, and verifying the data to be verified based on a decryption result.
6. The blockchain-based resource transaction method of claim 1, further comprising:
analyzing the transaction event carried in the resource transaction request to obtain at least two transaction sub-events of the transaction event;
creating an intelligent contract corresponding to the resource transaction request based on the event information of the at least two transaction sub-events, and writing the intelligent contract into a block chain network;
executing the step of invoking the intelligent contract related to the resource trading request if the execution condition of the intelligent contract is satisfied.
7. The blockchain-based resource transaction method according to claim 1, wherein the data processing logic executing the intelligent contract declaration obtains data to be verified related to the resource transaction request in each transaction processing party through a corresponding blockchain link point of each transaction processing party, and includes:
executing the data processing logic of the intelligent contract statement, and inquiring first type data to be checked of a target transaction processing party in the block chain node; and/or the presence of a gas in the gas,
and acquiring second type data to be verified related to the resource transaction request in the target transaction processing party through a block chain node corresponding to the target transaction processing party, wherein the target transaction processing party is one of each transaction processing party.
8. The method for resource transaction based on block chain according to claim 1, wherein the executing the checking logic of the intelligent contract declaration to check the data to be checked and generate the corresponding checking result includes:
executing the checking logic of the intelligent contract statement, and determining at least two groups of transaction processing parties with correlation according to the resource transaction request;
and in the at least two groups of related transaction processing parties, the data to be verified of each group of related transaction processing parties is verified in parallel to generate corresponding verification results.
9. A blockchain-based resource transaction apparatus, comprising:
a receiving module configured to receive a resource transaction request of a requester;
the analysis module is configured to call an intelligent contract related to the resource transaction request, execute analysis logic of the intelligent contract statement, analyze the resource transaction request and determine at least two transaction processing parties according to an analysis result;
the acquisition module is configured to execute the data processing logic of the intelligent contract statement and acquire the data to be verified related to the resource transaction request in each transaction processing party through the block chain link point corresponding to each transaction processing party;
the verification module is configured to execute the verification logic of the intelligent contract statement, perform verification processing on the data to be verified and generate a corresponding verification result;
and the processing module is configured to acquire a transaction result generated by the requester performing resource transaction based on the verification result and synchronize the transaction result to the blockchain under the condition that the verification is determined to pass according to the verification result.
10. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to implement the steps of the blockchain based resource transaction method of any one of claims 1 to 8 when executing the computer-executable instructions.
11. A computer readable storage medium storing computer instructions which, when executed by a processor, carry out the steps of the blockchain-based resource transaction method of any one of claims 1 to 8.
CN202211032387.XA 2022-08-26 2022-08-26 Resource transaction method and device based on block chain Pending CN115330538A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211032387.XA CN115330538A (en) 2022-08-26 2022-08-26 Resource transaction method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211032387.XA CN115330538A (en) 2022-08-26 2022-08-26 Resource transaction method and device based on block chain

Publications (1)

Publication Number Publication Date
CN115330538A true CN115330538A (en) 2022-11-11

Family

ID=83928675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211032387.XA Pending CN115330538A (en) 2022-08-26 2022-08-26 Resource transaction method and device based on block chain

Country Status (1)

Country Link
CN (1) CN115330538A (en)

Similar Documents

Publication Publication Date Title
EP3114602B1 (en) Method and apparatus for verifying processed data
US9158925B2 (en) Server-aided private set intersection (PSI) with data transfer
CN112686668B (en) Alliance chain crossing system and method
Isaksson et al. Secure federated learning in 5G mobile networks
CN114595835B (en) Model training method and device based on federal learning, equipment and storage medium
CN115694777A (en) Privacy set intersection method, device, equipment and medium based on homomorphic encryption
CN112765642A (en) Data processing method, data processing apparatus, electronic device, and medium
US10530581B2 (en) Authenticated broadcast encryption
US10887091B2 (en) Multi-hop security amplification
Mohammed et al. Image Cryptosystem for IoT Devices Using 2-D Zaslavsky Chaotic Map.
CN107196918A (en) A kind of method and apparatus of matched data
CN116502732B (en) Federal learning method and system based on trusted execution environment
CN113807157A (en) Method, device and system for training neural network model based on federal learning
CN115330538A (en) Resource transaction method and device based on block chain
CN110535934A (en) Client https message test approach, device, computer equipment
CN115361196A (en) Service interaction method based on block chain network
US10067802B2 (en) Hybrid security batch processing in a cloud environment
CN114595483A (en) Secure multi-party computing method and device, electronic equipment and storage medium
Wu et al. Trusted fog computing for privacy smart contract blockchain
CN112910989B (en) Data processing system, method and device based on block chain
CN117240620B (en) Privacy set union system and method
CN114257412B (en) Privacy protection multi-party data cooperation box-separating method, system, equipment and terminal
Ye et al. Multi-party Semi-quantum Secret Sharing Protocol based on Measure-flip and Reflect Operations
CN116010529B (en) Data processing method and system
CN115242374A (en) Intelligent contract engine implementation method and system supporting FHE

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