CN108920257B - Transaction processing method, device, equipment and storage medium - Google Patents

Transaction processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN108920257B
CN108920257B CN201810661718.3A CN201810661718A CN108920257B CN 108920257 B CN108920257 B CN 108920257B CN 201810661718 A CN201810661718 A CN 201810661718A CN 108920257 B CN108920257 B CN 108920257B
Authority
CN
China
Prior art keywords
transaction
node
state data
party application
transaction state
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
CN201810661718.3A
Other languages
Chinese (zh)
Other versions
CN108920257A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810661718.3A priority Critical patent/CN108920257B/en
Publication of CN108920257A publication Critical patent/CN108920257A/en
Application granted granted Critical
Publication of CN108920257B publication Critical patent/CN108920257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/466Transaction processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses a transaction processing method, a transaction processing device, transaction processing equipment and a storage medium. Wherein the method is performed by a node in a blockchain system, the method comprising: acquiring transaction state data of a third-party application; and sending the transaction state data to a block generating node in a block chain system, so that the block generating node writes the transaction state data into a block chain. According to the technical scheme provided by the embodiment of the invention, as the transaction state data is stored in the block chain, the transaction state data is transparent to the third-party application and the platform side and cannot be tampered, so that the accuracy and the credibility of the transaction data are improved, and the accuracy of the settlement result of the third-party application is further improved.

Description

