CN109711840B - Transaction data processing method and device and storage medium - Google Patents

Transaction data processing method and device and storage medium Download PDF

Info

Publication number
CN109711840B
CN109711840B CN201811605323.8A CN201811605323A CN109711840B CN 109711840 B CN109711840 B CN 109711840B CN 201811605323 A CN201811605323 A CN 201811605323A CN 109711840 B CN109711840 B CN 109711840B
Authority
CN
China
Prior art keywords
transaction
node
data
public account
transaction data
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
CN201811605323.8A
Other languages
Chinese (zh)
Other versions
CN109711840A (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.)
China Mobile Communications Group Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Culture 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 China Mobile Communications Group Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811605323.8A priority Critical patent/CN109711840B/en
Publication of CN109711840A publication Critical patent/CN109711840A/en
Application granted granted Critical
Publication of CN109711840B publication Critical patent/CN109711840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a transaction data processing method, a device and a storage medium, wherein the method is applied to a block chain network and comprises the following steps: determining a contribution degree of a first node to a public account based on an intelligent contract of the block chain network, wherein the contribution degree is used for representing the proportion of transaction data of a sub-account to which the first node belongs in the transaction data sum of the public account; and determining corresponding transaction feedback data based on the contribution degree, and distributing the transaction feedback data to the sub-account number to which the first node belongs.

Description

