CN110838063B - Transaction processing method based on blockchain, electronic equipment and storage medium - Google Patents

Transaction processing method based on blockchain, electronic equipment and storage medium Download PDF

Info

Publication number
CN110838063B
CN110838063B CN201910945176.7A CN201910945176A CN110838063B CN 110838063 B CN110838063 B CN 110838063B CN 201910945176 A CN201910945176 A CN 201910945176A CN 110838063 B CN110838063 B CN 110838063B
Authority
CN
China
Prior art keywords
node
transaction information
block
blockchain
uplink
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
CN201910945176.7A
Other languages
Chinese (zh)
Other versions
CN110838063A (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

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

Abstract

The application discloses a transaction processing method, electronic equipment and storage medium based on a blockchain, wherein the method comprises 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 pass corresponding to the transaction information; the block is transmitted to a third node of the blockchain such that the third node validates the block and uplinks the block when validated. By means of the method, packaging and uplink efficiency of the blockchain system to the transaction information can be effectively improved, credibility and safety of the transaction information are improved, and trust cost of the transaction is reduced.

Description

Transaction processing method based on blockchain, electronic equipment and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a blockchain-based transaction processing method, an electronic device, and a storage medium.
Background
Blockchains are novel application modes of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms and the like, and emphasize decentralization, openness, independence, security and anonymity. The blockchain has huge application potential in the fields of finance, the Internet of things, logistics, public service and the like. Currently, the blockchain technology is being researched and developed, the technology is not fully mature, the performance, the safety and the expansion are difficult to fully consider, and the improvement of the performance directly determines the throughput of the system and the transaction processing efficiency.
Disclosure of Invention
The technical problem that this application mainly solves is: the block chain-based transaction processing method, the electronic equipment and the storage medium can effectively improve the packaging and uplink efficiency of transaction information, improve the credibility and the safety of the transaction information and reduce the trust cost of the transaction.
In order to solve the technical problems, one technical scheme adopted by the application is as follows: provided is a transaction processing method based on a blockchain, 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 pass corresponding to the transaction information;
the block is transmitted to a third node of the blockchain such that the third node validates the block and uplinks the block when validated.
Optionally, packaging the transaction information into blocks according to the pass corresponding to the transaction information includes:
acquiring part or all of transaction information received in preset time;
ordering the transaction information according to the pass corresponding to the transaction information;
and packing the transaction information into blocks according to the priority order with higher verification value.
Optionally, the method further comprises:
receiving a uplink message from a third node;
synchronizing the newly uplink block according to the uplink message;
wherein the uplink message is generated after the third node uplinks the block.
Optionally, the method further comprises:
receiving a uplink message from a third node;
broadcasting a uplink message to inform other nodes to synchronize the newly uplink blocks; and/or the number of the groups of groups,
transmitting the 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:
obtaining the evidence-passing rewards corresponding to the transaction information.
In order to solve the technical problems, another technical scheme adopted by the application is as follows: provided is a transaction processing method based on a blockchain, 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 pass corresponding to the transaction information;
the first node transmitting the block to a third node of the blockchain;
the third node validates the block and uplinks the block when the validation passes.
Optionally, the third node further includes after the block is uplink:
the third node generates a block uplink message and transmits the uplink message to the first node;
the first node further includes, after receiving the uplink message:
the first node synchronizes the new uplink block according to the uplink message; and/or the number of the groups of groups,
the first node broadcasts a uplink message to inform other nodes to synchronize the newly uplink blocks; and/or the number of the groups of groups,
the first node transmits the uplink message to the second node.
Optionally, the third node further includes, after verifying the block:
obtaining the evidence-passing rewards corresponding to the transaction information.
In order to solve the technical problems, another technical scheme adopted by the application is as follows: there is provided an electronic device comprising a processor, a memory and a communication circuit, the processor being coupled to the memory and the communication circuit, 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 the first node, the second node, or the third node in the blockchain-based transaction processing method of the present application.
In order to solve the technical problems, another technical scheme adopted by the application is as follows: a storage medium is provided for storing program instructions executable by a processor to perform the steps of a first node, a second node, or a third node in a blockchain-based transaction processing method of the present application as described above.
The beneficial effects of this application are:
according to the method and the system, the transaction information of the second node is packaged in sequence according to the corresponding pass, so that the transaction information can be packaged orderly and efficiently when the mass transaction information is submitted, the block packaging efficiency of the first node is improved, the reliability of the transaction information can be effectively improved by the block uplink after verification by the third node, the transaction information after uplink cannot be tampered, the effectiveness and the safety of the transaction information are guaranteed, and the trust cost of the transaction is reduced.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a blockchain-based transaction processing system of the present application;
FIG. 2 is a flow chart of a first embodiment of a blockchain-based transaction processing method of the present application;
FIG. 3 is a flow chart of a second embodiment of a blockchain-based transaction processing method of the present application;
FIG. 4 is a flow chart of an embodiment of a blockchain-based transaction processing method of the present application;
FIG. 5 is a flow chart of a method of consensus of a blockchain backbone of the present application;
FIG. 6 is a flow chart of a third embodiment of a blockchain-based transaction processing method of the present application;
FIG. 7 is a flow diagram of an embodiment of an electronic device of the present application;
FIG. 8 is a flow chart of an embodiment of a storage medium of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, fig. 1 is a schematic diagram of a block chain based transaction processing system embodiment of 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 each be plural, and the number thereof is not limited. The nodes in this embodiment include, but are not limited to, computers, mobile phones, tablet computers, servers 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, may store complete blockchain data, and may share to other nodes. The first node 110 is connected to the second node 120, and may receive the transaction information transmitted by the second node 120, and package the transaction information into blocks so that the third node 130 performs authentication and uplink. In some embodiments, the first node 110 may also provide an end-to-end encrypted messaging channel for the remaining nodes connected thereto, such as for transceiving private assets, chat messages, and the like.
In this embodiment, the second node 120 is responsible for interacting with the user, receiving and transmitting 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 to participate in a 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, or the like. The lightweight nodes can only store data related to themselves, and the whole blockchain is not required to be stored, so that storage space is saved, and 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, an accounting node, and the third node 130 may authenticate and uplink the blocks packaged by the first node 110. The third node 130 may save the complete blockchain data. In some embodiments, the third node 130 may be a choice-generated, more-functioning, more-crediting, more-contributing node responsible for continuously uploading blocks and validating the blockchain backbone according to the blockchain consensus method.
Reference is made to the following description of various embodiments of the blockchain-based transaction processing method of the present application with respect to further nodes and further functionality of the nodes of the transaction processing system 10 in this embodiment.
Referring to fig. 2, a first embodiment of a blockchain-based transaction processing method of the present application includes;
s101: the second node sends transaction information to the first node.
The second node is, for example, a mobile terminal device of the 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 the corresponding blockchain application. The first node may be connected to a plurality of second nodes, which may send transaction information to the first node.
In this embodiment, the transaction information may refer to any data that needs to be uplinked, such as text, pictures, audio, or any other form of data. In some embodiments, the transaction information may also be transaction contract content signed by the buyer and the seller, for example, may include information related to the transaction, such as identity information of the buyer and the seller, specific content of the transaction, execution mode of the transaction, default reimbursement terms, and credit rewards after being linked up.
S102: the first node packages the transaction information into blocks according to the pass corresponding to the transaction information.
In this embodiment, after the first node receives the transaction information sent by the second node, the transaction information can be packaged into the zone according to the pass corresponding to the transaction information in sequence, so that the calculation amount of the first node is increased rapidly due to the congestion and excessive concentration of the transaction information to affect the packaging efficiency.
In this embodiment, the Token may be called Token, which is a rights and interests Token in the blockchain network. And when the second node submits the transaction information, providing corresponding pass certificates, wherein the pass certificates can be rewarded to the nodes participating in the packing and uplink in the process of the transaction information uplink so as to encourage the nodes to actively participate in block packing and accounting.
In some embodiments, the first node may also verify the validity of the transaction information before packaging the transaction information into blocks. Such as verifying that the transaction information meets rules agreed upon by the nodes of the blockchain network or verifying that the identity information of the second node providing the transaction information is legitimate. By verifying the transaction information to be uplinked in advance, the true effectiveness of the uplink data can be effectively improved.
In some embodiments, there are a plurality of first nodes, and data interaction can be performed between the plurality of first nodes. After the first node receives the transaction information sent by the second node, the first node can 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 transaction information is too slow to link due to congestion caused by too much transaction information received by a certain first node, and the user interests are influenced is avoided. Or, each first node can also receive the transaction information respectively and package the received transaction information, so that the computational waste of the first nodes caused by repeated calculation and package is reduced.
When the first node packages the transaction information into blocks, the transaction information can be encrypted and then packaged 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 decrypted only by using the private key of the second node, so that the privacy 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 blocks, the blocks may be transmitted to the third node, so that the third node may verify the blocks. The third nodes may be plural, and the first node may transmit the block to the plural third nodes after packaging the transaction information into the block.
In some embodiments, after the first node packages the transaction information into the blocks, the blocks can be transmitted to a part of the third nodes through broadcasting, and other nodes can acquire the blocks to be verified from the part of the third nodes, so that the network pressure of the first node can be effectively relieved, and the transmission speed of the blocks is increased.
S104: the third node validates the block and uplinks the block when the validation passes.
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 of the block, the size of the block, etc., or traverse all transaction information within the block to verify the validity of the transaction information. The block verification is that the hash value of the block is not wrong and the block size meets the specification through the third node; and/or the third node verifies that the transaction information in the block is legal.
The third node may connect the block to the end of the blockchain after the verification is passed to uplink the block. For example, the third node stores the block into the local ledger after the verification is passed, updates the state library, and validates the transaction information in the block after the block is uplink. In some embodiments, after the third node uplinks the block, the third node may also notify other nodes to update the synchronous latest blockchain data in time.
In some embodiments, there are a plurality of second nodes, and when a certain second node broadcasts a block, the rest of second nodes can also receive the block and verify and uplink the block. That is, at some point in time, the second node may also perform the step of the third node.
According to the method, the transaction information of the second node is packaged in sequence according to the corresponding pass, so that the transaction information can be packaged orderly and efficiently when a large amount of transaction information is submitted, the block packaging efficiency of the first node is improved, the reliability of the transaction information can be effectively improved by the third node in the block uplink after verification, the transaction information after uplink cannot be tampered, the effectiveness and the safety of the transaction information are guaranteed, and the trust cost of the transaction is reduced.
In the present embodiment, the order of steps S101 to S104 is the description order in the present embodiment, and is not limited to the order in which the method of the present embodiment is executed. Some steps may be permuted in order as long as the method is enabled.
Referring to fig. 3, a second embodiment of the transaction processing method based on the blockchain is further described based on a first embodiment of the transaction processing method based on the blockchain, and the steps of the second embodiment that are the same as those of the first embodiment of the transaction processing method based on the blockchain are not described herein. The embodiment comprises the following steps:
s201: the second node sends transaction information to the first node.
S202: the first node packages the transaction information into blocks according to the pass corresponding to the transaction information.
In this embodiment, after the first node receives the transaction information sent by the second node, the transaction information may be packaged in sequence into the local block according to the certificate corresponding to the transaction information. For example, the first node may package the transaction information in order of higher license value, so that it may be effectively ensured that the user who provides the higher reward may implement the transaction preferentially, so that the payment of the user is more matched with the profit.
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 in the preset time.
In this embodiment, the first node may be connected to a plurality of second nodes, and receive transaction information sent by the plurality of second nodes. The preset time is, for example, 10 minutes, and the first node obtains the transaction information received within the preset time, for example, obtains the transaction information received within the 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 packaging and calculating the transaction information, and the transaction information can be temporarily stored in a storage medium of the first node. When the first node packs the block, all transaction information in a preset time can be acquired for packing, so that the efficiency of the transaction information uplink is ensured. In some cases, for example, the transaction information received by the first node is excessive, and the total transaction information in the preset time period is packaged to exceed the specified block size; or that some illegal transaction information exists in the transaction information received by the first node, etc. The first node may acquire only part of the transaction information received in the preset time period for packaging.
S2022: the first node sorts the transaction information according to the pass corresponding to the transaction information.
In this embodiment, the first node ranks the transaction information according to the pass corresponding to the transaction information, for example, ranks the transaction information according to the pass value. For example, the first node may rank the transaction information in an order of highest pass value to lowest pass value. Alternatively, the first node may sort the transaction information in an order from the lowest value of the license to the highest value of the license. By ordering the transaction information, the method is beneficial to orderly managing a plurality of transaction information, so that the first node can orderly calculate when packaging the transaction information, and the efficiency is improved.
S2023: the first node packages the transaction information into blocks according to the higher priority order of the certification value.
In this embodiment, the first node may package the transaction information into blocks according to a priority order with a higher license value. For example, when the first node packs the blocks, the first node packs the high-pass license value in order from high-pass license value to low-pass license value. Because the transaction information is ordered in advance according to the pass-license value, the transaction information with higher pass-license value can be packed in priority according to the ordering directly when the block is packed. Therefore, the user providing higher pass rewards can be effectively guaranteed to conduct transactions preferentially, and the payment and the income of the user are matched more.
S203: the first node transmits the block to the third node.
S204: the third node validates the block and uplinks the block when the validation passes.
In this embodiment, the third node validates the block and uplinks the block when the validation passes. In some embodiments, when the submitted transaction information is too much, the transaction information is packed into blocks and verification is performed too frequently, which results in a plurality of latest blocks at a time, forming a plurality of synchronous heterogeneous chains, and affecting the security and credibility of the blockchain data. When the block is uplink, the third node can further confirm the block chain main chain according to the principle that the sum of the number of witness nodes is maximum, the number of the block is maximum and the hash value is minimum in sequence, and add the block to the tail end of the confirmed block chain main chain.
As shown in fig. 5, the third node may validate the blockchain backbone according to the consensus method described below. The method comprises the following steps: detecting whether a block chain has a plurality of branched chains; if yes, determining a plurality of first candidate backbones from the latest block to the creation 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 a plurality of first candidate main chains with the largest sum of the numbers of different witness nodes exist or not; if not, determining the first candidate main chain with the largest sum of the numbers of different witness nodes as a blockchain main chain; if yes, determining a first candidate main chain with the largest sum of the number of the different witness nodes as a second candidate main chain; respectively calculating the block numbers of a plurality of second candidate backbones; judging whether the second candidate main chains with the largest block number are multiple; if not, determining the second candidate main chain with the largest number of blocks as a blockchain main chain; if yes, determining the second candidate main chain with the largest number of the blocks as a third candidate main chain; respectively obtaining hash values of the latest blocks of the third candidate main chains; and determining the third candidate main chain where the latest block with the minimum hash value is located as a blockchain main chain.
The block chain main chain is determined by the method, the maximum number of different witness nodes indicates that the verification of the most witness nodes is carried out, and the possibility of cheating of a few nodes is effectively reduced; the maximum number of blocks indicates that the more data are stored and the larger workload is, so that the workload of most nodes is effectively ensured; the uniqueness of the main chain of the block chain is guaranteed if the hash value is minimum, so that the safety and the credibility of the block chain data can be effectively improved.
In the above consensus method, if the third node does not detect a branch, a newly verified block may be added to the end of the blockchain to uplink the block. If multiple branches are detected, a newly verified block may be added to the end of the verified blockchain backbone after the blockchain backbone is verified to uplink the block.
In some embodiments, if the third node verifies that the block does not pass, the third node may also feed back a message to the first node that the verification does not pass. The third node can also feed back the specific reasons for failing verification, so that the first node can take corresponding measures in time for processing.
S205: the third node generates a block uplink message and transmits the uplink message to the first node.
In this embodiment, the third node may also generate a block uplink message after the block is uplink. The uplink message includes information such as an address of the third node, a transaction valid message, a root hash value of the chunk, a hash value of the transaction, and the like. The third node may transmit the uplink message to the first node so that the first node may 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, identify the uplink message of the block with the block height, which is favorable for the first node to learn the block height of the current latest block according to the identification, so as to facilitate fast determination of the block to be synchronized when synchronizing the blockchain, and improve 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, may synchronize the newly uplink block in time.
S206: the first node synchronizes the newly uplink block according to the uplink message.
In this embodiment, after receiving the uplink message of the third node, the first node may synchronize the new uplink block according to the uplink message. The first node may obtain the newly-uplink block from a third node or other first node. For example, the uplink message may include the address of the third node, and after the first node receives the uplink message, the first node obtains the address of the third node from the uplink message, connects that address to the third node, and synchronizes the newly uplink block from the third node. Or, after receiving the uplink message of the third node, the first node may access from other adjacent nodes to obtain a new uplink block.
In this embodiment, the first node synchronizes the latest blockchain in time each time when receiving the uplink message of the third node, 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 uplink message to inform other nodes to synchronize the newly uplink blocks.
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 newly 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 each synchronization of the latest uplink block. That is, the step of S207 may be performed after the step of S206.
In some embodiments, the third node may also broadcast the uplink message directly after generating the uplink message to inform other nodes in the blockchain network to synchronize the newly uplink blocks in time. The first node may not perform the step of S207 after receiving the uplink message.
S208: the first node transmits the uplink message to the second node.
The first node may also transmit a uplink message to the second node to facilitate the user learning of the uplink condition of the transaction information via the second node. The uplink message includes, for example, a root hash value of the chunk and a hash value of each transaction information in the chunk. 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 transmitted to the second node. Therefore, the user can learn that the transaction information is uplink, and the security and privacy of the transaction information of each node can be protected.
In this embodiment, the first node and the third node pay corresponding calculation amounts in the process of linking the transaction information, and the user can provide corresponding rewards when submitting the transaction information, so as to encourage each node to actively participate in the packing and linking. For example, the present embodiment may further include:
s209: the first node obtains a certification reward corresponding to the transaction information.
In this embodiment, the first node obtains the certification reward corresponding to the transaction information, for example, obtains part or all of the certification corresponding to the transaction information according to rules agreed by the transaction system of the blockchain. In this embodiment, the first node may obtain the partial certification rewards corresponding to the transaction information in the block after the transaction information is successfully packaged into the block. Or, the first node may obtain a part of the license rewards corresponding to the transaction information in the block after the block is uplink. The certification rewards can be automatically issued after the corresponding certification of the transaction system information is determined by the blockchain program after the block packaging is completed at the first node or the block is uplink according to the corresponding rules.
The first node packages the transaction information into blocks and pays corresponding calculated amount, and when a user submits the transaction information to the upper chain, the user provides corresponding evidence-passing rewards for the first node, so that the enthusiasm of the first node for block packaging can be effectively improved, the activity of a transaction system of a block chain is enhanced, and the stable operation of the system is ensured.
S210: and the third node obtains the evidence-passing rewards corresponding to the transaction information.
In this embodiment, the third node may obtain some or all of the certificates corresponding to the transaction information. The third node may obtain a certification reward corresponding to the transaction information in the block after verifying the block. Or, the third node may obtain a part of the license rewards corresponding to the transaction information in the block after the block is uplink. The certification rewards can be automatically issued after the corresponding certification of the transaction system information is determined by the blockchain program after the blockchain is uplink according to the corresponding rules. The certification rewards can effectively promote the enthusiasm of the third node for verification of the uplink.
In some embodiments, the certification rewards corresponding to the transaction information may be respectively sent to the first node for packaging and the third node for uplink according to the corresponding rules. The activity of a transaction system of the blockchain is enhanced by exciting the first node and the third node, and the stable operation of the system is ensured.
According to the method and the system, the transaction information of the second node is packaged in sequence according to the corresponding pass, so that the transaction information can be packaged orderly and efficiently when a large amount of transaction information is submitted, and the efficiency of block packaging of the first node is improved. And the third node can effectively improve the credibility of the transaction information by uplink of the block after verification, the transaction information after uplink cannot be tampered, the validity and the safety of the transaction information are ensured, and the trust cost of the transaction is reduced. The third node forms a uplink message after the blocks are uplink, and can inform the first node to synchronize the latest block chain in time, and the first node can feed back the uplink message to the second node, so that the second node can feed back the uplink message to the user to enable the user to know. In addition, the embodiment can also effectively excite the enthusiasm of the first node and the third node by providing corresponding certification rewards for the first node and the third node, and ensure the stable operation of the system.
In the present embodiment, the order of steps S201 to S210 is the description order in the present embodiment, and is not limited to the order in which the method of the present embodiment is executed. Certain steps may be interchanged or performed simultaneously as long as the method is capable of being practiced.
Referring to fig. 6, a third embodiment of a transaction processing method based on blockchain uses a first node as an execution body, including:
s301: the first node obtains transaction information from the second node.
S302: and packing the transaction information into blocks according to the pass corresponding to the transaction information.
S303: the block is transmitted to a third node of the blockchain such that the third node validates the block and uplinks the block when validated.
For further steps and functions of the first node in this embodiment, reference may be made to the descriptions of the first embodiment and the second embodiment of the blockchain-based transaction processing method in this application, which are not described herein.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of an electronic device of 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 through 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 by other means. The connection between the processor 410 and the memory 420 and the communication circuit 430 are not limited herein.
In this embodiment, the electronic device 40 may communicate with other devices through the communication circuit 430. The memory 420 of the electronic device 40 is used to store program instructions for execution by the processor 410. The processor 410 is configured to execute program instructions to implement the steps of the first node, the second node, or the third node in the first embodiment to the third embodiment of the blockchain-based transaction processing method of the present application.
In this 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. 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.
For more execution procedures and functions of the electronic device 40 in this embodiment, reference may be made to the descriptions of the first to third embodiments of the blockchain-based transaction processing methods in this application, and the description thereof will not be repeated here.
Referring to fig. 8, fig. 8 is a schematic structural view of an embodiment of a storage medium of the present application. The storage medium 50 in this embodiment is configured to store program instructions 510, where the program instructions 510 can be executed by a processor to implement the steps of the first node, the second node, or the third node in the first embodiment to the third embodiment of the blockchain-based transaction processing method of the present application. For specific reference, the description of the first embodiment to the third embodiment of the blockchain-based transaction processing method in the present application may be referred to, and will not be repeated herein.
The methods according to the first to third embodiments of the blockchain-based transaction processing methods of the present application may be stored in a computer-readable storage medium if implemented in the form of software functional units and sold or used as independent products. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution contributing to the prior art or in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium 50 includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or other devices including a mobile terminal or the like that can store program codes.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the patent application, and all equivalent structures or equivalent processes using the descriptions and the contents of the present application or other related technical fields are included in the scope of the patent application.

Claims (10)

1. A blockchain-based transaction processing method, comprising:
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 pass corresponding to the transaction information, wherein the first node verifies the transaction information, and packages the transaction information into blocks after the verification is passed;
transmitting the block to a third node of the blockchain such that the third node performs a second verification of the block and uplinks the block when the second verification passes;
and receiving a uplink message from the third node, wherein the uplink message is generated and identified after the third node uplinks the block, and the identified uplink message can enable nodes except the third node to determine to obtain the block required to be synchronized when the third node synchronizes the block chain.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the step of packaging the transaction information into blocks according to the pass corresponding to the transaction information comprises the following steps:
acquiring part or all of the transaction information received in the preset time;
ordering the transaction information according to the pass corresponding to the transaction information;
and packaging the transaction information into blocks according to the priority sequence with higher verification value.
3. The method of claim 1, further comprising, after said receiving the uplink message from the third node:
and synchronizing the new uplink block according to the uplink message.
4. The method of claim 1, further comprising, after said receiving the uplink message from the third node:
broadcasting the uplink message to inform other nodes to synchronize the newly uplink blocks; and/or the number of the groups of groups,
transmitting the uplink message to the second node.
5. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the step of packaging the transaction information into blocks according to the pass corresponding to the transaction information further comprises the steps of:
and obtaining the evidence-passing rewards corresponding to the transaction information.
6. A blockchain-based transaction processing method, comprising:
the second node of the blockchain sends transaction information to the first node of the blockchain;
the first node packages the transaction information into blocks according to the pass corresponding to the transaction information, wherein the first node verifies the transaction information, and packages the transaction information into the blocks after the verification is passed;
the first node transmitting the block to a third node of the blockchain;
and the third node performs secondary verification on the block, and uplinks the block when the secondary verification passes, generates an uplinking message after uplinking the block, and identifies the uplinking message, wherein the identified uplinking message can enable nodes except the third node to determine to obtain the block to be synchronized when synchronizing the block chain.
7. The method of claim 6, wherein the step of providing the first layer comprises,
the method comprises the steps of generating a uplink message after the block is uplink, and identifying the uplink message, and further comprises the following steps:
transmitting the uplink message to the first node;
the first node further includes, after receiving the uplink message:
the first node synchronizes a new uplink block according to the uplink message; and/or the number of the groups of groups,
the first node broadcasts the uplink message to inform other nodes of synchronizing the newly uplink blocks; and/or the number of the groups of groups,
the first node transmits the uplink message to the second node.
8. The method of claim 6, wherein the step of providing the first layer comprises,
the third node further comprises, after verifying the block:
and the third node obtains the evidence-passing rewards corresponding to the transaction information.
9. An electronic device comprising a processor, a memory, and a communication circuit, the processor being coupled to the memory and the communication circuit, 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 steps in the method according to any one of claims 1 to 4 or steps performed by the second node and the third node according to any one of claims 6 to 8.
10. A storage medium storing program instructions executable by a processor to perform the steps of the method of any one of claims 1 to 4 or the steps performed by the second node or the third node of 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 CN110838063A (en) 2020-02-25
CN110838063B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367999B (en) * 2020-03-04 2023-05-26 徐皓 Block chain method and system, electronic equipment and computer readable storage medium
CN111368001B (en) * 2020-03-04 2023-06-02 徐皓 Block chain method, system 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
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
CN114979173B (en) * 2021-04-21 2023-07-14 中移互联网有限公司 User rights information processing method, device, equipment and storage medium based on block chain
CN114386974B (en) * 2021-11-24 2022-10-28 弥达斯科技(深圳)有限公司 Transaction method, device, system and storage medium based on zero knowledge certification

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040585B (en) * 2017-02-22 2020-06-19 创新先进技术有限公司 Service checking method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN110838063A (en) 2020-02-25

Similar Documents

Publication Publication Date Title
CN110838063B (en) Transaction processing method based on blockchain, electronic equipment and storage medium
CN112214780B (en) Data processing method and device, intelligent equipment and storage medium
CN107967416B (en) Copyright right-maintaining detection method, device and system
JP6355168B2 (en) Block chain generation device, block chain generation method, block chain verification device, block chain verification method and program
CN112104665B (en) Block chain-based identity authentication method and device, computer and storage medium
JP2017091149A (en) Block chain generator, block chain generation method, block chain verifier, block chain verification method, and program
WO2019200966A1 (en) Method and apparatus for sharing and acquiring information
CN109508987B (en) Block chain construction method, system and related components
US11503036B2 (en) Methods of electing leader nodes in a blockchain network using a role-based consensus protocol
KR102308339B1 (en) Method, apparatus and storage medium for processing ethereum-based falsified transaction
CN112001713B (en) Block chain system and request processing method and device
CN110336779B (en) Block chain construction method and device and electronic equipment
CN112036878B (en) Data processing method and device
CN111967061B (en) Block chain-based trusted account transfer transaction method and device
CN111416709B (en) Voting method, device, equipment and storage medium based on block chain system
CN115514608B (en) Block consensus method, device, equipment and storage medium
CN115499379B (en) Information interaction method, device, equipment and medium based on block chain
CN111460400A (en) Data processing method and device and computer readable storage medium
CN111311258A (en) Block chain based trusted transaction method, device, system, equipment and medium
CN111259428A (en) Data processing method and device based on block chain, node equipment and storage medium
CN112134883A (en) Method and device for quickly authenticating trust relationship between nodes based on trusted computing and related products
CN112181599B (en) Model training method, device and storage medium
WO2021030545A1 (en) Securing browser cookies
CN114124515B (en) Bidding transmission method, key management method, user verification method and corresponding devices
EP4148602A1 (en) Fully distributed blockchain system and computer program for crypto asset transaction that allows participation of anonymous user while preventing illegal transaction

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