CN111383019A - Transaction execution method and system based on alliance link network - Google Patents

Transaction execution method and system based on alliance link network Download PDF

Info

Publication number
CN111383019A
CN111383019A CN202010470182.4A CN202010470182A CN111383019A CN 111383019 A CN111383019 A CN 111383019A CN 202010470182 A CN202010470182 A CN 202010470182A CN 111383019 A CN111383019 A CN 111383019A
Authority
CN
China
Prior art keywords
transaction
execution
amount
fee
node
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.)
Pending
Application number
CN202010470182.4A
Other languages
Chinese (zh)
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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010470182.4A priority Critical patent/CN111383019A/en
Publication of CN111383019A publication Critical patent/CN111383019A/en
Priority to PCT/CN2021/096506 priority patent/WO2021239066A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/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

A transaction execution method and system based on a alliance-link network are disclosed. Each node in the alliance chain network determines an execution fee amount (or Gas) corresponding to a transaction to be executed, wherein the execution fee amount is positively correlated with the amount of computing resources required to execute the transaction and the amount of storage resources consumed by the storage transaction. When the node triggers the transaction account to be executed, the amount of the execution fee to be paid and the amount of the execution fee to be distributed to each node are determined for the user account initiating the transaction, and the determination result is written into the block chain.

Description

