CN112819618B - Transaction information storage method, device, electronic equipment and storage medium - Google Patents

Transaction information storage method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112819618B
CN112819618B CN202110037660.7A CN202110037660A CN112819618B CN 112819618 B CN112819618 B CN 112819618B CN 202110037660 A CN202110037660 A CN 202110037660A CN 112819618 B CN112819618 B CN 112819618B
Authority
CN
China
Prior art keywords
transaction
information
blockchain
node
target
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
CN202110037660.7A
Other languages
Chinese (zh)
Other versions
CN112819618A (en
Inventor
贺虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202110037660.7A priority Critical patent/CN112819618B/en
Publication of CN112819618A publication Critical patent/CN112819618A/en
Application granted granted Critical
Publication of CN112819618B publication Critical patent/CN112819618B/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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction

Abstract

The disclosure relates to a transaction information storage method, a transaction information storage device, electronic equipment and a storage medium, and relates to the field of blockchain. The method comprises the following steps: the accounting node determines at least one similar blockchain transaction of the target blockchain transaction from the completed historical blockchain transaction according to the information proximity degree of at least one transaction information of the target blockchain transaction and corresponding transaction information of the completed historical blockchain transaction, and the accounting node obtains the transaction information of the similar blockchain transaction; the billing node records at least a portion of the transaction information for the similar blockchain transaction into the target block, where the at least a portion of the transaction information for the similar blockchain transaction is marked as reference information for the target blockchain transaction. The method records the transaction information of the similar blockchain transaction into the block, determines whether the target blockchain transaction is legal and real by comparing the transaction information of the target blockchain transaction with the transaction information of the similar blockchain transaction, and improves the effectiveness of blockchain transaction supervision.

Description

Transaction information storage method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of blockchains, and in particular relates to a transaction information storage method, a transaction information storage device, electronic equipment and a storage medium.
Background
With the development of technology, the application fields of blockchain technology are becoming wider and wider, for example: the transaction may be conducted using a blockchain.
The decentralization of the blockchain prevents blockchain transactions from being effectively policed, which results in many illegal or spurious transactions being conducted through the blockchain.
How to improve the supervision effect on blockchain transactions becomes a difficult problem to be solved.
Disclosure of Invention
The disclosure provides a transaction information storage method, a transaction information storage device, electronic equipment and a storage medium, so as to at least solve the problem that related technologies consume more computing resources. The technical scheme of the present disclosure is as follows:
in a first aspect, a transaction information saving method is provided, including:
determining at least one similar blockchain transaction of a target blockchain transaction from the completed historical blockchain transaction according to the information proximity of at least one transaction information of the target blockchain transaction and corresponding transaction information of the completed historical blockchain transaction by an accounting node, wherein the accounting node is a blockchain node with the blockwork accounting right of the target blockchain transaction;
The accounting node obtains transaction information of the similar blockchain transaction;
the billing node records at least a portion of transaction information for the similar blockchain transaction into a target block, the target block being a block for holding at least transaction information for the target blockchain transaction, the at least a portion of transaction information for the similar blockchain transaction being marked in the target block as reference information for the target blockchain transaction.
With reference to the first aspect, in some optional embodiments, the accounting node determines at least one similar blockchain transaction of the target blockchain transaction from the completed historical blockchain transaction according to an information proximity of at least one transaction information of the target blockchain transaction and corresponding transaction information of the completed historical blockchain transaction, including:
the billing node determines the completed historical blockchain transaction that satisfies both the transaction object condition, the transaction time condition, and the transaction price condition as a similar blockchain transaction to the target blockchain transaction,
wherein, the transaction object conditions are: the transaction object is the same as the transaction object of the target blockchain transaction;
The trade time conditions are as follows: the proximity degree of the transaction time of the target blockchain transaction meets a first preset proximity degree;
the trade price conditions are: the proximity of the transaction price to the target blockchain transaction satisfies a second preset proximity.
With reference to the first aspect, in certain optional embodiments, the method further comprises:
the billing node records at least a portion of transaction information for the target blockchain transaction into the target block.
With reference to the first aspect, in certain optional embodiments, the method further comprises:
the billing node records a first hash value into the target block, wherein the first hash value is a hash value of transaction information of the similar blockchain transaction.
With reference to the first aspect, in some optional embodiments, transaction information of the completed historical blockchain transaction is recorded in a historical block.
With reference to the first aspect, in certain optional embodiments, the transaction information of the similar blockchain transaction recorded into the target block includes:
at least one of node information of the bidding node, bid information of the bidding node, node information of the bidding node, and bid information of the seller of the bidding node, wherein the bid information at least comprises: the bid price, the bid floating price and the bid time include at least the bid price.
In a second aspect, there is provided a transaction information holding apparatus for use with an accounting node, the transaction information holding apparatus comprising: a similar transaction determining unit, a transaction information obtaining unit and an information recording unit,
the similar transaction determining unit is used for determining at least one similar blockchain transaction of the target blockchain transaction from the completed historical blockchain transaction according to the information proximity degree of at least one transaction information of the target blockchain transaction and corresponding transaction information of the completed historical blockchain transaction, and the accounting node is a blockchain node with the blockaccounting right of the target blockchain transaction;
the transaction information obtaining unit is used for obtaining transaction information of the similar blockchain transaction;
the information recording unit is used for recording at least part of transaction information of the similar blockchain transaction into a target block, wherein the target block is a block for storing at least transaction information of the target blockchain transaction, and the at least part of transaction information of the similar blockchain transaction is marked as reference information of the target blockchain transaction in the target block.
With reference to the second aspect, in some optional embodiments, the similar transaction determining unit is specifically configured to: determining the completed historical blockchain transaction which simultaneously satisfies the transaction object condition, the transaction time condition and the transaction price condition as a similar blockchain transaction of the target blockchain transaction,
Wherein, the transaction object conditions are: the transaction object is the same as the transaction object of the target blockchain transaction;
the trade time conditions are as follows: the proximity degree of the transaction time of the target blockchain transaction meets a first preset proximity degree;
the trade price conditions are: the proximity of the transaction price to the target blockchain transaction satisfies a second preset proximity.
With reference to the second aspect, in some optional embodiments, the transaction information storage device further includes: and the first recording unit is used for recording at least part of transaction information of the target blockchain transaction into the target block.
With reference to the second aspect, in some optional embodiments, the transaction information storage device further includes: and the second recording unit is used for recording a first hash value into the target block, wherein the first hash value is the hash value of the transaction information of the similar blockchain transaction.
With reference to the second aspect, in some optional embodiments, transaction information of the completed historical blockchain transaction is recorded in a historical block.
With reference to the second aspect, in some optional embodiments, the transaction information of the similar blockchain transaction recorded into the target block includes:
At least one of node information of the bidding node, bid information of the bidding node, node information of the bidding node, and bid information of the seller of the bidding node, wherein the bid information at least comprises: the bid price, the bid floating price and the bid time include at least the bid price.
In a third aspect, there is provided an electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement any of the transaction information preservation methods as provided in the first aspect.
In a fourth aspect, there is provided a storage medium, which when executed by a processor of an electronic device, enables the device to perform any one of the transaction information preserving methods as provided in the first aspect.
In a fifth aspect, there is provided a computer program product adapted to perform a program initialising the steps of any of the transaction information preserving methods as provided in the first aspect when executed on an electronic device.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the present disclosure provides a transaction information storage method, a device, an electronic device, and a storage medium, wherein the method includes: the accounting node determines at least one similar blockchain transaction of the target blockchain transaction from the completed historical blockchain transaction according to the information proximity degree of at least one transaction information of the target blockchain transaction and corresponding transaction information of the completed historical blockchain transaction, the accounting node is a blockchain node with the blockchain accounting right of the target blockchain transaction, and the accounting node obtains transaction information of the similar blockchain transaction; the billing node records at least a portion of the transaction information for the similar blockchain transaction into a target block, the target block being a block for holding at least the transaction information for the target blockchain transaction, the at least a portion of the transaction information for the similar blockchain transaction being marked in the target block as reference information for the target blockchain transaction. The accounting node of the present disclosure may record at least a portion of transaction information of a similar blockchain transaction into a block, so that whether the target blockchain transaction is legal or not may be determined by comparing the transaction information of the target blockchain transaction with the transaction information of the similar blockchain transaction, thereby improving the regulatory effectiveness of the blockchain transaction.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a system architecture diagram of a blockchain network shown in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a transaction information preservation method according to an exemplary embodiment;
FIG. 3 is a flowchart illustrating a determination process of an accounting node according to another exemplary embodiment;
FIG. 4 is a flowchart illustrating a determination process of an accounting node according to another exemplary embodiment;
FIG. 5 is a flowchart illustrating a determination process of an accounting node according to another exemplary embodiment;
FIG. 6 is a flowchart illustrating a determination process of an accounting node according to another exemplary embodiment;
fig. 7 is a schematic diagram showing a structure of a transaction information holding device according to an exemplary embodiment;
fig. 8 is a schematic diagram of a structure of an electronic device according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
First, a blockchain network to which the present disclosure relates will be described:
the blockchain network to which the present disclosure relates may be a public chain, a private chain, a federated chain, or the like. The blockchain network to which the present disclosure relates may include a plurality of blockchain nodes, each of which may be located in the same or different devices.
The blockchain nodes in the blockchain network may include: a transaction node, the transaction node being a node that performs transactions over a blockchain network, the transaction node comprising: bidding nodes and bidding nodes. The bidding node is the seller node of the blockchain transaction and the bidding node is the buyer node of the blockchain transaction. It will be appreciated that the same transaction node may bid for a node in one blockchain transaction and may be a bidding node in another blockchain transaction.
When conducting a blockchain transaction, both the bidding node and the bidding node may send out transaction information, where the transaction information sent by the bidding node may include: information of transaction objects, node information of the auction node, vendor bid information of the auction node, and the like. Wherein, the transaction object is the object of blockchain transaction, such as: when the auction node wants to sell a certain non-physical object, the virtual object is the transaction object. The non-physical object may be: futures.
The transaction information sent by the bidding node may include: information of transaction objects, node information of bidding nodes, bid information of the bidding nodes, bid time of the bidding nodes and the like.
The node information may be a node identifier.
Optionally, the transaction information sent by the bidding node and the bidding node can also carry private key signatures.
In conducting a blockchain transaction, a transaction request may be issued by the auction node, which may be the transaction information issued by the auction node.
In an alternative embodiment of the present disclosure, other nodes may be included in the blockchain network in addition to the transaction node, such as: at least one of a common node, a supervision node and an operation node.
The common node is a node which is only used as a synchronous account book, and the common node can perform distributed record and verification on various received information.
The operating node may be a node of a transaction operator of the blockchain. The operation node may perform validity verification on the transaction request (e.g. verifying ownership of the transaction object by the auction node, verifying a private key signature in the transaction request, etc.), if it is truly legal, then may issue a bid notification to each transaction node, where the bid notification carries a timestamp of a time when the bid starts, a bid requirement, etc. After the operation node receives the bid information of each bidding node, the operation node performs validity verification on the bid information of each bidding node (for example, verifying whether a bidding node has so much money), if not, the operation node sends the illegal result to all the blockchain nodes, if so, and sends the legal result to all the nodes. The transaction operator of the blockchain may set bid requirements for the blockchain transaction. Specifically, the same or different bid requirements may be set for each transaction object. The bid start time is a start time when each bidding node transmits bid information. By the bidding starting time, fairness of each bidding node at the bidding time can be ensured. Of course, although the bid start times received by the respective bidding nodes are the same, the times of the bid information issued by the respective bidding nodes may be the same or different.
The supervisory node may be a supervisory node of a supervisory entity of a blockchain transaction that may obtain various information involved in the blockchain transaction, but not participate in the transaction process.
Alternatively, as shown in fig. 1, the system architecture of the blockchain network of the present disclosure may be divided into three layers: the system comprises a blockchain layer 001, a middleware layer 002 and a transaction system layer 003, wherein the blockchain layer 001 is a bottom layer, the transaction system layer 003 is an upper layer, and the middle of the blockchain layer 001 and the transaction system layer 003 is the middleware layer 002. Specifically, the transaction system layer 003 of the blockchain network of the present disclosure may have a plurality of transaction systems, such as: a product futures trading system layer, a product real-time trading system layer and the like. Each transaction system layer 003 may communicate with the same blockchain layer 001 through the same or different middleware layer 002.
The following describes a transaction information storage method provided by an embodiment of the present disclosure:
as shown in fig. 2, a transaction information saving method provided in an embodiment of the present disclosure includes:
s110, determining at least one similar blockchain transaction of the target blockchain transaction from the completed historical blockchain transaction according to the information proximity degree of at least one transaction information of the target blockchain transaction and corresponding transaction information of the completed historical blockchain transaction by the accounting node, wherein the accounting node is a blockchain node with the blockaccount right of the target blockchain transaction.
Optionally, the billing node determining transaction information used by the similar blockchain transaction may include:
at least one of transaction object, transaction time, and transaction price.
Wherein, the transaction object is the object of the transaction of the buyer and the seller, such as: the bidding node A sells out an article, the bidding node B obtains ownership of the article through bidding, the article is the transaction object, and the bidding node B is the billing node with the block billing right of the target block chain transaction.
The transaction time may be the determined moment of determining the billing node, as in the example above, the moment of determining the bidding node B as the billing node is the transaction time.
The proximity of the transaction object can be divided into: the transaction objects are the same, the transaction objects are different but of the same type, the transaction objects are of different types, etc. For example: if the transaction object of the target blockchain transaction is a light fuel futures of a three-month contract, if the transaction object of the completed historical blockchain transaction is also a light fuel futures of a three-month contract, the transaction objects are the same, if the transaction object of the completed historical blockchain transaction is a light fuel futures of a six-month contract, the transaction objects are different but belong to the same type (light fuel futures), if the transaction object of the completed historical blockchain transaction is a heavy fuel futures of a six-month contract, the transaction objects are of different types (one belongs to the light fuel futures, and one belongs to the heavy fuel futures).
Wherein the proximity of the transaction time may be determined according to a time interval of the transaction time of the target blockchain transaction and the transaction time of the historical blockchain transaction, for example: and ordering the completed historical blockchain transactions according to the sequence from small to large in time interval, and determining the N completed historical blockchain transactions before ordering as the historical blockchain transactions with close transaction time. And the following steps: and determining the historical blockchain transactions with the time intervals lower than the preset duration as the historical blockchain transactions with the close transaction time.
Wherein the proximity of the transaction price may be determined based on an absolute value of a difference between the transaction price of the target blockchain transaction and the transaction price of the historical blockchain transaction, such as: and ordering the completed historical blockchain transactions according to the order of the absolute value from small to large, and determining the N completed historical blockchain transactions before ordering as the historical blockchain transactions with close transaction prices. And the following steps: and determining the historical blockchain transaction with the absolute value lower than the preset threshold value as the historical blockchain transaction with the close transaction price.
The present disclosure may determine historical blockchain transactions that are identical in transaction objects and close in transaction time and close in transaction price as similar blockchain transactions.
The present disclosure may also determine historical blockchain transactions that are different in transaction objects but of the same type and close in transaction time and close in transaction price as similar blockchain transactions.
Alternatively, over time, historical blockchain transactions are increasing, but not all historical blockchain transactions are completed transactions. Some historic blockchain transactions are not committed, and the historic blockchain transactions are incomplete historic blockchain transactions.
Alternatively, transaction information for historical blockchain transactions may be recorded into the block, whether completed or not.
Optionally, the billing node determines at least one similar blockchain transaction of the target blockchain transaction from the completed historical blockchain transactions based on the information proximity of the at least one transaction information of the target blockchain transaction and the corresponding transaction information of the completed historical blockchain transaction, comprising:
the accounting node determines the completed historical blockchain transactions that satisfy the transaction object condition, the transaction time condition, and the transaction price condition simultaneously as similar blockchain transactions to the target blockchain transaction,
wherein, the transaction object conditions are: the transaction object is the same as the transaction object of the target blockchain transaction;
The trade time conditions are: the proximity of the transaction time with the target blockchain transaction meets a first preset proximity;
the trade price conditions are: the proximity of the transaction price to the target blockchain transaction satisfies a second preset proximity.
Optionally, the first preset proximity may be: the time interval between the transaction time of the target blockchain transaction and the transaction time of the historical blockchain transaction is less than the preset duration.
Optionally, the first preset proximity may be: and sequencing each completed historical blockchain transaction according to the sequence from small to large in time interval, wherein the sequencing is within the first N.
Optionally, the second preset proximity may be: the absolute value of the difference between the transaction price of the target blockchain transaction and the transaction price of the historical blockchain transaction is below a preset threshold.
Optionally, the second preset proximity may be: and sequencing the completed historical blockchain transactions from the small absolute value to the large absolute value to within the first N.
S120, the accounting node obtains transaction information of similar blockchain transactions.
Alternatively, the billing node may obtain transaction information for similar blockchain transactions from the block.
S130, the accounting node records at least part of transaction information of the similar blockchain transaction into a target block, wherein the target block is a block for at least storing the transaction information of the target blockchain transaction, and the at least part of transaction information of the similar blockchain transaction is marked as reference information of the target blockchain transaction in the target block.
Optionally, each tile may be used to hold transaction information for a target blockchain transaction and reference information for the target blockchain transaction.
Optionally, the block may store a field "reference information", where the specific content corresponding to the field may be at least part of transaction information of a similar blockchain transaction. In this way, the present disclosure marks at least a portion of the transaction information of the similar blockchain transaction as reference information of the target blockchain transaction in the target block.
Optionally, the transaction information of the similar blockchain transaction recorded into the target block may include:
at least one of node information of the bidding node, bid information of the bidding node, node information of the bidding node, and bid information of the seller of the bidding node, wherein the bid information at least comprises: the bid base price, the bid floating price, and the bid time, the seller bid information including at least the sell price.
Alternatively, the bid base price is the base price offered by the bidding node, and the bid price of the bidding node may be a range of bid prices determined based on the bid base price and the bid floating price. Wherein, the buying floating price can be: floating up price, floating down price, or floating up and down price.
Optionally, the method shown in fig. 2 may further include:
the billing node records at least a portion of the transaction information for the target blockchain transaction into the target block.
Optionally, the method shown in fig. 2 may further include:
and the billing node records a first hash value into the target block, wherein the first hash value is a hash value of transaction information of the similar blockchain transaction.
By recording the hash value into the block, the transaction information can be checked according to the hash value, so that the validity of the transaction information is ensured.
The transaction information of the completed historical blockchain transaction is recorded in the historical block.
In the transaction information storage method provided by the disclosure, according to the information proximity degree of at least one transaction information of a target blockchain transaction and corresponding transaction information of a completed historical blockchain transaction, determining at least one similar blockchain transaction of the target blockchain transaction from the completed historical blockchain transaction, wherein the accounting node is a blockchain node with the blockchain accounting right of the target blockchain transaction, and the accounting node obtains the transaction information of the similar blockchain transaction; the billing node records at least a portion of the transaction information for the similar blockchain transaction into a target block, the target block being a block for holding at least the transaction information for the target blockchain transaction, the at least a portion of the transaction information for the similar blockchain transaction being marked in the target block as reference information for the target blockchain transaction. The accounting node of the present disclosure may record at least a portion of transaction information of a similar blockchain transaction into a block, so that whether the target blockchain transaction is legal or not may be determined by comparing the transaction information of the target blockchain transaction with the transaction information of the similar blockchain transaction, thereby improving the regulatory effectiveness of the blockchain transaction.
In other embodiments of the present disclosure, the billing node having the blockcount of the target blockchain transaction may be determined from the bidding nodes of the target blockchain transaction through the steps shown in fig. 3. Fig. 3 provides a method for determining block accounting rights.
As shown in fig. 3, a method for determining a block accounting right provided in the present disclosure may include:
s210, the voting node obtains the seller bid information sent by the auction node of the target blockchain transaction, wherein the auction node is a seller node in the transaction nodes related to the target blockchain transaction.
Optionally, the seller bid information includes at least a sell price.
The steps shown in fig. 3 may be performed by a voting node in a blockchain network that includes at least: the plurality of transaction nodes, the voting node being at least a portion of nodes in the blockchain network.
Alternatively, some or all of the nodes in the blockchain network may be voting nodes. If all nodes except the supervision node are used as voting nodes, the following steps are: all transaction nodes associated with the target blockchain transaction act as voting nodes. The voting node is a node with voting rights. Each voting node may vote on its determined bidding node to vote on the determination of the billing node.
Alternatively, the voting node may be a transaction node.
Alternatively, each voting node may perform steps S210 to S230, respectively, and then each voting node votes on its determined bidding node, and determines the billing node having the block billing right for the target blockchain transaction based on the voting result.
Optionally, the voting node may also obtain information about the transaction object sent by the auction node, node information of the auction node, and the like.
Optionally, the vendor bid information may further include: bid validity time, etc. Since the seller cannot wait for the buyer's bid permanently, long waiting times can be avoided by setting the bid validity time.
S220, the voting node obtains the bid information of the buyer sent by the bidding node of the target blockchain transaction, wherein the bidding node is the buyer node in the transaction nodes related to the target blockchain transaction.
Optionally, the bid information includes at least: the bid base price and bid floating price, optionally, the bid information may further include: bidding time.
It will be appreciated that in some cases, not all of the transactional nodes will bid on the target blockchain transaction, and thus the transactional node that issued the bid information may be referred to as the bidding node for the target blockchain transaction.
Alternatively, the bid base price is the base price offered by the bidding node, and the bid price of the bidding node may be a range of bid prices determined based on the bid base price and the bid floating price. Wherein, the buying floating price can be: floating up price, floating down price, or floating up and down price. For ease of understanding, the following is illustrative:
example 1: if the buying basic price is 5 and the buying floating price is-1, the buying floating price is the floating price, and the determined buying price range is as follows according to the buying basic price and the buying floating price: 4 to 5.
Example 2: if the buying basic price is 5 and the buying floating price is +1, the buying floating price is the floating price, and the determined buying price range is as follows according to the buying basic price and the buying floating price: 5 to 6.
Example 3: if the buying basic price is 5 and the buying floating price is +/-1, the buying floating price is up and down floating price, and the determined buying price range is as follows according to the buying basic price and the buying floating price: 4 to 6.
Alternatively, each bidding node may start bidding according to the bidding start time of the unified time service center.
And S230, determining the bidding node to be voted by the voting node according to the seller bidding information and the buyer bidding information sent by each bidding node by the voting node.
Alternatively, each voting node may determine the bidding node to vote on based on the bids of the buyers and sellers and the bidding time of the bidding node. Alternatively, the bidding nodes to be voted determined by each voting node may be the same or different.
In other embodiments of the present disclosure, the seller bid information includes at least a sell price, and the buyer bid information includes at least: the base price for the purchase and the floating price for the purchase, each voting node may determine an accounting node according to the procedure shown in fig. 4, respectively, namely: step S230 in the method shown in fig. 3 may specifically include:
s231, the voting node respectively determines the buying price range of each bidding node according to the buying basic price and the buying floating price in the buying bid information sent by each bidding node.
Step S231 determines that the buying price range has been described in text below step S220, and will not be described again.
S232, the voting node determines an initial enclosing node from the bidding nodes, wherein the buying price range of the initial enclosing node comprises the selling price.
Still by way of example 3, when the determined purchase price range is: 4 to 6, if the bid price in the bid information of the seller issued by the auction node is 5.8, the bid price range includes the bid price, the auction node giving the bid price range may be determined as the initial in-range node.
S233, determining bidding nodes to be voted by the voting nodes from the initial enclosing nodes according to the buying basic price of the initial enclosing nodes by the voting nodes.
Since the basic price is the basic bid of the bidding node, it is relatively important that when there are a plurality of initial enclosing nodes, the bidding node to be voted by the voting node can be determined from the initial enclosing nodes according to the proximity of the basic price to the selling price.
In the case that the bid information further includes a bid time, step S233 may specifically include:
the voting node determines the size relation between the number of initial enclosing nodes and 1, when the number of the initial enclosing nodes is equal to 1, the voting node determines the initial enclosing nodes as bidding nodes to be voted by the voting nodes, when the number of the initial enclosing nodes is greater than 1, the voting node determines the initial enclosing nodes with the closest buying base price to the selling price as re-enclosing nodes, the voting node determines the bidding nodes to be voted by the voting nodes from the re-enclosing nodes according to the bidding time of the re-enclosing nodes, and when the number of the initial enclosing nodes is less than 1, the voting node determines that the target block chain transaction fails.
When the number of the initial enclosing nodes is smaller than 1, the number of the initial enclosing nodes is 0.
Optionally, the voting node determines an initial enclosing node with the buying base price closest to the selling price as a enclosing node again, and the voting node determines, according to the bidding time of each enclosing node again, bidding nodes to be voted by the voting node from the enclosing nodes again, which may specifically include:
when the number of the re-enclosing nodes is 1, the voting node determines the re-enclosing nodes as bidding nodes to be voted by the voting nodes;
when the number of re-enclosing nodes is larger than 1, the voting node determines the re-enclosing node with the earliest bid time as the bidding node to be voted by the voting node.
After determining that the target blockchain transaction fails, a message of the target blockchain transaction failure may be sent to other blockchain nodes.
Optionally, in other embodiments of the present disclosure, the voting node or the operation node may also audit the base price of the purchase, the floating price of the purchase. Specifically, the ratio of the base price to the floating price can be determined, and when the ratio of the floating price to the base price exceeds a preset value, the bid information including the base price and the floating price is determined to be invalid. By limiting the preset value, the bidding node can be prevented from giving a particularly large range of bid prices. For example: assuming that the buying base price is 5 and the buying floating price is +/-100, determining the buying price range according to the buying base price and the buying floating price: -95 to 105.
After determining that the bid information for a bidding node is invalid, a message that the bid information for the bidding node is invalid may be sent to other blockchain nodes and recorded into the blockchain.
S240, each voting node votes the determined bidding node, and at least one bidding node is determined as follows: a billing node having block billing rights for a target blockchain transaction.
Alternatively, the first bidding node may be determined to be the billing node with the block billing rights for the target blockchain transaction when the voting results for each voting node indicate that more than a preset proportion of voting nodes voted for the first bidding node. Wherein the preset proportion is higher than 50%.
According to the block billing right determining method provided by the embodiment of the disclosure, bidding nodes to be voted by voting nodes can be determined according to the seller bidding information and the buyer bidding information sent by each bidding node, then each voting node votes the determined bidding nodes, and at least one bidding node is determined as: a billing node having block billing rights for a target blockchain transaction. Therefore, the process of determining the block accounting right does not need to carry out complex operation, so that the consumption of computing resources is effectively reduced.
The method for determining the block accounting right provided by the present disclosure, relative to the embodiment shown in fig. 3, may further include:
and recording transaction information of at least one similar blockchain transaction of the target blockchain transaction into a blockchain, wherein the transaction object of the similar blockchain transaction is the same as or similar to the transaction object of the target blockchain transaction.
Optionally, the transaction information of the similar blockchain transaction includes: at least one of node information of bidding nodes of similar blockchain transactions, bid information of buyers of bidding nodes of similar blockchain transactions, node information of bidding nodes of similar blockchain transactions, bid information of sellers of bidding nodes of similar blockchain transactions.
The node information may include: and (5) node identification.
By recording transaction information for similar blockchain transactions into the blockchain, subsequent blockchain transaction parties can be facilitated to refer to and bid on similar blockchain transactions.
Further, the present disclosure may also record hash values of transaction information records that resemble blockchain transactions into the blockchain.
Alternatively, the present disclosure may calculate the hash value of the transaction information by the middleware layer 002 in fig. 1 and send it to the blockchain layer 001 for recording.
The consistency and irreproducibility of the transaction information of the blockchain record can be ensured through the hash value.
Optionally, the recording the transaction information of the at least one similar blockchain transaction of the target blockchain transaction into the blockchain may specifically include:
n similar blockchain transactions with the closest transaction price to the selling price of the target blockchain transaction are determined, transaction information of the N similar blockchain transactions is recorded into the blockchain, and N is a positive integer.
Wherein N may be 100. By recording transaction information of N similar blockchain transactions with the closest transaction price into the blockchain, the subsequent blockchain transaction parties can conveniently refer to the similar blockchain transactions and bid.
As shown in fig. 5, another method for determining a block accounting right provided in the present disclosure, with respect to the embodiment shown in fig. 3, may further include:
s250, after the target blockchain transaction is completed, transaction information of the target blockchain transaction is recorded into the blockchain.
Optionally, the transaction information of the target blockchain transaction includes: at least one of node information of the bidding node, buyer bid information of the bidding node, node information of the bidding node, seller bid information of the bidding node.
The node information may include: and (5) node identification.
By recording transaction information of the target blockchain transaction into the blockchain, subsequent monitoring and tracing of the target blockchain transaction can be facilitated. For example: the supervision node can supervise and trace the target blockchain transaction according to the transaction information record in the blockchain.
Further, the present disclosure may also record a hash value of the transaction information of the target blockchain transaction into the blockchain.
Alternatively, the present disclosure may calculate the hash value of the transaction information of the target blockchain transaction by the middleware layer 002 in fig. 1 and send it to the blockchain layer 001 for recording.
The consistency and irreproducibility of the transaction information of the blockchain record can be ensured through the hash value.
As shown in fig. 6, another method for determining a block accounting right provided in the present disclosure, with respect to the embodiment shown in fig. 3, may further include:
s260, after the target blockchain transaction is completed, transaction information of at least one similar blockchain transaction of the target blockchain transaction and transaction information of the target blockchain transaction are recorded into the blockchain, wherein the transaction object of the similar blockchain transaction is the same as or similar to the transaction object of the target blockchain transaction.
It will be appreciated that the identity or similarity of the transaction objects may be determined based on the attributes of the transaction objects.
For example: the first transaction object is: 1000 barrels of light crude futures of 12 month contracts, the second trade object is: 1000 barrels of light crude futures of 12 month contracts, then the first trade object and the second trade object are the same.
And the following steps: the first transaction object is: light crude futures of 1000 barrels for 8 months contracts, the second trade object is: 1000 barrels of light crude futures contracted for 12 months, the first trade object and the second trade object are similar.
Further, the present disclosure may also record into the blockchain a hash value of transaction information of the similar blockchain transaction and transaction information of the target blockchain transaction.
Alternatively, the disclosure may calculate, by the middleware layer 002 in fig. 1, a hash value of the transaction information of the similar blockchain transaction and the transaction information of the target blockchain transaction and send the hash value to the blockchain layer 001 for recording.
The consistency and irreproducibility of the transaction information of the blockchain record can be ensured through the hash value.
Optionally, step S260 may specifically include:
and recording transaction information of N similar blockchain transactions and transaction information of target blockchain transactions into the blockchain, wherein the N similar blockchain transactions are N similar blockchain transactions with the closest transaction price to the transaction price of the target blockchain transaction.
By recording the transaction information of N similar blockchain transactions and the transaction information of the target blockchain transaction into the blockchain, the target blockchain transaction can be conveniently supervised according to the transaction information of the similar blockchain transactions.
Optionally, a time interval between a transaction completion time of a similar blockchain transaction and a transaction completion time of a target blockchain transaction in the present disclosure may be no greater than a preset duration.
Corresponding to the method embodiment, the disclosure also provides a transaction information storage device.
The transaction information storage device provided in the embodiment of the present disclosure is applied to an accounting node, as shown in fig. 7, and includes: a similar transaction determining unit 100, a transaction information obtaining unit 200 and an information recording unit 300,
a similar transaction determining unit 100 for determining at least one similar blockchain transaction of the target blockchain transaction from the completed historical blockchain transactions according to the information proximity of the at least one transaction information of the target blockchain transaction and the corresponding transaction information of the completed historical blockchain transaction, wherein the accounting node is a blockchain node with the blockaccounting right of the target blockchain transaction;
A transaction information obtaining unit 200 for obtaining transaction information of similar blockchain transactions;
the information recording unit 300 is configured to record at least part of transaction information of a similar blockchain transaction into a target block, where the target block is a block for storing at least the transaction information of the target blockchain transaction, and the at least part of transaction information of the similar blockchain transaction is marked as reference information of the target blockchain transaction.
Alternatively, the similar transaction determination unit 100 may be specifically configured to: determining the completed historical blockchain transaction which simultaneously satisfies the transaction object condition, the transaction time condition and the transaction price condition as a similar blockchain transaction of the target blockchain transaction,
wherein, the transaction object conditions are: the transaction object is the same as the transaction object of the target blockchain transaction;
the trade time conditions are: the proximity of the transaction time with the target blockchain transaction meets a first preset proximity;
the trade price conditions are: the proximity of the transaction price to the target blockchain transaction satisfies a second preset proximity.
Optionally, the transaction information storage device may further include: and the first recording unit is used for recording at least part of transaction information of the target blockchain transaction into the target block.
Optionally, the transaction information storage device may further include: and the second recording unit is used for recording the first hash value into the target block, wherein the first hash value is the hash value of the transaction information of the similar blockchain transaction.
Optionally, transaction information for the completed historical blockchain transaction is recorded in the historical block.
Optionally, the transaction information of the similar blockchain transaction recorded in the target block includes:
at least one of node information of the bidding node, bid information of the bidding node, node information of the bidding node, and bid information of the seller of the bidding node, wherein the bid information at least comprises: the bid base price, the bid floating price, and the bid time, the seller bid information including at least the sell price.
As shown in fig. 8, the present disclosure further provides an electronic device, including:
a processor 801;
a memory 802 for storing instructions executable by the processor 801;
wherein the processor 801 is configured to execute instructions to implement any of the transaction information preservation methods provided by the present disclosure.
The present disclosure also provides a storage medium that, when executed by a processor of an electronic device, enables the device to perform any one of the transaction information preservation methods as provided by the present disclosure.
The present disclosure also provides a computer program product adapted to perform a program initialized with the steps of any of the transaction information preserving methods as provided in the present disclosure when executed on an electronic device.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. A transaction information preservation method, comprising:
determining at least one similar blockchain transaction of a target blockchain transaction from the completed historical blockchain transaction according to the information proximity of at least one transaction information of the target blockchain transaction and corresponding transaction information of the completed historical blockchain transaction by an accounting node, wherein the accounting node is a blockchain node with the blockwork accounting right of the target blockchain transaction;
The accounting node obtains transaction information of the similar blockchain transaction;
the billing node records at least a portion of transaction information for the similar blockchain transaction into a target block, the target block being a block for holding at least transaction information for the target blockchain transaction, the at least a portion of transaction information for the similar blockchain transaction being marked in the target block as reference information for the target blockchain transaction;
wherein the billing node determines at least one similar blockchain transaction for a target blockchain transaction from the completed historical blockchain transactions based on an information proximity of at least one transaction information for the target blockchain transaction and corresponding transaction information for the completed historical blockchain transaction, comprising:
the billing node determines the completed historical blockchain transaction that satisfies both the transaction object condition, the transaction time condition, and the transaction price condition as a similar blockchain transaction to the target blockchain transaction,
wherein, the transaction object conditions are: the transaction object is the same as the transaction object of the target blockchain transaction;
the trade time conditions are as follows: the proximity degree of the transaction time of the target blockchain transaction meets a first preset proximity degree;
The trade price conditions are: the proximity of the transaction price to the target blockchain transaction satisfies a second preset proximity.
2. The method according to claim 1, wherein the method further comprises:
the billing node records at least a portion of transaction information for the target blockchain transaction into the target block.
3. The method according to claim 1, wherein the method further comprises:
the billing node records a first hash value into the target block, wherein the first hash value is a hash value of transaction information of the similar blockchain transaction.
4. The method of claim 1, wherein transaction information for the completed historical blockchain transaction is recorded in a historical block.
5. The method of claim 1, wherein the transaction information for the similar blockchain transaction recorded into the target block includes:
at least one of node information of the bidding node, bid information of the bidding node, node information of the bidding node, and bid information of the seller of the bidding node, wherein the bid information at least comprises: the bid price, the bid floating price and the bid time include at least the bid price.
6. A transaction information holding device for application to an accounting node, the transaction information holding device comprising: a similar transaction determining unit, a transaction information obtaining unit and an information recording unit,
the similar transaction determining unit is used for determining at least one similar blockchain transaction of the target blockchain transaction from the completed historical blockchain transaction according to the information proximity degree of at least one transaction information of the target blockchain transaction and corresponding transaction information of the completed historical blockchain transaction, and the accounting node is a blockchain node with the blockaccounting right of the target blockchain transaction;
the transaction information obtaining unit is used for obtaining transaction information of the similar blockchain transaction;
the information recording unit is used for recording at least part of transaction information of the similar blockchain transaction into a target block, wherein the target block is a block for at least storing transaction information of the target blockchain transaction, and the at least part of transaction information of the similar blockchain transaction is marked as reference information of the target blockchain transaction in the target block;
wherein, the similar transaction determining unit is specifically configured to: determining the completed historical blockchain transaction which simultaneously satisfies the transaction object condition, the transaction time condition and the transaction price condition as a similar blockchain transaction of the target blockchain transaction,
Wherein, the transaction object conditions are: the transaction object is the same as the transaction object of the target blockchain transaction;
the trade time conditions are as follows: the proximity degree of the transaction time of the target blockchain transaction meets a first preset proximity degree;
the trade price conditions are: the proximity of the transaction price to the target blockchain transaction satisfies a second preset proximity.
7. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the transaction information preservation method of any one of claims 1 to 5.
8. A storage medium, which when executed by a processor of a device, enables an electronic device to perform the transaction information preservation method of any one of claims 1 to 5.
CN202110037660.7A 2021-01-12 2021-01-12 Transaction information storage method, device, electronic equipment and storage medium Active CN112819618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110037660.7A CN112819618B (en) 2021-01-12 2021-01-12 Transaction information storage method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110037660.7A CN112819618B (en) 2021-01-12 2021-01-12 Transaction information storage method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112819618A CN112819618A (en) 2021-05-18
CN112819618B true CN112819618B (en) 2024-01-23

Family

ID=75868855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110037660.7A Active CN112819618B (en) 2021-01-12 2021-01-12 Transaction information storage method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112819618B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107085812A (en) * 2016-12-06 2017-08-22 雷盈企业管理(上海)有限公司 The anti money washing system and method for block chain digital asset
CN109598540A (en) * 2018-11-09 2019-04-09 湖南工业大学 A kind of advertisement accurately method for pushing and advertisement accurately supplying system
CN110968588A (en) * 2018-10-01 2020-04-07 通用汽车环球科技运作有限责任公司 Decentralized distributed map using blockchains
CN111401875A (en) * 2020-05-29 2020-07-10 支付宝(杭州)信息技术有限公司 Block chain transfer method and device based on account model
CN111539829A (en) * 2020-07-08 2020-08-14 支付宝(杭州)信息技术有限公司 To-be-filtered transaction identification method and device based on block chain all-in-one machine

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020153552A1 (en) * 2019-01-22 2020-07-30 인제대학교 산학협력단 Method and apparatus for blockchain, allowing modification of transaction recorded therein

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107085812A (en) * 2016-12-06 2017-08-22 雷盈企业管理(上海)有限公司 The anti money washing system and method for block chain digital asset
CN110968588A (en) * 2018-10-01 2020-04-07 通用汽车环球科技运作有限责任公司 Decentralized distributed map using blockchains
CN109598540A (en) * 2018-11-09 2019-04-09 湖南工业大学 A kind of advertisement accurately method for pushing and advertisement accurately supplying system
CN111401875A (en) * 2020-05-29 2020-07-10 支付宝(杭州)信息技术有限公司 Block chain transfer method and device based on account model
CN111539829A (en) * 2020-07-08 2020-08-14 支付宝(杭州)信息技术有限公司 To-be-filtered transaction identification method and device based on block chain all-in-one machine

Also Published As

Publication number Publication date
CN112819618A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN109544160B (en) Transaction authenticity verification method and system based on block chain and intelligent contract
CN106651303B (en) Intelligent contract processing method and system based on template
US20190392511A1 (en) Bid matching for blockchain-based goods/assets systems and methods
CN109118219B (en) Transaction data processing method and device
US20190259042A1 (en) Methods and systems for signal construction for distribution and monetization by signal sellers
CN112020705A (en) Block chain random timer transaction synchronization
US11907985B2 (en) Network, method, and non-transitory computer-readable medium for certification of vendors using distributed ledger technology
US20230214820A1 (en) Method and gui for settlement of commodity contracts denominated in commodity contract tokens
WO2019227345A1 (en) Method and system for managing maintenance and repair plant and data management server
WO2017190557A1 (en) Object data association index system, and construction and application method for the system
CN112418851A (en) Digital copyright registration, transaction and protection method and system
CN117240605B (en) Data transaction method, device, equipment and storage medium
KR102323715B1 (en) Method, apparatus and system for providing a trading platform service of secondhand luxury items
US20200175514A1 (en) Using a blockchain to establish a web of trust
CN110033367A (en) Based on the contract record method and device of block chain, electronic equipment
CN113159898A (en) Auction method based on block chain
CN113095915A (en) Auction method based on block chain
CN113283990A (en) Data sharing processing method and device
CN112819618B (en) Transaction information storage method, device, electronic equipment and storage medium
Zhang Internet of things supervision system and supply chain financial supervision methods based on blockchain technology
US20230103398A1 (en) Security Deposits Using Tokenized Reputation Scores
CN114022258A (en) Auction trading method, intelligent auction platform and storage medium
CN114119174A (en) Credit score generation method and device based on block chain
CN110807684A (en) Block chain technology-based sales document storage method, device, server and medium
CN112819564A (en) Method and device for determining block accounting right, block chain network and related equipment

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