Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," and the like in this disclosure are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The inventor of the present application has long studied to find that: there are a number of problems with blockchain transactions between blockchain nodes in the current blockchain project. The transactions spontaneously performed by both transaction parties in the blockchain are lack of trusted guarantee, and some malicious transactions are easy to cause property loss and privacy disclosure of the transaction parties, and the transaction efficiency of the blockchain is reduced. Ineffective transactions also waste the computational power of the blockchain nodes in the blockchain system, affecting the normal operation of the blockchain system. With the development of the blockchain, the more funds are consumed for maintaining the blockchain system, the less funds can be used for maintaining the blockchain system, which is not only unfavorable for the development of the blockchain system, but also can cause the breakdown of the blockchain system network. In order to solve these problems, the present application proposes at least the following embodiments.
Referring to fig. 1, fig. 1 is a schematic diagram of a blockchain system embodiment of the present application. The blockchain system 100 of the present embodiment includes a transaction platform 101, a management platform 102, and blockchain nodes 103.
The transaction platform 101 may provide a trusted transaction pathway for both parties to a transaction. The blockchain node 103 may transfer transaction funds to the transaction platform 101 when performing blockchain transactions, and the transaction platform 101 may keep the transaction funds and distribute the transaction funds after completing the transactions. The transaction platform 101 may also collect sales or purchase information of goods or services on the blockchain, and push the information to corresponding requesters or buyers to facilitate transactions between blockchain nodes 103, thereby improving transaction efficiency.
The blockchain system 100 of the present embodiment may include one or more transaction platforms 101, where different transaction platforms 101 may use the same digital currency for transactions or may use corresponding digital currencies for transactions, respectively. Transactions conducted between the various transaction platforms 101 may be isolated from each other to protect the privacy security of the transactions. The transaction platforms 101 can also alleviate the inefficiency of transactions caused by high concurrency of data in the blockchain system 100, which is beneficial to improving the transaction efficiency. Blockchain node 103 may participate in transactions for multiple transaction platforms 101.
The trading platform 101 may also deploy corresponding smart contracts that may be used to normalize the trading rules of the blockchain or the distribution rules of the trading funds. When the blockchain transaction is performed, the transaction platform 101 can perform the transaction or distribute the transaction funds by executing the corresponding intelligent contract, so that human intervention can be reduced, and the credibility of the blockchain transaction is improved.
In some embodiments, the transaction platform 101 may also provide an information distribution interface through which the blockchain node 103 may distribute merchandise or service information for transactions. For example, the buyer node may issue a purchase demand to the transaction platform 101, and the seller node obtains the transaction demand and then matches the purchase demand, and if the purchase demand is met, the transaction may be performed with the buyer node through the transaction platform 101. Alternatively, the seller node may issue the offered goods or services to the transaction platform 101, and the buyer node may initiate a transaction to the seller node through the transaction platform 101 upon purchase. The transaction platform 101 may also notify the seller node to provide the corresponding goods or services after receiving the transaction information of the buyer node.
In this embodiment, the blockchain node 103 performs a transaction through the transaction platform 101, and the transaction platform 101 may also collect corresponding commissions from the transaction funds for the administration of the transaction platform 101 to maintain the safe and stable operation of the transaction platform 101. The transaction platform 101 can also verify the identity legitimacy of both sides of the transaction when the transaction is performed, and perform the transaction when the identities of both sides of the transaction are legal, otherwise, the transaction can be terminated to ensure the security of the transaction. In addition, the transaction platform 101 is used for carrying out the transaction, so that the identity of the opposite party is not required to be known in the transaction process of the two parties, and the privacy security of the two parties is protected.
In this embodiment, the management platform 102 may manage the capital expenditure of the blockchain system 100. The funding balance of the blockchain system 100 is performed, for example, by a common account configured by the blockchain system 100, where funds can be used for blockchain governance. The management platform 102 may implement management of the monetary balance of the blockchain system 100 by managing public accounts. For example, the management platform 102 may place the collected transaction funds for the blockchain transaction into a public account and withdraw funds from the public account for use in administering the blockchain. The management platform 102 may be a particular node or organization thereof in the blockchain system 100. For example, the management platform 102 may be selected nodes of the blockchain system 100 that are stable in operation and high in credibility, which may collectively manage the capital expenditure of the blockchain system 100.
The management platform 102 may perform transfer, collection, payment, verification, etc. of funds to the blockchain system 100 to maintain stable development of digital currency in the blockchain system 100. For example, the management platform 102 may collect a portion of the transaction funds of the blockchain transaction, which may be used in the administration of the blockchain system 100 as a commission provided by the blockchain node 103 to maintain the stable and sustainable development of the blockchain system 100.
The management platform 102 may also set up a corresponding account for storing funds for the blockchain system 100. The management platform 102 may place the received transaction funds into a corresponding account for escrow. For example, the management platform 102 may place transaction funds into corresponding types of accounts according to the types of funds, so as to respectively manage the transaction funds of multiple types; or the management platform 102 may put the transaction funds transacted on the different transaction platforms 101 into different accounts to achieve funds isolation for the different transaction platforms 101.
In this embodiment, the blockchain system 100 provides a trusted transaction channel for blockchain transactions through the cooperation of the management platform 102 and the transaction platform 101, and performs trusted allocation on transaction funds, which is beneficial to improving the security of blockchain transactions.
The management platform 102 may also preset corresponding smart contracts for rules specifying the funding balance of the blockchain system 100. For example, the management platform 102 may perform management operations such as collection, payment, or verification of funds by executing smart contracts, which is advantageous for reducing human intervention and improving the security of funds and the reliability of funds management for the blockchain system 100.
In some embodiments, the management platform 102 may also be the transaction platform 101, where the management platform 102 in the blockchain system 100 may serve as the transaction platform 101 to provide a corresponding transaction channel for blockchain transactions and manage the distribution of transaction funds. In this embodiment, the blockchain system 100 includes a management platform 102 and blockchain nodes 103. The management platform 102 can fulfill the functions of the transaction platform 101, and the transaction involving the blockchain node 103 can be performed by the management platform 102.
In this embodiment, the blockchain node 103 may participate in transactions in the blockchain network, and may obtain corresponding goods or services by paying out funds for the transactions, or may obtain corresponding funds for paying out goods or services. The blockchain node 103 has a plurality of nodes and can participate in blockchain transactions through the transaction platform 101. When the blockchain node 103 carries out transaction through the transaction platform 101, the identity of the opposite party is not required to be known, and the transaction platform 101 provides trusted transaction guarantee, so that the privacy security of both parties of the transaction can be effectively protected.
The blockchain node 103 may also participate in transactions such as endorsing, ordering, packaging blocks, communicating or billing of the blockchain, and may also obtain corresponding rewards by participating in the blockchain transaction. For example, the blockchain node 103 may obtain a corresponding fund reward by participating in the packaging of the blocks, or obtain a corresponding endorsed fund reward by transacting endorsements; blockchain node 103 may participate in blockchain transactions with the accumulated funds as transaction funds.
In this embodiment, the blockchain node 103 may also include a light node, where the light node may participate in blockchain transaction, and transfer transaction information and transaction funds through the transaction platform 101, and after the transaction is completed, store blockchain data related to the transaction itself, without synchronizing a complete blockchain ledger, which is beneficial to saving calculation power and improving transaction efficiency of the blockchain node 103.
The blockchain system 100 of the embodiment is used for providing a trusted transaction channel by arranging the transaction platform 101, transaction funds of a transaction party can be transferred to the transaction platform 101 firstly and then distributed by the transaction platform 101, so that property loss caused by malicious transaction to the transaction party is effectively reduced, the safety and reliability of the transaction are improved, and direct contact of the transaction party and the transaction party can be avoided by the transaction platform 101, thereby being beneficial to protecting privacy safety of the transaction party and the transaction party; the management platform 102 on the blockchain may be used to govern the blockchain system 100 by collecting a portion of the transactional funds, which may be beneficial to promote stable and sustainable development of the blockchain system 100.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a blockchain transaction method according to the present application. The embodiment comprises the following steps:
s101: the first node transmits the transaction information and the transaction funds to the transaction platform.
In this embodiment, the first node may be any blockchain node in a blockchain system. The first node is used as a demand party to participate in blockchain transaction, and obtains corresponding goods or services through paying out funds. The first node may communicate with the transaction platform, send transaction information for purchasing goods or services to the transaction platform, and pay corresponding transaction funds to the transaction platform, thereby conducting blockchain transactions.
In this embodiment, the transaction information may include an address of both parties to the transaction, a transaction time, a transaction amount, goods or services of the transaction, other related information, and the like. The transaction information may be unilateral transaction information. For example, the transaction information is sent by the requesting party to the transaction platform and may include the address of the requesting party, the transaction amount, information regarding the desired goods or services, etc. After the first node transmits the transaction information to the transaction platform, the transaction platform can search a proper transaction party according to the transaction information to conduct the transaction.
In this embodiment, the transaction funds are funds paid by the first node based on the value of the purchased good or service. The total amount of transaction funds is not less than the corresponding transaction amount in the transaction. The first node may complete the payment at one time, or may pay in stages, etc. when paying the transaction funds. When the first node performs blockchain transaction, transaction funds can be paid to the transaction platform in advance, and the transaction platform performs funds keeping. After receiving the transaction funds, the transaction platform can verify whether the transaction funds meet the regulations, such as whether the transaction funds are enough, whether the transaction funds are legal and effective, and the like, and if the regulations are met, the transaction is continued.
S102: the trading platform generates a trading contract based on the trading information.
In this embodiment, the transaction platform may provide a blockchain transaction channel. The transaction platform is deployed with corresponding intelligent contracts, and after transaction information is received, the transaction contracts of the transaction can be generated by calling the intelligent contracts on the blockchain.
The smart contracts may be used to normalize rules for blockchain transactions. Including, for example, the terms of the transaction, the manner of execution, the method of processing the incomplete transaction, etc. The smart contract may also specify payment or distribution rules for the transaction funds, including, for example, the manner of payment for the transaction funds, the payment address, the proportion of payment to the seller to the transaction platform and/or management platform, the time of payment, etc.
When the first node conducts a transaction, the transaction information is sent to the transaction platform to request the transaction. The transaction platform can also verify the correctness and legality of the transaction information after receiving the transaction information. For example, the transaction platform may verify that the transaction information is in the correct format, that the information is complete, that the identity or address of the transaction party is legitimate, that the amount of funds in the transaction is correct, and so on. The transaction platform can call the intelligent contract to generate a corresponding transaction contract when the transaction information is verified to be correct and legal.
S103: the trading platform executes a trading contract to transfer at least a portion of the trading funds to the second node.
The second node may be any blockchain node in the blockchain system, and the second node may be a supplier, participate in blockchain transactions, obtain corresponding rewards by providing goods or services, and the like. The second node may communicate with the transaction platform, provide the first node with a corresponding commodity or service upon receipt of a transaction message from the transaction platform, and obtain corresponding transaction funds. In some embodiments, the second node may also issue the provided goods or services to the transaction platform in advance, and the transaction platform notifies the second node to perform the transaction when receiving the corresponding transaction requirement of the first node, and the second node may obtain the corresponding transaction funds after performing the transaction.
In this embodiment, the transaction platform may execute the transaction contract to transfer at least a portion of the transaction funds to the second node when both parties to the transaction complete the transaction. For example, the trading platform may pay the second node for the corresponding trade funds as specified by the trade contract when the first node receives the goods or services of the second node and confirms that the trade is completed. Alternatively, the trading platform may execute trade contracts for distribution of trade funds at contracted times. For example, the trading platform may pay the corresponding trade funds to the second node a preset time, such as eight days, ten days, after receiving the trade contract.
The transaction platform transfers at least a portion of the transaction funds to the second node, which may be the entire payment of the transaction funds to the second node. Alternatively, the trading platform may pay a corresponding portion of the trading funds to the second node according to the proportion of the trading funds in the trading contract, and the remaining trading funds may be transferred to the management platform for use in managing blockchains. For example, the trading platform may also perform the following step S104.
S104: the trading platform transfers at least a portion of the remaining trade funds to the management platform.
In this embodiment, the management platform may be used to manage the fund balance of the blockchain system. The funds collected by the management platform can be used for managing the blockchain system to maintain the stable operation of the blockchain system. The trading platform may pay a portion of the trading funds to the second node after the trade is completed and transfer the remaining portion of the trading funds to the management platform. Or, after receiving the transaction funds, the transaction platform may transfer part of the transaction funds to the management platform in advance, and pay the corresponding transaction funds to the second node when the transaction is completed.
The transaction platform transfers part of transaction funds to the management platform, so that funds for managing the blockchain system can be continuously used without worrying about the influence of funds exhaustion on the normal operation of the blockchain, and the healthy, stable and sustainable development of the blockchain is facilitated. In some embodiments, the management platform may be integrated with the trading platform, which may leave the remaining trading funds for use in administering the blockchain system.
In some embodiments, the transaction platform may also collect a certain fee from the blockchain transaction for administration of the transaction platform to maintain safe and stable operation of the transaction platform. For example, the trading platform may also perform the following step S105.
S105: the trading platform receives at least a portion of the remaining trading funds for use in governance of the trading platform.
The transaction platform provides a trusted transaction channel for the transaction in the blockchain system, so that the blockchain node can conduct the transaction through the transaction platform when participating in the blockchain transaction, the transaction platform can also collect transaction funds, temporary storage service is provided for the transaction funds before the transaction is distributed, the security of the transaction funds is protected, and the funds loss caused by malicious transaction is reduced. In order to maintain the stable operation of the transaction platform, a safer and more reliable transaction channel is provided, and the transaction platform can collect part of commission from transaction funds for the treatment of the transaction platform.
In this embodiment, the transaction platform may pay a portion of the transaction funds to the second node after the transaction is completed, and may reserve a portion of the remaining transaction funds for use in administering the transaction platform. Or, the transaction platform may take out part of the transaction funds for standby in advance after receiving the transaction funds, and pay the rest of the transaction funds to the second node when the transaction is completed.
In the present embodiment, the steps of S104 and S105 may be performed by either one or both of them, and the order of execution is not limited. For example, the trading platform may pay a portion of the trading funds to the second node, leave the remaining trading funds or transfer the remaining trading funds to the management platform; or, the transaction platform may pay a portion of the transaction funds to the second node, leave a portion of the remaining transaction funds, and transfer another portion of the remaining transaction funds to the management platform, i.e., a portion of the transaction funds in the blockchain is used to govern the transaction platform and another portion is used to govern the blockchain system to maintain stable operation of the transaction platform and blockchain.
According to the embodiment, a trusted transaction channel is provided through the transaction platform, transaction funds of a transaction party can be transferred to the transaction platform first and then distributed by the transaction platform, so that property loss caused by malicious transaction to the transaction party is effectively reduced, and the safety and reliability of the transaction are improved. The transaction platform automatically distributes transaction funds by executing the transaction contract, so that human intervention can be reduced, and the credibility of transaction funds distribution is improved. The management platform on the blockchain can enable funds for managing the blockchain network to be continuous by collecting part of transaction funds, does not worry about the exhaustion of funds to influence the normal operation of the blockchain, and is beneficial to promoting the healthy, stable and sustainable development of the blockchain.
In this embodiment, the order of steps S101 to S105 is the description order in this embodiment, and is not limited to the order of the transaction method of the blockchain in this embodiment in the execution process, and some steps may be replaced, executed simultaneously or executed separately on the premise that the method can be implemented.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of a blockchain transaction method according to the present application. The present embodiment is further described based on the first embodiment of the transaction method of the blockchain of the present application, and the same steps as those of the first embodiment of the transaction method of the blockchain of the present application are not described herein. The embodiment comprises the following steps:
S201: the first node transmits the transaction information and the transaction funds to the transaction platform.
S202: the trading platform generates a trading contract based on the trading information.
S203: the transaction platform forms a transaction notification message based on the transaction information and sends the transaction notification message to the second node.
After the transaction platform receives the transaction information of the first node, a transaction notification message may be formed based on the transaction information. In this embodiment, the transaction notification message may include information of the goods or services being transacted, related information of the first node, transaction time limit, transaction amount, other related information, and the like. The transaction platform can extract relevant information in the transaction information and form a transaction notification message after receiving the transaction information. The transaction platform sends the transaction notification message to the second node so that the second node can execute the transaction in time.
In this embodiment, the first node sends the transaction information to the transaction platform, and the transaction platform notifies the second node to perform the transaction, so that direct contact between the two parties of the transaction can be avoided, privacy security of the two parties of the transaction can be protected, and the transaction platform can provide trusted keeping of the transaction funds, so as to protect the transaction funds security of the first node.
S204: the second node performs the transaction in accordance with the transaction notification message.
When the second node receives the transaction notification message, the second node can provide corresponding goods or services for the first node within a specified time according to the transaction content in the transaction notification message.
In this embodiment, when the transaction is completed, the transaction platform may allocate the transaction funds according to the specification of the transaction contract, for example, the following steps S207 to S209 are performed. Or, after notifying the second node to conduct the transaction, the transaction platform can also judge whether the transaction is completed correctly, so as to determine whether to conduct the allocation of the transaction funds. For example, the trading platform may also perform the following steps S205 or S205-S206 before distributing the trading funds.
S205: the transaction platform judges whether a transaction completion message is received within a first preset time.
In this embodiment, after notifying the second node to execute the transaction, the transaction platform may determine whether the transaction is completed by determining whether a transaction completion message of the first node is received. The transaction platform may time the transaction, for example, from the time of receiving the transaction information or from the time of sending the transaction notification message to the second node, and then determine whether the transaction completion message from the first node is received within a first preset time after starting the time counting. The first preset time is, for example, seven days or ten days, and if the transaction platform receives the transaction completion message of the first node within the first preset time, the transaction platform can determine that the transaction is completed correctly.
In this embodiment, the transaction completion message may include information about execution time, completion degree, and the like of the transaction. The transaction platform can also pay corresponding transaction funds to the second node according to the completion condition, such as the completion degree, of the transaction in the transaction completion message when the transaction completion message is received. For example, the first node sends a transaction completion message to the transaction platform indicating that the second node has completed only a portion of the transaction, and the transaction platform may pay the second node a corresponding portion of the transaction funds after confirmation; the transaction platform can also refund the transaction funds corresponding to the incomplete partial transaction to the first node, or pay the corresponding transaction funds to the second node when the transaction completion message of the rest partial transaction is subsequently received.
In this embodiment, if the transaction platform receives the transaction completion message from the first node within the first preset time, the following steps S207 to S209 may be executed to allocate transaction funds; if the transaction platform does not receive the transaction completion message from the first node within the first preset time, the following step S207 may not be performed, or the transaction platform may further determine whether the transaction is canceled, for example, the following step S206 may be performed.
S206: the transaction platform judges whether a transaction cancellation message is received within a second preset time.
In this embodiment, if the transaction platform does not receive the transaction completion message of the first node within the first preset time, it may further determine whether a transaction cancellation message is received within the second preset time, so as to determine whether the transaction is cancelled. The transaction cancellation message may include information regarding the reason for the cancellation of the transaction, the cancellation time, etc. The transaction cancellation message may be sent to the transaction platform by the first node or the second node when canceling the transaction.
In this embodiment, the second preset time is longer than the first preset time. The transaction platform may time the transaction, for example, from receipt of the transaction information or from sending a transaction notification message to the second node. The first preset time and the second preset time may adopt the same timing mode, and the second preset time is greater than the first preset time. For example, the first preset time is seven days, the second preset time may be ten days, and if the transaction platform does not receive the transaction completion message within seven days, it is further determined whether a transaction cancellation message is received within ten days.
In this embodiment, if the transaction platform does not receive the transaction completion message in the first preset time or the transaction cancellation message in the second preset time, the transaction platform may pay the corresponding transaction funds to the second node according to the rule of the transaction contract, for example, execute the following step S207; or the transaction platform may also confirm to the first node and/or the second node whether the transaction is complete to determine whether to conduct the allocation of funds for the transaction. If the transaction platform receives the transaction cancellation message of the first node or the second node within the second preset time, the transaction platform determines that the transaction is cancelled, and the following step S207 may not be performed. Alternatively, the transaction platform may also refund the transaction funds when the transaction is cancelled, for example, by performing the following step S210.
S207: the trading platform executes a trading contract to transfer at least a portion of the trading funds to the second node.
In this embodiment, the transaction platform may further transfer at least a portion of the transaction funds to the second node within a third predetermined time after receiving the transaction completion message. The third preset time is, for example, one day or three days. The transaction platform distributes transaction funds within the third preset time, and can provide proper buffer time for the transaction platform and the transaction parties to determine that the transaction is completed correctly.
In some embodiments, the transaction funds collected by the transaction platform can be used for other purposes to generate benefits in the time of keeping the transaction platform, so that the flexibility of the transaction platform for transaction funds management can be effectively improved, and the benefits generated by the transaction funds can be used for controlling the transaction platform to maintain the stable operation of the transaction platform.
S208: the trading platform transfers at least a portion of the remaining trade funds to the management platform.
S209: the trading platform receives at least a portion of the remaining trading funds for use in governance of the trading platform.
S210: the trading platform refunds at least a portion of the trade funds to the first node.
In this embodiment, if the transaction platform receives the transaction cancellation message of the first node or the second node, the transaction platform may also refund the corresponding transaction funds to the first node. For example, after the transaction platform receives the transaction cancellation message, the transaction platform can confirm to the first node or the second node, if it is determined that the transaction is cancelled, at least part of the transaction funds can be returned to the first node within a certain time, so that the benefit of the first node can be effectively protected, and the benefit loss of the first node caused by the transaction failure is reduced.
In this embodiment, when the transaction platform refunds transaction funds, the transaction funds can be totally refunded or partially refunded according to the rules of the transaction contract, and when the transaction platform refunds partially, the rest of the transaction funds can be reserved in the transaction platform or transferred to the management platform for treating the transaction platform or the blockchain system.
According to the embodiment, a trusted transaction channel is provided through the transaction platform, transaction funds of a transaction party can be transferred to the transaction platform first and then distributed by the transaction platform, so that property loss caused by malicious transaction to the transaction party is effectively reduced, and the safety and reliability of the transaction are improved. The transaction parties can conduct transaction through the transaction platform, direct contact of the transaction parties can be avoided, and privacy safety of the transaction parties can be protected. The transaction platform automatically distributes transaction funds by executing the transaction contract, so that human intervention can be reduced, and the credibility of transaction funds distribution is improved. The transaction platform can collect part of transaction commission for the treatment of the transaction platform, maintains the stable operation of the transaction platform, and is beneficial to improving the safety and the transaction efficiency of the transaction. The management platform can also enable the funds for managing the blockchain network to be continuous by collecting part of transaction funds, so that the normal operation of the blockchain is not influenced by exhaustion of the funds, and the healthy, stable and sustainable development of the blockchain is facilitated.
In this embodiment, the order of steps S201 to S210 is the description order in this embodiment, and is not limited to the order of the transaction method of the blockchain in this embodiment in the execution process, and some steps may be replaced, executed simultaneously or executed separately on the premise of being able to implement the method.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of a blockchain transaction method according to the present application. The embodiment comprises the following steps:
s301: the first node transmits the transaction information and the transaction funds to the transaction platform.
In this embodiment, the first node may send the transaction information and the transaction funds that participate in the blockchain transaction to the transaction platform, and execute the transaction through the transaction platform. For more details of this step, reference may be made to the description of S101, which is not repeated here.
S302: the trading platform transmits the trading information and at least a portion of the trading funds to the management platform.
In this embodiment, after the transaction platform receives the transaction information and the transaction funds, the transaction information and at least a portion of the transaction funds may be sent to the management platform, and the management platform may perform the allocation of the transaction funds. When the transaction platform transfers transaction funds, all the transaction funds can be transferred to the management platform, and the management platform distributes the transaction funds; alternatively, the transaction platform may also reserve a portion of the transaction funds as a commission according to the provision of the transaction contract, and transfer the remaining portion of the transaction funds to the management platform for distribution.
The transaction platform can deploy corresponding intelligent contracts, and after receiving the transaction information of the first node, the transaction platform can call the intelligent contracts to generate transaction contracts based on the transaction information. The trade contract may define a trade funds allocation rule, and the trade platform may execute the trade contract to allocate trade funds to send at least a portion of the trade funds to the management platform.
In some embodiments, after the transaction platform receives the transaction information and the transaction funds, the validity of the transaction information and the transaction funds may also be verified. For example, the transaction platform may verify the legitimacy of the identity of the transaction parties, the legitimacy of the goods or services being transacted, whether the funds of the transaction are sufficient, the legitimacy of other transaction content, and so forth. The transaction platform can send the transaction information and at least part of the transaction funds to the management platform after verifying that the transaction information and the transaction funds are legal. In some embodiments, if the transaction platform verifies that the transaction information is illegal, the transaction may be refused to be executed, so that the security of the blockchain transaction may be effectively improved.
In some embodiments, the transaction information received by the management platform may also be transmitted by the first node to the management platform. For example, the first node may send transaction information to the transaction platform and the management platform, respectively, when sending the transaction information. After receiving the transaction information and the transaction funds, the management platform can execute corresponding intelligent contracts to distribute the transaction funds.
S303: the management platform generates a transaction contract based on the transaction information.
In this embodiment, the management platform deploys a corresponding intelligent contract, and after receiving the transaction information, the management platform may generate a transaction contract for the transaction by calling the intelligent contract on the blockchain.
The smart contracts may be used to normalize rules for blockchain transactions. Including, for example, the terms of the transaction, the manner of execution, the method of processing the incomplete transaction, etc. The smart contract may also specify payment or distribution rules for the transaction funds, including, for example, the manner of payment for the transaction funds, the payment address, the proportion of payment to the seller to the transaction platform and/or management platform, the time of payment, etc. The management platform may invoke the intelligent contract of the blockchain to generate a transaction contract based on the transaction information after receiving the transaction information of the first node, so as to perform allocation of transaction funds according to rules of the transaction contract.
S304: the management platform executes the trade contract to transfer at least a portion of the trade funds to the second node.
The second node may be any blockchain node in the blockchain system, and the second node may be a supplier, participate in a blockchain transaction, and receive a corresponding reward by providing goods or services. The second node may provide the corresponding goods or services to the first node upon receipt of the transaction message.
The present embodiment is configured to distribute the transaction funds by a management platform, which may execute a transaction contract to pay at least a portion of the transaction funds to the second node after the transaction is completed. In this embodiment, after receiving the transaction funds, the management platform may pre-store the transaction funds into an account of the management platform, where the funds in the account may be used for managing the blockchain system, and when the transaction is completed, the management platform may pay corresponding funds from the account to pay to the second node, which is beneficial to flexible management of the funds of the blockchain system and to maintaining stable operation of the blockchain system.
S305: the management platform reserves at least a portion of the remaining transactional funds for use in managing the blockchain.
In this embodiment, the management platform may collect at least a portion of the remaining transaction funds according to rules of the transaction contract. Transaction funds collected by the management platform can be provided with a treatment blockchain, so that funds for treating the blockchain in the blockchain system can be continuously used, the normal operation of the blockchain is not influenced by exhaustion of funds, and the healthy, stable and sustainable development of the blockchain is promoted. In the embodiment, the management platform of the blockchain system distributes transaction funds, so that the credibility and the safety of transactions can be improved, and the property loss of blockchain nodes caused by malicious transactions can be reduced. And when the blockchain system is provided with a plurality of transaction platforms, transaction funds on the transaction platforms can be uniformly managed, so that fairness of blockchain transaction and safety of transaction funds are maintained. The management platform automatically distributes transaction funds by executing the transaction contract, so that human intervention can be reduced, and the credibility of transaction funds distribution is improved.
In this embodiment, the order of steps S301 to S305 is the description order in this embodiment, and is not limited to the order of the transaction method of the blockchain in this embodiment in the execution process, and some steps may be replaced, executed simultaneously or executed separately on the premise of being able to implement the method.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fourth embodiment of a blockchain transaction method of the present application. The present embodiment is further described based on the third embodiment of the transaction method of the blockchain of the present application, and the same steps as those of the third embodiment of the transaction method of the blockchain of the present application are not described herein. The embodiment comprises the following steps:
s401: the first node transmits the transaction information and the transaction funds to the transaction platform.
S402: the trading platform transmits the trading information and at least a portion of the trading funds to the management platform.
In this embodiment, the trading platform may send all the trade funds to the management platform, and the management platform distributes the trade funds. Or, the transaction platform can also send part of the transaction funds to the management platform, and the rest part of the transaction funds are reserved for the treatment of the transaction platform.
After receiving the transaction information of the first node, the transaction platform may generate a transaction notification message based on the transaction information and send the transaction notification message to the second node, so that the second node may execute the transaction in time.
S403: the management platform generates a transaction contract based on the transaction information.
S404: the management platform judges whether a transaction completion message is received within a first preset time.
In this embodiment, the transaction complete message may be issued by the first node upon confirmation of receipt of the corresponding good or service provided by the second node. The first node may send a transaction completion message to the transaction platform and the management platform; alternatively, the first node may send the transaction completion message to the transaction platform, which then forwards the transaction completion message to the management platform.
For the details of this step, reference may be made to the description of the step in the second embodiment S204 of the blockchain transaction method of the present application, and the management platform is used as the execution body to execute this step, which is not described herein again.
In this embodiment, if the management platform receives the transaction completion message from the first node or the transaction platform within the first preset time, the following step S406 may be executed to allocate the transaction funds; if the management platform does not receive the transaction completion message from the first node within the first preset time, the following step S406 may not be performed; or the management platform may further determine whether the transaction is canceled, for example, the following step S405 may be performed.
S405: the management platform judges whether the transaction cancellation message is received within a second preset time.
In this embodiment, if the management platform does not receive the transaction completion message of the first node within the first preset time, the management platform may further determine whether a transaction cancellation message is received within the second preset time, so as to determine whether the transaction is cancelled. The transaction cancellation message may include information regarding the reason for the cancellation of the transaction, the cancellation time, etc.
The transaction cancellation message may be from the first node, the second node, or the transaction platform. For example, the first node or the second node may send a transaction cancellation message to the management platform to cancel the transaction when the transaction cannot be completed correctly; or the first node or the second node sends a transaction canceling message to the transaction platform when the transaction cannot be completed correctly, and the transaction platform confirms and then sends the transaction canceling message to the management platform to cancel the transaction.
In this embodiment, the second preset time is longer than the first preset time. The first preset time and the second preset time may be the same timing manner, for example, from the management platform to the time when the transaction contract is received. For example, the first preset time may be five days, the second preset time may be ten days, and if the management platform does not receive the transaction completion message within five days of receiving the transaction contract, then further determines whether to receive the transaction cancellation message within ten days.
The first preset time and the second preset time in this embodiment are only used for description, and may be the same as or different from those in the second embodiment of the transaction method of the blockchain of the present application.
In this embodiment, if the management platform does not receive the transaction completion message in the first preset time and does not receive the transaction cancellation message in the second preset time, the management platform may pay the corresponding transaction funds to the second node according to the rules of the transaction contract, for example, perform the following step S406; or the management platform may further confirm to the first node, the second node, and/or the transaction platform whether the transaction is completed to determine whether to conduct the allocation of funds for the transaction. If the management platform receives the transaction cancellation message of the first node, the second node or the transaction platform within the second preset time, the management platform determines that the transaction is cancelled, and may not execute the following step S406. In some embodiments, the management platform may also refund the transaction funds upon cancellation of the transaction, for example, by performing the following step S409.
S406: the management platform executes the trade contract to transfer at least a portion of the trade funds to the second node.
In this embodiment, the management platform may further transfer at least a portion of the transaction funds to the second node within a third predetermined time after receiving the transaction completion message. The third preset time is, for example, one day or three days. The management platform distributes transaction funds within a third preset time, and can provide proper buffer time to ensure that the transaction is completed correctly. The third preset time in this embodiment is only for description, and may be the same as or different from the third preset time in the second embodiment of the transaction method of the blockchain of the present application.
In some embodiments, the transaction funds received by the management platform can be used for other purposes to generate benefits in the time of custody of the management platform, so that the flexibility of the management platform for transaction funds management can be effectively improved, and the benefits generated by the transaction funds can be used for controlling the blockchain system to maintain stable operation of the blockchain.
In this embodiment, when the transaction platform receives the transaction funds of the first node, the transaction funds may be all transferred to the management platform. The management platform may also pay the transaction funds portion to the second node and use the transaction funds remaining portion for administration of the blockchain or the transaction platform in accordance with rules in the transaction contract. For example, the management platform may perform the following steps S407 to S408.
S407: the management platform leaves a portion of the remaining transactional funds for use in managing the blockchain.
In this implementation, when the transaction is completed, the management platform may also collect a part of the remaining transaction funds according to the rules of the transaction contract, so as to be used for managing the blockchain and maintaining the stable development of the blockchain.
S408: the management platform transfers another portion of the remaining transactional funds to the transaction platform for use in administering the transaction platform.
The management platform may also transfer a portion of the transaction funds to the transaction platform for administration of the transaction platform. For example, the management platform may send a portion of the transaction funds to the transaction platform as a reward to the transaction platform according to rules of the transaction contract. Or, the management platform can also transfer corresponding transaction funds to the transaction platform for treating the transaction platform according to the requirements of the transaction platform.
In this embodiment, the transaction funds may be all distributed by the management platform, and the management platform may pay the corresponding transaction funds to the second node according to the transaction contract rule, and may also distribute the remaining transaction funds as required, for example, to the transaction platform for administration of the transaction platform or for administration and maintenance of the blockchain system. When the blockchain system is provided with a plurality of transaction platforms, the management platform can transfer part of transaction funds to the transaction platform corresponding to the transaction, so that the transaction platform can provide rewards of a trusted transaction channel, and the health and sustainable development of the transaction platform are facilitated.
In some embodiments, the trading platform may, upon transferring the trading funds to the management platform, reserve a portion of the trading funds for use in administering the trading platform and transfer the remaining portion of the trading funds to the management platform. The management platform may pay a portion of the received transaction funds to the second node and collect a remaining portion of the transaction funds for use in administering the blockchain.
The transaction platform reserves part of transaction funds, can be used for treating the transaction platform, maintains the stable operation of the transaction platform, and further protects the security of the transaction conducted on the transaction platform. Transaction funds reserved by the management platform can be used for maintaining and managing the blockchain system, so that funds for managing the blockchain network are continuous, the normal operation of the blockchain is not influenced by exhaustion of funds, and the healthy, stable and sustainable development of the blockchain is promoted.
S409: the management platform refunds at least a portion of the transaction funds to the first node.
In this embodiment, if the management platform receives the transaction cancellation message of the first node, the second node or the transaction platform, the management platform may also refund the corresponding transaction funds to the first node. For example, after receiving the transaction cancellation message, the management platform may confirm to the first node or the second node, and if it is determined that the transaction is cancelled, at least part of the funds of the transaction may be returned to the first node within a certain time, so that the benefit of the first node may be effectively protected, and the benefit loss of the first node caused by the transaction failure is reduced. When the management platform refunds transaction funds, the transaction funds can be totally refunded or partially refunded according to the regulations of the transaction contract, and when the transaction funds are partially refunded, the rest transaction funds can be reserved in the management platform for treating the blockchain system.
The embodiment provides a trusted transaction channel through the transaction platform, so that property loss caused by malicious transaction to a transaction party can be effectively reduced, and the safety and reliability of the transaction are improved. The transaction parties can conduct transaction through the transaction platform, direct contact of the transaction parties can be avoided, and privacy safety of the transaction parties can be protected. And the transaction funds are automatically distributed by executing the transaction contracts through the management platform, so that the credibility of the transaction funds distribution is effectively improved. The management platform can also enable the funds for managing the blockchain network to be continuous by collecting part of transaction funds, so that the normal operation of the blockchain is not influenced by exhaustion of the funds, and the healthy, stable and sustainable development of the blockchain is facilitated. The management platform can also transfer part of transaction funds to the transaction platform for the treatment of the transaction platform, maintain the stable operation of the transaction platform and improve the safety and the transaction efficiency of the transaction.
In this embodiment, the order of steps S401 to S409 is the description order in this embodiment, and is not limited to the order of the transaction method of the blockchain in this embodiment in the execution process, and on the premise that the method can be implemented, some steps may be exchanged, executed simultaneously or executed separately.
Referring to fig. 6, fig. 6 is a flowchart illustrating a fifth embodiment of a blockchain transaction method according to the present application. The embodiment takes a transaction platform as an execution main body, and comprises:
s501: the trading platform receives trading information and trading funds from the first node.
S502: the trading platform generates a trading contract based on the trading information.
S503: the trading platform executes a trading contract to transfer at least a portion of the trading funds to the second node.
S504: the trading platform transfers at least a portion of the remaining trade funds to the blockchain management platform for use in managing the blockchain.
In this embodiment, the management platform is used to manage the fund balance of the blockchain system.
For more execution steps and contents of the transaction platform in this embodiment, reference may be made to the descriptions of the first to fourth embodiments of the blockchain transaction method of the present application, and the description thereof will not be repeated here.
Referring to fig. 7, fig. 7 is a flowchart illustrating a sixth embodiment of a blockchain transaction method according to the present application. The management platform of this embodiment is an execution body, including:
s601: the management platform receives the transaction information and at least a portion of the transaction funds.
In this embodiment, the management platform is used to manage the fund balance of the blockchain system. The transaction information received by the management platform may be from a first node of the blockchain or a transaction platform of the blockchain, and at least a portion of the transaction funds may be transferred to the management platform after the transaction platform receives the transaction funds of the first node.
S602: the management platform generates a transaction contract based on the transaction information.
S603: the management platform executes the trade contract to transfer at least a portion of the trade funds to the second node.
S604: the management platform reserves at least a portion of the remaining transactional funds for use in managing the blockchain.
For more execution steps and contents of the management platform in this embodiment, reference may be made to the descriptions of the first to fourth embodiments of the blockchain transaction method of the present application, and the description thereof will not be repeated here.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of an electronic device according to the present application. The electronic device 80 of the present embodiment includes a processor 81, a memory 82 and a communication circuit 83, and the processor 81 is coupled to the memory 82 and the communication circuit 83.
In this embodiment, the communication circuit 83 is used for the electronic device 80 to communicate with the block link point device. The memory 82 is used to store program instructions. The processor 81 is configured to execute program instructions to implement the steps of the fifth embodiment to the sixth embodiment of the transaction method of the blockchain of the present application.
In the present embodiment, the processor 81 may also be referred to as a CPU (Central Processing Unit ). The processor 81 may be an integrated circuit chip with signal processing capabilities. Processor 81 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
For more execution processes and functions of the electronic device 80 in this embodiment, reference may be made to the descriptions of the fifth to sixth embodiments of the blockchain transaction method of the present application, and the description thereof is omitted herein.
Referring to fig. 9, fig. 9 is a schematic diagram of a computer storage medium according to an embodiment of the present application. The storage medium 90 in this embodiment is used to store program instructions 91. The program instructions 91 are capable of being executed by a processor to implement the steps of the fifth embodiment to the sixth embodiment of the blockchain transaction method of the present application as described above. The details of the fifth to sixth embodiments of the blockchain transaction method of the present application can be referred to above, and will not be described herein.
The methods according to the fifth through sixth embodiments of the blockchain transaction method of the present application may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium 90 includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or other devices including a mobile terminal or the like that can store program codes.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes using the descriptions and the drawings of the present application or directly or indirectly applied to other related technical fields are included in the scope of the present application.