Transaction processing method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of block chains, in particular to a transaction processing method, a transaction processing device, transaction processing equipment and a storage medium.
Background
In some internet application scenes, a public platform opens payment capacity for collecting and paying for others, and integrates various payment channels. The third-party application provides the content service for the user through the public platform, and the ordinary user can pay the third-party application through the platform to use the content service provided by the third-party application.
The current process relying on a common platform is as follows: the third-party application needs to initiate an order to be paid, the platform side informs the third-party application of a payment result when the payment of the user is completed, and when the settlement time of the third-party application is reached, the platform side settles the order of the third-party application and informs the settlement result to the third-party application.
However, at present, the settlement result of the transaction is subject to the platform record, and there may be a dispute. If the platform informs the developer that the order payment is successful but the final settlement record does not record the order, the third-party application needs to keep the current log, and the process of initiating evidence and arbitration from the platform side by the third-party application is tedious. Also, settlement contracts are stored on the platform side and are not transparent to third party applications.
Disclosure of Invention
The embodiment of the invention provides a transaction method, a transaction device and a storage medium, which can improve the accuracy and the public confidence of transaction data.
In a first aspect, an embodiment of the present invention provides a transaction processing method, which is performed by a node in a blockchain system, and the method includes:
acquiring transaction state data of a third-party application;
and sending the transaction state data to a block generating node in a block chain system, so that the block generating node writes the transaction state data into a block chain.
In a second aspect, an embodiment of the present invention further provides a transaction processing apparatus configured in a node in a blockchain system, where the apparatus includes:
the data acquisition module is used for acquiring transaction state data of the third-party application;
and the data sending module is used for sending the transaction state data to a block generating node in a block chain system, so that the block generating node writes the transaction state data into a block chain.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the transaction processing method of any of the first aspects.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the transaction processing method described in any of the first aspects.
According to the technical scheme provided by the embodiment of the invention, after the third-party application node or the platform-side node in the block chain system acquires the transaction state data of the third-party application, the transaction state data is sent to the block generation node in the block chain system, so that the block generation node writes the transaction state data into the block chain. The transaction state data is stored in the block chain, so that the transaction state data is transparent to the third-party application and the platform side and cannot be tampered, the accuracy and the credibility of the transaction data are improved, and the accuracy of the third-party application settlement result is further improved.
Drawings
Fig. 1 is a flowchart of a transaction processing method provided in a first embodiment of the present invention;
fig. 2 is a flowchart of a transaction processing method provided in the second embodiment of the present invention;
fig. 3 is a flowchart of a transaction processing method provided in the third embodiment of the present invention;
fig. 4 is a block diagram of a transaction processing apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus provided in the fifth embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and that no limitation of the invention is intended. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
Example one
Fig. 1 is a flowchart of a transaction processing method according to an embodiment of the present invention, which applies a block chain technique to a scenario in which a third-party application interacts with a public platform side, so as to solve the problems that a settlement result of transaction data of the third-party application is only recorded by the public platform side, and a settlement contract is only stored in the public platform side, so that the settlement result of the transaction data and the settlement contract have low accuracy and low trust. This embodiment is applicable to public or alliance chain type block chains. The scheme of the embodiment of the invention is applied to a node in a block chain system, and the node can be a third-party application node or a platform side node, wherein a third-party application client and a block chain application client are configured in the third-party application node, and one third-party application node can be used by a plurality of third-party application accounts; the platform side node is also provided with a block chain application client. It should be noted that there may be one platform side node or multiple platform side nodes in the blockchain system. Different platform side nodes realize different service functions. The method can be executed by the transaction processing device provided by the embodiment of the invention, and the device can be implemented in a software and/or hardware manner and can be integrated in a computing device carrying the nodes of the block chain system. Referring to fig. 1, the method specifically includes:
s110, acquiring the transaction state data of the third-party application.
The third-party application refers to a content provider providing content services to users by means of a public platform, such as a developer of a bear paw number platform or a public number of a wechat platform. The transaction state data may be state data at various stages of a transaction commit request initiated by a third party application. Optionally, if the transaction submission request is a pending payment order request, the corresponding transaction status data may include, but is not limited to, order generation data, order processing data, order completion data, and the like.
Specifically, the third-party application initiates a transaction submission request to the platform side, and the platform side feeds back an operation result to the third-party application according to the operation condition of the user on the transaction submission request on the platform. Therefore, the local node can acquire the transaction submission request of the third-party application, the result fed back by the platform side and the like in real time. It should be noted that the native node may be a third-party application node or a platform-side node.
For example, obtaining transaction state data of the third-party application may include: acquiring a to-be-processed transaction initiated by a third-party application in a blockchain system; and/or acquiring transaction state change data of the third-party application sent by the platform side in the blockchain system.
The to-be-processed transaction can be a to-be-processed order, a to-be-processed transaction, a to-be-processed query and the like; transaction state change data refers to data in which transaction state data changes, such as payment state adjustment data. Optionally, in this embodiment, the to-be-processed transaction is a to-be-processed order, and the transaction state change data includes at least one order payment state data of a payment state, an order refund, an order completion, and an order return.
The payment state can include unpaid, in-payment, failure in payment, completion of payment and the like; the order refund can be generated under any condition that the user pays first but the third-party application does not provide the service, the service provided by the third-party application is not consistent with the amount paid by the user, the service fee required by the third-party application is reduced, or the amount paid by the user exceeds the payment amount set by the third-party application; order completion means that the transaction is finished, namely the user completes payment and the third-party application also provides corresponding service for the user; the order returns may be generated when the services provided by the third party application do not match the user expectations.
Specifically, if the local node is a third-party application node, the third-party application node may obtain the transaction state data in the following manner: acquiring a to-be-processed transaction initiated to a platform side by any one third-party application supported by the third-party application node at the third-party application node; and receiving the transaction state change data of the third-party application sent by the platform side node to which the platform side belongs. In addition, if transaction state data is stored in the blockchain, it can be obtained from any node in the blockchain system or from the blockchain itself.
Correspondingly, if the local node is the platform side node, the platform side node can acquire the transaction state data in the following way: receiving a to-be-processed transaction initiated by any third-party application sent by a third-party application node; the platform side node obtains transaction state change data of the third party application from the platform side node; in addition, if transaction state data is stored in the blockchain, it can be obtained from any node in the blockchain system or from the blockchain itself.
S120, the transaction state data is sent to the block generating node in the block chain system, so that the block generating node writes the transaction state data into the block chain.
The specific operation may be that after the local node acquires the transaction state data of the third-party application, the transaction state data is transmitted to the block generation node in the block chain system, so that the block generation node processes the transaction state data and stores the transaction state data in the block chain. At the same time, transaction state data may also be sent to other nodes in the blockchain system.
For example, after sending the transaction status data to the block generation node in the blockchain system and causing the block generation node to write the transaction status data into the blockchain, the method may further include: and receiving the block address at which the transaction state data fed back by the block generation node is stored in the block chain.
Specifically, after receiving the block address, the local node can query the transaction state data in the block chain according to the block address at any time, thereby further ensuring the accuracy of the transaction state data.
According to the technical scheme provided by the embodiment of the invention, after the third-party application node or the platform-side node in the block chain system acquires the transaction state data of the third-party application, the transaction state data is sent to the block generation node in the block chain system, so that the block generation node writes the transaction state data into the block chain. The transaction state data is stored in the block chain, so that the transaction state data is transparent to the third-party application and the platform side and cannot be tampered, the accuracy and the credibility of the transaction data are improved, and the accuracy of the third-party application settlement result is further improved.
Example two
Fig. 2 is a flowchart of a transaction processing method according to a second embodiment of the present invention, which is further optimized based on the first embodiment. Referring to fig. 2, the method specifically includes:
s210, acquiring transaction state data of the third-party application.
S220, the transaction state data is sent to the block generating node in the block chain system, so that the block generating node writes the transaction state data into the block chain.
S230, sending a transaction status query request to the block generation node.
Wherein the transaction state query request is used to instruct the block generation node to search the transaction state data associated with the transaction state query request in the block chain. Optionally, the transaction status query request may include: third party application identification, user identification, transaction ID or block address, etc. The third-party application identifier is an identity mark used for uniquely identifying the third-party application, and may be, for example, a public key, an ID, an icon, or the like of the third-party application; the user identification can be a user name, an account number, an ID or a mobile phone number of the resource owner.
It should be noted that different third-party applications correspond to different transaction state data; the same third-party application provides services for different users, and the corresponding transaction state data are different; the block address may include a block id to store the transaction state data and a byte offset to which the transaction state data is stored within the block, the block id being used to uniquely identify the block, which may be a block height; the byte offset refers to an offset which can be accurately positioned to the position of a certain transaction state data in the block.
Specifically, the local node may send a transaction state query request to the block generation node when performing the proof or when the calculation result is not identical, or may send a transaction state query request to any other node storing the transaction state data in the block chain.
Correspondingly, after the block generation node receives the transaction state query request, the third-party application identifier and the user identifier can be used as key words to search the transaction state data associated with the transaction state query request in the block chain. The transaction state data associated with the transaction state query request can also be queried directly according to the block address contained in the transaction state query request.
S240, receiving the transaction state data searched by the block generation node.
Specifically, after the block generation node queries the transaction state data associated with the transaction state query request, the transaction state data is fed back to the local node.
According to the technical scheme provided by the embodiment of the invention, as the transaction state data is stored in the block chain, the transaction state data is transparent and can not be tampered for the third party application and the platform party, and when the third party application node or the platform party node in the block chain system carries out evidence or settlement and the like, a transaction state query request can be sent to the block generating node for query. The accuracy and the public credibility of the transaction data are ensured, and the accuracy of the third-party application settlement result is further improved.
EXAMPLE III
Fig. 3 is a flowchart of a transaction processing method according to a third embodiment of the present invention, and this embodiment is further optimized based on the foregoing embodiments. Referring to fig. 3, the method specifically includes:
s310, acquiring the transaction state data of the third-party application.
S320, sending the transaction status data to the block generation node in the block chain system, so that the block generation node writes the transaction status data into the block chain.
S330, sending a settlement contract made by the third party application and the platform party to the block generation node, and enabling the block generation node to write the settlement contract into the block chain.
The settlement contract refers to an electronic contract which is signed by a third party application and a platform party and used for maintaining the benefits of the two parties, and may include: the third party application identification, the platform party identification, the settlement period, the rate charged by the platform party, the single charge fee and the like. The rates charged by the platform parties may be different for different settlement periods, such as but not limited to daily rates, weekly rates, monthly rates, annual rates, and the like. The single charge fee refers to the fee which needs to be paid to the platform side when the third-party application initiates a pending transaction to the platform side and completes.
Specifically, after the third party applies the settlement contract made with the platform side, the local node transmits the settlement contract to the block generation node in the block chain system, so that the block generation node processes and stores the settlement contract in the block chain. At the same time, settlement contracts may also be sent to other nodes in the blockchain system.
In this embodiment, since the settlement contract is stored in the block chain, both the platform side and the third party application can settle automatically when the settlement period arrives, thereby avoiding the problem of low accuracy and credibility of the settlement result caused by only the platform side.
For example, if any of the settlement contracts made by the third-party application and the platform side, which are stored on the local node, is updated, the updated settlement contract is sent to the block generation node.
It should be noted that steps S320 and S330 in this embodiment are not consecutive, and both steps may be executed simultaneously.
S340, sending a settlement request including a time period to be checked to the block generating node.
The settlement request is used for indicating the block generation node to acquire the transaction state data of the third party application in the time period to be verified from the block chain, and generating a settlement result according to the acquired transaction state data and the rate charged by the platform party in the settlement contract. The settlement request can comprise a time period to be verified, a third party application identifier, a platform party identifier and the like.
The time period to be verified is used as the time period to be verified, such as one week, one month or one year, when any one of the third party application and the platform party has doubt on the settlement result in a certain time period; the settlement result is the amount of money to be transferred to the third party application by the platform party.
Specifically, if the local node is a third-party application node, in order to guarantee the benefit of the third-party application, when the third-party application has doubt on the settlement result of the platform party in a certain settlement period or the settlement result of the third-party application in a certain settlement period is different from the settlement result of the platform party, the third-party application node sends a settlement request including a time period to be checked to the block generation node.
Or if the local node is a platform side node, when the platform side finds that the third party application does not comply with the agreement of the settlement contract, and the settlement result is inconsistent with the settlement result of the platform side, the platform side node sends a settlement request including the time period to be checked to the block generating node.
After receiving a settlement request sent by a local node, the block generation node traverses the whole block chain according to the third party application identifier and the time period to be verified to obtain all transaction state data of the third party application in the time period to be verified; and generating a settlement result according to the transaction state data and the rate charged by the platform party, and storing the settlement result in the block chain.
It should be noted that, in order to further reduce the false probability of the local node or the block generation node, and avoid the third-party application or the platform side from violating the policy, which may result in the loss of the rights and interests of the platform side or the third-party application, the block chain system of this embodiment may further include a supervision node. The supervision node is a third party node with strong public trust and authority for guaranteeing rights and interests of both the third party application and the platform party. The node can be an independent node in the block chain, and the block chain application client is also configured in the supervision node.
For example, after sending the settlement contract made by the third-party application and the platform side to the block generation node, the method may further include: and sending a settlement request including the time period to be checked to the supervision node in the block chain system, wherein the settlement request is used for indicating the supervision node to acquire the transaction state data of the third party application in the time period to be checked from the block chain, and generating a settlement result according to the acquired transaction state data and the rate charged by the platform party in the settlement contract.
S350, receiving the settlement result fed back by the block generation node.
Specifically, after the block generation node generates a settlement result according to the transaction state data of the third party application in the time period to be checked and the rate charged by the platform party in the settlement contract, the settlement result is fed back to the local node. Or the block address of the settlement result stored in the block chain is fed back to the local node, so that the local node obtains the settlement result according to the block address.
According to the technical scheme provided by the embodiment of the invention, after a third-party application node or a platform-side node in a block chain system acquires transaction state data of a third-party application, the transaction state data is sent to a block generation node in the block chain system, so that the block generation node writes the transaction state data into a block chain; meanwhile, the settlement contract made by the third-party application and the platform side is also sent to the block generation node in the block chain system, so that the block generation node writes the settlement contract into the block chain. Because the transaction state data and the settlement contract are stored in the block chain, the transaction state data and the settlement contract are transparent to the third-party application and the platform side and can not be tampered, the accuracy and the public trust of the transaction data and the settlement contract are improved, and the accuracy of the settlement result of the third-party application is further improved.
Example four
Fig. 4 is a block diagram of a transaction processing apparatus according to a fourth embodiment of the present invention, the apparatus is configured in a node in a blockchain system, and can execute a transaction processing method according to any embodiment of the present invention, and the apparatus has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 4, the apparatus may include:
a data obtaining module 410, configured to obtain transaction status data of a third-party application;
a data sending module 420, configured to send the transaction status data to a block generation node in a blockchain system, so that the block generation node writes the transaction status data into a blockchain.
According to the technical scheme provided by the embodiment of the invention, after the third-party application node or the platform-side node in the block chain system acquires the transaction state data of the third-party application, the transaction state data is sent to the block generation node in the block chain system, so that the block generation node writes the transaction state data into the block chain. The transaction state data is stored in the block chain, so that the transaction state data is transparent to the third-party application and the platform side and cannot be tampered, the accuracy and the credibility of the transaction data are improved, and the accuracy of the third-party application settlement result is further improved.
Illustratively, the data obtaining module 410 is specifically configured to:
acquiring a to-be-processed transaction initiated by a third-party application in a blockchain system; and/or the presence of a gas in the gas,
and acquiring transaction state change data of the third-party application sent by the platform side in the blockchain system.
The to-be-processed transaction is a to-be-processed order, and the transaction state change data comprises at least one order payment state data of payment state, order refund, order completion and order refund.
Illustratively, the apparatus may further include:
the query request sending module is used for sending a transaction state query request to the block generation node after sending the transaction state data to the block generation node in the block chain system, wherein the transaction state query request is used for indicating the block generation node to search the transaction state data associated with the transaction state query request in the block chain;
and the data receiving module is used for receiving the transaction state data searched by the block generation node.
Illustratively, the apparatus may further include:
and the settlement contract sending module is used for sending a settlement contract which is bound by the third party application and the platform party to the block generating node, so that the block generating node writes the settlement contract into the block chain.
Illustratively, the apparatus may further include:
the settlement request sending module is used for sending a settlement request comprising a time period to be verified to the block generation node after sending a settlement contract which is established between the third party application and the platform party to the block generation node, wherein the settlement request is used for indicating the block generation node to acquire transaction state data of the third party application in the time period to be verified from the block chain, and generating a settlement result according to the acquired transaction state data and a rate which is charged by the platform party in the settlement contract;
and the settlement result receiving module is used for receiving the settlement result fed back by the block generation node.
For example, the nodes in the blockchain system may be third party application nodes or platform side nodes.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present invention, and fig. 5 shows a block diagram of an exemplary apparatus suitable for implementing the embodiment of the present invention. The device 12 shown in fig. 5 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention. Device 12 is typically a computing device that assumes the functionality of a node of a blockchain system.
As shown in FIG. 5, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments described herein.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement the transaction processing method provided by the embodiment of the present invention.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program (or referred to as computer-executable instructions) is stored, and when the program is executed by a processor, the transaction processing method according to any of the embodiments above can be implemented. The computer readable storage medium may be configured in a computing device that carries a node of a blockchain system.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, 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), an optical fiber, 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 document, 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A transaction processing method, performed by a third party application node or a platform side node in a blockchain system, the method comprising:
acquiring transaction state data of a third-party application; the transaction state data is the state data of the transaction submission request initiated by the third-party application in each phase;
and sending the transaction state data to a block generating node in a block chain system, so that the block generating node writes the transaction state data into a block chain.
2. The method of claim 1, wherein obtaining transaction state data for a third party application comprises:
acquiring a to-be-processed transaction initiated by a third-party application in a blockchain system; and/or the presence of a gas in the gas,
and acquiring transaction state change data of the third-party application sent by the platform side in the blockchain system.
3. The method of claim 2, wherein the pending transaction is a pending order and the transaction state change data comprises order payment state data of at least one of payment state, order refund, order completion and order return.
4. The method of claim 1, wherein after sending the transaction state data to a blockchain node in a blockchain system, further comprising:
sending a transaction state query request to a block generation node, wherein the transaction state query request is used for instructing the block generation node to search the transaction state data associated with the transaction state query request in the block chain;
and receiving the transaction state data searched by the block generation node.
5. The method of claim 1, further comprising:
and sending a settlement contract made by the third-party application and the platform party to the block generating node, so that the block generating node writes the settlement contract into the block chain.
6. The method of claim 5, wherein after sending the settlement contract made by the third party application and the platform party to the block generation node, further comprising:
sending a settlement request including a time period to be verified to a block generation node, wherein the settlement request is used for indicating the block generation node to acquire transaction state data of a third party application in the time period to be verified from a block chain, and generating a settlement result according to the acquired transaction state data and a rate charged by a platform party in a settlement contract;
and the receiving block generates a settlement result fed back by the node.
7. A transaction processing apparatus configured in a third-party application node or a platform-side node in a blockchain system, the apparatus comprising:
the data acquisition module is used for acquiring transaction state data of the third-party application; the transaction state data is the state data of the transaction submission request initiated by the third-party application in each phase;
and the data sending module is used for sending the transaction state data to a block generating node in a block chain system, so that the block generating node writes the transaction state data into a block chain.
8. A computing device, the device comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the transaction processing method of any of claims 1-6.
9. A storage medium on which a computer program is stored, which program, when being executed by a processor, carries out a transaction processing method according to any one of claims 1 to 6.
CN201810661718.3A 2018-06-25 2018-06-25 Transaction processing method, device, equipment and storage medium Active CN108920257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810661718.3A CN108920257B (en) 2018-06-25 2018-06-25 Transaction processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810661718.3A CN108920257B (en) 2018-06-25 2018-06-25 Transaction processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108920257A CN108920257A (en) 2018-11-30
CN108920257B true CN108920257B (en) 2021-09-10