Transaction execution method and system based on alliance link network
Technical Field
The embodiment of the specification relates to the technical field of information, in particular to a transaction execution method and system based on a alliance link network.
Background
In the field Of block chain technology, a public chain network (e.g., bitcoin, ether house) usually employs a consensus algorithm Of Proof Of Work (POW) to achieve inter-node consensus.
Taking the ethernet as an example, each time a block needs to be packed in the network, each node strives for the right (also called an accounting right) of this block packing based on the POW algorithm, and after the block is packed, each node will synchronously execute the transaction in the block. In addition, the transaction is designated with the execution fee (or called fuel Gas) of the transaction, the node which wins the accounting right obtains the Gas designated in the transaction, and the node can exchange the owned Gas into the income (such as Ethernet currency).
Currently, a alliance chain network architecture gradually becomes an application mainstream, an alliance chain network usually does not support a POW algorithm, and each node in the alliance chain network usually realizes consensus based on a Practical Byzantine Fault-tolerant algorithm (PBFT).
Based on this, how to design a transaction execution technical process based on a alliance chain network so that the gates can still be utilized to stimulate the node to execute transactions under the PBFT mechanism is a technical problem to be solved.
Disclosure of Invention
In order to solve the problem that the existing transaction execution flow based on the alliance-link network cannot use Gas to stimulate the execution of the transaction by the node, an embodiment of the present specification provides a transaction execution method based on the alliance-link network, which is applied to each node in the alliance-link network, and the method includes:
acquiring a transaction to be executed;
determining an execution fee amount corresponding to the transaction, and triggering execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
after the transaction is triggered to be executed, determining the execution fee amount to be paid by a user account initiating the transaction based on the execution fee amount corresponding to the transaction, and calculating the execution fee amount to be distributed to each node based on a preset fee distribution rule and the execution fee amount corresponding to the transaction;
writing an amount of execution fees to be paid by a user account initiating the transaction and an amount of execution fees to be distributed to each node into a blockchain.
According to a 2 nd aspect of embodiments herein, there is provided a transaction execution method based on a plurality of federation chain networks, a node network including the plurality of federation chain networks, different federation chain networks including the same node or different nodes, the method including:
for each federation chain network, each node in the federation chain network performs:
acquiring a transaction to be executed;
determining an execution fee amount corresponding to the transaction, and triggering execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
after the transaction is triggered to be executed, determining the execution fee amount to be paid by a user account initiating the transaction based on the execution fee amount corresponding to the transaction, and calculating the execution fee amount to be distributed to each node based on a preset fee distribution rule and the execution fee amount corresponding to the transaction;
and writing the execution fee amount to be paid by the user account initiating the transaction and the execution fee amount to be distributed to each node into the block chain corresponding to the alliance chain network.
According to a 3 rd aspect of embodiments herein, there is provided a transaction execution system comprising a federation chain network;
each node in the federation chain network performs:
acquiring a transaction to be executed;
determining an execution fee amount corresponding to the transaction, and triggering execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
after the transaction is triggered to be executed, determining the execution fee amount to be paid by a user account initiating the transaction based on the execution fee amount corresponding to the transaction, and calculating the execution fee amount to be distributed to each node based on a preset fee distribution rule and the execution fee amount corresponding to the transaction;
writing an amount of execution fees to be paid by a user account initiating the transaction and an amount of execution fees to be distributed to each node into a blockchain.
According to a 4 th aspect of embodiments herein, there is provided a transaction execution system, comprising a network of nodes, the network of nodes comprising a plurality of federation chain networks, different federation chain networks including the same node or different nodes;
for each federation chain network, each node in the federation chain network performs:
acquiring a transaction to be executed;
determining an execution fee amount corresponding to the transaction, and triggering execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
after the transaction is triggered to be executed, determining the execution fee amount to be paid by a user account initiating the transaction based on the execution fee amount corresponding to the transaction, and calculating the execution fee amount to be distributed to each node based on a preset fee distribution rule and the execution fee amount corresponding to the transaction;
and writing the execution fee amount to be paid by the user account initiating the transaction and the execution fee amount to be distributed to each node into the block chain corresponding to the alliance chain network.
In the technical solution provided in the embodiment of the present specification, each node in the alliance chain network determines an execution fee amount (or referred to as Gas) corresponding to a transaction to be executed, and the execution fee amount is positively correlated with the amount of computing resources required to execute the transaction and positively correlated with the amount of storage resources consumed to store the transaction. When the node triggers the transaction account to be executed, the amount of the execution fee to be paid and the amount of the execution fee to be distributed to each node are determined for the user account initiating the transaction, and the determination result is written into the block chain.
Through the embodiment of the specification, the technical flow for exciting the nodes to execute the transaction under the PBFT mechanism of the alliance chain network is provided. In the technical process, firstly, every node participating in executing transaction can obtain Gas; secondly, not only the amount of the execution cost is determined by considering the amount of the calculation resources consumed by executing the transaction, but also the amount of the storage resources consumed by the subsequent storage transaction is determined (under the POW mechanism of the public link network, because only the node which strives for the accounting right obtains Gas, the amount of the storage resources consumed subsequently is not usually considered when determining Gas); and thirdly, writing the execution fee amount to be paid by the user account initiating the transaction and the execution fee amount to be distributed to each node into a block chain, and performing credible evidence storage on the expenditure and income conditions of the execution fee of each 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 embodiments of the invention.
In addition, any one of the embodiments in the present specification is not required to achieve all of the effects described above.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present specification, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a schematic flow diagram of a federation network-based transaction execution method;
fig. 2 is a schematic structural diagram of a transaction execution system provided in an embodiment of the present specification;
FIG. 3 is a block diagram of another transaction execution system provided by embodiments of the present disclosure;
fig. 4 is a schematic structural diagram of a transaction execution device provided in an embodiment of the present specification;
fig. 5 is a schematic structural diagram of a transaction execution device provided in an embodiment of the present specification;
fig. 6 is a schematic structural diagram of an apparatus for configuring a method according to an embodiment of the present disclosure.
Detailed Description
An application scenario of the present solution is explained here.
In the scheme, a certain organization can be used as an initiator of the alliance-link network to initiate the alliance-link network. Other enterprises may join the alliance-link network as parties to the alliance-link network for a fee or free. The institution acting as the initiator may provide a Gas redemption service for characterizing transaction execution fees in a federation chain network. Gas has a certain exchange ratio with real world legal currency, and the exchange ratio can be determined by the initiator.
The user may purchase Gas to the initiator so that Gas may be paid to nodes in the federation chain network as a transaction execution fee when initiating a transaction.
Gas owned by the user is stored in the user account, and Gas owned by the node is stored in the node account. Specifically, the user account and the node account may be centralized accounts registered on the server of the initiator or decentralized accounts registered in the federation chain network.
If the user account and the node account are decentralized accounts, when the user purchases Gas from the initiator, the initiator can initiate a recharging transaction through the node account controlled by the initiator, wherein the user account identifier and the recharged Gas amount are specified in the recharging transaction, and after the recharging transaction is written into a block chain of the alliance chain network, the Gas is added to the account of the user equivalently. If a user wants to exchange Gas in the decentralized account of the user back to the legal coin, cash transaction can be initiated through the user account of the user, user account identification and exchanged Gas amount are specified in the cash transaction, after the cash transaction is written into a block chain of a alliance chain network, the Gas is reduced in the account of the user, and the initiating party can return the corresponding legal coin to the user accordingly.
In addition, in practical application, the initiator may also initiate a node network, and other mechanisms may join the node network as joining parties. In the node network, there may be a plurality of federation chain networks, and different federation chain networks may include the same node or different nodes. Each alliance-link network maintains a corresponding blockchain. For example, for a node that may belong to both federation chain network A and federation chain network B, then the node maintains both the blockchain of federation chain network A and the blockchain of federation chain network B locally.
In the scheme, for nodes joining a alliance chain network, code logic needs to be deployed on the nodes and used for realizing operations related to execution fees, such as determining the amount of the execution fees, determining the amount of the execution fees to be paid by a user account initiating the transaction, calculating the amount of the execution fees to be distributed to each node, writing the amount of the execution fees to be paid by the user account initiating the transaction and the amount of the execution fees to be distributed to each node into a block chain, and the like.
The code logic may be written into an intelligent contract deployed on a node that, when executing a transaction based on the intelligent contract, also performs operations related to execution costs based on the intelligent contract. In addition, the logic code may also be written into firmware of the node, which performs the transaction based on the smart contract on the one hand and performs the operation related to the execution fee based on the local firmware on the other hand.
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present specification, the technical solutions in the embodiments of the present specification will be described in detail below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of protection.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flow chart of a method for executing a transaction based on a federation link network, comprising the following steps:
s100: a transaction to be performed is obtained.
The execution subject of the method shown in fig. 1 is each node in the federation chain network. Typically, a user initiates a transaction through his own user account, and the transaction is sent to a node of an organization to which the user interfaces, and the node of the organization further broadcasts the transaction over the entire network to the alliance-link network. After the nodes have completed consensus based on the PBFT algorithm, the consensus blocks are determined, and each node then needs to perform for each transaction in the block. The transaction to be performed may be any transaction in the block.
S102: and determining the execution fee amount corresponding to the transaction, and triggering the execution of the transaction.
Because the computing resources consumed by executing the transaction and the storage resources consumed by storing the transaction are costs paid by the nodes, the amount of the execution fee corresponding to the transaction needs to satisfy: positively correlated with the amount of computing resources consumed to perform the transaction, and/or positively correlated with the amount of storage resources consumed to store the transaction.
In practical applications, the user initiating the transaction may specify an amount of execution cost in the transaction, and the node may extract the amount of execution cost from the transaction. The amount of performance fees specified by the user in the transaction typically must not be greater than their account balance. Of course, the amount of the execution fee specified by the user in the transaction is also typically greater than the balance of the user's account, in excess of what is considered to be the liability of the user's account.
Further, the node may check whether the extracted execution charge amount is sufficient. For example, a node may calculate an execution cost amount based on the amount of computational resources consumed to execute the transaction and the amount of storage resources consumed to store the transaction, and refuse to trigger execution of the transaction if the calculated execution cost amount is greater than the extracted execution cost amount.
In addition, the amount of execution fee may not be specified in the transaction, but the amount of execution fee may be calculated by the node according to the amount of calculation resource consumed for executing the transaction and the amount of storage resource consumed for storing the transaction. If the amount of the execution fee calculated by the node exceeds the balance of the user account, the node can refuse to trigger the execution of the transaction, and can still trigger the execution of the transaction, but the exceeding part is used as the liability of the user account.
In the embodiment of the present specification, the amount of the execution fee corresponding to the transaction may also be positively correlated with the expected storage duration corresponding to the transaction. Since the longer the node stores the transaction, the higher the cost paid, the expected storage duration of the transaction is also considered as a factor influencing the execution fee amount corresponding to the transaction in the scheme.
S104: after the transaction is triggered to be executed, the execution fee amount to be paid by a user account initiating the transaction is determined based on the execution fee amount corresponding to the transaction, and the execution fee amount to be distributed to each node is calculated based on a preset fee distribution rule and the execution fee amount corresponding to the transaction.
The user account initiates a transaction, which is executed by each node in the blockchain network, essentially the user account pays a commission fee to each node to incentivize each node to execute the transaction.
It should be noted that step S104 is not a step of executing a transaction, and in practical applications, executing a transaction according to a service requirement corresponding to a transaction is not a key point of the present solution. The scheme focuses on how to obtain Gas and store the records of obtaining Gas while the nodes execute transactions.
In the embodiment of the present specification, the preset fee distribution rule may be specified according to actual needs. The allocation rule may be determined by negotiation of each node in the alliance-link network, or may be specified by an initiator node of the alliance-link network.
For example, the allocation rule may be: the amount of execution cost corresponding to the transaction/the number of nodes performing the transaction ×. the node distribution coefficient, and the remaining amount of execution cost is distributed to the initiator node. Assuming that the execution fee amount corresponding to the transaction is 90, the number of nodes executing the transaction is 3, the distribution coefficient of the node 1 is 50%, the distribution coefficient of the node 2 is 60%, and the distribution coefficient of the node 3 is 100%. Then node 1 assigns an amount of execution cost of 15, node 2 assigns an amount of execution cost of 18, and node 3 assigns an amount of execution cost of 30. Further, the remaining execution fee amount is 90-15-18-30= 27. Assuming node 1 is the initiator node, the amount of remaining execution cost for node 1 may also be allocated separately (27).
It should be noted that, in practical applications, a node in the federation link network may be down, which results in that the node does not actually execute the transaction, and for this situation, the corresponding execution cost amount still allocated to the down node may be set, or the corresponding execution cost amount is not allocated to the down node.
S106: writing an amount of execution fees to be paid by a user account initiating the transaction and an amount of execution fees to be distributed to each node into a blockchain.
In this embodiment of the present specification, the execution charge amount to be paid by the user account initiating the transaction and the execution charge amount to be allocated to each node are written into the blockchain, the execution charge condition of the transaction may be credited, the execution charge may be deducted from the user account based on the trusted crediting record on the blockchain, and the execution charge may be added to the node account of each node.
It should be noted that, the node may write the execution fee amount to be paid by the user account initiating the transaction and the execution fee amount to be allocated to each node into the transaction execution result of the transaction; wherein the transaction and the corresponding transaction execution result are written into the blockchain. This is equivalent to implementing step S106 because the node would typically execute the transaction based on the smart contract, obtain the execution result, and write the transaction and the execution result into the block chain (generally, the transaction is written into the transaction tree in the block, and the execution result is anchored to the receipt tree in the block).
In addition, the node may also package the execution fee amount to be paid by the user account initiating the transaction and the execution fee amount to be allocated to each node into a deposit transaction, place the deposit transaction in a local cache, pack the deposit transaction into a block when waiting for the next consensus, and then write the deposit transaction into a block chain.
It should be further noted that the node account may initiate a cashing transaction so as to convert Gas in the node account into a legal coin, which is similar to the principle that a user exchanges Gas in a user account into a legal coin, and is not described again.
In the technical solution provided in the embodiment of the present specification, each node in the alliance chain network determines an execution fee amount (or referred to as Gas) corresponding to a transaction to be executed, and the execution fee amount is positively correlated with the amount of computing resources required to execute the transaction and positively correlated with the amount of storage resources consumed to store the transaction. When the node triggers the transaction account to be executed, the amount of the execution fee to be paid and the amount of the execution fee to be distributed to each node are determined for the user account initiating the transaction, and the determination result is written into the block chain.
Through the embodiment of the specification, the technical flow for exciting the nodes to execute the transaction under the PBFT mechanism of the alliance chain network is provided. In the technical process, firstly, every node participating in executing transaction can obtain Gas; secondly, not only the amount of the execution cost is determined by considering the amount of the calculation resources consumed by executing the transaction, but also the amount of the storage resources consumed by the subsequent storage transaction is determined (under the POW mechanism of the public link network, because only the node which strives for the accounting right obtains Gas, the amount of the storage resources consumed subsequently is not usually considered when determining Gas); and thirdly, writing the execution fee amount to be paid by the user account initiating the transaction and the execution fee amount to be distributed to each node into a block chain, and performing credible evidence storage on the expenditure and income conditions of the execution fee of each transaction.
In addition, the present specification further provides a transaction execution method based on multiple alliance-link networks, where a node network includes multiple alliance-link networks, and different alliance-link networks include the same node or different nodes, the method includes:
for each federation chain network, each node in the federation chain network performs:
acquiring a transaction to be executed;
determining an execution fee amount corresponding to the transaction, and triggering execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
after the transaction is triggered to be executed, determining the execution fee amount to be paid by a user account initiating the transaction based on the execution fee amount corresponding to the transaction, and calculating the execution fee amount to be distributed to each node based on a preset fee distribution rule and the execution fee amount corresponding to the transaction;
and writing the execution fee amount to be paid by the user account initiating the transaction and the execution fee amount to be distributed to each node into the block chain corresponding to the alliance chain network.
Fig. 2 is a schematic structural diagram of a transaction execution system provided in an embodiment of the present specification, including a federation chain network;
each node in the federation chain network performs:
acquiring a transaction to be executed;
determining an execution fee amount corresponding to the transaction, and triggering execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
after the transaction is triggered to be executed, determining the execution fee amount to be paid by a user account initiating the transaction based on the execution fee amount corresponding to the transaction, and calculating the execution fee amount to be distributed to each node based on a preset fee distribution rule and the execution fee amount corresponding to the transaction;
writing an amount of execution fees to be paid by a user account initiating the transaction and an amount of execution fees to be distributed to each node into a blockchain.
Fig. 3 is a schematic structural diagram of another transaction execution system provided in an embodiment of the present specification, which includes a node network including a plurality of federation chain networks, different federation chain networks including the same node or different nodes;
for each federation chain network, each node in the federation chain network performs:
acquiring a transaction to be executed;
determining an execution fee amount corresponding to the transaction, and triggering execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
after the transaction is triggered to be executed, determining the execution fee amount to be paid by a user account initiating the transaction based on the execution fee amount corresponding to the transaction, and calculating the execution fee amount to be distributed to each node based on a preset fee distribution rule and the execution fee amount corresponding to the transaction;
and writing the execution fee amount to be paid by the user account initiating the transaction and the execution fee amount to be distributed to each node into the block chain corresponding to the alliance chain network.
As shown in fig. 3, the blockchain 1 is a blockchain corresponding to the alliance-chain network 1, and the blockchain 2 is a blockchain corresponding to the alliance-chain network 2. A node in fig. 3 belongs to both the alliance-link network 1 and the alliance-link network 2, and therefore maintains both the blockchain 1 and the blockchain 2 locally.
Fig. 4 is a schematic structural diagram of a transaction execution device provided in an embodiment of the present specification, applied to each node in a federation chain network, where the device includes:
an obtaining module 401, which obtains a transaction to be executed;
the first processing module 402 determines the amount of the execution fee corresponding to the transaction, and triggers the execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
the second processing module 403, after triggering execution of the transaction, determines an execution charge amount to be paid by a user account initiating the transaction based on the execution charge amount corresponding to the transaction, and calculates an execution charge amount to be allocated to each node based on a preset charge allocation rule and the execution charge amount corresponding to the transaction;
a writing module 404, which writes the amount of the execution fee to be paid by the user account initiating the transaction and the amount of the execution fee to be allocated to each node into a block chain.
Fig. 5 is a schematic structural diagram of a transaction execution device provided in an embodiment of the present specification, where a node network includes multiple alliance-link networks, different alliance-link networks include the same node or different nodes, and for each alliance-link network, the device is applied to each node in the alliance-link network, and the device includes:
an obtaining module 501, which obtains a transaction to be executed;
a first processing module 502, which determines the execution fee amount corresponding to the transaction, and triggers the execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
the second processing module 503, after triggering execution of the transaction, determines an execution charge amount to be paid by a user account initiating the transaction based on the execution charge amount corresponding to the transaction, and calculates an execution charge amount to be allocated to each node based on a preset charge allocation rule and the execution charge amount corresponding to the transaction;
and a writing module 504, configured to write, into the blockchain corresponding to the alliance-chain network, an execution charge amount to be paid by a user account initiating the transaction and an execution charge amount to be allocated to each node.
Embodiments of the present specification also provide a computer device, which at least includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method shown in fig. 1 when executing the program.
Fig. 6 is a schematic diagram illustrating a more specific hardware structure of a computing device according to an embodiment of the present disclosure, where the computing device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Embodiments of the present description also provide a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the method shown in fig. 1.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
From the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present disclosure can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a service device, or a network device) to execute the methods described in the embodiments or some parts of the embodiments of the present specification.
The systems, methods, modules or units described in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, and the modules described as separate components may or may not be physically separate, and the functions of the modules may be implemented in one or more software and/or hardware when implementing the embodiments of the present disclosure. And part or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is only a specific embodiment of the embodiments of the present disclosure, and it should be noted that, for those skilled in the art, a plurality of modifications and decorations can be made without departing from the principle of the embodiments of the present disclosure, and these modifications and decorations should also be regarded as the protection scope of the embodiments of the present disclosure.

