WO2020029629A1 - 一种基于中心化结算与区块链存证的交易方法及系统 - Google Patents

一种基于中心化结算与区块链存证的交易方法及系统 Download PDF

Info

Publication number
WO2020029629A1
WO2020029629A1 PCT/CN2019/086866 CN2019086866W WO2020029629A1 WO 2020029629 A1 WO2020029629 A1 WO 2020029629A1 CN 2019086866 W CN2019086866 W CN 2019086866W WO 2020029629 A1 WO2020029629 A1 WO 2020029629A1
Authority
WO
WIPO (PCT)
Prior art keywords
log file
user
blockchain
spending
income
Prior art date
Application number
PCT/CN2019/086866
Other languages
English (en)
French (fr)
Inventor
杨新颖
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Priority to SG11202010868SA priority Critical patent/SG11202010868SA/en
Publication of WO2020029629A1 publication Critical patent/WO2020029629A1/zh
Priority to US17/085,833 priority patent/US20210049595A1/en

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/02Banking, e.g. interest calculation or account maintenance
    • 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/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • 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/02Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
    • 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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • 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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/403Solvency checks
    • G06Q20/4037Remote solvency checks
    • 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
    • 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/12Accounting

Definitions

  • the embodiments of the present specification relate to the field of information technology, and in particular, to a transaction method and system based on centralized settlement and blockchain certificate of deposit.
  • centralized settlement platforms such as banks, Alipay, etc.
  • users can query the settlement platform themselves Account income and expenditure records for reconciliation.
  • the revenue and expenditure records of user accounts stored by the settlement platform may be tampered with, and thus cannot be used as credible reconciliation credentials.
  • the embodiments of this specification provide a transaction method and system based on centralized settlement and blockchain certificate deposit.
  • a transaction method based on centralized settlement and blockchain certificate is provided.
  • the blockchain network includes a number of member nodes, and users register virtual resource accounts on designated member nodes. Methods include:
  • the designated member node receives a transaction request including a spending user ID of a spending user, a specified resource amount, and a income user ID of a income user; the spending user is a user spending the specified resource amount, and the income user is the income Users who specify the amount of resources;
  • the account balance modification operation is to deduct the specified resource amount from a virtual resource account corresponding to the spending user identifier And adding the specified resource amount to a virtual resource account corresponding to the revenue user identifier;
  • a transaction device based on centralized settlement and blockchain certificate is provided.
  • the blockchain network includes a number of member nodes, and users register virtual resource accounts on designated member nodes.
  • the device includes:
  • a receiving module receives a transaction request including a spending user ID of a spending user, a specified resource amount, and a income user ID of a revenue user; the spending user is a user spending the specified resource amount, and the income user is a revenue of the specified resource Amount of users;
  • the settlement module performs transaction feasibility verification according to the transaction request, and performs an account balance modification operation after the verification is passed; the account balance modification operation is to deduct the account resource from the virtual resource account corresponding to the spending user identifier Specify a resource amount, and add the specified resource amount to a virtual resource account corresponding to the revenue user identifier;
  • the certificate storage module generates a log file for recording the account balance modification operation, and broadcasts the log file to the blockchain network, so that each member node publishes the log file to the blockchain based on a consensus mechanism .
  • a transaction system based on centralized settlement and blockchain certificate which includes a blockchain network composed of several member nodes, and users can register virtual resource accounts on designated member nodes ;
  • the designated member node receives a transaction request including a spending user ID of a spending user, a specified resource amount, and a income user ID of a income user, the spending user is a user spending the specified resource amount, and the income user is income
  • the user of the specified resource amount verifying the transaction feasibility according to the transaction request, and after the verification is passed, performing an account balance modification operation, the account balance modification operation is from the virtual resource corresponding to the spending user identifier Deduct the amount of the specified resource from the account, and add the amount of the specified resource to the virtual resource account corresponding to the revenue user ID; generate a log file for recording the account balance modification operation, and upload the log file to the blockchain Webcast the log file;
  • the other member nodes and the designated member node publish the log file to the blockchain based on a consensus mechanism.
  • the blockchain network includes several member nodes, and users register virtual resource accounts on designated member nodes.
  • the designated member node receives the transaction request, the transaction feasibility verification is performed for the transaction request, and after the verification is passed, the account balance modification operation is performed, that is, the designated member node is deducted from the virtual resource account corresponding to the spending user ID.
  • the designated member node also generates a log file for recording the account balance modification operation, and broadcasts the log file to the blockchain network, so that each member node publishes the log file based on a consensus mechanism. To the blockchain.
  • the log file generated when the designated member node performs transaction settlement will be published to the blockchain for deposit certification, which is equivalent to the user account stored by the centralized settlement platform will be published to the block Chain for depository. Therefore, the revenue and expenditure records of user accounts are difficult to be tampered with and can be used as credible reconciliation credentials.
  • FIG. 1 is a schematic flowchart of a transaction method based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification;
  • FIG. 2a is an example flowchart of a transaction method based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification
  • FIG. 2b is an example flowchart of another transaction method based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification
  • FIG. 2c is an example flowchart of another transaction method based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification;
  • FIG. 3 is a schematic flowchart of another transaction method based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification
  • FIG. 4 is a schematic flowchart of another transaction method based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification
  • FIG. 5 is a schematic structural diagram of a transaction device based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification
  • FIG. 6 is a schematic structural diagram of a transaction device based on centralized settlement and blockchain certificate storage provided by an embodiment of this specification
  • FIG. 7 is a schematic structural diagram of another transaction device based on centralized settlement and blockchain certificate storage provided by an embodiment of the present specification.
  • FIG. 8 is a schematic structural diagram of a transaction system based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification.
  • FIG. 9 is a schematic structural diagram of another transaction system based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification.
  • FIG. 10 is a schematic structural diagram of another transaction system based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification.
  • FIG. 11 is a schematic structural diagram of a computer device for configuring the method shown in FIG. 1.
  • FIG. 1 is a schematic flowchart of a transaction method based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification, including the following steps:
  • the designated member node receives a transaction request including a spending user identification of the spending user, a specified resource amount, and a income user identification of the income user.
  • the blockchain network includes several member nodes.
  • a “node” may be a device or multiple devices managed by a management party (person or organization), and the management parties corresponding to each member node are usually different.
  • the user has registered a virtual resource account on a designated member node.
  • the designated member node may be designated according to actual business needs. For example, assuming that the blockchain network is an alliance chain network composed of 10 financial institutions (including banks, electronic payment platforms, etc.), the member nodes managed by the electronic payment platform can be designated as designated member nodes, and the user is on the electronic payment platform Registered with a virtual resource account.
  • the virtual resources described in this article are not limited to electronic money, but can also be points, game coins, virtual items, and so on. In short, according to actual business rules, users can use any virtual resource as a transaction medium to conduct transactions.
  • the designated member node can receive the transaction request sent by the spending user, or the transaction request sent by the income user.
  • the transaction request usually includes a spending user ID of a spending user, a specified resource amount, and a income user ID of a revenue user, the spending user is a user spending the specified resource amount, and the income user is a revenue of the specified resource Amount of users.
  • S102 Perform a transaction feasibility verification according to the transaction request, and perform an account balance modification operation after the verification is passed.
  • transaction feasibility verification refers to verifying whether the transaction is reasonable and executable, which mainly includes verifying whether the account balance of the spending user is sufficient.
  • other matters of the transaction may also be the content of feasibility verification, such as whether the spending user has authority. If verified, the transaction is reasonably executable.
  • the account balance modification operation is performed, that is, the specified resource amount is deducted from the virtual resource account corresponding to the spending user ID, and the corresponding income user ID is correspondingly Adding the specified resource amount to the virtual resource account of.
  • S104 Generate a log file for recording the account balance modification operation, and broadcast the log file to the blockchain network.
  • a log file is a log file or a collection of files used to record operation events of a software system (such as a Windows system, a business logic processing system, a database management system, etc.).
  • the log file is generally a .log extension. document.
  • the log file may be broadcast to the blockchain network, so that each member node publishes the log file to the blockchain based on a consensus mechanism.
  • each member node can publish the log file to the blockchain based on the consensus mechanism.
  • steps S102 and S104 is not limited. After step S102 is performed, step S104 may be performed, or after step S104 is performed, step S102 may be performed, and steps S102 and S104 may be performed simultaneously.
  • FIG. 2a is a flowchart illustrating an example of a transaction method based on centralized settlement and blockchain certificate deposit provided by an embodiment of the present specification.
  • the blockchain network is composed of multiple (6 shown in the figure) member nodes, where the solid points are designated member nodes and the hollow points are other member nodes except designated member nodes.
  • the spending user can initiate a transaction and send a transaction request to a designated member node.
  • the designated member node first performs an account balance modification operation locally, and generates a log file recording the account balance modification operation, and then broadcasts the log file to The entire network enables each member node to publish the log file to its own blockchain. It is worth emphasizing that designated member nodes need to perform feasibility verification on transactions, and the blockchain network does not need to perform feasibility verification on transactions.
  • the designated member node may generate a log file summary corresponding to the log file by using a hash algorithm according to the log file, and then broadcast the log file and the log file to the blockchain network.
  • the log file summary enables each member node to publish the log file and the log file summary to a blockchain based on a consensus mechanism.
  • the designated member node may send the log file summary to the spending user and / or the income user, so that the spending user and / or the income user use the log file summary to the blockchain Query the log file.
  • the log file summary can be used as an identifier of the log file. After the log file summary is provided to the spending user and / or the income user, the spending user or the income user can use the The log file summary is a clue, and the log file is queried from the blockchain to determine that the designated member node has performed the account balance modification operation.
  • each member node will be stored in its own cache (or transaction pool) by itself, and when the specified consensus trigger condition is met (such as after a specified period), Based on the consensus mechanism, each member node will elect a member node to extract a number of log files from the transaction pool and corresponding log file summaries into a block, and broadcast the block to the entire network, so that each member node separates the block separately.
  • the above-mentioned log files and log file summary will be stored.
  • the designated member node may, after determining that the log file is published to the blockchain, then send the log file summary to the spending user and / or the Revenue users.
  • the spending user and / or income user when the spending user and / or income user receives the log file summary sent by the designated member node, it means that the transaction is successful. If the spending user and / or income user do not receive the log file summary, even if the designated member node has performed the account balance modification operation, it does not mean that the transaction is successful (because the log file has not been published to the block chain).
  • the designated member node may also send the log file summary to the spending user and / or the income user after determining that the log file is packaged into a block.
  • the designated member node may include a business logic execution module, a database management module, and a blockchain function module.
  • the business logic execution module is responsible for externally connecting users and processing services according to the user's service request.
  • the business logic execution module is usually software installed on the designated member node, or may be the designated member node. Hardware components.
  • the database management module is responsible for managing the local database of the designated member node, such as modifying data in the database.
  • the database management module is usually software installed on the designated member node, and may also be a hardware component of the designated member node.
  • the blockchain function module is an interface for the executive member node to access the blockchain network. It is usually software installed on the designated member node, and may also be a hardware component of the designated member node. .
  • the designated member node may receive the transaction request through the business logic execution module.
  • the designated member node performs transaction feasibility verification according to the transaction request through the business logic execution module. If the verification is passed, the account balance modification operation is performed through the database management module.
  • the designated member node may generate the log file through a business logic execution module (see FIG. 2b), or may generate the log file through the database management module (see FIG. 2c). Then, the designated member node may broadcast the log file to the blockchain network through the blockchain function module, and then publish the log file to its own through the blockchain function module. Blockchain.
  • FIG. 3 is a schematic flowchart of another transaction method based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification, including the following steps:
  • the business logic execution module receives a transaction request including an expenditure user identification of the expenditure user, a specified resource amount, and an income user identification of the income user.
  • the blockchain network includes several member nodes, and users register virtual resource accounts on designated member nodes, and the designated member nodes include a business logic execution module, a database management module, and a blockchain function module. .
  • the business logic execution module performs transaction feasibility verification according to the transaction request, and sends an account balance modification instruction to the database management module after the verification is passed.
  • S304 The database management module executes an account balance modification operation in a database according to the account balance modification instruction.
  • the business logic execution module is responsible for accepting transaction requests and the execution module is responsible for verifying transaction feasibility. After the verification is passed, the business logic execution module may instruct the database management module to perform the account balance modification operation, that is, the specified resource amount is deducted from the virtual resource account corresponding to the expenditure user ID, and the virtual resource corresponding to the income user ID is deducted. Increase the amount of the specified resource in the account.
  • the business logic execution module generates a log file for recording the account balance modification operation, and sends the log file to the blockchain function module.
  • the business logic execution module is responsible for generating the log file, and sending the generated log file to the blockchain function module.
  • the log file generation logic may be written in the business logic execution module in advance and delivered to the business logic execution module for execution.
  • the log file generation logic may include not only logic for recording the operation of modifying the account balance, but also logic for recording other transaction-related information (such as transaction time, transaction place, transaction postscript, etc.).
  • the database management module may return a modification success notification to the business logic execution module.
  • the business logic execution module can generate a log file for recording the account balance modification operation.
  • the blockchain function module broadcasts the log file to the blockchain network, so that each member node publishes the log file to the blockchain based on a consensus mechanism.
  • step S308 the blockchain function module is responsible for broadcasting the log file to the blockchain network.
  • the blockchain function module may specifically use a hash algorithm according to the log file to generate a log file summary corresponding to the log file, and then broadcast the log to the blockchain network.
  • File and the log file digest so that each member node publishes the log file and the log file digest to the blockchain based on a consensus mechanism.
  • the blockchain function module may send the log file summary to the log file summary to the business logic execution module, and then the business logic execution module will summarize the log file to the spending user and And / or the income user, so that the spending user and / or the income user query the log file from a blockchain using the log file summary.
  • the blockchain function module determines that the log file is published to the blockchain, it sends the log file summary to the business logic execution module.
  • the business logic execution module is responsible for generating the log file, and no complicated transformation of the business logic execution module is required. Only a log file needs to be written in the business logic execution module. Generate the logic.
  • the business logic execution module is responsible for generating the log file, and can also customize the content of the log file. In this way, the log file is used not only to record the account balance modification operation, but also to record Other transaction related information.
  • FIG. 4 is a schematic flowchart of another transaction method based on centralized settlement and blockchain certificate provided by an embodiment of this specification, including the following steps:
  • the business logic execution module receives a transaction request including an expenditure user ID of an expenditure user, a specified resource amount, and an income user ID of an income user.
  • the blockchain network includes several member nodes, and the user has registered a virtual resource account on a designated member node.
  • the designated member node includes a business logic execution module, a database management module, and a blockchain function module. .
  • the business logic execution module performs transaction feasibility verification according to the transaction request, and sends an account balance modification instruction to the database management module after the verification is passed.
  • the database management module executes an account balance modification operation according to the account balance modification instruction, and generates a log file for recording the account balance modification operation.
  • the business logic execution module is responsible for accepting transaction requests and the execution module is responsible for verifying transaction feasibility. After the verification is passed, the business logic execution module may instruct the database management module to perform the account balance modification operation, that is, the specified resource amount is deducted from the virtual resource account corresponding to the expenditure user ID, and the virtual resource corresponding to the income user ID is deducted. Increase the amount of the specified resource in the account.
  • the database management module is responsible for generating the log file, and sending the generated log file to the blockchain function module.
  • a database log is first recorded to record data modification operations, and then the data modification is performed according to the database log operating.
  • the log file is the database log.
  • the database management module may generate the log file before performing the account balance modification operation.
  • S406 The database management module sends the log file to the blockchain function module.
  • step S408 the blockchain function module generates a log file summary corresponding to the log file by using a hash algorithm according to the log file, and then broadcasts the log file and the log file to the blockchain network.
  • the log file summary so that each member node publishes the log file and the log file summary to the blockchain based on a consensus mechanism.
  • the blockchain function module may send the log file summary to the database management module, and then the database management module sends the log file summary to the business logic execution module, and the business logic execution module will The log file summary is sent to the spending user and / or the income user, so that the spending user and / or the income user queries the log file from a blockchain using the log file summary.
  • the blockchain function module determines that the log file is published to the blockchain, it sends the log file summary to the database management module.
  • the designated member node may also send the log file summary to the spending user and / or the income user after determining that the log file is packaged into a block.
  • the database management module may return a modification success notification to the business logic execution module immediately after performing the account balance modification operation, or may not return a modification success notification temporarily after performing the account balance modification operation. Instead, after receiving the log file summary returned by the blockchain function module, the modification success notification is returned to the business logic execution module together with the log file summary.
  • the embodiment of this specification also correspondingly provides a transaction device based on centralized settlement and blockchain certificate, as shown in FIG. 5,
  • the blockchain network includes several member nodes, and the device is any member node.
  • a user has registered a virtual resource account on the device.
  • the device includes:
  • the receiving module 501 receives a transaction request including a spending user ID of a spending user, a specified resource amount, and a income user ID of a revenue user; the spending user is a user spending the specified resource amount, and the income user is the designated income Users of the amount of resources;
  • the settlement module 502 performs transaction feasibility verification according to the transaction request, and executes an account balance modification operation after the verification is passed; the account balance modification operation is to deduct the account balance from the virtual resource account corresponding to the spending user identifier.
  • the specified resource amount and adding the specified resource amount to a virtual resource account corresponding to the revenue user identifier;
  • the certificate storage module 503 generates a log file for recording the account balance modification operation, and broadcasts the log file to the blockchain network, so that each member node publishes the log file to the block based on a consensus mechanism. chain.
  • the certificate storage module 503 generates a log file summary corresponding to the log file by using a hash algorithm according to the log file; and broadcasts the log file and the log file summary to the blockchain network so that each Member nodes publish the log file and the log file summary to the blockchain based on the consensus mechanism;
  • the device further includes a sending module 504, which sends the log file summary to the spending user and / or the income user, so that the spending user and / or the income user use the log file summary to a district.
  • the blockchain queries the log file.
  • the sending module 504 if it is determined that the log file is published to the blockchain, sends the log file summary to the spending user and / or the income user.
  • the embodiment of this specification also correspondingly provides a transaction device based on centralized settlement and blockchain certificate, as shown in FIG. 6,
  • the blockchain network includes several member nodes.
  • the device is any member node.
  • the user has registered a virtual resource account on the device.
  • the device includes a business logic execution module 601, a database management module 602, and a blockchain function module. 603;
  • the business logic execution module 601 receives a transaction request including a spending user ID of a spending user, a specified resource amount, and a income user ID of a revenue user, the spending user is a user spending the specified resource amount, the income user is A user who earns the specified resource amount; performs transaction feasibility verification according to the transaction request, and sends the account balance modification instruction to the database management module after the verification is passed; generates a log file for recording the account balance modification operation And sending the log file to the blockchain function module; the operation of modifying the account balance is to deduct the specified resource amount from the virtual resource account corresponding to the spending user ID, and to the income user Adding the specified resource amount to the corresponding virtual resource account;
  • the database management module 602 executes an account balance modification operation according to the account balance modification instruction
  • the blockchain function module 603 broadcasts the log file to the blockchain network, so that each member node publishes the log file to the blockchain based on a consensus mechanism.
  • the business logic execution module 601 generates a log file for recording the account balance modification operation and recording other transaction-related information.
  • the database management module 602 returns a modification success notification to the business logic execution module after executing the account balance modification operation;
  • the business logic execution module 601 generates a log file for recording the account balance modification operation after receiving the modification success notification.
  • the blockchain function module 603 generates a log file summary corresponding to the log file by using a hash algorithm according to the log file; and broadcasts the log file and the log file summary to the blockchain network, So that each member node publishes the log file and the log file summary to a blockchain based on a consensus mechanism; and sends the log file summary to the business logic execution module;
  • the business logic execution module 601 sends the log file summary to the spending user and / or the income user, so that the spending user and / or the income user use the log file summary to a blockchain Query the log file.
  • the blockchain function module 603 if it is determined that the log file is published to the blockchain, sends the log file summary to the business logic execution module.
  • the embodiment of this specification also correspondingly provides a transaction device based on centralized settlement and blockchain certificate, as shown in FIG. 7,
  • the blockchain network includes several member nodes.
  • the device is any member node.
  • the user has registered a virtual resource account on the device.
  • the device includes a business logic execution module 701, a database management module 702, and a blockchain function module. 703;
  • the business logic execution module 701 receives a transaction request including a spending user ID of a spending user, a specified resource amount, and a income user ID of a income user; the spending user is a user spending the specified resource amount, and the income user is A user who earns the specified resource amount; performs transaction feasibility verification according to the transaction request, and sends an account balance modification instruction to the database management module after the verification is passed;
  • the database management module 702 executes an account balance modification operation according to the account balance modification instruction, and generates a log file for recording the account balance modification operation.
  • the account balance modification operation is based on the expenditure user identifier. Deduct the specified resource amount from the corresponding virtual resource account, and add the specified resource amount to the virtual resource account corresponding to the revenue user identifier; and send the log file to the blockchain function module;
  • the blockchain function module 703 broadcasts the log file to the blockchain network, so that each member node publishes the log file to the blockchain based on a consensus mechanism.
  • the blockchain function module 703 generates a log file summary corresponding to the log file using a hash algorithm according to the log file; and broadcasts the log file and the log file summary to the blockchain network, So that each member node publishes the log file and the log file summary to a blockchain based on a consensus mechanism; and sends the log file summary to the database management module;
  • the database management module 702 sends the log file summary to the business logic execution module
  • the business logic execution module 701 sends the log file summary to the spending user and / or the income user, so that the spending user and / or the income user use the log file summary to a blockchain Query the log file.
  • the blockchain function module 703 if it is determined that the log file is published to the blockchain, sends the log file summary to the database management module.
  • the database management module 702 sends the log file summary and the modification success notification to the business logic execution module together.
  • FIG. 8 is a schematic structural diagram of a transaction system based on centralized settlement and blockchain certificate provided by an embodiment of this specification, including a blockchain network composed of several member nodes, and users can register virtual resources on designated member nodes Account
  • the designated member node receives a transaction request including a spending user ID of a spending user, a specified resource amount, and a income user ID of a income user, the spending user is a user spending the specified resource amount, and the income user is income
  • the user of the specified resource amount verifying the transaction feasibility according to the transaction request, and after the verification is passed, performing an account balance modification operation, the account balance modification operation is from the virtual resource corresponding to the spending user identifier Deduct the amount of the specified resource from the account, and add the amount of the specified resource to the virtual resource account corresponding to the revenue user ID; generate a log file for recording the account balance modification operation, and upload the log file to the blockchain Webcast the log file;
  • the other member nodes and the designated member node publish the log file to the blockchain based on a consensus mechanism.
  • the designated member node generates a log file summary corresponding to the log file by using a hash algorithm according to the log file; and broadcasts the log file and the log file summary to the blockchain network so that each member
  • the node publishes the log file and the log file summary to a blockchain based on a consensus mechanism; and sends the log file summary to the spending user and / or the income user so that the spending user and / or all
  • the revenue user uses the log file summary to query the log file from the blockchain.
  • the designated member node if it is determined that the log file is published to the blockchain, sends the log file summary to the spending user and / or the income user.
  • FIG. 9 is a schematic structural diagram of another centralized settlement and blockchain-based transaction system provided by an embodiment of this specification, including a blockchain network composed of several member nodes, where each member node includes FIG. 6 In the device shown, the user has a virtual resource account registered on the device.
  • FIG. 10 is a schematic structural diagram of another transaction system based on centralized settlement and blockchain certificate deposit provided by an embodiment of this specification, including a blockchain network composed of several member nodes, where each member node includes FIG. 7 In the device shown, the user has a virtual resource account registered on the device.
  • An embodiment of the present specification also provides a computer device.
  • a blockchain network includes several member nodes, and the device is any member node, and a user has a virtual resource account registered on the device;
  • the device includes at least a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, the functions of the method described in FIG. 1 are implemented.
  • FIG. 11 shows a more specific schematic diagram of a hardware structure of a computing device provided by an embodiment of the present specification.
  • the device may include a processor 1110, a memory 1120, an input / output interface 1130, a communication interface 1140, and a bus 1150.
  • the processor 1110, the memory 1120, the input / output interface 1130, and the communication interface 1140 implement a communication connection within the device through a bus 1150.
  • the processor 1110 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, etc., for performing related operations. Program to implement the technical solutions provided by the embodiments of this specification.
  • a general-purpose CPU Central Processing Unit
  • ASIC Application Specific Integrated Circuit
  • the memory 1120 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage devices, dynamic storage devices, and the like.
  • the memory 1120 may store an operating system and other application programs.
  • related program codes are stored in the memory 1120 and are called and executed by the processor 1110.
  • the input / output interface 1130 is used to connect an input / output module for information input and output.
  • the input / output / module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions.
  • the input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc.
  • the output device may include a display, a speaker, a vibrator, and an indicator light.
  • the communication interface 1140 is used to connect a communication module (not shown in the figure) to implement communication interaction between the device and other devices.
  • the communication module can implement communication through a wired method (such as USB, network cable, etc.), and can also implement communication through a wireless method (such as mobile network, WIFI, Bluetooth, etc.).
  • the bus 1150 includes a path for transmitting information between various components of the device (for example, the processor 1110, the memory 1120, the input / output interface 1130, and the communication interface 1140).
  • the device may further include necessary for achieving normal operation Other components.
  • the foregoing device may also include only components necessary to implement the solutions of the embodiments of the present specification, and does not necessarily include all the components shown in the drawings.
  • An embodiment of the present specification also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the functions of the method described in FIG. 1 are implemented.
  • Computer-readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information can be stored by any method or technology.
  • 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), and read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media may be used to store information that can be accessed by computing devices.
  • computer-readable media does not include temporary computer-readable media, such as modulated data signals and carrier waves.
  • the embodiments of the present specification can be implemented by means of software plus a necessary universal hardware platform. Based on such an understanding, the technical solutions of the embodiments of the present specification may be embodied in the form of software products that are essentially or contribute to the existing technology.
  • the computer software product may be stored in a storage medium such as ROM / RAM, Magnetic disks, optical disks, and the like include a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in the various embodiments or portions of the embodiments of this specification.
  • the system, method, module, or unit described in the foregoing embodiments may be specifically implemented by a computer chip or entity or a product with a certain function.
  • a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet computer, wearable device, or a combination of any of these devices.
  • each embodiment in this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.
  • the description is relatively simple, and for the relevant parts, refer to the description of the method embodiments.
  • the method embodiments described above are only schematic, and the modules described as separate components may or may not be physically separated. When implementing the solutions of the embodiments of this specification, the functions of each module may be the same. Or multiple software and / or hardware. Some or all of the modules may also be selected according to actual needs to achieve the objective of the solution of this embodiment. Those of ordinary skill in the art can understand and implement without creative efforts.