Family

ID=64422042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810661718.3A Active CN108920257B (en) 2018-06-25 2018-06-25 Transaction processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108920257B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7243154B2 (en) * 2018-12-04 2023-03-22 セイコーエプソン株式会社 Provision device and processing system
CN109711201A (en) * 2018-12-29 2019-05-03 百度在线网络技术(北京)有限公司 Poverty alleviation processing method, device, equipment and medium based on block chain
CN110231979A (en) * 2019-05-07 2019-09-13 深圳壹账通智能科技有限公司 Transaction methods, device, equipment and storage medium based on block chain
CN110377401B (en) * 2019-07-17 2022-10-04 江苏满运软件科技有限公司 Transaction request processing method, device, server and storage medium based on IDEA
CN110633970B (en) * 2019-09-19 2023-06-02 深圳前海环融联易信息科技服务有限公司 Digital asset sorting method, device, computer equipment and storage medium
CN110866753B (en) * 2019-10-24 2021-04-06 腾讯科技(深圳)有限公司 Third party settlement control method and device, electronic equipment and storage medium
CN111178863B (en) * 2019-12-30 2023-09-15 百度在线网络技术(北京)有限公司 Transaction charging method, device, equipment and medium based on blockchain

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9430794B2 (en) * 2014-03-31 2016-08-30 Monticello Enterprises LLC System and method for providing a buy option in search results when user input is classified as having a purchase intent
US20170236103A1 (en) * 2016-02-12 2017-08-17 D+H Usa Corporation Peer-to-Peer Financial Transactions Using A Private Distributed Ledger
CN105809062B (en) * 2016-03-01 2019-01-25 布比(北京)网络技术有限公司 A kind of building of contract executes method and device
CN107784474A (en) * 2016-08-24 2018-03-09 深圳市图灵奇点智能科技有限公司 A kind of novel electron contract and its method performed automatically
WO2018071433A1 (en) * 2016-10-10 2018-04-19 Escolhalegal, Llc Systems, methods and machine-readable mediums for data management and payment processing
CN111880746A (en) * 2017-05-25 2020-11-03 创新先进技术有限公司 Method and device for writing service data into block chain system
CN107622387B (en) * 2017-08-04 2021-12-10 苏州缓流科技有限公司 Public number payment method based on block chain technology
CN107895297A (en) * 2017-11-03 2018-04-10 深圳市易达云科技有限公司 A kind of order creation method and system