Claims (10)

1. A federation link network-based transaction execution method applied to each node in a federation link network, the method comprising:
acquiring a transaction to be executed;
determining an execution fee amount corresponding to the transaction, and triggering execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
after the transaction is triggered to be executed, determining the execution fee amount to be paid by a user account initiating the transaction based on the execution fee amount corresponding to the transaction, and calculating the execution fee amount to be distributed to each node based on a preset fee distribution rule and the execution fee amount corresponding to the transaction;
writing an amount of execution fees to be paid by a user account initiating the transaction and an amount of execution fees to be distributed to each node into a blockchain.
2. The method of claim 1, triggering execution of the transaction, comprising:
judging whether the balance corresponding to the user account is smaller than the execution fee amount corresponding to the transaction;
if not, triggering to execute the transaction.
3. The method of claim 1, wherein the amount of the performance fee for the transaction is positively correlated to the expected length of the storage period for the transaction.
4. The method according to claim 1, wherein writing an amount of execution cost to be paid by a user account initiating the transaction and an amount of execution cost to be allocated to each node into a block chain, specifically comprises:
writing an execution fee amount to be paid by a user account initiating the transaction and an execution fee amount to be distributed to each node into a transaction execution result of the transaction; wherein the transaction and the corresponding transaction execution result are written into the blockchain.
5. A transaction execution method based on multiple alliance-link networks, wherein a node network comprises multiple alliance-link networks, and different alliance-link networks comprise the same node or different nodes, the method comprising:
for each federation chain network, each node in the federation chain network performs:
acquiring a transaction to be executed;
determining an execution fee amount corresponding to the transaction, and triggering execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
after the transaction is triggered to be executed, determining the execution fee amount to be paid by a user account initiating the transaction based on the execution fee amount corresponding to the transaction, and calculating the execution fee amount to be distributed to each node based on a preset fee distribution rule and the execution fee amount corresponding to the transaction;
and writing the execution fee amount to be paid by the user account initiating the transaction and the execution fee amount to be distributed to each node into the block chain corresponding to the alliance chain network.
6. A transaction execution system comprising a federation chain network;
each node in the federation chain network performs:
acquiring a transaction to be executed;
determining an execution fee amount corresponding to the transaction, and triggering execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
after the transaction is triggered to be executed, determining the execution fee amount to be paid by a user account initiating the transaction based on the execution fee amount corresponding to the transaction, and calculating the execution fee amount to be distributed to each node based on a preset fee distribution rule and the execution fee amount corresponding to the transaction;
writing an amount of execution fees to be paid by a user account initiating the transaction and an amount of execution fees to be distributed to each node into a blockchain.
7. A transaction execution system comprising a network of nodes, the network of nodes comprising a plurality of federation chain networks, different federation chain networks including the same node or different nodes;
for each federation chain network, each node in the federation chain network performs:
acquiring a transaction to be executed;
determining an execution fee amount corresponding to the transaction, and triggering execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
after the transaction is triggered to be executed, determining the execution fee amount to be paid by a user account initiating the transaction based on the execution fee amount corresponding to the transaction, and calculating the execution fee amount to be distributed to each node based on a preset fee distribution rule and the execution fee amount corresponding to the transaction;
and writing the execution fee amount to be paid by the user account initiating the transaction and the execution fee amount to be distributed to each node into the block chain corresponding to the alliance chain network.
8. A transaction execution apparatus for use at each node in a federation chain network, the apparatus comprising:
the acquisition module acquires a transaction to be executed;
the first processing module is used for determining the execution fee amount corresponding to the transaction and triggering the execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
the second processing module is used for determining the amount of the execution fee to be paid by a user account initiating the transaction based on the amount of the execution fee corresponding to the transaction after triggering the execution of the transaction, and calculating the amount of the execution fee to be distributed to each node based on a preset fee distribution rule and the amount of the execution fee corresponding to the transaction;
and the writing module writes the execution charge amount to be paid by the user account initiating the transaction and the execution charge amount to be distributed to each node into the block chain.
9. A transaction execution apparatus, a network of nodes comprising a plurality of federation chain networks, different federation chain networks including the same node or different nodes, the apparatus being applied to each node in a federation chain network for each federation chain network, the apparatus comprising:
the acquisition module acquires a transaction to be executed;
the first processing module is used for determining the execution fee amount corresponding to the transaction and triggering the execution of the transaction; wherein the amount of the execution fee corresponding to the transaction is positively correlated with the amount of the computing resources consumed for executing the transaction and positively correlated with the amount of the storage resources consumed for storing the transaction;
the second processing module is used for determining the amount of the execution fee to be paid by a user account initiating the transaction based on the amount of the execution fee corresponding to the transaction after triggering the execution of the transaction, and calculating the amount of the execution fee to be distributed to each node based on a preset fee distribution rule and the amount of the execution fee corresponding to the transaction;
and the writing module is used for writing the execution fee amount to be paid by the user account initiating the transaction and the execution fee amount to be distributed to each node into the block chain corresponding to the alliance chain network.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the method of any one of claims 1 to 5.
CN202010470182.4A 2020-05-28 2020-05-28 Transaction execution method and system based on alliance link network Pending CN111383019A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010470182.4A CN111383019A (en) 2020-05-28 2020-05-28 Transaction execution method and system based on alliance link network
PCT/CN2021/096506 WO2021239066A1 (en) 2020-05-28 2021-05-27 Consortium blockchain network-based transaction execution method, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010470182.4A CN111383019A (en) 2020-05-28 2020-05-28 Transaction execution method and system based on alliance link network

