CN110838063A - Transaction processing method based on block chain, electronic device and storage medium - Google Patents

Transaction processing method based on block chain, electronic device and storage medium Download PDF

Info

Publication number
CN110838063A
CN110838063A CN201910945176.7A CN201910945176A CN110838063A CN 110838063 A CN110838063 A CN 110838063A CN 201910945176 A CN201910945176 A CN 201910945176A CN 110838063 A CN110838063 A CN 110838063A
Authority
CN
China
Prior art keywords
node
transaction information
block
uplink message
blocks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910945176.7A
Other languages
Chinese (zh)
Other versions
CN110838063B (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.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software 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 Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN201910945176.7A priority Critical patent/CN110838063B/en
Publication of CN110838063A publication Critical patent/CN110838063A/en
Application granted granted Critical
Publication of CN110838063B publication Critical patent/CN110838063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/33User authentication using certificates

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a transaction processing method based on a block chain, an electronic device and a storage medium, wherein the method comprises the following steps: a first node of a blockchain acquires transaction information from a second node of the blockchain; packaging the transaction information into blocks according to the corresponding pass-certificate of the transaction information; the block is transmitted to a third node of the block chain such that the third node authenticates the block and chains the block when the authentication passes. By the method, the block chain system can effectively improve the packaging and chaining efficiency of the block chain system on the transaction information, improve the credibility and the safety of the transaction information, and reduce the trust cost of the transaction.

Description

Transaction processing method based on block chain, electronic device and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, an electronic device, and a storage medium for processing a transaction based on a blockchain.
Background
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm, and emphasizes decentralization, openness, independence, safety and anonymity. The block chain has great application potential in the fields of finance, the Internet of things, logistics, public service and the like. At present, the block chain technology is being researched and developed, the technology itself is not completely mature, the performance, the safety and the expansion are difficult to be considered completely, and the improvement of the performance directly determines the system throughput and the transaction processing efficiency.
Disclosure of Invention
The technical problem that this application mainly solved is: the block chain based transaction processing method, the electronic equipment and the storage medium are provided, so that the packaging and chaining efficiency of the transaction information can be effectively improved, the reliability and the safety of the transaction information are improved, and the trust cost of the transaction is reduced.
In order to solve the technical problem, the application adopts a technical scheme that: a transaction processing method based on a block chain is provided, which comprises the following steps:
a first node of a blockchain acquires transaction information from a second node of the blockchain;
packaging the transaction information into blocks according to the corresponding pass-certificate of the transaction information;
the block is transmitted to a third node of the block chain such that the third node authenticates the block and chains the block when the authentication passes.
Optionally, packaging the transaction information into blocks according to the corresponding pass of the transaction information includes:
acquiring part or all of transaction information received within preset time;
sequencing the transaction information according to the corresponding pass-certificate of the transaction information;
and packaging the transaction information into blocks according to the higher priority of the voucher value.
Optionally, the method further comprises:
receiving an uplink message from a third node;
synchronizing the blocks of the new uplink according to the uplink message;
wherein, the uplink message is generated after the third node uplinks the block.
Optionally, the method further comprises:
receiving an uplink message from a third node;
broadcasting an uplink message to inform other nodes of synchronizing a block of a new uplink; and/or the presence of a gas in the gas,
transmitting an uplink message to the second node;
wherein, the uplink message is generated after the third node uplinks the block.
Optionally, after packaging the transaction information into blocks according to the corresponding pass of the transaction information, the method further includes:
and obtaining the corresponding evidence-based reward of the transaction information.
In order to solve the above technical problem, another technical solution adopted by the present application is: a transaction processing method based on a block chain is provided, which comprises the following steps:
the second node of the block chain sends the transaction information to the first node of the block chain;
the first node packs the transaction information into blocks according to the corresponding pass-certificate of the transaction information;
the first node transmits the block to a third node of the block chain;
the third node authenticates the block and chains the block when the authentication is passed.
Optionally, the third node further includes, after chaining the blocks:
the third node generates an uplink message of the block and transmits the uplink message to the first node;
after receiving the uplink message, the first node further includes:
the first node synchronizes the blocks of the new uplink according to the uplink message; and/or the presence of a gas in the gas,
the first node broadcasts an uplink message to inform other nodes of synchronizing the blocks of the new uplink; and/or the presence of a gas in the gas,
the first node transmits an uplink message to the second node.
Optionally, after the third node verifies the block, the method further includes:
and obtaining the corresponding evidence-based reward of the transaction information.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided an electronic device comprising a processor, a memory, and communication circuitry, the processor being coupled to the memory and the communication circuitry, respectively, wherein,
the memory is used for storing program instructions executed by the processor;
the processor is used for executing program instructions to realize the steps of the first node, the second node or the third node in the block chain-based transaction processing method.
In order to solve the above technical problem, another technical solution adopted by the present application is: a storage medium is provided for storing program instructions that are executable by a processor to implement the steps of the first node, the second node, or the third node in the blockchain-based transaction processing method of the present application.
The beneficial effect of this application is:
according to the method and the device, the transaction information of the second node is packaged in sequence according to the corresponding certificates, the transaction information can be packaged orderly and efficiently when massive transaction information is submitted, the efficiency of block packaging of the first node is improved, the third node can effectively improve the credibility of the transaction information by chaining the block after verification, the transaction information after chaining can not be tampered, the effectiveness and the safety of the transaction information are guaranteed, and the trust cost of transaction is reduced.
Drawings
FIG. 1 is a block chain-based transaction processing system according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram illustrating a first embodiment of a blockchain-based transaction processing method according to the present invention;
FIG. 3 is a schematic flow chart diagram illustrating a second embodiment of a blockchain-based transaction processing method according to the present invention;
FIG. 4 is a schematic flow chart diagram illustrating an embodiment of a blockchain-based transaction processing method according to the present invention;
FIG. 5 is a schematic flow chart of a block chain backbone consensus method of the present application;
FIG. 6 is a schematic flow chart diagram illustrating a third embodiment of a blockchain-based transaction processing method according to the present invention;
FIG. 7 is a schematic flow chart diagram of an embodiment of an electronic device of the present application;
FIG. 8 is a schematic flow chart of an embodiment of a storage medium of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an embodiment of a transaction processing system based on a block chain according to the present application. The transaction processing system 10 includes at least a first node 110, a second node 120, and a third node 130 located in a blockchain network. The first node 110, the second node 120 and the third node 130 may be provided in plurality, and the number is not limited. Each node in this embodiment includes, but is not limited to, a computer, a mobile phone, a tablet computer, a server, and the like that participate in the blockchain network, and each node may respectively run a corresponding blockchain program to participate in a transaction process in the blockchain.
In this embodiment, the first node 110 may perform information interaction with the second node 120 and the third node 130. The first node 110 is, for example, a full node, can store complete blockchain data, and can share the data to other nodes. The first node 110 is connected to the second node 120, and can receive the transaction information transmitted by the second node 120, and package the transaction information into blocks to enable the third node 130 to perform verification and uplink. In some embodiments, the first node 110 may also provide an end-to-end encrypted messaging channel for the remaining nodes connected to it, such as for sending and receiving private assets, chat information, and the like.
In this embodiment, the second node 120 is responsible for interacting with the user, sending and receiving transaction information, and the like. The second node 120 is, for example, a node involved in a transaction, including a buyer node and a seller node. The second node 120 may interact with the first node 110 for information to participate in the blockchain network. In some embodiments, the second node 120 may be a lightweight node, including, for example, a mobile terminal device such as a cell phone, tablet, notebook, etc. The lightweight node can only store data related to the lightweight node, and does not need to store a complete block chain, so that the storage space is saved, and the operation efficiency is improved. In some embodiments, the second node 120 may select the first node 110 to which it needs to connect and send transaction information to the first node 110 after connection to enable uplink storage.
The third node 130 is, for example, a billing node, and the third node 130 can perform verification and uplink for the packed blocks of the first node 110. The third node 130 may save the complete blockchain data. In some embodiments, the third node 130 may be a node with stable operation, better reputation and more contribution generated by election, and these nodes are responsible for continuously linking blocks and confirming the block chain main chain according to the block chain consensus method.
For more nodes and more functions of each node of the transaction processing system 10 in this embodiment, reference may be made to the following description of each embodiment of the block chain-based transaction processing method in this application.
Referring to fig. 2, the first embodiment of the transaction processing method based on block chain of the present application includes;
s101: the second node sends the transaction information to the first node.
The second node is, for example, a mobile terminal device of a user, such as a mobile phone, and the second node may select to access the first node in the blockchain network and send the transaction information to the first node by running a corresponding blockchain application. The first node may be connected to a plurality of second nodes, and the plurality of second nodes may send transaction information to the first node.
In this embodiment, the transaction information may refer to any data that needs to be linked, such as text, pictures, audio, or any other form of data. In some embodiments, the transaction information may also be the content of a transaction contract signed by the buyer and the seller, and may include, for example, identity information of the buyer and the seller, specific content of the transaction, execution mode of the transaction, default compensation terms, linked-up currency rewards and other transaction-related information.
S102: and the first node packs the transaction information into blocks according to the corresponding pass-certificate of the transaction information.
In this embodiment, after receiving the transaction information sent by the second node, the first node may package the transaction information into blocks in sequence according to the corresponding pass-evidence of the transaction information, so as to reduce the influence on the packaging efficiency caused by the sudden increase of the calculation amount of the first node due to congestion and over-concentration of the transaction information.
In this embodiment, the pass certificate may also be called Token, which is a rights certificate in the blockchain network. The second node provides corresponding certificates when submitting the transaction information, and the certificates can be awarded to the nodes participating in the packaging uplink in the transaction information uplink process so as to encourage the nodes to actively participate in the block packaging accounting. In some embodiments, the pass may also be used to complete settlement of the transaction in lieu of currency.
In some embodiments, the first node may also verify the validity of the transaction information before packaging the transaction information into blocks. For example, whether the transaction information satisfies the rule agreed by each node of the blockchain network or whether the identity information of the second node providing the transaction information is legal is verified. By verifying the transaction information to be linked in advance, the authenticity and the effectiveness of the link data can be effectively improved.
In some embodiments, there are a plurality of first nodes, and data interaction can be performed among the plurality of first nodes. After the first node receives the transaction information sent by the second node, the first node can also broadcast the transaction information to other first nodes, and a plurality of first nodes can participate in packaging the transaction information, so that the uplink efficiency of the transaction information is improved, and the problem that the uplink of the transaction information is too slow and the user rights and interests are influenced due to congestion caused by too much transaction information received by a certain first node is avoided. Or each first node can also receive the transaction information respectively and package the received transaction information, so that the calculation power waste of the first nodes caused by repeated calculation and packaging is reduced.
When the first node packs the transaction information into blocks, the transaction information can be further encrypted and then packed into blocks. For example, the first node encrypts the transaction information transmitted by the second node by using the public key, and after the transaction information is encrypted, the transaction information can be obtained only by decrypting the transaction information by using the private key of the second node, so that the private data can be effectively protected, and the security of the transaction information is improved.
S103: the first node transmits the block to the third node.
In this embodiment, after the first node packages the transaction information into the block, the block may be transmitted to the third node, so that the third node may verify the block. The first node may transmit the block to a plurality of third nodes after packaging the transaction information into the block.
In some embodiments, after the first node packages the transaction information into the block, the block may be transmitted to a part of the third nodes through broadcasting, and the remaining nodes may obtain the block to be verified from the part of the third nodes, so that the network pressure of the first node may be effectively relieved, and the transmission speed of the block may be increased.
S104: the third node authenticates the block and chains the block when the authentication is passed.
In this embodiment, the third node may verify the block packed by the second node. For example, the third node may verify the hash value, the block size, etc. of the block, or traverse all the transaction information in the block to verify the validity of the transaction information. The block verification passes, for example, the third node verifies that the hash value of the block is correct and the block size meets the specification; and/or the third node verifies that the transaction information within the block is legitimate.
The third node may link the block to the end of the block chain after the verification passes, so as to link the block. For example, the third node stores the block into the local account book after the verification is passed, and updates the state base, and after the block is linked, the transaction information in the block becomes effective. In some embodiments, the third node may also notify other nodes to update the synchronous latest blockchain data in time after blockchain is uplinked.
In some embodiments, there are multiple second nodes, and when one second node broadcasts a block, the remaining second nodes can also receive the block and perform verification and uplink on the block. That is, at some point, the second node may also perform the steps of the third node.
According to the embodiment, the transaction information of the second node is sequentially packaged according to the corresponding certificates, so that the transaction information can be sequentially and efficiently packaged when massive transaction information is submitted, the efficiency of block packaging of the first node is improved, the block uplink is carried out by the third node after verification, the credibility of the transaction information can be effectively improved, the transaction information after uplink cannot be tampered, the validity and the safety of the transaction information are guaranteed, and the trust cost of transaction is reduced.
In the present embodiment, the sequence of steps S101 to S104 is the description sequence in the present embodiment, and is not limited to the sequence of the method in the execution process of the present embodiment. Some steps may be permuted, provided that the method can be implemented.
Referring to fig. 3, the second embodiment of the block chain based transaction processing method of the present application is further described on the basis of the first embodiment of the block chain based transaction processing method of the present application, and the steps of this embodiment that are the same as those of the first embodiment of the block chain based transaction processing method of the present application are not repeated herein. The embodiment comprises the following steps:
s201: the second node sends the transaction information to the first node.
S202: and the first node packs the transaction information into blocks according to the corresponding pass-certificate of the transaction information.
In this embodiment, after receiving the transaction information sent by the second node, the first node may package the transaction information into the blocks in sequence according to the corresponding certificates of the transaction information. For example, the first node can package the transaction information according to the order of higher accreditation value, so that the user providing higher rewards can be effectively guaranteed to perform transactions preferentially, and the payment of the user is matched with the income better.
As shown in fig. 4, in some embodiments, S202 may further include:
s2021: the first node acquires part or all of the transaction information received within a preset time.
In this embodiment, the first node may be connected to a plurality of second nodes, and receive the transaction information sent by the plurality of second nodes. The preset time is, for example, 10 minutes, and the first node acquires the transaction information received within the preset time, for example, acquires the transaction information received within ten minutes.
In this embodiment, the first node is responsible for continuously packaging the transaction information. The first node receives other transaction information from the second node while performing the packaging calculation on the transaction information, and the transaction information can be temporarily stored in a storage medium of the first node. When the first node is in the packing block, all transaction information in the preset time can be obtained and packed, so that the efficiency of chaining the transaction information is ensured. In some cases, for example, the transaction information received by the first node is too much, and all the transaction information in the preset time period exceeds the specified block size after being packaged; or some illegal transaction information exists in the transaction information received by the first node. The first node may obtain only a part of the transaction information received within a preset time period when packaging, and package the transaction information.
S2022: and the first node sorts the transaction information according to the corresponding pass-certificate of the transaction information.
In this embodiment, the first node sorts the transaction information according to the corresponding pass-certificate of the transaction information, for example, sorts the transaction information according to the level of the pass-certificate value. For example, the first node may rank the transaction information in order of highest to lowest LC value. Alternatively, the first node may also sort the transaction information in an order from lowest to highest in the voucher value. The transaction information is sequenced, so that the orderly management of a plurality of transaction information is facilitated, the first node can orderly calculate when packaging the transaction information, and the efficiency is improved.
S2023: and the first node packs the transaction information into blocks according to the higher priority of the evidence-passing value.
In this embodiment, the first node may package the transaction information into blocks according to a priority order with higher voucher value. For example, when the first node packs the blocks, the first node packs the blocks with high voucher value in priority according to the order of the voucher value from high to low. Due to the fact that the transaction information is sorted in advance according to the passing evidence value, when the blocks are packaged, the transaction information can be directly sorted according to the sorting, and the transaction information with higher passing evidence value is packaged preferentially. Therefore, the user who provides high-pass reward can be effectively guaranteed to conduct transactions preferentially, and the payment of the user is matched with the income better.
S203: the first node transmits the block to the third node.
S204: the third node authenticates the block and chains the block when the authentication is passed.
In this embodiment, the third node verifies the block and chains the block when the verification passes. In some embodiments, when too much transaction information is submitted, the transaction information is packaged into blocks and verified and confirmed too frequently, so that a plurality of latest blocks exist at a certain time, a plurality of synchronous different chains are formed, and the safety and the credibility of the block chain data are influenced. When the block is subjected to uplink, the third node can also confirm the main chain of the block chain according to the principles of maximum sum of witness node number, maximum block number and minimum hash value in sequence, and add the block to the tail end of the confirmed main chain of the block chain.
As shown in fig. 5, the third node may identify the blockchain backbone according to the consensus method described below. The method comprises the following steps: detecting whether the block chain has a plurality of branched chains or not; if yes, determining a plurality of first candidate main chains from the latest block to the created block; calculating the sum of the number of different witness nodes in the witness nodes of part or all blocks of each first candidate main chain; judging whether the first candidate main chain with the maximum sum of the number of different witness nodes is provided with a plurality of first candidate main chains; if not, determining the first candidate main chain with the maximum sum of the number of different witness nodes as a block chain main chain; if so, determining the first candidate main chain with the maximum sum of the different witness nodes as a second candidate main chain; respectively calculating the block number of a plurality of second candidate main chains; judging whether a plurality of second candidate main chains with the largest block number exist or not; if not, determining the second candidate main chain with the largest block number as a block chain main chain; if so, determining a second candidate main chain with the largest number of blocks as a third candidate main chain; respectively acquiring hash values of the latest blocks of the plurality of third candidate main chains; and determining a third candidate main chain in which the latest block with the minimum hash value is positioned as a block chain main chain.
The block chain main chain is determined by the method, the maximum number of different witness nodes indicates the verification of the most witness nodes, and the possibility of cheating by a few nodes is effectively reduced; the maximum number of blocks indicates that the more data are stored and the larger the workload is, so that the workload of a plurality of nodes is effectively ensured to be effective; the minimum hash value ensures the uniqueness of the block chain main chain, so that the safety and the reliability of the block chain data can be effectively improved.
In the above consensus method, if the third node detects no branch, a newly verified block can be added to the end of the blockchain to block uplink. If multiple branches are detected, a newly verified block may be added to the end of the confirmed block chain backbone after the block chain backbone is confirmed to chain the blocks.
In some embodiments, if the third node fails the verification block, the third node may also feed back a message to the first node that the verification fails. The third node can also feed back the specific reason that the verification fails so that the first node can take corresponding measures to process in time.
S205: the third node generates an uplink message for the block and transmits the uplink message to the first node.
In this embodiment, after the third node uplinks the block, it may also generate an uplink message for the block. The uplink message includes information such as the address of the third node, the transaction valid message, the root hash value of the block, the hash value of the transaction, etc. The third node may transmit the uplink message to the first node so that the first node can know that the block has been uplink after receiving the uplink message. In some embodiments, the third node may further identify the uplink message when generating the uplink message, for example, the uplink message identifying the block by the block height, which is beneficial for the first node to obtain the block height of the current latest block according to the identification, thereby facilitating to quickly determine the block to be synchronized when synchronizing the block chain, and improving the efficiency.
In some embodiments, after the third node generates the uplink message, the uplink message may also be broadcasted so that other nodes, such as other third nodes or all first nodes, can synchronize the blocks of the new uplink in time.
S206: the first node synchronizes blocks of the new uplink according to the uplink message.
In this embodiment, after receiving the uplink message from the third node, the first node synchronizes the blocks of the new uplink according to the uplink message. The first node may acquire the blocks of the new uplink from the third node or other first nodes. For example, the uplink message may include an address of the third node, and upon receiving the uplink message, the first node acquires the address of the third node from the uplink message and connects the third node with the uplink message, thereby synchronizing the newly uplink block from the third node. Alternatively, after receiving the uplink message from the third node, the first node may access from other nodes in the vicinity to acquire the block of the new uplink.
In this embodiment, the first node synchronizes the latest blockchain in time when receiving the uplink message of the third node each time, and the plurality of first nodes can store the complete blockchain, which is beneficial to ensuring the security of the transaction information in the blockchain and tracing the transaction information.
S207: the first node broadcasts a UL message to inform other nodes of synchronizing blocks of a new UL.
In this embodiment, the first node may broadcast the uplink message to other nodes after receiving the uplink message of the third node each time, so as to notify the other nodes to synchronize the new uplink block in time. That is, the step of S207 may be directly performed after the step of S205. Or the first node may broadcast the uplink message to other nodes after synchronizing the latest uplink block each time. That is, the step of S207 may be performed after the step of S206.
In some embodiments, the third node may also directly broadcast the uplink message after generating the uplink message to notify other nodes in the blockchain network of synchronizing the newly uplink block in time. The first node may not perform step S207 after receiving the uplink message.
S208: the first node transmits an uplink message to the second node.
The first node may also transmit an uplink message to the second node so that the user can know the uplink condition of the transaction information through the second node. The uplink message includes, for example, a root hash value of the block and a hash value of each transaction information in the block. When the first node transmits the uplink message to the second node, the hash value of the transaction information and the root hash value of the block form the uplink message corresponding to the second node according to the corresponding relation between the identity information of the second node and the transaction information, and the uplink message is sent to the second node. Therefore, the user can know that the transaction information is linked up, and the security and the privacy of the transaction information of each node can be protected.
In this embodiment, the first node and the third node pay corresponding calculated amounts in the process of linking the transaction information, and the user may also provide corresponding rewards when submitting the transaction information, so as to encourage each node to actively participate in the packaging uplink. For example, the present embodiment may further include:
s209: the first node obtains the corresponding evidence-based reward of the transaction information.
In this embodiment, the first node obtains the corresponding voucher award, for example, according to a rule agreed by the trading system of the blockchain, obtains part or all of the vouchers in the corresponding voucher of the trading information. In this embodiment, the first node may obtain the partial evidence-based reward corresponding to the transaction information in the block after the transaction information is successfully packaged into the block. Alternatively, the first node may obtain a partial voucher award corresponding to the transaction information in the block after the uplink is performed in the block. The voucher award can be automatically issued after block packaging is completed at the first node according to corresponding rules or after block chaining is completed, and the block chaining procedure determines the voucher corresponding to the transaction system information.
The first node packs the transaction information into blocks to pay corresponding calculated amount, and when a user submits the transaction information to uplink, the user provides corresponding evidence for rewarding to the first node, so that the enthusiasm of the first node for block packing can be effectively improved, the activity of a transaction system of the block chain is enhanced, and the stable operation of the system is ensured.
S210: and the third node obtains the corresponding evidence-based reward of the transaction information.
In this embodiment, the third node may obtain part or all of the pass certificates corresponding to the transaction information. The third node may obtain a corresponding pass-through reward for the transaction information in the block after verifying the block. Alternatively, the third node may obtain a partial voucher award corresponding to the transaction information in the block after the block is linked. The accreditation reward can be automatically issued after the accreditation corresponding to the transaction system information is determined by the blockchain program after the blockchain is linked according to the corresponding rule. The accreditation reward can effectively improve the initiative of the third node for verifying the uplink.
In some embodiments, the corresponding voucher rewards of the transaction information can be sent to the first node for packaging and the third node for uplink respectively according to corresponding rules. The first node and the third node are excited, the activity of a transaction system of the block chain is enhanced, and the stable operation of the system is ensured.
According to the embodiment, the transaction information of the second node is sequentially packaged according to the corresponding certificates, so that the transaction information can be orderly and efficiently packaged when massive transaction information is submitted, and the efficiency of block packaging of the first node is improved. And the third node links the block after verification, so that the reliability of the transaction information can be effectively improved, the linked transaction information cannot be tampered, the effectiveness and the safety of the transaction information are ensured, and the trust cost of the transaction is reduced. The third node forms an uplink message after the blocks are uplinked, the first node can be informed to synchronize the latest block chain in time, and the first node can also feed the uplink message back to the second node, so that the second node can feed back the uplink message to the user to make the user know. In addition, the embodiment also provides corresponding evidence awards for the first node and the third node, so that the enthusiasm of the first node and the third node can be effectively stimulated, and the stable operation of the system is ensured.
In the present embodiment, the sequence of steps S201 to S210 is the description sequence in the present embodiment, and is not limited to the sequence of the method in the execution process of the present embodiment. Some steps may be performed in either order or simultaneously, provided that the method is performed.
Referring to fig. 6, the third embodiment of the transaction processing method based on a block chain according to the present application uses a first node as an execution subject, and includes:
s301: the first node obtains transaction information from the second node.
S302: and packaging the transaction information into blocks according to the corresponding pass-certificate of the transaction information.
S303: the block is transmitted to a third node of the block chain such that the third node authenticates the block and chains the block when the authentication passes.
For more steps and functions of the first node in this embodiment, reference may be made to the description of the first embodiment and the second embodiment of the transaction processing method based on a blockchain in this application, and details are not described here again.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of an electronic device according to the present application. The electronic device 40 in this embodiment includes a processor 410, a memory 420, and a communication circuit 430. The processor 410 is coupled to the memory 420 and the communication circuit 430, respectively. In this embodiment, the processor 410 may be connected to the memory 420 and the communication circuit 430 by a bus. In other embodiments, the processor 410 may also be directly connected to the memory 420 and the communication circuit 430; or may be connected in other ways. The connection mode between the processor 410, the memory 420, and the communication circuit 430 is not limited herein.
In this embodiment, the electronic device 40 can communicate with other devices through the communication circuit 430. Memory 420 of electronic device 40 is used to store program instructions that are executed by processor 410. The processor 410 is configured to execute the program instructions to implement the steps of the first node, the second node or the third node in the above-mentioned first to third embodiments of the blockchain-based transaction processing method of the present application.
In the present embodiment, the processor 410 may also be referred to as a CPU (Central Processing Unit). The processor 410 may be an integrated circuit chip having signal processing capabilities. The processor 410 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In this embodiment, for more execution processes, functions, and the like of the electronic device 40, reference may be made to the descriptions of the first to third embodiments of the block chain-based transaction processing method in this application, and details are not repeated here.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of a storage medium according to the present application. In the embodiment, the storage medium 50 is used for storing the program instructions 510, and the program instructions 510 can be executed by the processor to implement the steps of the first node, the second node, or the third node in the first to third embodiments of the transaction processing method based on blockchain according to the present application. Specifically, reference may be made to the description of the first to third embodiments of the block chain-based transaction processing method in the present application, which is not repeated herein.
The method according to the first to third embodiments of the transaction processing method based on blockchain may be stored in a computer-readable storage medium if the method is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium 50 includes: various media capable of storing program codes, such as a usb disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or other devices, such as a mobile terminal including a storage medium.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A transaction processing method based on a blockchain is characterized by comprising the following steps:
a first node of the blockchain acquires transaction information from a second node of the blockchain;
packaging the transaction information into blocks according to the corresponding pass-certificate of the transaction information;
transmitting the block to a third node of the block chain, such that the third node authenticates the block and chains the block when authentication is passed.
2. The method of claim 1,
the packaging the transaction information into blocks according to the corresponding pass of the transaction information comprises:
acquiring part or all of the transaction information received within preset time;
sequencing the transaction information according to the corresponding pass of the transaction information;
and packaging the transaction information into blocks according to the higher priority of the voucher value.
3. The method of claim 1, further comprising:
receiving an uplink message from the third node;
synchronizing blocks of a new uplink according to the uplink message;
wherein the uplink message is generated after the third node uplinks blocks.
4. The method of claim 1, further comprising:
receiving an uplink message from the third node;
broadcasting the uplink message to inform other nodes of synchronizing blocks of a new uplink; and/or the presence of a gas in the gas,
transmitting the uplink message to the second node;
wherein the uplink message is generated after the third node uplinks blocks.
5. The method of claim 1,
the step of packaging the transaction information into blocks according to the corresponding pass of the transaction information further comprises the following steps:
and obtaining the corresponding evidence-based reward of the transaction information.
6. A transaction processing method based on a blockchain is characterized by comprising the following steps:
the second node of the blockchain sends transaction information to the first node of the blockchain;
the first node packs the transaction information into blocks according to the corresponding pass-certificate of the transaction information;
the first node transmitting the block to a third node of the block chain;
and the third node verifies the block and chains the block when the verification is passed.
7. The method of claim 6,
the third node further includes, after chaining the block:
the third node generates an uplink message of the block and transmits the uplink message to the first node;
after receiving the uplink message, the first node further includes:
the first node synchronizes blocks of a new uplink according to the uplink message; and/or the presence of a gas in the gas,
the first node broadcasts the uplink message to inform other nodes of synchronizing blocks of a new uplink; and/or the presence of a gas in the gas,
the first node transmits the uplink message to the second node.
8. The method of claim 6,
after the third node verifies the block, the method further comprises:
and the third node obtains the corresponding evidence-based reward of the transaction information.
9. An electronic device comprising a processor, a memory, and communication circuitry, the processor being coupled to the memory and the communication circuitry, respectively, wherein,
the memory is used for storing program instructions executed by the processor;
the processor is configured to execute the program instructions to implement the steps of claims 1-4 or the steps of the second node and the third node in any one of claims 6-8.
10. A storage medium for storing program instructions executable by a processor to perform the steps of claims 1 to 4 or the steps of the second node or the third node as claimed in any one of claims 6 to 8.
CN201910945176.7A 2019-09-30 2019-09-30 Transaction processing method based on blockchain, electronic equipment and storage medium Active CN110838063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910945176.7A CN110838063B (en) 2019-09-30 2019-09-30 Transaction processing method based on blockchain, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910945176.7A CN110838063B (en) 2019-09-30 2019-09-30 Transaction processing method based on blockchain, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110838063A true CN110838063A (en) 2020-02-25
CN110838063B CN110838063B (en) 2024-04-12

Family

ID=69575197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910945176.7A Active CN110838063B (en) 2019-09-30 2019-09-30 Transaction processing method based on blockchain, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110838063B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111368001A (en) * 2020-03-04 2020-07-03 芜湖明轩科技有限公司 Block chain method, system and computer readable storage medium
CN111506932A (en) * 2020-06-18 2020-08-07 海南安迈云网络技术有限公司 Block chain calculation uplink implementation method
CN111597269A (en) * 2020-05-21 2020-08-28 昆明大棒客科技有限公司 Block chain-based contract implementation method, device and equipment
CN111815444A (en) * 2020-06-23 2020-10-23 深圳市先河***技术有限公司 Block chain transaction method, electronic device and storage medium
CN113034135A (en) * 2021-02-08 2021-06-25 中国工商银行股份有限公司 Block chain-based information processing method, apparatus, device, medium, and product
WO2021175110A1 (en) * 2020-03-04 2021-09-10 徐皓 Blockchain method and system, electronic device, and computer-readable storage medium
CN114386974A (en) * 2021-11-24 2022-04-22 弥达斯科技(深圳)有限公司 Transaction method, device, system and storage medium based on zero knowledge certification
CN114979173A (en) * 2021-04-21 2022-08-30 中移互联网有限公司 Block chain-based user rights information processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180240114A1 (en) * 2017-02-22 2018-08-23 Alibaba Group Holding Limited Transaction verification in a consensus network
CN109447642A (en) * 2018-10-18 2019-03-08 尚维斯 A method of it is mixed and is known together based on block chain multichain
CN109461080A (en) * 2018-10-18 2019-03-12 尚维斯 A kind of implementable mode of business based on block chain across chain interaction
CN110084698A (en) * 2019-04-29 2019-08-02 百度时代网络技术(北京)有限公司 Interactive system, exchange method and device based on block chain
CN110233737A (en) * 2019-06-28 2019-09-13 北京艾摩瑞策科技有限公司 Common recognition method, apparatus, computer equipment and storage medium based on DPoS

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180240114A1 (en) * 2017-02-22 2018-08-23 Alibaba Group Holding Limited Transaction verification in a consensus network
CN109447642A (en) * 2018-10-18 2019-03-08 尚维斯 A method of it is mixed and is known together based on block chain multichain
CN109461080A (en) * 2018-10-18 2019-03-12 尚维斯 A kind of implementable mode of business based on block chain across chain interaction
CN110084698A (en) * 2019-04-29 2019-08-02 百度时代网络技术(北京)有限公司 Interactive system, exchange method and device based on block chain
CN110233737A (en) * 2019-06-28 2019-09-13 北京艾摩瑞策科技有限公司 Common recognition method, apparatus, computer equipment and storage medium based on DPoS

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111368001A (en) * 2020-03-04 2020-07-03 芜湖明轩科技有限公司 Block chain method, system and computer readable storage medium
WO2021175110A1 (en) * 2020-03-04 2021-09-10 徐皓 Blockchain method and system, electronic device, and computer-readable storage medium
CN111368001B (en) * 2020-03-04 2023-06-02 徐皓 Block chain method, system and computer readable storage medium
EP4113318A4 (en) * 2020-03-04 2023-11-15 Hao Xu Blockchain method and system, electronic device, and computer-readable storage medium
CN111597269A (en) * 2020-05-21 2020-08-28 昆明大棒客科技有限公司 Block chain-based contract implementation method, device and equipment
CN111506932A (en) * 2020-06-18 2020-08-07 海南安迈云网络技术有限公司 Block chain calculation uplink implementation method
CN111815444A (en) * 2020-06-23 2020-10-23 深圳市先河***技术有限公司 Block chain transaction method, electronic device and storage medium
CN111815444B (en) * 2020-06-23 2023-09-01 深圳市先河***技术有限公司 Block chain transaction method, electronic device and storage medium
CN113034135A (en) * 2021-02-08 2021-06-25 中国工商银行股份有限公司 Block chain-based information processing method, apparatus, device, medium, and product
CN114979173A (en) * 2021-04-21 2022-08-30 中移互联网有限公司 Block chain-based user rights information processing method, device, equipment and storage medium
CN114979173B (en) * 2021-04-21 2023-07-14 中移互联网有限公司 User rights information processing method, device, equipment and storage medium based on block chain
CN114386974A (en) * 2021-11-24 2022-04-22 弥达斯科技(深圳)有限公司 Transaction method, device, system and storage medium based on zero knowledge certification

Also Published As

Publication number Publication date
CN110838063B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
CN110838063B (en) Transaction processing method based on blockchain, electronic equipment and storage medium
US11785079B2 (en) Free storage protocol for blockchain platform
JP6355168B2 (en) Block chain generation device, block chain generation method, block chain verification device, block chain verification method and program
CN108256859B (en) Financial product transaction consensus method, node and system based on block chain
US9495668B1 (en) Computing solutions to a problem involving inversion of a one-way function
JP6358658B2 (en) Block chain generation device, block chain generation method, block chain verification device, block chain verification method and program
JP2022180596A (en) Methods and systems for blockchain-implemented event-lock encryption
CN113874898A (en) Computer-implemented system and method for effecting transfers over blockchain networks
CN110020543B (en) Data processing method and device based on block chain
CN112288434B (en) Privacy transaction method, device, zero knowledge proof system and privacy transaction architecture model
CN112001713B (en) Block chain system and request processing method and device
CN110336779B (en) Block chain construction method and device and electronic equipment
WO2018154794A1 (en) Virtual currency management device, virtual currency management method, and program
Sarfaraz et al. A tree structure-based improved blockchain framework for a secure online bidding system
CN115514608B (en) Block consensus method, device, equipment and storage medium
CN112036878B (en) Data processing method and device
CN107453871B (en) Password generation method, password verification method, payment method and payment device
CN111259428A (en) Data processing method and device based on block chain, node equipment and storage medium
CN111199486A (en) Data processing method and device based on block chain network and storage medium
CN110796448A (en) Intelligent contract verification method based on block chain, participating node and medium
CN113162915B (en) Block chain based transaction method, node, electronic device, medium and system
CN113949988B (en) Position protection method and system and storage medium
US20240205025A1 (en) Decentralized blockchain system for transaction of cryptocurrency that prevents illegal transactions while allowing anonymous users to participate, and its computer program
CN110766400B (en) Transaction record processing method based on block chain, accounting node and medium
CN112422534A (en) Credit evaluation method and device of electronic certificate

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