Also Published As

Publication number Publication date
CN108920257A (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN108920257B (en) Transaction processing method, device, equipment and storage medium
US11469891B2 (en) Expendable cryptographic key access
CN108923908B (en) Authorization processing method, device, equipment and storage medium
US20210083856A1 (en) Improved hardware security module management
CN111062024B (en) Application login method and device
US20190188708A1 (en) Digital payment system
CN109766362A (en) Data processing method and device
CN109710695B (en) Transaction request validity identification and initiation method, device, equipment and medium
US11961039B2 (en) Linked blockchain structures for accelerated multi-chain verification
CN112308552B (en) Method and device for ordering medical insurance medicine
CN110084600B (en) Processing and verifying method, device, equipment and medium for resolution transaction request
CN110222775A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN110704833A (en) Data permission configuration method, device, electronic device and storage medium
US20240281802A1 (en) Digital Currency-Based Payment Method, Platform and System, and Terminal
CN111382123A (en) File storage method, device, equipment and storage medium
CN111881329A (en) Account balance management method and system
CN109271564A (en) Declaration form querying method and equipment
CN111489139A (en) Order payment method, device, equipment and medium based on big data
CN110782310B (en) Method, device and system for asynchronously acquiring user attribute information from third-party platform
CN108399128A (en) A kind of generation method of user data, device, server and storage medium
CN113850685A (en) Method, apparatus, server and medium for real-time tally
CN111949337B (en) Accounting processing method, device, terminal and storage medium
CN114881739A (en) Order event processing method and device, electronic equipment and storage medium
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN115484149B (en) Network switching method, network switching device, electronic equipment and storage medium

Legal Events

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