Abstract

公开了一种基于中心化结算与区块链存证的交易方法及系统。区块链网络包括若干成员节点,用户在指定成员节点上注册有虚拟资源账户。所述指定成员节点当接收到交易请求时,针对交易请求进行交易可行性验证,并于验证通过后,执行账户余额修改操作,即从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额。并且,所述指定成员节点还会生成用于记录所述账户余额修改操作的日志文件,将所述日志文件广播至所述区块链网络,使得各成员节点基于共识机制将所述日志文件发布至区块链。

Description

一种基于中心化结算与区块链存证的交易方法及系统 技术领域
本说明书实施例涉及信息技术领域,尤其涉及一种基于中心化结算与区块链存证的交易方法及系统。
背景技术
目前,在线电子交易的主要模式为,由中心化的结算平台(如银行、支付宝等)负责管理用户的账户,用户之间的交易由结算平台执行并进行记录,用户可以自行向结算平台查询自己账户的收支记录以便进行核对。
然而,结算平台存储的用户账户的收支记录存在被篡改的可能性,从而不能作为可信的对账凭证。
发明内容
为了解决中心化的结算平台存储的用户账户的收支记录不可信的问题,本说明书实施例提供一种基于中心化结算与区块链存证的交易方法及系统,技术方案如下:
根据本说明书实施例的第1方面,提供一种基于中心化结算与区块链存证的交易方法,区块链网络包括若干成员节点,用户在指定成员节点上注册有虚拟资源账户,所述方法包括:
所述指定成员节点接收包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识的交易请求;所述支出用户是支出所述指定资源数额的用户,所述收入用户是收入所述指定资源数额的用户;
根据所述交易请求,进行交易可行性验证,并在验证通过后,执行账户余额修改操作;所述账户余额修改操作为,从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额;
生成用于记录所述账户余额修改操作的日志文件,并向所述区块链网络广播所述日志文件,以使各成员节点基于共识机制将所述日志文件发布至区块链。
根据本说明书实施例的第2方面,提供一种基于中心化结算与区块链存证的交易装置,区块链网络包括若干成员节点,用户在指定成员节点上注册有虚拟资源账户,所述 装置包括:
接收模块,接收包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识的交易请求;所述支出用户是支出所述指定资源数额的用户,所述收入用户是收入所述指定资源数额的用户;
结算模块,根据所述交易请求,进行交易可行性验证,并在验证通过后,执行账户余额修改操作;所述账户余额修改操作为,从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额;
存证模块,生成用于记录所述账户余额修改操作的日志文件,并向所述区块链网络广播所述日志文件,以使各成员节点基于共识机制将所述日志文件发布至区块链。
根据本说明书实施例的第3方面,提供一种基于中心化结算与区块链存证的交易系统,包括由若干成员节点组成的区块链网络,用户可在指定成员节点上注册虚拟资源账户;
所述指定成员节点,接收的包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识的交易请求,所述支出用户是支出所述指定资源数额的用户,所述收入用户是收入所述指定资源数额的用户;根据所述交易请求,进行交易可行性验证,并在验证通过后,执行账户余额修改操作,所述账户余额修改操作为,从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额;生成用于记录所述账户余额修改操作的日志文件,并向所述区块链网络广播所述日志文件;
其他成员节点,与所述指定成员节点基于共识机制,将所述日志文件发布至区块链。
本说明书实施例所提供的技术方案,区块链网络包括若干成员节点,用户在指定成员节点上注册有虚拟资源账户。所述指定成员节点当接收到交易请求时,针对交易请求进行交易可行性验证,并于验证通过后,执行账户余额修改操作,即从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额。并且,所述指定成员节点还会生成用于记录所述账户余额修改操作的日志文件,将所述日志文件广播至所述区块链网络,使得各成员节点基于共识机制将所述日志文件发布至区块链。也就是说,针对一笔交易,所述指定成员节点执行交易结算时产生的日志文件会被发布至区块链进行存证,相当于中心化结算平台 存储的用户账户的会被发布至区块链进行存证。因此,用户账户的收支记录难以被篡改,可以作为可信的对账凭证。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本说明书实施例。
此外,本说明书实施例中的任一实施例并不需要达到上述的全部效果。
附图说明
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书实施例中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。
图1是本说明书实施例提供的一种基于中心化结算与区块链存证的交易方法的流程示意图;
图2a是本说明书实施例提供的一种基于中心化结算与区块链存证的交易方法的流程示例图;
图2b是本说明书实施例提供的另一种基于中心化结算与区块链存证的交易方法的流程示例图;
图2c是本说明书实施例提供的另一种基于中心化结算与区块链存证的交易方法的流程示例图;
图3是本说明书实施例提供的另一种基于中心化结算与区块链存证的交易方法的流程示意图;
图4是本说明书实施例提供的另一种基于中心化结算与区块链存证的交易方法的流程示意图;
图5是本说明书实施例提供的一种基于中心化结算与区块链存证的交易装置的结构示意图;
图6是本说明书实施例提供的一种基于中心化结算与区块链存证的交易设备的结构示意图;
图7是本说明书实施例提供的另一种基于中心化结算与区块链存证的交易设备的结 构示意图;
图8是本说明书实施例提供的一种基于中心化结算与区块链存证的交易系统的结构示意图;
图9是本说明书实施例提供的另一种基于中心化结算与区块链存证的交易系统的结构示意图;
图10是本说明书实施例提供的另一种基于中心化结算与区块链存证的交易系统的结构示意图;
图11是用于配置图1所示方法的一种计算机设备的结构示意图。
具体实施方式
为了使本领域技术人员更好地理解本说明书实施例中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行详细地描述,显然,所描述的实施例仅仅是本说明书的一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于保护的范围。
以下结合附图,详细说明本说明书各实施例提供的技术方案。
图1是本说明书实施例提供的一种基于中心化结算与区块链存证的交易方法的流程示意图,包括以下步骤:
S100:指定成员节点接收包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识的交易请求。
在本说明书实施例中,区块链网络包括若干成员节点。需要说明的是,在本文中,“节点”可以是由管理方(人或机构)管理的一个设备或多个设备,各成员节点分别对应的管理方通常不同。
在本说明书实施例中,用户在指定成员节点上注册有虚拟资源账户。其中,所述指定成员节点可以根据实际业务需要指定。例如,假设所述区块链网络是由10个金融机构(包括银行、电子支付平台等)组成的联盟链网络,可以将电子支付平台管理的成员节点指定为指定成员节点,用户在电子支付平台注册有虚拟资源账户。
需要说明的是,用户在所述指定成员节点上注册的虚拟资源账户实际上是在所述指定成员节点的关系型数据库中进行维护的。
还需要说明的是,本文中所述的虚拟资源不限于电子货币,还可以是积分、游戏币、虚拟物品等。总之,根据实际业务规则,用户之间可以以任何虚拟资源为交易媒介进行交易。
在步骤S100中,指定成员节点,可以接收支出用户发送的交易请求,也可以接收收入用户发出的交易请求。其中,所述交易请求通常包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识,所述支出用户是支出所述指定资源数额的用户,所述收入用户是收入所述指定资源数额的用户。
S102:根据所述交易请求,进行交易可行性验证,并在验证通过后,执行账户余额修改操作。
在本文中,交易可行性验证是指,对交易是否合理可执行进行验证,主要包括对支出用户的账户余额是否充足进行验证。此外,在实践中,根据实际业务规则,也可以对交易的其他事项也可以是可行性验证的内容,例如,支出用户是否有权限。若通过验证,则说明交易是合理可执行的。
若指定成员节点针对交易请求进行可行性验证通过,则进行执行账户余额修改操作,也就是从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额。
S104:生成用于记录所述账户余额修改操作的日志文件,并向所述区块链网络广播所述日志文件。
在本步骤S104中,指定成员节点可以生成用于记录上述账户余额修改操作的日志文件。此处需要说明的是,日志文件是用于记录软件系统(如windows系统、业务逻辑处理系统、数据库管理系统等)的操作事件的记录文件或文件集合,日志文件一般是是后缀名为.log的文件。
所述指定成员节点生成所述日志文件后,可以向所述区块链网络广播所述日志文件,使得各成员节点基于共识机制将所述日志文件发布至区块链。
此处需要说明的是,所述区块链网络并不需要根据所述日志文件,对所述交易请求的可行性进行验证。各成员节点基于共识机制,将所述日志文件发布至区块链即可。
还需要说明的是,在本说明书实施例中,不对步骤S102和步骤S104的执行顺序进行限制。可以在执行步骤S102后,再执行步骤S104,也可以在执行步骤S104后,再执行步骤S102,还可以同时执行步骤S102和S104。
通过图1所示的基于中心化结算与区块链存证的交易方法,针对一笔交易,所述指定成员节点执行交易结算时产生的日志文件会被发布至区块链进行存证,相当于中心化结算平台存储的用户账户的收支记录会被发布至区块链进行存证。因此,用户账户的收支记录难以被篡改,可以作为可信的对账凭证。
图2a是本说明书实施例提供的一种基于中心化结算与区块链存证的交易方法的流程示例图。如图2a所示,区块链网络由多个(图中示出6个)成员节点组成,其中,实心点为指定成员节点,空心点为除指定成员节点外的其他成员节点。支出用户可以发起一笔交易,向指定成员节点发送交易请求,指定成员节点先在本地进行账户余额修改操作,并生成记录所述账户余额修改操作的日志文件,然后,将所述日志文件广播至全网,使得各成员节点将所述日志文件发布至自身的区块链。值得强调的是,指定成员节点需要对交易进行可行性验证,而所述区块链网络并不需要对交易进行可行性验证。
此外,在本说明书实施例中,所述指定成员节点可以根据所述日志文件,采用哈希算法生成所述日志文件对应的日志文件摘要,然后向所述区块链网络广播所述日志文件和所述日志文件摘要,使得各成员节点基于共识机制将所述日志文件和所述日志文件摘要发布至区块链。
另外,所述指定成员节点可以将所述日志文件摘要发送给所述支出用户和/或所述收入用户,以便所述支出用户和/或所述收入用户使用所述日志文件摘要向区块链查询所述日志文件。
众所周知,针对一段信息,执行哈希运算可以得到这段信息的摘要(一段字符串),可以唯一标识这段信息。因此,所述日志文件摘要可以作为所述日志文件的标识,将所述日志文件摘要提供给所述支出用户和/或所述收入用户后,所述支出用户或所述收入用户就能够以所述日志文件摘要为线索,向区块链查询所述日志文件,以确定所述指定成员节点已经执行过所述账户余额修改操作。
实践中,所述日志文件被广播给各成员节点之后,会被各成员节点分别存入自己的缓存中(或称交易池)中,当满足指定的共识触发条件时(如经过指定周期),各成员节点会基于共识机制,选举一个成员节点从交易池中捞取若干日志文件和相应的日志文件摘要打包成区块,并将该区块向全网广播,使得各成员节点将该区块分别发布至区块链,至此,上述的日志文件和日志文件摘要才会被存证。
因此,进一步地,在本说明书实施例中,所述指定成员节点可以在确定所述日志文 件被发布至区块链之后,再将所述日志文件摘要发送给所述支出用户和/或所述收入用户。
这种情况下,支出用户和/或收入用户当接收到指定成员节点发送的日志文件摘要时,意味着交易成功。若支出用户和/或收入用户未接收到所述日志文件摘要,则哪怕所述指定成员节点已经执行了账户余额修改操作,也并不意味着交易成功(因为日志文件还未被发布至区块链)。
此外,所述指定成员节点也可以在确定所述日志文件被打包进区块之后,将所述日志文件摘要发送给所述支出用户和/或所述收入用户。
另外,所述指定成员节点可以包括业务逻辑执行模块、数据库管理模块和区块链功能模块。
其中,所述业务逻辑执行模块负责向外对接用户,根据用户的业务请求处理业务,所述业务逻辑执行模块通常是安装于所述指定成员节点上的软件,也可以是所述指定成员节点的硬件组成部分。
所述数据库管理模块负责对所述指定成员节点的本地数据库进行管理,如修改数据库中的数据。所述数据库管理模块通常是安装于所述指定成员节点上的软件,也可以是所述指定成员节点的硬件组成部分。
所述区块链功能模块是所述执行成员节点接入所述区块链网络的接口,其通常是安装于所述指定成员节点上的软件,也可以是所述指定成员节点的硬件组成部分。
如此,在步骤S100中,所述指定成员节点可以通过所述业务逻辑执行模块接收所述交易请求。在步骤S102中,所述指定成员节点通过所述业务逻辑执行模块,根据所述交易请求,进行交易可行性验证。若验证通过,则通过所述数据库管理模块,执行账户余额修改操作。
在步骤S104中,所述指定成员节点可以通过业务逻辑执行模块生成所述日志文件(参见图2b),也可以通过所述数据库管理模块生成所述日志文件(参见图2c)。接着,所述指定成员节点可以通过所述区块链功能模块,向所述区块链网络广播所述日志文件,并随后通过所述区块链功能模块,将所述日志文件发布至自身的区块链。
图3是本说明书实施例提供的另一种基于中心化结算与区块链存证的交易方法的流程示意图,包括以下步骤:
S300:所述业务逻辑执行模块接收包含支出用户的支出用户标识、指定资源数额和 收入用户的收入用户标识的交易请求。
在图3所示的方法中,区块链网络包括若干成员节点,用户在指定成员节点上注册有虚拟资源账户,所述指定成员节点包括业务逻辑执行模块、数据库管理模块和区块链功能模块。
S302:所述业务逻辑执行模块根据所述交易请求,进行交易可行性验证,并在验证通过后,向所述数据库管理模块发送账户余额修改指令。
S304:所述数据库管理模块根据所述账户余额修改指令,在数据库中执行账户余额修改操作。
在图3所示的方法中,由所述业务逻辑执行模块负责受理交易请求以及执行模块负责进行交易可行性验证。验证通过后,业务逻辑执行模块可以指令数据库管理模块执行账户余额修改操作,即从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额。
S306:所述业务逻辑执行模块生成用于记录所述账户余额修改操作的日志文件,以及将所述日志文件发送给所述区块链功能模块。
在图3所示的方法中,所述业务逻辑执行模块负责生成所述日志文件,并将生成的日志文件发送给所述区块链功能模块。
具体地,可以预先在业务逻辑执行模块中写入日志文件生成逻辑,交由所述业务逻辑执行模块执行。所述日志文件生成逻辑可以不仅包含记录所述账户余额修改操作的逻辑,也可以包含记录其他交易相关信息(如交易时间、交易地点、交易附言等信息)的逻辑。
在图3所示的方法中,所述数据库管理模块执行所述账户余额修改操作后,可以向所述业务逻辑执行模块返回修改成功通知。所述业务逻辑执行模块在接收到所述修改成功通知后,方可生成用于记录所述账户余额修改操作的日志文件。
S308:所述区块链功能模块向所述区块链网络广播所述日志文件,以使各成员节点基于共识机制将所述日志文件发布至区块链。
在步骤S308中,由区块链功能模块负责向区块链网络广播所述日志文件。
此外,在步骤S308中,所述区块链功能模块具体可以根据所述日志文件,采用哈希算法,生成所述日志文件对应的日志文件摘要,然后向所述区块链网络广播所述日志 文件和所述日志文件摘要,以使各成员节点基于共识机制将所述日志文件和所述日志文件摘要发布至区块链。
所述区块链功能模块可以将所述日志文件摘要发送给将所述日志文件摘要发送给所述业务逻辑执行模块,然后,所述业务逻辑执行模块将所述日志文件摘要所述支出用户和/或所述收入用户,以便所述支出用户和/或所述收入用户使用所述日志文件摘要向区块链查询所述日志文件。
进一步地,所述区块链功能模块若确定所述日志文件被发布至区块链,则将所述日志文件摘要发送给所述业务逻辑执行模块。
针对图3所示的方法,需要说明的是,由所述业务逻辑执行模块负责生成所述日志文件,无须对业务逻辑执行模块进行复杂的改造,仅需要在业务逻辑执行模块中写入日志文件生成逻辑即可。此外,由所述业务逻辑执行模块负责生成所述日志文件,还可以实现对日志文件的内容的定制化,如此,所述日志文件不仅用于记录所述账户余额修改操作,还可以用于记录其他交易相关信息。
图4是本说明书实施例提供的另一种基于中心化结算与区块链存证的交易方法的流程示意图,包括以下步骤:
S400:所述业务逻辑执行模块接收包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识的交易请求。
在图4所示的方法中,区块链网络包括若干成员节点,用户在指定成员节点上注册有虚拟资源账户,所述指定成员节点包括业务逻辑执行模块、数据库管理模块和区块链功能模块。
S402:所述业务逻辑执行模块根据所述交易请求,进行交易可行性验证,并在验证通过后,向所述数据库管理模块发送账户余额修改指令。
S404:所述数据库管理模块根据所述账户余额修改指令,执行账户余额修改操作,并生成用于记录所述账户余额修改操作的日志文件。
在图4所示的方法中,由所述业务逻辑执行模块负责受理交易请求以及执行模块负责进行交易可行性验证。验证通过后,业务逻辑执行模块可以指令数据库管理模块执行账户余额修改操作,即从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额。
在图4所示的方法中,所述数据库管理模块负责生成所述日志文件,并将生成的日志文件发送给所述区块链功能模块。
为本领域技术人员所熟知的是,所述数据库管理模块在针对数据库进行数据修改时,为了保证事务的原子性,一般首先生成记录有数据修改操作的数据库日志,再根据该数据库日志执行数据修改操作。
由此可见,在图4所示的方法中,所述日志文件即是所述数据库日志。并且,所述数据库管理模块可以在执行所述账户余额修改操作之前,生成所述日志文件。
S406:所述数据库管理模块将所述日志文件发送给所述区块链功能模块。
S408:所述区块链功能模块向所述区块链网络广播所述日志文件。
在步骤S408中,所述区块链功能模块根据所述日志文件,采用哈希算法,生成所述日志文件对应的日志文件摘要,然后向所述区块链网络广播所述日志文件和所述日志文件摘要,以使各成员节点基于共识机制将所述日志文件和所述日志文件摘要发布至区块链。
所述区块链功能模块可以将所述日志文件摘要发送给所述数据库管理模块,然后所述数据库管理模块将所述日志文件摘要发送给所述业务逻辑执行模块,所述业务逻辑执行模块将所述日志文件摘要发送给所述支出用户和/或所述收入用户,以便所述支出用户和/或所述收入用户使用所述日志文件摘要向区块链查询所述日志文件。
进一步地,所述区块链功能模块若确定所述日志文件被发布至区块链,则将所述日志文件摘要发送给所述数据库管理模块。此外,所述指定成员节点也可以在确定所述日志文件被打包进区块之后,将所述日志文件摘要发送给所述支出用户和/或所述收入用户。
此外需要说明的是,所述数据库管理模块可以在执行账户余额修改操作后,立即向所述业务逻辑执行模块返回修改成功通知,也可以在执行账户余额修改操作后,暂时不返回修改成功通知,而是待到接收到所述区块链功能模块返回的日志文件摘要后,将所述修改成功通知与所述日志文件摘要一并返回给业务逻辑执行模块。
基于图1所示的基于中心化结算与区块链存证的交易方法,本说明书实施例还对应提供了一种基于中心化结算与区块链存证的交易装置,如图5所示,区块链网络包括若干成员节点,所述装置为任一成员节点,用户在所述装置上注册有虚拟资源账户,所述装置包括:
接收模块501,接收包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识的交易请求;所述支出用户是支出所述指定资源数额的用户,所述收入用户是收入所述指定资源数额的用户;
结算模块502,根据所述交易请求,进行交易可行性验证,并在验证通过后,执行账户余额修改操作;所述账户余额修改操作为,从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额;
存证模块503,生成用于记录所述账户余额修改操作的日志文件,并向所述区块链网络广播所述日志文件,以使各成员节点基于共识机制将所述日志文件发布至区块链。
所述存证模块503,根据所述日志文件,采用哈希算法生成所述日志文件对应的日志文件摘要;向所述区块链网络广播所述日志文件和所述日志文件摘要,以使各成员节点基于共识机制将所述日志文件和所述日志文件摘要发布至区块链;
所述装置还包括:发送模块504,将所述日志文件摘要发送给所述支出用户和/或所述收入用户,以便所述支出用户和/或所述收入用户使用所述日志文件摘要向区块链查询所述日志文件。
所述发送模块504,若确定所述日志文件被发布至区块链,则将所述日志文件摘要发送给所述支出用户和/或所述收入用户。
基于图3所示的基于中心化结算与区块链存证的交易方法,本说明书实施例还对应提供了一种基于中心化结算与区块链存证的交易设备,如图6所示,区块链网络包含若干成员节点,所述设备为任一成员节点,用户在所述设备上注册有虚拟资源账户,所述设备包括业务逻辑执行模块601、数据库管理模块602和区块链功能模块603;
所述业务逻辑执行模块601,接收包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识的交易请求,所述支出用户是支出所述指定资源数额的用户,所述收入用户是收入所述指定资源数额的用户;根据所述交易请求,进行交易可行性验证,并在验证通过后,向所述数据库管理模块发送账户余额修改指令;生成用于记录账户余额修改操作的日志文件,并将所述日志文件发送给所述区块链功能模块;所述账户余额修改操作为,从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额;
所述数据库管理模块602,根据所述账户余额修改指令,执行账户余额修改操作;
所述区块链功能模块603,向所述区块链网络广播所述日志文件,以使各成员节点基于共识机制将所述日志文件发布至区块链。
所述业务逻辑执行模块601,生成用于记录所述账户余额修改操作和记录其他交易相关信息的日志文件。
所述数据库管理模块602,执行所述账户余额修改操作后,向所述业务逻辑执行模块返回修改成功通知;
所述业务逻辑执行模块601,在接收到所述修改成功通知后,生成用于记录所述账户余额修改操作的日志文件。
所述区块链功能模块603,根据所述日志文件,采用哈希算法,生成所述日志文件对应的日志文件摘要;向所述区块链网络广播所述日志文件和所述日志文件摘要,以使各成员节点基于共识机制将所述日志文件和所述日志文件摘要发布至区块链;将所述日志文件摘要发送给所述业务逻辑执行模块;
所述业务逻辑执行模块601,将所述日志文件摘要发送给所述支出用户和/或所述收入用户,以便所述支出用户和/或所述收入用户使用所述日志文件摘要向区块链查询所述日志文件。
所述区块链功能模块603,若确定所述日志文件被发布至区块链,则将所述日志文件摘要发送给所述业务逻辑执行模块。
基于图4所示的基于中心化结算与区块链存证的交易方法,本说明书实施例还对应提供了一种基于中心化结算与区块链存证的交易设备,如图7所示,区块链网络包含若干成员节点,所述设备为任一成员节点,用户在所述设备上注册有虚拟资源账户,所述设备包括业务逻辑执行模块701、数据库管理模块702和区块链功能模块703;
所述业务逻辑执行模块701,接收包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识的交易请求;所述支出用户是支出所述指定资源数额的用户,所述收入用户是收入所述指定资源数额的用户;根据所述交易请求,进行交易可行性验证,并在验证通过后,向所述数据库管理模块发送账户余额修改指令;
所述数据库管理模块702,根据所述账户余额修改指令,执行账户余额修改操作,并生成用于记录所述账户余额修改操作的日志文件,所述账户余额修改操作为,从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额;将所述日志文件发送给所述区块链功能模 块;
所述区块链功能模块703,向所述区块链网络广播所述日志文件,以使各成员节点基于共识机制将所述日志文件发布至区块链。
所述区块链功能模块703,根据所述日志文件,采用哈希算法,生成所述日志文件对应的日志文件摘要;向所述区块链网络广播所述日志文件和所述日志文件摘要,以使各成员节点基于共识机制将所述日志文件和所述日志文件摘要发布至区块链;将所述日志文件摘要发送给所述数据库管理模块;
所述数据库管理模块702,将所述日志文件摘要发送给所述业务逻辑执行模块;
所述业务逻辑执行模块701,将所述日志文件摘要发送给所述支出用户和/或所述收入用户,以便所述支出用户和/或所述收入用户使用所述日志文件摘要向区块链查询所述日志文件。
所述区块链功能模块703,若确定所述日志文件被发布至区块链,则将所述日志文件摘要发送给所述数据库管理模块。
所述数据库管理模块702,将所述日志文件摘要和修改成功通知一并发送给所述业务逻辑执行模块。
图8是本说明书实施例提供的一种基于中心化结算与区块链存证的交易系统的结构示意图,包括由若干成员节点组成的区块链网络,用户可在指定成员节点上注册虚拟资源账户;
所述指定成员节点,接收的包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识的交易请求,所述支出用户是支出所述指定资源数额的用户,所述收入用户是收入所述指定资源数额的用户;根据所述交易请求,进行交易可行性验证,并在验证通过后,执行账户余额修改操作,所述账户余额修改操作为,从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额;生成用于记录所述账户余额修改操作的日志文件,并向所述区块链网络广播所述日志文件;
其他成员节点,与所述指定成员节点基于共识机制,将所述日志文件发布至区块链。
所述指定成员节点,根据所述日志文件,采用哈希算法生成所述日志文件对应 的日志文件摘要;向所述区块链网络广播所述日志文件和所述日志文件摘要,以使各成员节点基于共识机制将所述日志文件和所述日志文件摘要发布至区块链;将所述日志文件摘要发送给所述支出用户和/或所述收入用户,以便所述支出用户和/或所述收入用户使用所述日志文件摘要向区块链查询所述日志文件。
所述指定成员节点,若确定所述日志文件被发布至区块链,则将所述日志文件摘要发送给所述支出用户和/或所述收入用户。
图9是本说明书实施例提供的另一种基于中心化结算与区块链存证的交易系统的结构示意图,包括由若干成员节点组成的区块链网络,其中,各成员节点中包含图6所示的设备,用户在所述设备上注册有虚拟资源账户。
图10是本说明书实施例提供的另一种基于中心化结算与区块链存证的交易系统的结构示意图,包括由若干成员节点组成的区块链网络,其中,各成员节点中包含图7所示的设备,用户在所述设备上注册有虚拟资源账户。
本说明书实施例还提供一种计算机设备,区块链网络包括若干成员节点,所述设备为任一成员节点,用户在所述设备上注册有虚拟资源账户;
所述设备至少包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,处理器执行所述程序时实现图1所述方法的功能。
图11示出了本说明书实施例所提供的一种更为具体的计算设备硬件结构示意图,该设备可以包括:处理器1110、存储器1120、输入/输出接口1130、通信接口1140和总线1150。其中处理器1110、存储器1120、输入/输出接口1130和通信接口1140通过总线1150实现彼此之间在设备内部的通信连接。
处理器1110可以采用通用的CPU(Central Processing Unit,中央处理器)、微处理器、应用专用集成电路(Application Specific Integrated Circuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本说明书实施例所提供的技术方案。
存储器1120可以采用ROM(Read Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、静态存储设备,动态存储设备等形式实现。存储器1120可以存储操作系统和其他应用程序,在通过软件或者固件来实现本说明书实施例所提供的技术方案时,相关的程序代码保存在存储器1120中,并由处理器1110来调用执行。
输入/输出接口1130用于连接输入/输出模块,以实现信息输入及输出。输入输出/模块可以作为组件配置在设备中(图中未示出),也可以外接于设备以提供相应功能。其中输入设备可以包括键盘、鼠标、触摸屏、麦克风、各类传感器等,输出设备可以包括显示器、扬声器、振动器、指示灯等。
通信接口1140用于连接通信模块(图中未示出),以实现本设备与其他设备的通信交互。其中通信模块可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信。
总线1150包括一通路,在设备的各个组件(例如处理器1110、存储器1120、输入/输出接口1130和通信接口1140)之间传输信息。
需要说明的是,尽管上述设备仅示出了处理器1110、存储器1120、输入/输出接口1130、通信接口1140以及总线1150,但是在具体实施过程中,该设备还可以包括实现正常运行所必需的其他组件。此外,本领域的技术人员可以理解的是,上述设备中也可以仅包含实现本说明书实施例方案所必需的组件,而不必包含图中所示的全部组件。
本说明书实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现图1所述方法的功能。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本说明书实施例可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本说明书实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等) 执行本说明书实施例各个实施例或者实施例的某些部分所述的方法。
上述实施例阐明的系统、方法、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置和设备实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的方法实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,在实施本说明书实施例方案时可以把各模块的功能在同一个或多个软件和/或硬件中实现。也可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
以上所述仅是本说明书实施例的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本说明书实施例原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本说明书实施例的保护范围。

Claims (10)

  1. 一种基于中心化结算与区块链存证的交易方法,区块链网络包括若干成员节点,用户在指定成员节点上注册有虚拟资源账户,所述方法包括:
    所述指定成员节点接收包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识的交易请求;所述支出用户是支出所述指定资源数额的用户,所述收入用户是收入所述指定资源数额的用户;
    根据所述交易请求,进行交易可行性验证,并在验证通过后,执行账户余额修改操作;所述账户余额修改操作为,从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额;
    生成用于记录所述账户余额修改操作的日志文件,并向所述区块链网络广播所述日志文件,以使各成员节点基于共识机制将所述日志文件发布至区块链。
  2. 如权利要求1所述的方法,向所述区块链网络广播所述日志文件,具体包括:
    根据所述日志文件,采用哈希算法生成所述日志文件对应的日志文件摘要;
    向所述区块链网络广播所述日志文件和所述日志文件摘要,以使各成员节点基于共识机制将所述日志文件和所述日志文件摘要发布至区块链;
    所述方法还包括:
    将所述日志文件摘要发送给所述支出用户和/或所述收入用户,以便所述支出用户和/或所述收入用户使用所述日志文件摘要向区块链查询所述日志文件。
  3. 如权利要求2所述的方法,将所述日志文件摘要返回给所述支出用户和/或所述收入用户,具体包括:
    若确定所述日志文件被发布至区块链,则将所述日志文件摘要发送给所述支出用户和/或所述收入用户。
  4. 一种基于中心化结算与区块链存证的交易装置,区块链网络包括若干成员节点,所述装置为任一成员节点,用户在所述装置上注册有虚拟资源账户,所述装置包括:
    接收模块,接收包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识的交易请求;所述支出用户是支出所述指定资源数额的用户,所述收入用户是收入所述指定资源数额的用户;
    结算模块,根据所述交易请求,进行交易可行性验证,并在验证通过后,执行账户余额修改操作;所述账户余额修改操作为,从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额;
    存证模块,生成用于记录所述账户余额修改操作的日志文件,并向所述区块链网络广播所述日志文件,以使各成员节点基于共识机制将所述日志文件发布至区块链。
  5. 如权利要求4所述的装置,所述存证模块,根据所述日志文件,采用哈希算法生成所述日志文件对应的日志文件摘要;向所述区块链网络广播所述日志文件和所述日志文件摘要,以使各成员节点基于共识机制将所述日志文件和所述日志文件摘要发布至区块链;
    所述装置还包括:
    发送模块,将所述日志文件摘要发送给所述支出用户和/或所述收入用户,以便所述支出用户和/或所述收入用户使用所述日志文件摘要向区块链查询所述日志文件。
  6. 如权利要求5所述的装置,所述发送模块,若确定所述日志文件被发布至区块链,则将所述日志文件摘要发送给所述支出用户和/或所述收入用户。
  7. 一种基于中心化结算与区块链存证的交易系统,包括由若干成员节点组成的区块链网络,用户可在指定成员节点上注册虚拟资源账户;
    所述指定成员节点,接收的包含支出用户的支出用户标识、指定资源数额和收入用户的收入用户标识的交易请求,所述支出用户是支出所述指定资源数额的用户,所述收入用户是收入所述指定资源数额的用户;根据所述交易请求,进行交易可行性验证,并在验证通过后,执行账户余额修改操作,所述账户余额修改操作为,从所述支出用户标识对应的虚拟资源账户中扣除所述指定资源数额,并向所述收入用户标识对应的虚拟资源账户中增加所述指定资源数额;生成用于记录所述账户余额修改操作的日志文件,并向所述区块链网络广播所述日志文件;
    其他成员节点,与所述指定成员节点基于共识机制,将所述日志文件发布至区块链。
  8. 如权利要求7所述的系统,所述指定成员节点,根据所述日志文件,采用哈希算法生成所述日志文件对应的日志文件摘要;向所述区块链网络广播所述日志文件和所述日志文件摘要,以使各成员节点基于共识机制将所述日志文件和所述日志文件摘要发布至区块链;将所述日志文件摘要发送给所述支出用户和/或所述收入用户,以便所述支出用户和/或所述收入用户使用所述日志文件摘要向区块链查询所述日志文件。
  9. 如权利要求8所述的系统,所述指定成员节点,若确定所述日志文件被发布至区块链,则将所述日志文件摘要发送给所述支出用户和/或所述收入用户。
  10. 一种计算机设备,区块链网络包括若干成员节点,所述设备为任一成员节点,用户在所述设备上注册有虚拟资源账户;
    所述设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序, 其中,所述处理器执行所述程序时实现如权利要求1~3任一项所述的方法。
PCT/CN2019/086866 2018-08-07 2019-05-14 一种基于中心化结算与区块链存证的交易方法及系统 WO2020029629A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
SG11202010868SA SG11202010868SA (en) 2018-08-07 2019-05-14 Transaction method and system based on centralized settlement and block chain storage
US17/085,833 US20210049595A1 (en) 2018-08-07 2020-10-30 Transaction method and system based on centralized settlement and block chain storage

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810893271.2 2018-08-07
CN201810893271.2A CN109377216B (zh) 2018-08-07 2018-08-07 一种基于中心化结算与区块链存证的交易方法及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/085,833 Continuation US20210049595A1 (en) 2018-08-07 2020-10-30 Transaction method and system based on centralized settlement and block chain storage

Publications (1)

Publication Number Publication Date
WO2020029629A1 true WO2020029629A1 (zh) 2020-02-13

Family

ID=65403844

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/086866 WO2020029629A1 (zh) 2018-08-07 2019-05-14 一种基于中心化结算与区块链存证的交易方法及系统

Country Status (5)

Country Link
US (1) US20210049595A1 (zh)
CN (1) CN109377216B (zh)
SG (1) SG11202010868SA (zh)
TW (1) TW202008235A (zh)
WO (1) WO2020029629A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111514588A (zh) * 2020-03-26 2020-08-11 口碑(上海)信息技术有限公司 虚拟凭证的生成方法、装置、设备及存储介质
CN111596937A (zh) * 2020-05-14 2020-08-28 北京众享比特科技有限公司 一种区块链中节点的新特征同步生效的实现方法和系统

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109377216B (zh) * 2018-08-07 2021-03-23 创新先进技术有限公司 一种基于中心化结算与区块链存证的交易方法及系统
CN108876380B (zh) * 2018-08-07 2021-03-23 创新先进技术有限公司 一种基于中心化结算与区块链存证的交易方法及系统
CN110163605B (zh) * 2019-04-29 2020-09-11 阿里巴巴集团控股有限公司 一种基于区块链的结算方法、装置以及电子设备
US11194770B2 (en) * 2019-05-02 2021-12-07 International Business Machines Corporation Database mergeable ledgers
CN110415096A (zh) * 2019-07-30 2019-11-05 广州虎牙信息科技有限公司 一种虚拟财产结算方法、装置及计算机设备
CN111242630A (zh) * 2019-12-19 2020-06-05 广州宏算信息科技有限公司 一种基于区块链的结算方法、装置及存储介质
CN111507720B (zh) * 2020-04-22 2022-03-11 腾讯科技(深圳)有限公司 基于区块链的数据快照方法、装置及计算机可读存储介质
CN111917761B (zh) * 2020-07-28 2022-09-13 安徽高山科技有限公司 一种基于区块链云计算的数据安全保护方法
US11763296B2 (en) * 2020-09-22 2023-09-19 Bank Of America Corporation Information security using integrated data control ledgers
CN112015823B (zh) * 2020-10-20 2021-05-28 支付宝(杭州)信息技术有限公司 一种区块链数据的删除方法和装置
CN113300850B (zh) * 2021-04-30 2022-10-21 深圳市东恒尚科信息技术有限公司 一种基于区块链的电子交易系统
CN115314374B (zh) * 2022-07-06 2024-02-06 京东科技信息技术有限公司 区块链节点的部署方法、设备、存储介质及程序产品
CN115456619B (zh) * 2022-09-27 2024-02-20 山东鲁商通科技有限公司 一种基于区块链技术的虚拟预付卡发行系统和方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976231A (zh) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 基于区块链智能合约的资产管理方法及节点
CN105976232A (zh) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 资产交易方法和装置
CN106327173A (zh) * 2016-08-22 2017-01-11 布比(北京)网络技术有限公司 网络支付方法及装置
CN108154367A (zh) * 2017-12-26 2018-06-12 质数链网科技成都有限公司 一种区块链业务校验方法及装置
CN108876380A (zh) * 2018-08-07 2018-11-23 阿里巴巴集团控股有限公司 一种基于中心化结算与区块链存证的交易方法及系统
CN109242453A (zh) * 2018-08-07 2019-01-18 阿里巴巴集团控股有限公司 一种基于中心化结算与区块链存证的交易方法及系统
CN109377216A (zh) * 2018-08-07 2019-02-22 阿里巴巴集团控股有限公司 一种基于中心化结算与区块链存证的交易方法及系统

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6704985B2 (ja) * 2015-04-05 2020-06-03 デジタル・アセット・ホールディングス・エルエルシー デジタル資産仲介電子決済プラットフォーム
US11562353B2 (en) * 2015-11-24 2023-01-24 Mastercard International Incorporated Method and system for gross settlement by use of an opaque blockchain
CN105956923B (zh) * 2016-04-20 2022-04-29 上海如鸽投资有限公司 资产交易系统以及资产的数字化认证和交易方法
CN107038578B (zh) * 2017-04-19 2020-10-16 浙江数秦科技有限公司 基于区块链的数据交易平台中多重签名交易信息处理方法
CN107622387B (zh) * 2017-08-04 2021-12-10 苏州缓流科技有限公司 基于区块链技术的公众号支付方法
CN107491948B (zh) * 2017-08-04 2021-12-10 苏州缓流科技有限公司 基于区块链技术的转账支付方法
CN107705113B (zh) * 2017-09-06 2021-04-13 浙江大学 一种基于Baas架构的区块链跨境跨行支付方法和系统
CN107909358B (zh) * 2017-11-01 2021-08-17 北京融链科技有限公司 能源的结算方法、装置和系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976231A (zh) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 基于区块链智能合约的资产管理方法及节点
CN105976232A (zh) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 资产交易方法和装置
CN106327173A (zh) * 2016-08-22 2017-01-11 布比(北京)网络技术有限公司 网络支付方法及装置
CN108154367A (zh) * 2017-12-26 2018-06-12 质数链网科技成都有限公司 一种区块链业务校验方法及装置
CN108876380A (zh) * 2018-08-07 2018-11-23 阿里巴巴集团控股有限公司 一种基于中心化结算与区块链存证的交易方法及系统
CN109242453A (zh) * 2018-08-07 2019-01-18 阿里巴巴集团控股有限公司 一种基于中心化结算与区块链存证的交易方法及系统
CN109377216A (zh) * 2018-08-07 2019-02-22 阿里巴巴集团控股有限公司 一种基于中心化结算与区块链存证的交易方法及系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111514588A (zh) * 2020-03-26 2020-08-11 口碑(上海)信息技术有限公司 虚拟凭证的生成方法、装置、设备及存储介质
CN111596937A (zh) * 2020-05-14 2020-08-28 北京众享比特科技有限公司 一种区块链中节点的新特征同步生效的实现方法和系统
CN111596937B (zh) * 2020-05-14 2023-09-15 北京众享比特科技有限公司 一种区块链中节点的新特征同步生效的实现方法和系统

Also Published As

Publication number Publication date
SG11202010868SA (en) 2020-12-30
US20210049595A1 (en) 2021-02-18
TW202008235A (zh) 2020-02-16
CN109377216B (zh) 2021-03-23
CN109377216A (zh) 2019-02-22

Similar Documents

Publication Publication Date Title
WO2020029630A1 (zh) 一种基于中心化结算与区块链存证的交易方法及系统
WO2020029631A1 (zh) 一种基于中心化结算与区块链存证的交易方法及系统
WO2020029629A1 (zh) 一种基于中心化结算与区块链存证的交易方法及系统
TWI754133B (zh) 基於中心化與去中心化的雙重交易方法及系統
TWI729494B (zh) 基於區塊鏈智慧型合約的收帳記錄處理方法及系統
CN110009337B (zh) 一种基于区块链的数据处理方法和装置
WO2020052372A1 (zh) 一种基于区块链的版权事件存证方法及系统
CN111382168B (zh) 在联盟链网络中创建节点组、基于节点组的交易方法
WO2020082889A1 (zh) 征信评估方法及装置、电子设备
WO2020052382A1 (zh) 一种基于区块链的版权事件代理存证方法及系统
GB2565411A (en) Improved hardware security module management
TW201822033A (zh) 資源處理方法及裝置
US11615078B2 (en) Blockchain-based transaction methods
CN111309745B (zh) 虚拟资源处理方法、装置、电子设备及存储介质
WO2020015414A1 (zh) 一种基于区块链向作品发布者发放奖励的方法及装置
WO2020108054A1 (zh) 一种基于多个区块链网络的数据存证方法及系统
US20220036351A1 (en) Method and apparatus for resource exchange
US11223692B2 (en) Service execution methods and apparatuses
CN108710658B (zh) 一种数据记录的存储方法及装置
TWI763392B (zh) 機構識別編號的註冊方法及系統
WO2020108055A1 (zh) 一种基于多个区块链网络的数据读取方法及系统
CN113535562A (zh) 测试数据生成方法、系统、电子设备、介质及程序产品
CN117010878A (zh) 数据处理方法、装置、设备及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19847670

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19847670

Country of ref document: EP

Kind code of ref document: A1