Publications (1)

Publication Number Publication Date
CN111383019A true CN111383019A (en) 2020-07-07

Family

ID=71217694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010470182.4A Pending CN111383019A (en) 2020-05-28 2020-05-28 Transaction execution method and system based on alliance link network

Country Status (2)

Country Link
CN (1) CN111383019A (en)
WO (1) WO2021239066A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966538A (en) * 2020-10-20 2020-11-20 支付宝(杭州)信息技术有限公司 Block chain data recovery method and device
CN112015822A (en) * 2020-10-20 2020-12-01 支付宝(杭州)信息技术有限公司 Block chain data deleting method and device
CN112015823A (en) * 2020-10-20 2020-12-01 支付宝(杭州)信息技术有限公司 Block chain data deleting method and device
CN112015596B (en) * 2020-10-20 2021-05-28 支付宝(杭州)信息技术有限公司 Block chain data recovery method and device
CN112926967A (en) * 2021-03-18 2021-06-08 上海能链众合科技有限公司 Metering and paying method for block chain platform
CN113222574A (en) * 2021-05-11 2021-08-06 支付宝(杭州)信息技术有限公司 Remittance method and device based on block chain system
CN113222572A (en) * 2021-05-10 2021-08-06 支付宝(杭州)信息技术有限公司 Transaction execution method and device
CN113452769A (en) * 2021-06-23 2021-09-28 上海佩俪信息科技有限公司 Network layering method and system based on block chain
WO2021239066A1 (en) * 2020-05-28 2021-12-02 支付宝(杭州)信息技术有限公司 Consortium blockchain network-based transaction execution method, and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666248B (en) * 2022-05-18 2022-09-06 浙商银行股份有限公司 Allocation chain fragment transaction distribution method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180375869A1 (en) * 2017-06-27 2018-12-27 Alibaba Group Holding Limited Multi-blockchain network data processing
CN110599141A (en) * 2019-09-16 2019-12-20 上海保险交易所股份有限公司 Method, apparatus, system, and medium for allocating processing fees to nodes
CN110995408A (en) * 2019-12-19 2020-04-10 深圳市超算科技开发有限公司 Distributed computing method and system based on data encryption

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109447605A (en) * 2018-10-24 2019-03-08 百度在线网络技术(北京)有限公司 A kind of chain currency conversion method, apparatus, equipment and medium based on block chain
CN110298643A (en) * 2019-08-22 2019-10-01 深圳市先河系统技术有限公司 Service charge distribution method, device and storage medium based on block chain
CN111383019A (en) * 2020-05-28 2020-07-07 支付宝(杭州)信息技术有限公司 Transaction execution method and system based on alliance link network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180375869A1 (en) * 2017-06-27 2018-12-27 Alibaba Group Holding Limited Multi-blockchain network data processing
CN110599141A (en) * 2019-09-16 2019-12-20 上海保险交易所股份有限公司 Method, apparatus, system, and medium for allocating processing fees to nodes
CN110995408A (en) * 2019-12-19 2020-04-10 深圳市超算科技开发有限公司 Distributed computing method and system based on data encryption

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021239066A1 (en) * 2020-05-28 2021-12-02 支付宝(杭州)信息技术有限公司 Consortium blockchain network-based transaction execution method, and system
CN111966538A (en) * 2020-10-20 2020-11-20 支付宝(杭州)信息技术有限公司 Block chain data recovery method and device
CN112015822A (en) * 2020-10-20 2020-12-01 支付宝(杭州)信息技术有限公司 Block chain data deleting method and device
CN112015823A (en) * 2020-10-20 2020-12-01 支付宝(杭州)信息技术有限公司 Block chain data deleting method and device
CN112015596B (en) * 2020-10-20 2021-05-28 支付宝(杭州)信息技术有限公司 Block chain data recovery method and device
CN112926967A (en) * 2021-03-18 2021-06-08 上海能链众合科技有限公司 Metering and paying method for block chain platform
CN112926967B (en) * 2021-03-18 2024-02-02 上海零数众合信息科技有限公司 Metering and payment method for blockchain platform
CN113222572A (en) * 2021-05-10 2021-08-06 支付宝(杭州)信息技术有限公司 Transaction execution method and device
CN113222574A (en) * 2021-05-11 2021-08-06 支付宝(杭州)信息技术有限公司 Remittance method and device based on block chain system
CN113222574B (en) * 2021-05-11 2023-07-25 支付宝(杭州)信息技术有限公司 Money transfer method and device based on blockchain system
CN113452769A (en) * 2021-06-23 2021-09-28 上海佩俪信息科技有限公司 Network layering method and system based on block chain