Transaction data processing method and device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for processing transaction data, and a storage medium.
Background
In the process of implementing the present invention, the inventor finds that, in the related art, the account address corresponding to the user wallet is unique, and the transaction initiated by each account is usually signed by the key corresponding to the account. In the scenario of conducting transaction for a public account, anonymity of external transaction needs to be achieved by using mixed coins, however, the fund contribution of the partners in a group cannot be recorded in the public account in a public and transparent manner, and particularly, when profits are generated, the partners can only be divided into corresponding groups according to the rules in the contracts signed with the partners, so that not only is the operation complicated, but also the repudiation behavior is easy to occur. In view of the above technical problems, no effective solution has been proposed in the related art.
Disclosure of Invention
In view of this, embodiments of the present invention are intended to provide a transaction data processing method, a transaction data processing apparatus, and a storage medium, which are used to at least solve the problems in the related art that it is difficult to implement public and transparent transactions in public account numbers, and it is difficult to avoid excessive contract signing and repudiation behaviors.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a transaction data processing method, which is applied in a blockchain network, and the method includes:
determining a contribution degree of a first node to a public account based on an intelligent contract of the block chain network, wherein the contribution degree is used for representing the proportion of transaction data of a sub-account to which the first node belongs in the transaction data sum of the public account;
and determining corresponding transaction feedback data based on the contribution degree, and distributing the transaction feedback data to the sub-account number to which the first node belongs.
In the foregoing solution, before determining the contribution degree of the first node to the public account, the method further includes:
obtaining a first instruction, wherein the first instruction is used for instructing the first node to request data transaction with the public account;
and controlling to transfer the transaction data in the sub-account number to which the first node belongs to the public account number based on the first instruction.
In the foregoing solution, before the obtaining the first instruction, the method further includes:
creating the public account number based on at least two of the first nodes initiating a first data transaction request;
and the public account and the sub-account to which the first node belongs have an association relationship.
In the above scheme, the first instruction carries a first data transaction request initiated by the first node;
the controlling, based on the first instruction, transfer of the transaction data in the sub-account to which the first node belongs to the public account includes:
responding to the first data transaction request, and detecting whether the quantity of the transaction data in the public account meets a first set threshold value to obtain a detection result;
and when the detection result indicates that the number of the transaction data in the public account does not meet the first set threshold, transferring the transaction data in the sub-account to which the first node belongs to the public account so that the number of the transaction data in the public account meets the first set threshold.
In the foregoing scheme, after the transferring the transaction data in the sub-account to which the first node belongs to the public account, the method further includes:
receiving a second data transaction request initiated by a second node;
and responding to the second data transaction request, and sending the requested transaction data to the second node through the public account.
In the foregoing solution, before determining the contribution degree of the first node to the public account, the method further includes:
establishing a corresponding relation between the contribution degree and the transaction feedback data;
the determining, based on the contribution, corresponding transaction feedback data includes:
when a transaction feedback request initiated by the first node is received, inquiring the corresponding relation according to the contribution degree of the first node to the public account, and determining transaction feedback data corresponding to the contribution degree of the first node to the public account.
In the foregoing scheme, when it is determined that the detection result represents that the number of the transaction data in the public account number satisfies the first set threshold, the method further includes:
receiving a second data transaction request initiated by a second node;
and responding to the second data transaction request, and directly sending the requested transaction data to the second node through the public account.
In a second aspect, an embodiment of the present invention further provides a transaction data processing apparatus, which is applied in a blockchain network, and the apparatus includes: the device comprises a first determining module, a second determining module and a distributing module; wherein the content of the first and second substances,
the first determination module is used for determining the contribution degree of a first node to a public account based on an intelligent contract of the block chain network, wherein the contribution degree is used for representing the proportion of the transaction data of a sub-account to which the first node belongs in the transaction data sum of the public account;
the second determining module is used for determining corresponding transaction feedback data based on the contribution degree;
the distribution module is used for distributing the transaction feedback data to the sub-account number of the first node.
In the above scheme, the apparatus further comprises: the obtaining module is used for obtaining a first instruction before the first determining module determines the contribution degree of a first node to a public account, wherein the first instruction is used for indicating the first node to request data transaction with the public account;
and the control module is used for controlling the transfer of the transaction data in the sub account number to which the first node belongs to the public account number based on the first instruction.
In the above scheme, the apparatus further comprises: the first establishing module is used for establishing the public account number based on at least two first nodes initiating a first data transaction request before the obtaining module obtains a first instruction;
and the public account and the sub-account to which the first node belongs have an association relationship.
In the above scheme, the first instruction carries a first data transaction request initiated by the first node;
the control module includes: the detection submodule is used for responding to the first data transaction request, detecting whether the quantity of the transaction data in the public account number meets a first set threshold value or not, and obtaining a detection result;
and the transfer-in submodule is used for transferring the transaction data in the sub account number to which the first node belongs to the public account number when the detection result indicates that the number of the transaction data in the public account number does not meet the first set threshold value, so that the number of the transaction data in the public account number meets the first set threshold value.
In the above scheme, the apparatus further comprises: the first receiving module is used for receiving a second data transaction request initiated by a second node after the transfer sub-module transfers the transaction data in the sub-account number to which the first node belongs to the public account number;
and the first sending module is used for responding to the second data transaction request and sending the requested transaction data to the second node through the public account.
In the above scheme, the apparatus further comprises: the second establishing module is used for establishing a corresponding relation between the contribution degree and the transaction feedback data before the first determining module determines the contribution degree of the first node to the public account;
the second determining module is specifically configured to: when a transaction feedback request initiated by the first node is received, inquiring the corresponding relation according to the contribution degree of the first node to the public account, and determining transaction feedback data corresponding to the contribution degree of the first node to the public account.
In the above scheme, the apparatus further comprises: the second receiving module is used for receiving a second data transaction request initiated by a second node when the detection result indicates that the quantity of the transaction data in the public account number meets the first set threshold;
and the second sending module is used for responding to the second data transaction request and directly sending the requested transaction data to the second node through the public account.
In a third aspect, an embodiment of the present invention further provides a transaction data processing apparatus, including a memory, a processor, and an executable program stored on the memory and capable of being executed by the processor, where the processor executes the steps of the transaction data processing method provided in the embodiment of the present invention when executing the executable program.
In a fourth aspect, the embodiment of the present invention further provides a storage medium, on which an executable program is stored, and the executable program, when executed by a processor, implements the steps of the transaction data processing method provided by the embodiment of the present invention.
According to the transaction data processing method, the transaction data processing device and the transaction data processing storage medium, the contribution degree of a first node to a public account is determined through an intelligent contract based on a block chain network, corresponding transaction feedback data are determined based on the determined contribution degree, and the transaction feedback data are distributed to the sub-account to which the first node belongs. Therefore, by means of the principle of transparent disclosure of the block chain network, the contribution degree of the first node to the public account can be traced, so that the effects of transaction disclosure and transparency in the public account can be achieved, and meanwhile, transaction feedback data is processed on the first node according to the contribution degree of the first node to the public account, so that the problems of too many contracts signed and denial behaviors in the related technology can be avoided, and the use experience of a user is improved.
Drawings
Fig. 1 is a functional architecture diagram of a blockchain network service platform according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a developer accessing a blockchain network service platform through a terminal according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating an implementation of a transaction data processing method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a detailed implementation of a transaction data processing method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of creating a public account according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of transaction feedback data returned according to an embodiment of the present invention;
FIG. 7 is a functional block diagram of a transaction data processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic hardware configuration diagram of a transaction data processing apparatus according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
It should be noted that in the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Before further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
1) A Block (Block) recording a data structure of the ledger data updated by the exchange within a period of time, marked with a timestamp and a unique mark (e.g. a digital fingerprint) of a previous Block, and after the Block is subjected to consensus verification by nodes in the Block chain network, the Block is appended to the end of the Block chain to become a new Block.
2) Block Chain (Block Chain), a Chain of data structures composed of blocks in a sequentially contiguous manner, in each Block referencing the hash value of the previous Block or a subset thereof, thus cryptographically guaranteeing the recorded transaction as being tamper-proof and forgery-proof.
3) The block chain network incorporates new blocks into a set of a series of centerless nodes of the block chain in a consensus manner, and has the capability of deploying intelligent contracts.
4) The blockchain accounts can be expressed as nodes in a blockchain network, namely, the blockchain accounts are deployed corresponding to different business bodies, each blockchain account corresponds to one public key and one private key, and the blockchain accounts need to sign transaction data through the private keys of the blockchain accounts in the process of processing the transaction data.
5) The account book (Legger) is the sum of data recorded by taking an account as a dimension in a block chain network, and comprises the elements of the account book data, the state of the account book, the state certification of the account book, a block index and the like.
6) The book data, which may also be referred to as transaction data, may be stored in the actual block data, that is, a series of ordered and non-falsifiable records of the transaction recorded in the block chain, and may be in the form of a file system, and when an intelligent contract called in the transaction is executed, the update of the data in the account/account is implemented.
7) Intelligent contracts, also known as chain codes, are programs (specific codes) deployed in blockchain networks that trigger execution according to conditions, run in a secure container to initialize and manage ledger data and ledger states.
8) In response to the condition or state on which the performed operation depends, one or more of the performed operations may be in real-time or may have a set delay when the dependent condition or state is satisfied; there is no restriction on the order of execution of the operations performed unless otherwise specified.
9) Transaction (Transaction), equivalent to the computer term "thing", is used to refer to a series of Key-Value pairs of data updates in the ledger data by invoking an intelligent contract deployed in a blockchain network and by adding, checking and changing operations in the intelligent contract, thereby causing changes to the Key-Value pairs recorded in the ledger data, and not to refer to transactions in a business context alone, and embodiments of the present invention follow this convention in view of the convention that "transactions" are colloquially used in blockchain technology.
The transaction data processing method provided by the embodiment of the invention is applied to a communication network comprising blockchain nodes, namely, a blockchain network, wherein the deployment and management of the blockchain network can be provided by a blockchain network service platform 100. An exemplary functional architecture of a blockchain network service platform 100 for implementing the embodiment of the present invention is described below, referring to fig. 1, fig. 1 is a schematic functional architecture diagram of a blockchain network service platform provided in the embodiment of the present invention, which includes an application layer 101, a consensus layer 102, a network layer 103, a data layer 104, and a resource layer 105, which are described below respectively.
The resource layer 105 encapsulates various available computing and storage resources, such as those in computers, servers/clusters, and clouds, abstracts and provides a uniform interface to the data layer 104 to mask the variability of the underlying hardware implementing the resource layer 105.
Computing resources include various forms of processors, such as Central Processing Units (CPUs), Application Specific Integrated Circuits (ASICs), and Field-Programmable Gate arrays (FPGAs).
The storage resources include various types of storage media such as various volatile memories and nonvolatile memories. The nonvolatile Memory may be a Read Only Memory (ROM) or a Programmable Read-Only Memory (PROM). Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory.
The computing resources and storage resources of the resource layer 105 may be mapped to various types of nodes in a blockchain network, and the storage medium implementing an embodiment of the present invention stores executable instructions for implementing the blockchain network deployment method of an embodiment of the present invention, and once the executable instructions deployed to the nodes are executed, the underlying resources (e.g., various types of processors) implementing the nodes will implement the deployment of various types of nodes in the blockchain network and perform the functions of the various types of nodes, thereby implementing ledgers for transactions in business processes and various applications based on the ledgers.
By way of example, executable instructions may be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, in the form of software (including system programs and applications), software modules, scripts, plug-ins, and the like, and may be deployed in any form, including as a stand-alone program or as a module, component, or other unit suitable for use in a computing environment.
Data layer 104 encapsulates various data structures that implement the ledger, including ledger data implemented in a file system, ledger state and presence proofs implemented in a database form.
Network layer 103 encapsulates point-to-point (P2P) network protocols, data propagation and verification mechanisms, access and authentication mechanisms, and service agent identities. The P2P network protocol realizes communication among nodes in the blockchain network, a data propagation mechanism ensures the propagation of transaction/transaction results in the blockchain network, and a data verification mechanism is used for realizing the reliability of data transmission among the nodes based on an encryption method (such as a digital certificate, a digital signature and a public key/private key pair); the access and authentication mechanism is used for managing the access and authentication of the terminal based on the identity of the service subject.
The consensus layer 102 encapsulates mechanisms for achieving consistency of transaction results propagated in the blockchain, including Proof of rights of arrival (PoS), Proof of workload (PoW), and Proof of authority of shares (DPoS), and supports pluggable consensus mechanisms.
The application layer 101 encapsulates various services that the blockchain network can implement, including transaction settlement, tracing, and evidence storage.
The blockchain network service platform for implementing the embodiment of the present invention is connected to a developer in various ways, and provides various graphical ways to deploy and manage the blockchain network, which is described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a developer accessing a blockchain network service platform 100 through a terminal 200 according to an embodiment of the present invention, where the terminal 200 of the developer connects a network (Web)220 interface of a Software Development Kit (SDK)/developer browser through a network 300 to a corresponding SDE/Web interface of a data layer 104 in the blockchain network service platform 100, supports local remote deployment of a blockchain network supporting a specific service in the terminal 200 of the developer, and displays management pages of various functions of the blockchain network service platform 100, including transaction feedback data corresponding to a contribution degree, in a graphical interface 210 of the terminal 200. The network 300 may include a wide area network or a local area network, or a combination thereof, and uses wireless links to transmit data.
After the functional architecture of the blockchain network service platform 100 and the access method of the blockchain network service platform 100 are explained, the implementation process of the transaction data processing method according to the embodiment of the present invention is continuously explained.
Fig. 3 is a schematic flow chart illustrating an implementation of a transaction data processing method according to an embodiment of the present invention, where the transaction data processing method is applicable to a blockchain network; as shown in fig. 3, the implementation flow of the transaction data processing method may include the following steps:
step 301: and determining the contribution degree of the first node to the public account based on the intelligent contract of the block chain network.
Here, the contribution degree is used to represent a ratio of the transaction data of the sub-account to which the first node belongs to the transaction data sum of the public account.
It should be noted that the first node is configured to characterize a service entity, such as an inside participant a, deployed in the blockchain network, corresponding to a participating service, and the number of the first node is at least two. During the process of transaction data processing, at least two first nodes sign an intelligent contract and issue the signed intelligent contract to the block chain network, so that the block chain network records the contribution degree of at least two first nodes to the public account.
In some embodiments of the present invention, before the determining the contribution degree of the first node to the public account in step 301, the transaction data processing method further includes: obtaining a first instruction, wherein the first instruction is used for instructing the first node to request data transaction with the public account; and controlling to transfer the transaction data in the sub-account number to which the first node belongs to the public account number based on the first instruction.
Here, after obtaining the first instruction, the method further comprises: abstracting the transaction data in the public account number based on an abstraction algorithm to obtain a corresponding abstract value; and encrypting the digest value through a private key of the sub-account to which the first node belongs to form a signature result.
Specifically, when a first node requests to perform data transaction with an external trader on the name of a public account, the first node signs transaction data in the public account by using a private key of the first node through a ring signature technology, and then external data transaction is realized through the transaction data stored in the public account. Here, because of the adoption of the ring signature technology, the transaction can be anonymous for external traders, and the identity of a trading initiator is not exposed. That is, the external transactor only knows the transaction request initiated by one of the internal participants, but does not know which user the transaction request is specifically initiated by, so that the external transaction can be concealed.
It should be noted that the ring signature can be understood as a simplified group signature, that is, at least two internal participants are regarded as members in the ring, and only ring members are present in the whole ring, no manager is present, and cooperation among the ring members is not needed to realize data transaction. Each ring member corresponds to a public and private key pair, and the public and private key pair comprises a public key and a private key corresponding to the public key. In the ring signature scheme, a signer firstly selects a temporary signer set, and then the signer signs the transaction data in the public account by using a private key of the signer and public keys of other members in the signature set, so that the transaction data in the public account has the non-forgeability.
In some embodiments of the invention, prior to obtaining the first instruction, the method further comprises: creating the public account number based on at least two of the first nodes initiating a first data transaction request;
and the public account and the sub-account to which the first node belongs have an association relationship.
In the embodiment of the invention, the internal participant realizes data transaction with the external transactor through the public wallet instead of the private wallet, so that the transaction process is transparent, and the data of the transaction is not easily tampered by a malicious attacker.
In some embodiments of the present invention, the first instruction may carry a first data transaction request initiated by the first node, and for controlling, based on the first instruction, to transfer transaction data in a sub-account to which the first node belongs to into the public account, the following may be implemented:
responding to the first data transaction request, and detecting whether the quantity of the transaction data in the public account meets a first set threshold value to obtain a detection result;
and when the detection result indicates that the number of the transaction data in the public account does not meet the first set threshold, transferring the transaction data in the sub-account to which the first node belongs to the public account so that the number of the transaction data in the public account meets the first set threshold.
In addition, it can be understood that the transaction data in the public account may be pre-stored, or when it is detected that the number of the transaction data in the public account does not satisfy the first set threshold when a data transaction request initiated by the first node is received, that is, when the number of the transaction data in the public account does not support the number required by the second node, the transaction data in the sub-account to which the first node belongs is transferred to the public account, so that the number of the transaction data in the public account satisfies the first set threshold, which is not limited herein.
In some embodiments of the invention, when it is determined that the detection result represents that the amount of transaction data in the public account number meets the first set threshold, the method further comprises: receiving a second data transaction request initiated by a second node;
and responding to the second data transaction request, and directly sending the requested transaction data to the second node through the public account.
Here, when it is detected that the amount of the transaction data in the public account number satisfies a first set threshold, that is, the amount of the transaction data in the public account number supports the amount required by the second node, the transaction between the sub-account number to which the first node belongs and the public account number may not be executed, but the transaction data requested by the second node is directly sent through the existing public account number.
Here, after transferring the transaction data in the sub-account to which the first node belongs to the public account, the method may further include: receiving a second data transaction request initiated by a second node;
and responding to the second data transaction request, and sending the requested transaction data to the second node through the public account.
It should be noted that when it is detected that the number of the transaction data in the public account does not satisfy the first set threshold, that is, the number of the transaction data in the public account does not support the number required by the second node, the transaction data in the sub-account to which the first node initiating the transaction request belongs is transferred to the public account, so that the public account has sufficient transaction data, and then the transaction data requested by the second node is sent through the existing public account.
Step 302: based on the contribution, corresponding transaction feedback data is determined.
In some embodiments of the present invention, before the determining the contribution degree of the first node to the public account in step 301, the transaction data processing method further includes: and establishing a corresponding relation between the contribution degree and the transaction feedback data.
For determining the corresponding transaction feedback data based on the contribution degree in this step 302, the following manners may be adopted:
when a transaction feedback request initiated by the first node is received, inquiring the corresponding relation according to the contribution degree of the first node to the public account, and determining transaction feedback data corresponding to the contribution degree of the first node to the public account.
Here, the contribution degree of the first node to the public account is recorded through the intelligent contract of the block chain network, so that when the public account generates profits or a participant, that is, the first node wants to recover funds, transaction feedback data which should be actually returned to the first node can be determined according to the contribution degree of the first node to the public account, and the problems of over-signed contracts and denial behaviors can be avoided.
Step 303: and distributing the transaction feedback data to the sub-account number of the first node.
By adopting the technical scheme of the embodiment of the invention, the contribution degree of the first node to the public account is determined through the intelligent contract of the block chain network, the effects of public and transparent transaction inside the public account in the data transaction process are realized, meanwhile, the transaction feedback data is processed on the first node according to the contribution degree of the first node to the public account, and the problems of excessive contract signing and denial behaviors in the related technology can be avoided.
The following describes in detail a specific implementation process of the transaction data processing method according to the embodiment of the present invention, taking the first node as the internal participant a and the second node as the external trader D.
Fig. 4 is a schematic flowchart of a specific implementation of a transaction data processing method according to an embodiment of the present invention, where the transaction data processing method is applicable to a blockchain network; as shown in fig. 4, a specific implementation flow of the transaction data processing method may include the following steps:
step 401: a common account number is created in a blockchain network.
Referring to fig. 5, fig. 5 is a schematic diagram of creating a public account according to an embodiment of the present invention, in the process of transaction data processing, internal participants A, B and C form a team or a group, sign an intelligent contract, and issue the signed intelligent contract onto the blockchain network, so that the blockchain network records the contribution of each internal participant to the public account. The inside participants A, B and C may freely select the amount of the transaction data stored in the public account according to the amount of their own transaction data, or may select not to store the transaction data.
It should be noted that the number of inside participants may be dynamically increased based on the intelligent contract of the blockchain network, and it is understood that, for each inside participant, a participating team or group may also be selected to quit, and when the selection quits, if the contribution degree of the participant to the public account is recorded in the intelligent contract of the blockchain network, the blockchain network returns transaction feedback data corresponding to the participant through the public account, such as fund share.
Step 402: a request initiated by an inside participant a to conduct a data transaction with an outside trader D via a public account number is received.
Here, when initiating a data transaction request, the inside participant a may sign the transaction data in the public account by using its own private key through a ring signature technique. Due to the adoption of the ring signature technology, the transaction can be anonymous for the external trader D, and the identity of the transaction initiator A is not exposed. That is, the external transactor D knows only the transaction request initiated by one of the internal participants, but does not know that the transaction request is specifically initiated by the internal participant a, thereby realizing the concealment of the external transaction.
Step 403: it is checked whether the amount of transaction data in the public account number meets the amount required by the external trader D, if so, step 407 is performed, otherwise step 404 is performed.
Step 404: and detecting whether the quantity of the transaction data in the sub-account number of the internal participant A meets the quantity required by the external trader D, if so, executing the step 405, and otherwise, executing the step 408.
Step 405: and transferring the transaction data in the sub-account number to which the internal participant A belongs to the public account number so that the quantity of the transaction data in the public account number meets the quantity required by the external trader D.
Step 406: and recording the contribution degree of the internal participant A to the public account based on the intelligent contract of the block chain network.
Here, the contribution degree is used for representing the proportion of the transaction data of the sub-account number to which the internal participant a belongs to the transaction data sum of the public account number.
As shown in fig. 6, fig. 6 is a schematic diagram of transaction feedback data returned according to an embodiment of the present invention, in some embodiments of the present invention, when a transaction feedback request initiated by an inside participant a is received, corresponding transaction feedback data may be determined according to a contribution degree of the inside participant a to a public account, and the determined transaction feedback data is distributed to a sub-account to which the inside participant a belongs through the public account.
The contribution degree of the internal participant A to the public account is recorded through the intelligent contract of the block chain network, so that when the public account generates profits or the internal participant A wants to recover funds, transaction feedback data which should be actually returned to the internal participant A can be determined according to the contribution degree of the internal participant A to the public account, and the problems of over-signed contracts and denial behaviors can be avoided.
Step 407: the amount of transaction data required by the external trader D is transferred via the common account number.
Step 408: the transaction processing flow ends.
By adopting the technical scheme of the embodiment of the invention, the contribution degree of the first node to the public account is determined through the intelligent contract of the block chain network, the effects of public and transparent transaction inside the public account in the data transaction process are realized, meanwhile, the transaction feedback data is processed on the first node according to the contribution degree of the first node to the public account, and the problems of excessive contract signing and denial behaviors in the related technology can be avoided.
In order to implement the above transaction data processing method, an embodiment of the present invention further provides a transaction data processing apparatus, fig. 7 is a schematic functional structure diagram of the transaction data processing apparatus provided in the embodiment of the present invention, and as shown in fig. 7, the transaction data processing apparatus includes: a first determination module 71, a second determination module 72 and an assignment module 73. The functions of the program modules will be described below.
The first determining module 71 is configured to determine, based on the smart contract of the blockchain network, a contribution degree of the first node to a public account, where the contribution degree is used to characterize a proportion of transaction data of a sub-account to which the first node belongs in a transaction data sum of the public account;
the second determining module 72 is configured to determine corresponding transaction feedback data based on the contribution degree;
the allocating module 73 is configured to allocate the transaction feedback data to the sub-account to which the first node belongs.
In some embodiments of the invention, the apparatus further comprises: an obtaining module, configured to obtain a first instruction before the first determining module 71 determines a degree of contribution of a first node to a public account, where the first instruction is used to instruct the first node to request a data transaction with the public account;
and the control module is used for controlling the transfer of the transaction data in the sub account number to which the first node belongs to the public account number based on the first instruction.
In some embodiments of the invention, the apparatus further comprises: the first establishing module is used for establishing the public account number based on at least two first nodes initiating a first data transaction request before the obtaining module obtains a first instruction;
and the public account and the sub-account to which the first node belongs have an association relationship.
In some embodiments of the present invention, the first instruction carries a first data transaction request initiated by the first node;
the control module includes: the detection submodule is used for responding to the first data transaction request, detecting whether the quantity of the transaction data in the public account number meets a first set threshold value or not, and obtaining a detection result;
and the transfer-in submodule is used for transferring the transaction data in the sub account number to which the first node belongs to the public account number when the detection result indicates that the number of the transaction data in the public account number does not meet the first set threshold value, so that the number of the transaction data in the public account number meets the first set threshold value.
In some embodiments of the invention, the apparatus further comprises: the first receiving module is used for receiving a second data transaction request initiated by a second node after the transfer sub-module transfers the transaction data in the sub-account number to which the first node belongs to the public account number;
and the first sending module is used for responding to the second data transaction request and sending the requested transaction data to the second node through the public account.
In some embodiments of the invention, the apparatus further comprises: the second establishing module is used for establishing a corresponding relation between the contribution degree and the transaction feedback data before the first determining module determines the contribution degree of the first node to the public account;
the second determining module 72 is specifically configured to: when a transaction feedback request initiated by the first node is received, inquiring the corresponding relation according to the contribution degree of the first node to the public account, and determining transaction feedback data corresponding to the contribution degree of the first node to the public account.
In some embodiments of the invention, the apparatus further comprises: the second receiving module is used for receiving a second data transaction request initiated by a second node when the detection result indicates that the quantity of the transaction data in the public account number meets the first set threshold;
and the second sending module is used for responding to the second data transaction request and directly sending the requested transaction data to the second node through the public account.
It should be noted that: in the transaction data processing device provided in the above embodiment, when processing transaction data, only the division of the above program modules is taken as an example, and in practical applications, the processing distribution may be completed by different program modules according to needs, that is, the internal structure of the transaction data processing device is divided into different program modules to complete all or part of the above-described processing. In addition, the transaction data processing apparatus and the transaction data processing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described in detail herein.
In practical applications, each of the program modules may be implemented by a CPU, a microprocessor Unit (MPU), a Digital Signal Processor (DSP), an FPGA, or the like on the server.
In order to implement the above transaction data processing method, an embodiment of the present invention further provides a hardware structure of a transaction data processing apparatus. A transaction data processing apparatus, which may be implemented in various forms of servers, implementing embodiments of the present invention will now be described with reference to the accompanying drawings. In the following, the hardware structure of the transaction data processing device according to the embodiment of the present invention is further described, it is to be understood that fig. 8 only shows an exemplary structure of the transaction data processing device, and not a whole structure, and a part of or the whole structure shown in fig. 8 may be implemented as needed.
Referring to fig. 8, fig. 8 is a schematic diagram of a hardware structure of a transaction data processing apparatus according to an embodiment of the present invention, which may be applied to the aforementioned server running an application program in practical applications, where the transaction data processing apparatus 800 shown in fig. 8 includes: at least one processor 801, memory 802, a user interface 803, and at least one network interface 804. The various components of the transaction data processing device 800 are coupled together by a bus system 805. It will be appreciated that the bus system 805 is used to enable communications among the components of the connection. The bus system 805 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 805 in fig. 8.
The user interface 803 may include, among other things, a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, or a touch screen.
It will be appreciated that the memory 802 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory.
The memory 802 in embodiments of the present invention is used to store various types of data to support the operation of the transaction data processing device 800. Examples of such data include: any computer program for operating on transaction data processing device 800, such as executable program 8021 and operating system 8022, programs implementing the transaction data processing methods of embodiments of the present invention may be included in executable program 8021.
The transaction data processing method disclosed by the embodiment of the invention can be applied to the processor 801 or implemented by the processor 801. The processor 801 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the transaction data processing method described above may be implemented by instructions in the form of hardware integrated logic circuits or software in the processor 801. The processor 801 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 801 may implement or perform the transaction data processing methods, steps and logic blocks provided in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the transaction data processing method provided by the embodiment of the invention can be directly embodied as the execution of a hardware decoding processor, or the execution of the hardware decoding processor and a software module in the decoding processor are combined. The software modules may be located in a storage medium located in the memory 802, and the processor 801 reads the information in the memory 802, and performs the steps of the transaction data processing method provided by the embodiment of the present invention in combination with the hardware thereof.
In the embodiment of the present invention, the transaction data processing apparatus 800 includes a memory 802, a processor 801, and an executable program 8021 stored on the memory 802 and capable of being executed by the processor 801, and when the processor 801 executes the executable program 8021, the transaction data processing apparatus implements: determining a contribution degree of a first node to a public account based on an intelligent contract of the block chain network, wherein the contribution degree is used for representing the proportion of transaction data of a sub-account to which the first node belongs in the transaction data sum of the public account; and determining corresponding transaction feedback data based on the contribution degree, and distributing the transaction feedback data to the sub-account number to which the first node belongs.
As an embodiment, the processor 801, when running the executable program 8021, implements: before determining the contribution degree of a first node to a public account, obtaining a first instruction, wherein the first instruction is used for indicating the first node to request data transaction with the public account; and controlling to transfer the transaction data in the sub-account number to which the first node belongs to the public account number based on the first instruction.
As an embodiment, the processor 801, when running the executable program 8021, implements: before the obtaining of the first instruction, creating the public account number based on at least two first nodes initiating a first data transaction request; and the public account and the sub-account to which the first node belongs have an association relationship.
As an embodiment, the processor 801, when running the executable program 8021, implements: the first instruction carries a first data transaction request initiated by the first node; responding to the first data transaction request, and detecting whether the quantity of the transaction data in the public account meets a first set threshold value to obtain a detection result; and when the detection result indicates that the number of the transaction data in the public account does not meet the first set threshold, transferring the transaction data in the sub-account to which the first node belongs to the public account so that the number of the transaction data in the public account meets the first set threshold.
As an embodiment, the processor 801, when running the executable program 8021, implements: after the transaction data in the sub-account to which the first node belongs are transferred to the public account, receiving a second data transaction request initiated by a second node; and responding to the second data transaction request, and sending the requested transaction data to the second node through the public account.
As an embodiment, the processor 801, when running the executable program 8021, implements: before determining the contribution degree of the first node to the public account, establishing a corresponding relation between the contribution degree and the transaction feedback data.
As an embodiment, the processor 801, when running the executable program 8021, implements: when a transaction feedback request initiated by the first node is received, inquiring the corresponding relation according to the contribution degree of the first node to the public account, and determining transaction feedback data corresponding to the contribution degree of the first node to the public account.
As an embodiment, the processor 801, when running the executable program 8021, implements: when the detection result indicates that the quantity of the transaction data in the public account number meets the first set threshold value, receiving a second data transaction request initiated by a second node; and responding to the second data transaction request, and directly sending the requested transaction data to the second node through the public account.
In an exemplary embodiment, an embodiment of the present invention further provides a storage medium, which may be a storage medium such as an optical disc, a flash memory, or a magnetic disc, and may be a non-transitory storage medium.
The storage medium has stored thereon an executable program 8021, which executable program 8021 when executed by the processor 801 implements: determining a contribution degree of a first node to a public account based on an intelligent contract of the block chain network, wherein the contribution degree is used for representing the proportion of transaction data of a sub-account to which the first node belongs in the transaction data sum of the public account; and determining corresponding transaction feedback data based on the contribution degree, and distributing the transaction feedback data to the sub-account number to which the first node belongs.
As an embodiment, the executable program 8021 when executed by the processor 801 implements: before determining the contribution degree of a first node to a public account, obtaining a first instruction, wherein the first instruction is used for indicating the first node to request data transaction with the public account; and controlling to transfer the transaction data in the sub-account number to which the first node belongs to the public account number based on the first instruction.
As an embodiment, the executable program 8021 when executed by the processor 801 implements: before the obtaining of the first instruction, creating the public account number based on at least two first nodes initiating a first data transaction request; and the public account and the sub-account to which the first node belongs have an association relationship.
As an embodiment, the executable program 8021 when executed by the processor 801 implements: the first instruction carries a first data transaction request initiated by the first node; responding to the first data transaction request, and detecting whether the quantity of the transaction data in the public account meets a first set threshold value to obtain a detection result; and when the detection result indicates that the number of the transaction data in the public account does not meet the first set threshold, transferring the transaction data in the sub-account to which the first node belongs to the public account so that the number of the transaction data in the public account meets the first set threshold.
As an embodiment, the executable program 8021 when executed by the processor 801 implements: after the transaction data in the sub-account to which the first node belongs are transferred to the public account, receiving a second data transaction request initiated by a second node; and responding to the second data transaction request, and sending the requested transaction data to the second node through the public account.
As an embodiment, the executable program 8021 when executed by the processor 801 implements: before determining the contribution degree of the first node to the public account, establishing a corresponding relation between the contribution degree and the transaction feedback data.
As an embodiment, the executable program 8021 when executed by the processor 801 implements: when a transaction feedback request initiated by the first node is received, inquiring the corresponding relation according to the contribution degree of the first node to the public account, and determining transaction feedback data corresponding to the contribution degree of the first node to the public account.
As an embodiment, the executable program 8021 when executed by the processor 801 implements: when the detection result indicates that the quantity of the transaction data in the public account number meets the first set threshold value, receiving a second data transaction request initiated by a second node; and responding to the second data transaction request, and directly sending the requested transaction data to the second node through the public account.
It should be understood by those skilled in the art that the technical solutions described in the embodiments of the present invention may be arbitrarily combined without conflict.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or executable program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of an executable program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and executable program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by executable program instructions. These executable program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor with reference to a programmable data processing apparatus to produce a machine, such that the instructions, which execute via the computer or processor with reference to the programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These executable program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These executable program instructions may also be loaded onto a computer or reference programmable data processing apparatus to cause a series of operational steps to be performed on the computer or reference programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or reference programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (9)

