Block-chain transaction processing method, device and apparatus and medium

A transaction processing and block chain technology, applied in data processing applications, instruments, finance, etc., can solve problems such as time-consuming and occupying system resources, and achieve the effects of improving processing efficiency, saving system resources, and optimizing account balance calculation methods

Pending Publication Date: 2019-02-19
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when an account has a large number of UTXO transaction outputs, calculating the balance of the account every time will be very time-consuming and take up a lot of system resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Block-chain transaction processing method, device and apparatus and medium
  • Block-chain transaction processing method, device and apparatus and medium
  • Block-chain transaction processing method, device and apparatus and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] Figure 1A It is a flowchart of a blockchain transaction processing method in Embodiment 1 of the present invention. The embodiment of the present invention is applicable to the case of calculating the account balance based on the unspent transaction output model, the method is executed by a block chain transaction processing device, the device is implemented by software and / or hardware, and is specifically configured to carry a block in the electronics of the chain nodes.

[0031] like Figure 1A The blockchain transaction processing method shown includes:

[0032] S110. When the set trigger condition is met, select at least two unspent transaction outputs from at least two unspent transaction outputs associated with the target account as unspent transaction outputs to be combined.

[0033] Among them, the transaction output can be understood as the transaction amount of the corresponding transaction element transferred to the target account when other accounts transf...

Embodiment 2

[0051] figure 2 It is a flowchart of a blockchain transaction processing method in Embodiment 2 of the present invention. The embodiments of the present invention perform subdivision optimization on the basis of the technical solutions of the foregoing embodiments.

[0052] Further, the "combined transfer transaction" is limited to "the number of bytes of the combined transfer transaction, which is less than or equal to the upper limit of the block byte number"; correspondingly, the operation "from at least two unspent transactions associated with the target account Among the transaction outputs, select at least two unspent transaction outputs as unspent transaction outputs to be merged. Candidate unspent transaction outputs; generate a combined transfer transaction according to each candidate unspent transaction output; adjust the number of candidate unspent transaction outputs according to the size relationship between the combined transfer transaction and the upper limit ...

Embodiment 3

[0073] Figure 3A It is a flowchart of a blockchain transaction processing method in Embodiment 3 of the present invention. The embodiments of the present invention perform additional optimization on the basis of the technical solutions of the foregoing embodiments.

[0074] Further, after the operation "send the merged transfer transaction to the blockchain network as a transaction request", add "if the remaining unspent transaction outputs associated with the target account do not meet the conditions for stopping the merge, then determine to generate Set trigger conditions to trigger the generation of the next merged transfer transaction, and determine the unspent transaction output corresponding to the previous merged transfer transaction as a new unspent transaction output "to achieve multi-level merger of unspent transaction outputs .

[0075] like Figure 3A A blockchain transaction processing method shown includes:

[0076] S310. When the set trigger condition is me...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a block chain transaction processing method, device, and apparatus and a medium. The method includes that at least two unspent transaction output associated with the target account are selected as the unspent transaction outputs to be merged when the set trigger condition is met; A merge transfer transaction is generated according to that input of each unspent transaction to be merged, wherein the input account and the output account of the merged transfer transaction are both target accounts; A merge transfer transaction is sent to a block chain network as a transaction request to request a block chain node to carry out transfer process. As that technical scheme introduces the consolidated transfer transaction, A plurality of non-expended transaction outputs are transferred to own accounts to be combined into one non-expended transaction output, thereby solving the technical problem of calculating account balance based on the non-expended transaction output model in the prior art, optimizing the existing account balance calculation mode, saving processing time and system resources, and improving processing efficiency.

Description

technical field [0001] The embodiments of the present invention relate to block chain data processing technology, and in particular to a block chain transaction processing method, device, equipment and medium. Background technique [0002] UTXO (Unspent Transaction Output, unspent transaction output) is a common model of blockchain, originally proposed by Satoshi Nakamoto, the inventor of Bitcoin. The UTXO model describes the unspent transaction outputs owned by each account. The transaction output of UTXO is associated with the account public key address. When the user uses the account private key to transfer the transaction output of a certain UTXO to another account through the transaction, it is equivalent to using digital currency for transaction. At the same time, the original UTXO transaction output is Once spent, it is no longer associated with the account public key address. [0003] Based on the UTXO model of the blockchain, if you need to know the balance of an ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q40/04
CPCG06Q40/04
Inventor 孙君意谭待肖伟
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products