Also Published As

Publication number Publication date
WO2021239066A1 (en) 2021-12-02

Similar Documents

Publication Publication Date Title
CN111383019A (en) Transaction execution method and system based on alliance link network
CN108876380B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
CN109242453B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
CN110163590B (en) Payment withholding method and device based on block chain, electronic equipment and storage medium
CN109377216B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
CN110147990B (en) Payment withholding subscription method and device based on block chain and electronic equipment
CN110458631B (en) Bill number distribution method and device based on block chain and electronic equipment
US20200193428A1 (en) Blockchain-based payment withholding and agreement signing method, apparatus, and electronic device
CN109961365B (en) Account receiving record processing method and system based on block chain intelligent contract
WO2020015409A1 (en) Method and apparatus for distributing copyright income based on block chain
CN110060153B (en) Data evidence storage method and system based on multiple block chain networks
CN111966757B (en) Method and device for managing storage space of intelligent contract account
US10733583B2 (en) Blockchain-based withholding operations
TW202018655A (en) Blockchain-based property execution method and system
CN112015822B (en) Block chain data deleting method and device
CN112015576A (en) Calling method and device of intelligent contract
CN111506580B (en) Transaction storage method based on centralized block chain type account book
CN111459948B (en) Transaction integrity verification method based on centralized block chain type account book
CN107392582B (en) Method and device for realizing resource transfer and method and device for realizing collection and payment
CN110020846A (en) A kind of transferred account service processing method and system
CN109615379B (en) Generating method and device of rejection processing system
CN112819632A (en) Block chain-based reimbursement expense segmentation method and device and electronic equipment
CN111966503B (en) Method and device for managing storage space of intelligent contract account
CN110599343B (en) Contract data processing method, related device and medium
CN112288565A (en) System, method and device for executing service

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40033159

Country of ref document: HK

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200707