1. A transaction data processing method is applied to a block chain network, and is characterized by comprising the following steps:
creating a public account number based on at least two first nodes initiating a first data transaction request;
determining a contribution degree of the first node to the public account based on an intelligent contract of the block chain network, wherein the contribution degree is used for representing the proportion of transaction data of a sub-account to which the first node belongs in the transaction data sum of the public account; the public account and the sub-account to which the first node belongs have an association relationship;
and determining corresponding transaction feedback data based on the contribution degree, and distributing the transaction feedback data to the sub-account number to which the first node belongs.
2. The transaction data processing method of claim 1, wherein prior to the determining the degree of contribution of the first node to the public account number, the method further comprises:
obtaining a first instruction, wherein the first instruction is used for instructing the first node to request data transaction with the public account;
and controlling to transfer the transaction data in the sub-account number to which the first node belongs to the public account number based on the first instruction.
3. The transaction data processing method of claim 2, wherein the first instruction carries a first data transaction request initiated by the first node;
the controlling, based on the first instruction, transfer of the transaction data in the sub-account to which the first node belongs to the public account includes:
responding to the first data transaction request, and detecting whether the quantity of the transaction data in the public account meets a first set threshold value to obtain a detection result;
and when the detection result indicates that the number of the transaction data in the public account does not meet the first set threshold, transferring the transaction data in the sub-account to which the first node belongs to the public account so that the number of the transaction data in the public account meets the first set threshold.
4. The transaction data processing method according to claim 3, wherein after the transferring the transaction data in the sub-account to which the first node belongs to the public account, the method further comprises:
receiving a second data transaction request initiated by a second node;
and responding to the second data transaction request, and sending the requested transaction data to the second node through the public account.
5. The transaction data processing method of claim 1, wherein prior to the determining the degree of contribution of the first node to the public account number, the method further comprises:
establishing a corresponding relation between the contribution degree and the transaction feedback data;
the determining, based on the contribution, corresponding transaction feedback data includes:
when a transaction feedback request initiated by the first node is received, inquiring the corresponding relation according to the contribution degree of the first node to the public account, and determining transaction feedback data corresponding to the contribution degree of the first node to the public account.
6. The transaction data processing method according to claim 3, wherein when it is determined that the detection result represents that the amount of transaction data in the public account number satisfies the first set threshold, the method further comprises:
receiving a second data transaction request initiated by a second node;
and responding to the second data transaction request, and directly sending the requested transaction data to the second node through the public account.
7. A transaction data processing apparatus for use in a blockchain network, the apparatus comprising: the system comprises a first establishing module, a first determining module, a second determining module and a distributing module; wherein the content of the first and second substances,
the first establishing module is used for establishing a public account number based on at least two first nodes initiating a first data transaction request;
the first determination module is used for determining the contribution degree of the first node to the public account based on the intelligent contract of the block chain network, wherein the contribution degree is used for representing the proportion of the transaction data of the sub-account to which the first node belongs in the transaction data sum of the public account; the public account and the sub-account to which the first node belongs have an association relationship;
the second determining module is used for determining corresponding transaction feedback data based on the contribution degree;
the distribution module is used for distributing the transaction feedback data to the sub-account number of the first node.
8. A transaction data processing apparatus comprising a memory, a processor and an executable program stored on the memory and executable by the processor, wherein the processor, when executing the executable program, performs the steps of the transaction data processing method of any of claims 1 to 6.
9. A storage medium having stored thereon an executable program, wherein the executable program, when executed by a processor, implements the steps of the transaction data processing method of any of claims 1 to 6.
CN201811605323.8A 2018-12-26 2018-12-26 Transaction data processing method and device and storage medium Active CN109711840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811605323.8A CN109711840B (en) 2018-12-26 2018-12-26 Transaction data processing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811605323.8A CN109711840B (en) 2018-12-26 2018-12-26 Transaction data processing method and device and storage medium

