CN113658003B - Transaction method, device, equipment and storage medium based on blockchain network - Google Patents

Transaction method, device, equipment and storage medium based on blockchain network Download PDF

Info

Publication number
CN113658003B
CN113658003B CN202110945986.XA CN202110945986A CN113658003B CN 113658003 B CN113658003 B CN 113658003B CN 202110945986 A CN202110945986 A CN 202110945986A CN 113658003 B CN113658003 B CN 113658003B
Authority
CN
China
Prior art keywords
transaction
target
consensus
information
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110945986.XA
Other languages
Chinese (zh)
Other versions
CN113658003A (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.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
ICBC 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 Industrial and Commercial Bank of China Ltd ICBC, ICBC Technology Co Ltd filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110945986.XA priority Critical patent/CN113658003B/en
Publication of CN113658003A publication Critical patent/CN113658003A/en
Application granted granted Critical
Publication of CN113658003B publication Critical patent/CN113658003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/229Hierarchy of users of accounts
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction

Abstract

The present disclosure provides a blockchain network-based transaction method, which can be applied to the financial field and the blockchain technical field. The transaction method based on the blockchain network comprises the following steps: determining N target consensus nodes in a plurality of consensus nodes in response to target transaction information generated by the supervision node, wherein the target transaction information comprises target item information, and M is more than or equal to N is more than or equal to 2; invoking association relation logic corresponding to target item information in the intelligent contract, and determining the transaction sequence of each target consensus node; generating target transaction events corresponding to the target transaction information according to the transaction sequence, so that each target consensus node carries out consensus processing on the target transaction events based on a preset consensus mechanism, and generating a consensus result; in the event that the consensus result meets the consensus condition, the target transaction event is recorded in the blockchain. The present disclosure also provides a transaction apparatus, device, medium and program product based on the blockchain network.

Description

Transaction method, device, equipment and storage medium based on blockchain network
Technical Field
The present disclosure relates to the field of finance and blockchain technology, and more particularly, to a blockchain network-based transaction method, apparatus, device, medium, and program product.
Background
Blockchains are a term of art in information technology. Essentially, the system is a shared database, and data or information stored in the shared database has the characteristics of ' non-falsifiability ', ' whole trace ', ' traceability ', ' disclosure transparency ', collective maintenance ' and the like.
In the process of implementing the inventive concept of the present disclosure, the inventor found that there are at least the following problems in the related art: the traditional transaction mode cannot realize cross-level circulation and supervision of the fund flow when the user group structure is complex and multi-level user groups exist.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a blockchain network-based transaction method, apparatus, device, medium, and program product.
According to a first aspect of the present disclosure, there is provided a blockchain network-based transaction method, the blockchain network including a supervision node and M consensus nodes; the blockchain network is provided with an intelligent contract for managing the transaction sequence, and the method comprises the following steps:
determining N target consensus nodes in the plurality of consensus nodes in response to target transaction information generated by the supervision node, wherein the target transaction information comprises target item information, and M is more than or equal to N is more than or equal to 2;
Invoking association relation logic corresponding to the target item information in the intelligent contract, and determining the transaction sequence of each target consensus node;
generating target transaction events corresponding to the target transaction information according to the transaction sequence, so that each target consensus node carries out consensus processing on the target transaction events based on a preset consensus mechanism to generate a consensus result;
and recording the target transaction event in a blockchain under the condition that the consensus result meets the consensus condition.
According to an embodiment of the present disclosure, the transaction sequence includes a first transaction sequence and a second transaction sequence;
the generating the target transaction event corresponding to the target transaction information according to the transaction sequence comprises:
generating a first transaction event according to the target item information and the target consensus node associated with the first transaction sequence;
generating a second transaction event according to the target item information and the target consensus node associated with the second transaction sequence;
generating the target transaction event according to the first transaction event and the second transaction event.
According to an embodiment of the disclosure, the recording the target transaction event in a blockchain in a case where the consensus result satisfies a consensus condition includes:
Recording the first transaction event in the blockchain if a consensus result corresponding to the first transaction event meets the consensus condition; and
and under the condition that a preset time threshold is reached and a consensus result corresponding to the second transaction event meets the consensus condition, recording the second transaction event in the blockchain.
According to an embodiment of the present disclosure, after recording the first transaction event in the blockchain, further comprising:
determining a status of a transaction resource associated with the first transaction event as a frozen status, wherein the frozen status is used to characterize the transaction resource as an unavailable status.
According to an embodiment of the disclosure, the generating the target transaction event corresponding to the target transaction information according to the transaction order further includes:
determining a master node and a slave node at the plurality of target consensus nodes according to the first transaction sequence and the second transaction sequence;
and generating the target transaction event according to the target item information, the master node and the slave node.
According to an embodiment of the present disclosure, the blockchain network-based transaction method further includes:
In response to a funds transaction request, uploading initial transaction information corresponding to the funds transaction request to the supervising node;
checking the initial transaction information through the supervision node, and outputting a checking result;
and under the condition that the verification result represents that the verification of the initial transaction information is successful, generating the target transaction information according to the initial transaction information through the supervision node.
A second aspect of the present disclosure provides a blockchain network-based transaction device, the blockchain network including a supervision node and M consensus nodes; the blockchain network has disposed thereon an intelligent contract for managing transaction orders, the apparatus comprising:
the first response module is used for responding to target transaction information generated by the supervision node and determining N target consensus nodes in the plurality of consensus nodes, wherein the target transaction information comprises target project information, and M is more than or equal to N is more than or equal to 2;
the calling module is used for calling association relation logic corresponding to the target project information in the intelligent contract and determining the transaction sequence of each target consensus node;
the first generation module is used for generating target transaction events corresponding to the target transaction information according to the transaction sequence, so that each target consensus node carries out consensus processing on the target transaction events based on a preset consensus mechanism and generates a consensus result;
And the recording module is used for recording the target transaction event in the blockchain under the condition that the consensus result meets the consensus condition.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the blockchain network-based transaction method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the blockchain network-based transaction method described above.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the blockchain network-based transaction method described above.
According to the embodiment of the disclosure, according to the target payment information generated by the supervision node, the payment sequence of each target consensus node is determined through the association relation logic, a corresponding target payment event is generated according to the payment sequence, and the target payment event is recorded in the blockchain under the condition that the consensus result meets the consensus condition. The system and the method realize the penetrating type payment function among multi-level users based on the blockchain network, can realize supervision and monitoring of the upstream group to the downstream group fund flow direction under the condition that the user group is complex, and can prevent the occurrence of fund chain breakage.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an exemplary system architecture 100 in which a blockchain network-based transaction method may be applied in accordance with embodiments of the present disclosure.
Fig. 2 schematically illustrates a flow chart of a blockchain network-based transaction method in accordance with an embodiment of the present disclosure.
Fig. 3 schematically illustrates a flow chart of a blockchain network-based transaction method in accordance with an embodiment of the present disclosure.
Fig. 4 schematically illustrates a flow chart of another blockchain network-based transaction method in accordance with an embodiment of the present disclosure.
Fig. 5 schematically illustrates a block diagram of a block chain network-based transaction device according to an embodiment of the present disclosure.
Fig. 6 schematically illustrates a block diagram of an electronic device adapted to implement a blockchain network-based transaction method in accordance with an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In engineering construction, engineering construction funds are applied layer by layer, and fund dialing and payroll are realized in a progressive paying mode. The method has the advantages of complex approval process and long circulation period; and the phenomena of unsmooth fund circulation, untimely payment and the like are easy to occur, so that the problems of slow turnover of the fund flow of related enterprises, untimely wage distribution of constructors and the like are caused.
For example, the current payment mode of government existing engineering projects is mainly stepwise payment, funds are paid by the government to the general packet service provider, and funds are paid by the general packet service provider to the subcontractor or the supplier, so that the phenomena of interception of funds, default of money and inappropriately paid are easy to occur.
The embodiment of the disclosure provides a transaction method and device based on a blockchain network. The block chain network comprises a supervision node and M consensus nodes; a blockchain network has deployed thereon an intelligent contract for managing transaction orders. The method comprises the following steps: determining N target consensus nodes in a plurality of consensus nodes in response to target transaction information generated by the supervision node, wherein the target transaction information comprises target item information, and M is more than or equal to N is more than or equal to 2; invoking association relation logic corresponding to target item information in the intelligent contract, and determining the transaction sequence of each target consensus node; generating target transaction events corresponding to the target transaction information according to the transaction sequence, so that each target consensus node carries out consensus processing on the target transaction events based on a preset consensus mechanism, and generating a consensus result; in the event that the consensus result meets the consensus condition, the target transaction event is recorded in the blockchain.
Fig. 1 schematically illustrates an exemplary system architecture 100 in which a blockchain network-based transaction method may be applied in accordance with embodiments of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include clients 101, 102, 103, a network 104, and a consensus node 105. The network 104 is used as a medium to provide communication links between the clients 101, 102, 103 and the consensus node 105. The network 104 may include various connection types, such as wired and/or wireless communication links, and the like.
A user may interact with the consensus node 105 through the network 104 using clients 101, 102, 103 to receive or send messages or the like. The clients 101, 102, 103 may have various communication client applications installed thereon, such as banking applications, shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients and/or social platform software, to name a few.
The clients 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
It should be noted that the transaction method based on the blockchain network provided in the embodiments of the present disclosure may be generally performed by the consensus node 105. Accordingly, the blockchain network-based transaction device provided by the embodiments of the present disclosure may be generally disposed in the consensus node 105. The blockchain network-based transaction methods provided by embodiments of the present disclosure may also be performed by a consensus node or a cluster of consensus nodes that are different from the consensus node 105 node and that are capable of communicating with clients 101, 102, 103 and/or supervisory nodes. Accordingly, blockchain network-based transactions provided by embodiments of the present disclosure may also be provided in a consensus node or a cluster of consensus nodes that are different from the consensus node 105 and capable of communicating with clients 101, 102, 103 and/or supervisory nodes.
It should be understood that the number of clients, networks, and consensus nodes in fig. 1 is merely illustrative. There may be any number of clients, networks, and consensus nodes, as desired for an implementation.
It should be noted that the blockchain network-based transaction method, device, computer system, computer readable storage medium and computer program product of the present disclosure may be used in the financial field and the blockchain technical field, and may also be used in any field other than the blockchain technical field and the financial field, and the blockchain network-based transaction method, device, computer system, computer readable storage medium and application field of the computer program product of the present disclosure are not limited.
The blockchain network-based transaction method of the disclosed embodiments will be described in detail below with reference to the scenario described in fig. 1, with reference to fig. 2 to 4.
Fig. 2 schematically illustrates a flow chart of a blockchain network-based transaction method in accordance with an embodiment of the present disclosure.
As shown in fig. 2, the blockchain network-based transaction method of this embodiment includes operations S201 to S204. The block chain network comprises a supervision node and M consensus nodes; a blockchain network has deployed thereon an intelligent contract for managing transaction orders.
In operation S201, N target consensus nodes are determined among the plurality of consensus nodes in response to target transaction information generated by the supervising node, wherein the target transaction information includes target item information, M.gtoreq.N.gtoreq.2.
In accordance with embodiments of the present disclosure, the blockchain system may include, for example, a Hyperledger Fabric (a distributed ledger platform) federated chain system or the like. The supervisory system may comprise, for example, a system installed on a client, which may be, for example, a node in a Fabric system, or may be an external device independent of the Fabric system. The target transaction information may include, for example, funds payment information. The target item information may include, for example, contract information, funds-payer information, and funds-receiver information.
According to an embodiment of the present disclosure, the target consensus node may include, for example, a node associated with contract information in the above-described target item information.
For example, project information of a certain project includes first contract information signed by a unit and B unit and second contract information signed by B unit and C, D unit. The target consensus node may comprise nodes associated with a units, B units, C units, and D units.
In operation S202, association logic corresponding to the target item information in the smart contract is called to determine a transaction order of each target consensus node.
According to embodiments of the present disclosure, association relationship logic corresponding to target item information may be determined, for example, from contract information associated with the target item information.
For example, after a project is initiated by a project construction unit, the project construction unit signs first contract information with a general contractor, and signs second contract information with the general contractor and a provider. The order of the transactions for the project is to first perform transactions with project building units and the contractors, and transactions between the contractors and subcontractors are performed.
In operation S203, a target transaction event corresponding to the target transaction information is generated according to the transaction sequence, so that each target consensus node performs consensus processing on the target transaction event based on a preset consensus mechanism, and generates a consensus result.
According to embodiments of the present disclosure, the target transaction event may include, for example, a plurality of transaction sub-events. The transaction sub-events may be determined, for example, by a transaction order. For example, in the case where a construction item includes two trade actions according to a trade order, the number of trade sub-events associated with the construction item may include two. Wherein each transaction sub-event corresponds to a transaction action, respectively.
In operation S204, in the event that the consensus result satisfies the consensus condition, the target transaction event is recorded in the blockchain.
According to embodiments of the present disclosure, after the consensus result satisfies the consensus condition, each consensus node may package the target transaction event into chunks and then connect the generated chunks with the end of the existing blockchain.
According to the embodiment of the disclosure, according to the target payment information generated by the supervision node, the payment sequence of each target consensus node is determined through the association relation logic, a corresponding target payment event is generated according to the payment sequence, and the target payment event is recorded in the blockchain under the condition that the consensus result meets the consensus condition. The system and the method realize the penetrating type payment function among multi-level users based on the blockchain network, can realize supervision and monitoring of the upstream group to the downstream group fund flow direction under the condition that the user group is complex, and can prevent the occurrence of fund chain breakage.
According to an embodiment of the present disclosure, before executing the blockchain network-based transaction method provided in the present embodiment, it is necessary to upload target item information such as contract information to the blockchain network.
According to an embodiment of the present disclosure, the transaction sequence includes a first transaction sequence and a second transaction sequence.
According to an embodiment of the present disclosure, the first transaction order has a higher transaction priority than the second transaction order. When executing the target transaction event associated with the target item information, a first transaction event associated with a first transaction sequence is executed, and then a second transaction event associated with a second transaction sequence is executed.
It should be noted that the above embodiments are merely exemplary embodiments, and the number of transaction sequences may include any number, as required by a specific implementation.
According to an embodiment of the present disclosure, generating a target transaction event corresponding to target transaction information according to a transaction order includes:
a first transaction event is generated based on the target item information and a target consensus node associated with the first transaction sequence. A second transaction event is generated based on the target item information and a target consensus node associated with the second transaction sequence. A target transaction event is generated from the first transaction event and the second transaction event.
According to embodiments of the present disclosure, the target item information may include, for example, contract information, funds-payer information, and funds-receiver information. The contract information may include, for example, funds transaction value information. The funds payer information may include, for example, account number information of a payment account of a payee, issuer information of the payment account, name information of the payee, and the like. The funds receiver information may include, for example, account information of a recipient's collection account, issuer information of the collection account, name information of the recipient, and the like. It should be noted that the above embodiments are only exemplary embodiments, and the target item information may also include other information according to the specific implementation needs.
According to an embodiment of the present disclosure, the first transaction event may include, for example, a first transaction consensus node and a funds transaction value determination. The first transaction consensus node may comprise, for example, a node associated with funds payer information and funds receiver information.
For example, the node associated with the funds-payer information is a payment node associated with the first financial institution, the node associated with the funds-receiver information is a receiving node associated with the second financial institution, and the funds transaction value is K. The first transaction event is the transfer of K funds in the funds payer information to the funds recipient information in the recipient node via the payment node.
According to the embodiments of the present disclosure, the second transaction event corresponds to the description of the first transaction event, and will not be described herein.
According to an embodiment of the present disclosure, after determining a plurality of first and second transaction events, a target transaction event is generated from the first and second transaction events.
According to an embodiment of the present disclosure, in the event that the consensus result satisfies the consensus condition, recording the target transaction event in the blockchain includes:
the first transaction event is recorded in the blockchain in the event that a consensus result corresponding to the first transaction event satisfies a consensus condition. And under the condition that the preset time threshold value is reached and the consensus result corresponding to the second transaction event meets the consensus condition, recording the second transaction event in the blockchain.
According to embodiments of the present disclosure, the preset time threshold may include, for example, 1 hour, 12 hours, 24 hours, or the like. The preset time threshold may be any time threshold according to specific implementation needs.
According to an embodiment of the present disclosure, after recording the first transaction event in the blockchain, further comprising:
the status of the transaction resource associated with the first transaction event is determined to be a frozen status, wherein the frozen status is used to characterize the transaction resource as unavailable.
According to embodiments of the present disclosure, after the first transaction event is recorded in the blockchain, funds associated with the first transaction event are transferred from the payer account to the recipient account. In this case, in the presence of the second transaction event, in order to be able to guarantee the supervision of the funds and in order to be able to finally reach the funds in the account of the recipient associated with the second transaction event, the funds may be frozen, for example, in the account of the recipient associated with the first transaction event. Preventing the above funds from being moved during the execution of the target event, resulting in a broken funds chain.
It should be noted that the above embodiments are only exemplary embodiments, and in the case where there are multiple transaction sub-events in the target transaction event, the funds of each other recipient may be subjected to the freezing process before the funds are transferred to the final recipient.
For example, if the target event includes an A event, a B event, and a C event in the transaction order. The funds with the recipient in the a event and the B event may be frozen. And when the receiver in the event A or the event B needs to transfer out the funds, thawing the funds.
Fig. 3 schematically illustrates a flow chart of a blockchain network-based transaction method in accordance with an embodiment of the present disclosure.
As shown in fig. 3, the blockchain network-based transaction method is performed by nodes associated with a project construction organization 301, a general contractor 302, a labor subcontract 303, and a labor worker 304.
The task SCE 303 initiates a request at the blockchain, and the project construction unit 301 completes the examination and approval through the step-by-step examination and approval on the blockchain system. After the auditing is completed, the project construction unit 301 generates target transaction information on the supervision node, and generates a target transaction event according to the target transaction information.
The target transaction event may include a first payment event, a second payment event, and a third payment event. The first payment event characterizes an event in which the project construction unit 301 pays funds to the master contractor 302, the second payment event characterizes an event in which the master contractor 302 pays funds to the labor subcontracting 303, and the third payment event characterizes an event in which the labor subcontracting 303 pays funds to the labor worker 304.
The first payment event, the second payment event, and the third payment event are sequentially performed in the payment order. And recording the first payment event, the second payment event, and the third payment event in the blockchain.
It should be noted that after the first transaction event is performed, the funds reach the contractor 302 account, at which point the funds may be frozen in the contractor 302 account. The fund is then thawed upon execution of the second transaction event. After the second transaction event is performed, the funds reach the labor subcontracting 303 account, at which point the funds may be frozen in the labor subcontracting 303 account. And thawing the fund when the third transaction event is executed.
According to an embodiment of the present disclosure, generating the target transaction event corresponding to the target transaction information according to the transaction order further includes:
the master node and the slave node are determined at a plurality of target consensus nodes according to the first transaction sequence and the second transaction sequence. And generating a target transaction event according to the target item information, the master node and the slave node.
According to embodiments of the present disclosure, the master node may comprise, for example, a payment node associated with a payer of a first transaction order, and the slave node may comprise, for example, a receiving node associated with a receiver of a second transaction order. The target transaction event may consist of, for example, a funds transaction value, the payment node and the receiving node described above. I.e., transferring funds of a payment account in the payment node directly to a collection account in the receiving node, while avoiding the funds from passing through other intermediate nodes between the payment node and the receiving node.
According to the embodiment of the disclosure, the method can realize the cross-level payment of the paying party and the receiving party, thereby reducing the fund paying link, ensuring the accurate fund paying, ensuring the special fund paying in time.
According to the embodiment of the disclosure, the through payment based on the blockchain system exerts the characteristics of tamper-proof, traceability, sharability and the like of blockchain uplink data, and solves the problems. The method provides an innovative payment mode, enhances information transparency and credit transfer in engineering construction, and realizes transparent system of fund supervision by means of technical means such as uplink, process management uplink, fund payment uplink and the like, and through full life cycle management of engineering projects.
Fig. 4 schematically illustrates a flow chart of another blockchain network-based transaction method in accordance with an embodiment of the present disclosure.
As shown in FIG. 4, the blockchain network-based transaction method is performed by nodes associated with project construction units 401, general contractors 402, and suppliers 403.
The supplier 403 initiates the money requesting in the blockchain, and the project construction unit 401 completes the auditing through the gradual batch of the master contractor 402 and the project construction unit 401 on the blockchain system. After the auditing is completed, the project construction unit 401 generates target transaction information on the supervision node, and generates a target transaction event according to the target transaction information. The target transaction event characterizes an event in which project construction units 401 pay funds to suppliers 403.
When the target transaction event is executed, funds in the account of the project construction unit 401 are directly transferred to the account of the supplier 403. The penetrating type money transfer of engineering funds is realized, the money is directly transferred from the project construction unit 401 to the supplier 403, the money transfer link is reduced, the accurate money transfer is ensured, the special money transfer is ensured, and the timely money transfer is ensured.
According to an embodiment of the present disclosure, the blockchain network-based transaction method further includes:
in response to the funds transaction request, initial transaction information corresponding to the funds transaction request is uploaded to the supervising node. And checking the initial transaction information through the supervision node, and outputting a checking result. And under the condition that the verification result represents that the verification of the initial transaction information is successful, generating target transaction information according to the initial transaction information through the supervision node.
According to embodiments of the present disclosure, the initial transaction information may include, for example, target item information and initial funds transaction values. The method by which the supervising node verifies the initial transaction information may, for example, include verifying the initial funds transaction value by a target funds transaction value in the target item information.
According to an embodiment of the present disclosure, if the initial funds transaction value is consistent with the target funds transaction value in the target item information, the verification passes. In the event that the initial funds transaction value is greater than or less than the target funds transaction value in the target item information, the verification fails.
Further, for example, it would be possible to output a verification result that the verification failed only in the case where the initial funds transaction value is greater than the target funds transaction value in the target item information. And outputting a verification passing result in the case that the initial funds transaction value is smaller than the target funds transaction value in the target item information. While the remaining non-transacted funds need to be paid again at any time thereafter.
Based on the transaction method based on the blockchain network, the disclosure also provides a transaction device based on the blockchain network. The device will be described in detail below in connection with fig. 5.
Fig. 5 schematically illustrates a block diagram of a block chain network-based transaction device according to an embodiment of the present disclosure.
As shown in fig. 5, the blockchain network-based transaction device 500 of this embodiment includes a first response module 501, a calling module 502, a first generation module 503, and a recording module 504. The block chain network comprises a supervision node and M consensus nodes; a blockchain network has deployed thereon an intelligent contract for managing transaction orders.
The first response module 501 is configured to determine N target consensus nodes among the plurality of consensus nodes in response to target transaction information generated by the supervision node, where the target transaction information includes target item information, and M is greater than or equal to N is greater than or equal to 2. The first response module 501 may be configured to perform the operation S201 described above, which is not described herein.
And the calling module 502 is used for calling association relation logic corresponding to the target project information in the intelligent contract and determining the transaction sequence of each target consensus node. In an embodiment, the calling module 502 may be configured to perform the operation S202 described above, which is not described herein.
The first generating module 503 is configured to generate target transaction events corresponding to the target transaction information according to the transaction sequence, so that each target consensus node performs consensus processing on the target transaction events based on a preset consensus mechanism, and generates a consensus result. The first generating module 503 may be used to perform the operation S203 described above, which is not described herein.
A recording module 504, configured to record the target transaction event in the blockchain if the consensus result satisfies the consensus condition. The recording module 504 may be configured to perform the operation S204 described above, which is not described herein.
According to the embodiment of the disclosure, according to the target payment information generated by the supervision node, the payment sequence of each target consensus node is determined through the association relation logic, a corresponding target payment event is generated according to the payment sequence, and the target payment event is recorded in the blockchain under the condition that the consensus result meets the consensus condition. The system and the method realize the penetrating type payment function among multi-level users based on the blockchain network, can realize supervision and monitoring of the upstream group to the downstream group fund flow direction under the condition that the user group is complex, and can prevent the occurrence of fund chain breakage.
According to an embodiment of the present disclosure, the transaction sequence includes a first transaction sequence and a second transaction sequence.
According to an embodiment of the present disclosure, the first generation module 503 includes a first generation unit, a second generation unit, and a third generation unit.
The first generation unit is used for generating a first transaction event according to the target project information and the target consensus node associated with the first transaction sequence.
And the second generation unit is used for generating a second transaction event according to the target project information and the target consensus node associated with the second transaction sequence.
And the third generation unit is used for generating a target transaction event according to the first transaction event and the second transaction event.
According to an embodiment of the present disclosure, the recording module 504 includes a first recording unit and a second recording unit.
And the first recording unit is used for recording the first transaction event in the blockchain under the condition that the consensus result corresponding to the first transaction event meets the consensus condition.
And the second recording unit is used for recording the second transaction event in the blockchain under the condition that the preset time threshold value is reached and the consensus result corresponding to the second transaction event meets the consensus condition.
According to an embodiment of the present disclosure, the blockchain network-based transaction device 500 further includes a freezing module.
And a freeze module configured to determine a status of the transaction resource associated with the first transaction event as a frozen status, wherein the frozen status is used to characterize the transaction resource as an unavailable status.
According to an embodiment of the present disclosure, the first generation module 503 further includes a determination unit and a fourth generation unit.
And the determining unit is used for determining the master node and the slave node at the plurality of target consensus nodes according to the first transaction sequence and the second transaction sequence.
And the fourth generation unit is used for generating a target transaction event according to the target project information, the master node and the slave node.
According to an embodiment of the present disclosure, the blockchain network-based transaction device 500 further includes a second response module, a verification module, and a second generation module.
And the second response module is used for responding to the fund transaction request and uploading initial transaction information corresponding to the fund transaction request to the supervision node.
The verification module is used for verifying the initial transaction information through the supervision node and outputting a verification result;
and the second generation module is used for generating target transaction information according to the initial transaction information through the supervision node under the condition that the verification result represents that the verification of the initial transaction information is successful.
According to embodiments of the present disclosure, any of the first response module 501, the call module 502, the first generation module 503, and the recording module 504 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of the first response module 501, the invocation module 502, the first generation module 503, and the logging module 504 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable way of integrating or packaging circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, at least one of the first response module 501, the invocation module 502, the first generation module 503, and the logging module 504 may be at least partially implemented as computer program modules, which, when executed, may perform the respective functions.
Fig. 6 schematically illustrates a block diagram of an electronic device adapted to implement a blockchain network-based transaction method in accordance with an embodiment of the present disclosure.
As shown in fig. 6, an electronic device 600 according to an embodiment of the present disclosure includes a processor 601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. The processor 601 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. Processor 601 may also include on-board memory for caching purposes. The processor 601 may comprise a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. The processor 601 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 602 and/or the RAM 603. Note that the program may be stored in one or more memories other than the ROM 602 and the RAM 603. The processor 601 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 600 may also include an input/output (I/O) interface 605, the input/output (I/O) interface 605 also being connected to the bus 604. The electronic device 600 may also include one or more of the following components connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 602 and/or RAM 603 and/or one or more memories other than ROM 602 and RAM 603 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code, when executed in a computer system, causes the computer system to implement the blockchain network-based transaction methods provided by embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 601. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of signals over a network medium, and downloaded and installed via the communication section 609, and/or installed from the removable medium 611. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 601. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (10)

1. A blockchain network-based transaction method, the blockchain network comprising a supervision node and M consensus nodes; the blockchain network is provided with an intelligent contract for managing the transaction sequence, and the method comprises the following steps:
Determining N target consensus nodes in the plurality of consensus nodes in response to target transaction information generated by the supervision nodes, wherein the target transaction information comprises target item information, the target item information comprises contract information, the target consensus nodes comprise nodes associated with the contract information, and M is more than or equal to N is more than or equal to 2;
invoking association relation logic corresponding to the target project information in the intelligent contract, and determining the transaction sequence of each target consensus node, wherein the association relation logic is determined according to the contract information;
generating target transaction events corresponding to the target transaction information according to the transaction sequence, so that each target consensus node carries out consensus processing on the target transaction events based on a preset consensus mechanism to generate a consensus result;
and recording the target transaction event in a blockchain under the condition that the consensus result meets the consensus condition.
2. The method of claim 1, wherein the transaction sequence comprises a first transaction sequence and a second transaction sequence;
the generating the target transaction event corresponding to the target transaction information according to the transaction sequence comprises:
Generating a first transaction event according to the target item information and the target consensus node associated with the first transaction sequence;
generating a second transaction event according to the target item information and the target consensus node associated with the second transaction sequence;
generating the target transaction event according to the first transaction event and the second transaction event.
3. The method of claim 2, wherein the recording the target transaction event in a blockchain if the consensus result satisfies a consensus condition comprises:
recording the first transaction event in the blockchain if a consensus result corresponding to the first transaction event meets the consensus condition; and
and under the condition that a preset time threshold is reached and a consensus result corresponding to the second transaction event meets the consensus condition, recording the second transaction event in the blockchain.
4. The method of claim 3, wherein after recording the first transaction event in the blockchain, further comprising:
determining a status of a transaction resource associated with the first transaction event as a frozen status, wherein the frozen status is used to characterize the transaction resource as an unavailable status.
5. The method of claim 2, the generating a target transaction event corresponding to the target transaction information according to the transaction order further comprising:
determining a master node and a slave node at the plurality of target consensus nodes according to the first transaction sequence and the second transaction sequence;
and generating the target transaction event according to the target item information, the master node and the slave node.
6. The method of claim 1, further comprising:
in response to a funds transaction request, uploading initial transaction information corresponding to the funds transaction request to the supervising node;
checking the initial transaction information through the supervision node, and outputting a checking result;
and under the condition that the verification result represents that the verification of the initial transaction information is successful, generating the target transaction information according to the initial transaction information through the supervision node.
7. A blockchain network-based transaction device, the blockchain network comprising a supervision node and M consensus nodes; the blockchain network has disposed thereon an intelligent contract for managing transaction orders, the apparatus comprising:
the first response module is used for responding to target transaction information generated by the supervision node, and determining N target consensus nodes in the plurality of consensus nodes, wherein the target transaction information comprises target project information, the target project information comprises contract information, the target consensus nodes comprise nodes associated with the contract information, and M is more than or equal to N is more than or equal to 2;
The calling module is used for calling association relation logic corresponding to the target project information in the intelligent contract and determining the transaction sequence of each target consensus node, wherein the association relation logic is determined according to the contract information;
the first generation module is used for generating target transaction events corresponding to the target transaction information according to the transaction sequence, so that each target consensus node carries out consensus processing on the target transaction events based on a preset consensus mechanism and generates a consensus result;
and the recording module is used for recording the target transaction event in the blockchain under the condition that the consensus result meets the consensus condition.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
9. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1-6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.
CN202110945986.XA 2021-08-17 2021-08-17 Transaction method, device, equipment and storage medium based on blockchain network Active CN113658003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110945986.XA CN113658003B (en) 2021-08-17 2021-08-17 Transaction method, device, equipment and storage medium based on blockchain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110945986.XA CN113658003B (en) 2021-08-17 2021-08-17 Transaction method, device, equipment and storage medium based on blockchain network

Publications (2)

Publication Number Publication Date
CN113658003A CN113658003A (en) 2021-11-16
CN113658003B true CN113658003B (en) 2024-03-29

Family

ID=78492161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110945986.XA Active CN113658003B (en) 2021-08-17 2021-08-17 Transaction method, device, equipment and storage medium based on blockchain network

Country Status (1)

Country Link
CN (1) CN113658003B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205233B (en) * 2021-11-30 2022-07-12 北京大学 Intelligent contract self-adaptive configuration and execution system oriented to data management and control

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590658A (en) * 2017-09-01 2018-01-16 上海专精特新金融信息服务有限公司 Method and device based on the multistage transaction of block chain
CN110520882A (en) * 2018-12-28 2019-11-29 阿里巴巴集团控股有限公司 Transaction is executed parallel in block chain network
CN110827037A (en) * 2019-11-07 2020-02-21 北京海益同展信息科技有限公司 Data interaction method and device based on block chain
WO2020259308A1 (en) * 2019-06-28 2020-12-30 深圳前海微众银行股份有限公司 Method and device for employing blockchain system to turn over asset
CN113225368A (en) * 2021-02-07 2021-08-06 武汉卓尔信息科技有限公司 Block chain transaction method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3141042A1 (en) * 2019-06-13 2020-12-17 Luis Eduardo Gutierrez-Sheris System and method using a fitness-gradient blockchain consensus and providing advanced distributed ledger capabilities via specialized data records

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590658A (en) * 2017-09-01 2018-01-16 上海专精特新金融信息服务有限公司 Method and device based on the multistage transaction of block chain
CN110520882A (en) * 2018-12-28 2019-11-29 阿里巴巴集团控股有限公司 Transaction is executed parallel in block chain network
WO2020259308A1 (en) * 2019-06-28 2020-12-30 深圳前海微众银行股份有限公司 Method and device for employing blockchain system to turn over asset
CN110827037A (en) * 2019-11-07 2020-02-21 北京海益同展信息科技有限公司 Data interaction method and device based on block chain
CN113225368A (en) * 2021-02-07 2021-08-06 武汉卓尔信息科技有限公司 Block chain transaction method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113658003A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
US10937111B2 (en) Managing energy purchase agreements on a blockchain
US20230316392A1 (en) Systems and methods for estimating past and prospective attribute values associated with a user account
US20200265443A1 (en) Event prediction using artifical intellegence
JP2022539998A (en) Supplier invoice reconciliation and payment using an event-driven platform
CN113656499B (en) Value transfer method and device based on block chain
US20160247134A1 (en) Transmitting disbursements from a commercial financial account
CN113658003B (en) Transaction method, device, equipment and storage medium based on blockchain network
EP4107646A1 (en) Systems and methods for anonymizing sensitive data and simulating accelerated schedule parameters using the anonymized data
US20220122073A1 (en) System architecture for enabling distributed temporary control of discrete units of an asset
CN113657981B (en) Funds release method and device based on block chain network
CN112613980A (en) Transaction processing method and device, electronic equipment and computer-readable storage medium
US20150134515A1 (en) Methods and systems for electronic payment of a consumer's bills
CN112950208A (en) Accounting information processing method and device based on block chain
CN114004701A (en) Method and device for generating transaction result, electronic equipment and storage medium
CN114444120A (en) Financing method and device based on block chain, electronic equipment and storage medium
CN113781154A (en) Information rollback method, system, electronic equipment and storage medium
US9286112B2 (en) Determining and dispatching processing agent for transaction processing
CN115829753B (en) Cross-border securities business exchange method and system based on blockchain
US20230106705A1 (en) System and method for real-time processing of resource transfers
US11900448B2 (en) Liquidity engine
CN115471305A (en) Block chain-based electric charge reconciliation method, system, medium and electronic device
US11250521B2 (en) System for facilitating reconciliation and correlation of workflows
CN108537659B (en) Method and apparatus for outputting information
US20150309836A1 (en) Avoiding transaction rollback
CN114240437A (en) Service processing method, service processing device, electronic equipment and readable storage medium

Legal Events

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