Publications (2)

Publication Number Publication Date
CN109711840A CN109711840A (en) 2019-05-03
CN109711840B true CN109711840B (en) 2021-08-06

Family

ID=66257780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811605323.8A Active CN109711840B (en) 2018-12-26 2018-12-26 Transaction data processing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN109711840B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599118A (en) * 2019-08-23 2019-12-20 深圳市新系区块链技术有限公司 Data processing method and device
CN113496398A (en) * 2020-03-19 2021-10-12 中移(上海)信息通信科技有限公司 Data processing method, device, equipment and medium based on intelligent contract
CN112581277A (en) * 2020-12-24 2021-03-30 中国银联股份有限公司 Data processing method and device
CN113869896A (en) * 2021-09-13 2021-12-31 中国移动通信集团云南有限公司 Public network and private network block chain network platform and building method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108876607A (en) * 2018-05-29 2018-11-23 阿里巴巴集团控股有限公司 Assets transfer method and device, electronic equipment
CN108985774A (en) * 2018-07-18 2018-12-11 百度在线网络技术(北京)有限公司 A kind of motivational techniques, device, equipment and the storage medium of block chain network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7996257B2 (en) * 2007-02-09 2011-08-09 International Business Machines Corporation Collecting, calculating, and reporting quantifiable peer feedback on relative contributions of team members
CN107679923A (en) * 2017-10-24 2018-02-09 浙江华信区块链科技服务有限公司 A kind of advertisement operation settlement system and method based on block chain technology

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108876607A (en) * 2018-05-29 2018-11-23 阿里巴巴集团控股有限公司 Assets transfer method and device, electronic equipment
CN108985774A (en) * 2018-07-18 2018-12-11 百度在线网络技术(北京)有限公司 A kind of motivational techniques, device, equipment and the storage medium of block chain network

Also Published As

Publication number Publication date
CN109711840A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN109711840B (en) Transaction data processing method and device and storage medium
CN109981679B (en) Method and apparatus for performing transactions in a blockchain network
US11030681B2 (en) Intermediate blockchain system for managing transactions
US10715317B2 (en) Protection of confidentiality, privacy and financial fairness in a blockchain based decentralized identity management system
ES2932500T3 (en) Select and secure test delegates for cryptographic functions
Liu et al. Elastic and cost-effective data carrier architecture for smart contract in blockchain
CN110166442B (en) Data processing method and device based on block chain
JP7228322B2 (en) Auto-commit transaction management in blockchain networks
CN110009498A (en) Resource allocation methods and device based on block chain
CN112381646A (en) Privacy transaction based on block chain and application method and device thereof
CN109614813B (en) Privacy transaction method and device based on block chain and application method and device thereof
CN111294379B (en) Block chain network service platform, authority hosting method thereof and storage medium
TW202046220A (en) Virtual resource allocation method and device based on block chain
US10970780B2 (en) Zero-knowledge predictions market
US11244311B2 (en) Decentralized smart resource sharing between different resource providers
CN110400217B (en) Rule change processing method and device for intelligent contract
CN113228076A (en) Block chain management system
CN111066050B (en) Retrieving value of digital ticket in blockchain networks using smart contracts
CN110263580B (en) Data processing method and device based on block chain and block chain link points
CN110796449A (en) Transaction processing method, system, medium and computing device
CA3118374A1 (en) Intelligent, decentralized and autonomous marketplace for distributed computing and storage
WO2022058183A1 (en) Integrating device identity into a permissioning framework of a blockchain
CN112613877A (en) Intelligent contract triggering method and device applied to block chain network and related equipment
CN114331397B (en) Information processing method, apparatus, electronic device and storage medium
CN115705571A (en) Protecting privacy of auditable accounts

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