WO2021036171A1 - 一种区块链交易处理方法及装置 - Google Patents

一种区块链交易处理方法及装置 Download PDF

Info

Publication number
WO2021036171A1
WO2021036171A1 PCT/CN2020/071415 CN2020071415W WO2021036171A1 WO 2021036171 A1 WO2021036171 A1 WO 2021036171A1 CN 2020071415 W CN2020071415 W CN 2020071415W WO 2021036171 A1 WO2021036171 A1 WO 2021036171A1
Authority
WO
WIPO (PCT)
Prior art keywords
query
transaction
service interface
display information
blockchain
Prior art date
Application number
PCT/CN2020/071415
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 US16/813,634 priority Critical patent/US10903989B2/en
Publication of WO2021036171A1 publication Critical patent/WO2021036171A1/zh

Links

Images

Classifications

    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • 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/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • 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

Definitions

  • the embodiments of this specification relate to the field of information technology, and in particular to a blockchain transaction processing method and device.
  • the user can obtain the business information carried in the blockchain transaction by querying the blockchain transaction stored in the blockchain network in order to understand the business situation.
  • the form of business information carried in blockchain transactions is not suitable for display to users.
  • the business information in a blockchain transaction may be some business codes, which are relatively abstract and difficult to understand for users; another example, the business information in a blockchain transaction may be some summary information, which is not enough for users. It is specific and clear; for another example, the business information in a blockchain transaction is only a piece of text, and users expect to display business information in more vivid ways (such as voice and video).
  • a blockchain transaction processing method is needed to optimize the display form of the business information carried in the blockchain transaction and make it more user-friendly.
  • a blockchain transaction processing method including:
  • Each node in the blockchain network executes:
  • the display information in the transaction log is displayed to the user.
  • a blockchain transaction processing device the device is any node in the blockchain network, and the device includes:
  • An obtaining module to obtain a block chain transaction generated by a specified business, and the block chain transaction carries business information
  • the determining module determines the display information according to the business information
  • a processing module based on the smart contract, writes the determined display information into the transaction log of the blockchain transaction;
  • the on-chain module writes the transaction log of the blockchain transaction and the blockchain transaction into the blockchain
  • the display information in the transaction log is displayed to the user.
  • the technical solution provided by the embodiment of this specification deploys a smart contract corresponding to a designated service in the blockchain network, which is used to determine the display information suitable for display to the user according to the business information carried in the blockchain transaction generated by the designated service.
  • the displayed information is written into the transaction log of the blockchain transaction as the execution result of the blockchain transaction. Since both the blockchain transaction and the corresponding transaction log are written to the blockchain, when a subsequent user requests to query the blockchain transaction, the display information in the transaction log of the blockchain transaction can be displayed to the user.
  • any one of the embodiments of the present specification does not need to achieve all the above-mentioned effects.
  • FIG. 1 is a schematic diagram of the architecture of a blockchain transaction query system provided by an embodiment of this specification
  • FIG. 2 is a schematic flowchart of a blockchain transaction query method provided by an embodiment of this specification
  • FIG. 3 is a schematic flowchart of a blockchain transaction processing method provided by an embodiment of this specification.
  • FIG. 4 is a schematic flowchart of a blockchain transaction processing method provided by an embodiment of this specification.
  • Figure 5 is a schematic flow diagram of a blockchain transaction processing method provided in this specification.
  • FIG. 6 is a schematic flowchart of a query method for blockchain transactions processed in the method shown in FIG. 5 according to an embodiment of the present specification
  • Figure 7 is a schematic structural diagram of a blockchain transaction query device provided in this specification.
  • Figure 8 is a schematic structural diagram of a block chain transaction query device provided in this specification.
  • Figure 9 is a schematic structural diagram of a blockchain transaction processing device provided in this specification.
  • FIG. 10 is a schematic structural diagram of a query device for display information provided by an embodiment of this specification.
  • FIG. 11 is a schematic structural diagram of a query device for display information provided by an embodiment of this specification.
  • FIG. 12 is a schematic structural diagram of a block chain transaction processing device provided by an embodiment of this specification.
  • FIG. 13 is a schematic structural diagram of a device for querying blockchain transactions provided by an embodiment of this specification.
  • FIG. 14 is a schematic structural diagram of a device for querying blockchain transactions provided by an embodiment of this specification.
  • Fig. 15 is a schematic structural diagram of a computer device used to configure the apparatus in the embodiments of this specification.
  • FIG. 1 is a schematic structural diagram of a blockchain transaction query system provided by an embodiment of the present specification. As shown in FIG. 1, it includes a consortium chain network, a query server, and at least one query client.
  • the consortium chain network is a consortium-type blockchain network composed of node devices controlled by multiple institutional members.
  • the blockchain transactions generated by the business can be submitted to the consortium chain network for storage.
  • the query server is the centralized device introduced in the embodiment of this specification, and is connected to the alliance chain network.
  • the query server has the authority to access the blockchain on at least one node in the alliance chain network.
  • the consortium chain network may not grant the query server permission to access the blockchain.
  • the query server is specifically the server of the Block as a Service (Block as a Service, BaaS) platform.
  • the initiation and establishment of the alliance chain network can be carried out through the BaaS platform.
  • the administrator of the alliance chain network can log in to the BaaS platform to configure various parameters of the alliance chain network (such as the number of nodes, consensus protocol, whether users are authorized to access, which users are authorized to access, etc.).
  • the query server can correspond to more than one query client, and each query client corresponds to a user.
  • a user wants to query the blockchain transaction stored in the alliance chain network, he needs to request a query server proxy query through the query client installed on his device (such as a mobile phone, computer).
  • the query server creates a query service interface corresponding to the blockchain transaction for each blockchain transaction stored in the alliance chain network in advance, and exposes the created query service interface to each query client.
  • the query service interface is actually an application programming interface (Application Programming Interface, API).
  • API Application Programming Interface
  • the query server exposes the API corresponding to each blockchain transaction to the query client, which means that the query client can call a certain API. Way to initiate a query request for the blockchain transaction corresponding to the API.
  • Any query client determines the query service interface specified by the user as the target query service interface; calls the target query service interface of the query server; provides the blockchain transaction received from the query server to the user .
  • the query server when it is detected that the target query service interface is called, obtains the blockchain transaction corresponding to the target query service interface from the alliance chain network, and returns the obtained blockchain transaction to the query Client.
  • the query server can also return the display information in the transaction log corresponding to the target query service interface to the query client for display, and can also query the blockchain transaction corresponding to the service interface according to the target
  • the transaction identifier of the previous associated blockchain transaction in the transaction log of the target query service interface is used to further query each associated blockchain transaction before the blockchain transaction corresponding to the target query service interface and the display information in the corresponding transaction log.
  • the information that is further queried is also returned to the query client.
  • Figure 2 is a schematic flow chart of a blockchain transaction query method provided by an embodiment of this specification, including the following steps:
  • the query client determines the query service interface designated by the user as the target query service interface.
  • the query client when a user needs to query a certain blockchain transaction, he can input the transaction identifier of the blockchain transaction (usually the hash value of the blockchain transaction) to the query client, and the query client will According to the transaction identifier input by the user, the blockchain transaction to be queried by the user is determined, and then the query service interface to be called is determined.
  • the transaction identifier of the blockchain transaction usually the hash value of the blockchain transaction
  • the query server may determine a corresponding uniform resource locator (URL) for each query service interface, and issue the URL to the query client.
  • the query client displays the URL corresponding to each query service interface to the user, and the user can specify the query service interface to be invoked by triggering the URL.
  • URL uniform resource locator
  • the query server can encode the URL corresponding to each query service interface into a barcode (one-dimensional barcode, two-dimensional barcode, etc.), and send the barcode to the query client.
  • a user can display the barcode of the query service entry corresponding to a blockchain transaction to other users through his own query client, and other users can use their own query client to scan the barcode and trigger their own query client to call the corresponding Query service entrance.
  • the query client scans the barcode specified by the user, parses the interface identifier contained in the barcode, and then uses the query service interface corresponding to the parsed interface identifier as the target query service interface.
  • the query client can determine whether the user has the blockchain transaction query authority, and if the determination result is yes, then the query service interface designated by the user is determined.
  • the query client determines whether the user has the blockchain transaction query authority, and if the determination result is yes, it calls the target query service interface of the query server.
  • the administrator of the consortium chain network can configure the query authority on the BaaS platform (that is, the query server). Specifically, the administrator can specify some user identities (such as mobile phone number, ID number, account number, etc.) to the query server, and these identities have the authority to query the stored blockchain transactions in the alliance chain network.
  • the query server records these identities with query authority.
  • the query client determines whether the user has the blockchain transaction query authority, and the query client may send the user's identity information to the query server. According to the received identity information, the server judges whether the user corresponding to the identity information is among a number of users with blockchain transaction query authority pre-designated by members of the designated institution, and if so, notifies the query client of this The user corresponding to the identity information has the blockchain transaction query authority; otherwise, the query client is notified that the user corresponding to the identity information does not have the blockchain transaction query authority.
  • the query server obtains the blockchain transaction corresponding to the target query service interface from the alliance chain network when it is monitored that the target query service interface is called.
  • the designated organization member of the consortium chain network grants its own authority certificate to the query server in advance, and the authority certificate is used to access the blockchain on the node controlled by the designated organization member .
  • the query server monitors that the target query service interface is called, it can use the authority certificate pre-approved by the designated organization member to access the blockchain on the node controlled by the designated organization member; Read the block chain transaction corresponding to the target query service interface from the block chain.
  • the query server can determine whether the content of the acquired blockchain transaction violates the preset content review rules, and if it does not violate, the acquired blockchain transaction is returned to the query client .
  • the query server can detect the transaction content in the obtained blockchain transaction based on the keyword detection technology. If the transaction content involves pornography, it will determine that it does not meet the content review rules and refuse to return the blockchain transaction to the query client. .
  • S208 The query client provides the received blockchain transaction to the user.
  • the query server can record the event each time the query service interface is called.
  • the information of the event includes time, location, identity information of the requested user, etc. . It is also possible to record each user's query of blockchain transactions for each user.
  • the centralized "query server-query client" architecture is introduced, the query server is connected to the alliance chain network, and a corresponding blockchain transaction is created for each blockchain transaction stored in the alliance chain network.
  • the query service interface of each blockchain transaction is exposed to the query client. Users can query blockchain transactions by calling the query service interface through the query client, which is simple and efficient.
  • this manual also discloses a blockchain transaction processing method, which is used to optimize the display form of the business information carried in the blockchain transaction to make it more user-friendly.
  • the blockchain transaction processing method disclosed in this manual is not limited to optimizing the display form of the business information of the blockchain transaction stored in the alliance chain network, and can also optimize other types of blockchain networks (such as public chains). The display form of business information in blockchain transactions stored in the network).
  • FIG. 3 is a schematic flow chart of a blockchain transaction processing method provided by an embodiment of this specification. Each node in the blockchain network performs the following steps:
  • S300 Obtain a blockchain transaction generated by a specified business.
  • the blockchain transaction generated by the business refers to the blockchain transaction initiated by the users participating in the business during the operation of the business.
  • Business information is contained in blockchain transactions.
  • the blockchain network can simultaneously connect to multiple services.
  • the blockchain network can connect data storage certification business and commodity traceability business. Every time a piece of data needs to be deposited in the data storage business, a corresponding block chain transaction is generated.
  • the business information carried in the block chain transaction can be the hash value of the data to be stored; Recording a circulation link of a commodity generates a corresponding blockchain transaction.
  • the business information carried in the blockchain transaction may be related record information of the commodity passing through the circulation link.
  • the designated service can be one of the multiple services connected to the blockchain network.
  • the method described in Figure 3 is for a specific service.
  • S302 Invoke a pre-deployed smart contract corresponding to the designated service.
  • the smart contract corresponding to the specified business is deployed in the blockchain network, and the smart contract is used to realize the
  • the business information determines the function of displaying information suitable for displaying to users. It can be understood that if there are multiple services connected to the blockchain network, it is necessary to deploy the smart contract corresponding to the service in the blockchain network for each service.
  • each node in the blockchain network After each node in the blockchain network obtains the blockchain transaction generated by the specified business, it needs to call the smart contract corresponding to the specified business to process the blockchain transaction.
  • S304 Based on the smart contract, determine display information according to the business information.
  • S306 Based on the smart contract, write the determined display information into the transaction log of the blockchain transaction; or write the hash value of the determined display information into the transaction log of the blockchain transaction, and store it Definite display information.
  • Steps S304-S306 show the process of smart contract processing blockchain transactions.
  • Determining the display information according to the business information may specifically be the conversion of the business information into display information for display to the user.
  • business information is a piece of abstract code, which is converted into a text language so that users can read it.
  • the display information is determined according to the business information. Specifically, the display information that matches the business information may be selected from the preset display information.
  • the encryption key provided by the initiator of the blockchain transaction it is specifically possible to use the encryption key provided by the initiator of the blockchain transaction to encrypt the determined display information, and write the encrypted display information into the blockchain transaction Transaction log. If asymmetric encryption technology is used, the encryption key can be the public key of the initiator of the blockchain transaction. In this way, only the initiator of the blockchain transaction can use its own private key to decrypt it.
  • the encryption key provided by the initiator of the blockchain transaction it is also possible to use the encryption key provided by the initiator of the blockchain transaction to encrypt the determined display information, and to store the encrypted display information.
  • the smart contract corresponding to the designated service may also have a built-in data structure agreed upon with the query client in advance.
  • the display information encapsulated based on the data structure can be determined according to the business information and the data structure built in the smart contract.
  • S308 Write the transaction log of the blockchain transaction and the blockchain transaction into the blockchain.
  • the display information in the transaction log is displayed to the user.
  • the smart contract corresponding to the designated business is deployed in the blockchain network to determine the display information suitable for display to the user according to the business information carried in the blockchain transaction generated by the designated business, and the determined display
  • the information is written into the transaction log of the blockchain transaction as the execution result of the blockchain transaction. Since both the blockchain transaction and the corresponding transaction log are written to the blockchain, when a subsequent user requests to query the blockchain transaction, the display information in the transaction log of the blockchain transaction can be displayed to the user.
  • FIG. 4 is a schematic flowchart of a method for querying the display information shown in FIG. 3 according to an embodiment of the present specification, which includes the following steps:
  • the query client determines the query service interface designated by the user as the target query service interface.
  • the query server extracts display information from the transaction log, and returns the display information to the query client.
  • the transaction log may not be obtained, but the target query service interface corresponding to the target query service interface may be obtained from the storage of any node in the alliance chain network. Display information corresponding to the blockchain transaction.
  • S408 The query client displays the received display information to the user.
  • the method shown in Figure 4 is actually based on the architecture shown in Figure 1.
  • a user requests to query a blockchain transaction, he can also query the display information corresponding to the business information carried in the blockchain transaction.
  • the query client will This display information is displayed to users, so that users can better understand the business information in blockchain transactions.
  • the query client uses the user's decryption key to decrypt the received display information, and the decrypted The display information of is displayed to the user.
  • a data structure analysis logic may be built in the query client to analyze data encapsulated based on a preset data structure, and the display information is encapsulated based on the data structure.
  • the query client can parse the received display information based on the built-in data structure analysis logic, and display the parsed display information to the user.
  • this manual also discloses a blockchain transaction processing method, which is used to improve the efficiency of querying a series of related blockchain transactions generated by a certain business task. It should be noted that the blockchain transaction processing method disclosed in this manual is not limited to improving the efficiency of querying blockchain transactions stored in the alliance chain network, but can also improve querying other types of blockchain networks (such as public chain networks). ) The efficiency of the blockchain transaction stored in.
  • FIG. 5 is a schematic flow diagram of a blockchain transaction processing method provided in this manual, including the following steps:
  • S500 Obtain the blockchain transaction generated by any business task under the specified business as the current blockchain transaction.
  • the business task under the designated business refers to a continuous business task generated during the operation of the designated business.
  • a series of related blockchain transactions need to be generated and submitted to the district.
  • Block chain network for storage For example, under the merchandise traceability business, a business task for merchandise A is generated. Every link of merchandise A from the factory to the delivery to consumers needs to generate corresponding blockchain transactions and submit them to the blockchain network for storage.
  • the transportation process of commodity A is a business task.
  • a series of blockchain transactions generated by this business task are related to each other, and jointly record the transportation process of commodity A.
  • S502 Invoke a pre-deployed smart contract corresponding to the designated service.
  • the smart contract corresponding to the specified business is deployed in the blockchain network, and the smart contract is used to write the transaction of the previous associated blockchain transaction in the transaction log of the currently processed blockchain transaction The function of the logo.
  • each node in the blockchain network After each node in the blockchain network obtains the blockchain transaction generated by the specified business, it needs to call the smart contract corresponding to the specified business to process the blockchain transaction.
  • S504 Based on the smart contract, obtain the transaction identifier of the last blockchain transaction generated by the business task, and write the acquired transaction identifier in the transaction log of the current blockchain transaction.
  • Step S504 shows the process of smart contract processing blockchain transactions.
  • the transaction identifier of the blockchain is a hash value obtained by hashing the blockchain transaction.
  • the smart contract corresponding to the designated business may maintain an identification record table corresponding to the business task.
  • the transaction identifier of the current blockchain transaction can be added as an identifier record to the identifier record table.
  • acquiring the transaction identifier of the last blockchain transaction generated by the business task may be specifically reading the transaction identifier from the identifier record recently added to the identifier record table.
  • the smart contract corresponding to the specified business can maintain the identification record corresponding to the business task.
  • the transaction identifier in the identifier record can be updated to the transaction identifier of the current blockchain transaction.
  • acquiring the transaction identifier of the last blockchain transaction generated by the business task may specifically be to read the transaction identifier from the identifier record.
  • the encryption key associated with the business task can be used to encrypt the acquired transaction identification; the encrypted transaction identification is written in the transaction log of the current blockchain transaction.
  • S506 Write the transaction log of the current blockchain transaction and the current blockchain transaction into the blockchain.
  • the last blockchain transaction generated by the business task before the blockchain transaction can be further queried according to the transaction log of the blockchain transaction .
  • Fig. 6 is a schematic flowchart of a query method for a blockchain transaction processed in the method shown in Fig. 5 according to an embodiment of the present specification, including the following steps:
  • the query client determines the query service interface designated by the user as the target query service interface.
  • S602 The query client invokes the target query service interface of the query server.
  • the query server returns the blockchain transaction corresponding to the target query service interface to the query client.
  • S608 cyclically execute the following steps S6081 to S6084 until the preset stop condition is met.
  • the preset stop condition may be that a specified number of blockchain transactions have been returned to the query client, or it may be that all associated blocks generated before the blockchain transaction corresponding to the target query service interface have been returned All chain transactions are returned to the querying client.
  • S6081 Use the transaction log of the blockchain transaction corresponding to the target query service interface as the target transaction log.
  • S6082 Extract a transaction identifier from the target transaction log, and obtain a blockchain transaction corresponding to the extracted transaction identifier and a corresponding transaction log from the alliance chain network.
  • S6084 Re-use the transaction log of the blockchain transaction corresponding to the extracted transaction identifier as the target transaction log.
  • the method shown in Fig. 6 is actually based on the architecture shown in Fig. 1.
  • a user requests to query a certain blockchain transaction, he can also query all associated blockchain transactions generated before the blockchain transaction.
  • the query client will also show a series of related blockchain transactions to the user, avoiding traversal in the blockchain.
  • extracting a transaction identifier from the target transaction log may specifically be: extracting a transaction identifier encrypted by an encryption key associated with a designated business task from the target transaction log, and the target query
  • the blockchain transaction corresponding to the service interface is generated by the designated business task; then the decryption key associated with the designated business task is used to decrypt the transaction identifier in the target transaction log.
  • a blockchain browser function can be built into the user's query client.
  • the user uses the query client to request blockchain transactions, and the query server agent queries
  • the user returns the blockchain transaction itself and the display information in the corresponding transaction log, and according to the transaction identifier of the last associated blockchain transaction in the transaction log, all associated areas before the blockchain transaction that the user initially queried Blockchain transactions (blockchain transactions related to each other are blockchain transactions generated by the same business task) and the display information in the corresponding transaction log are also returned to the query client, and then displayed to the user.
  • Figure 7 is a schematic structural diagram of a blockchain transaction query device provided in this manual.
  • the query server creates a query service interface corresponding to the blockchain transaction for each blockchain transaction stored in the alliance chain network in advance, and The created query service interface is exposed to the device;
  • the device includes:
  • the determining module 701 determines the query service interface designated by the user as the target query service interface
  • the calling module 702 calls the target query service interface of the query server, so that the query server obtains the target query service interface corresponding to the target query service interface from the alliance chain network when it detects that the target query service interface is called. Block chain transactions, and return the obtained block chain transactions to the query client;
  • the providing module 703 provides the received blockchain transaction to the user.
  • Figure 8 is a schematic structural diagram of a block chain transaction query device provided in this specification.
  • the device creates a query service interface corresponding to the block chain transaction for each block chain transaction stored in the alliance chain network in advance, and combines The created query service interface is exposed to the query client;
  • the device includes:
  • the processing module 801 obtains the blockchain transaction corresponding to the target query service interface from the alliance chain network, and returns the obtained blockchain transaction to the query client, so that the query client
  • the terminal provides the received blockchain transaction to the user;
  • the call request is a call request for a target query service interface sent by the query client, and the target query service interface is a user-specified query service interface determined by the query client.
  • Fig. 9 is a schematic structural diagram of a block chain transaction processing device provided in this specification.
  • the device is any node in the block chain network, and the device includes:
  • the obtaining module 901 obtains a block chain transaction generated by a specified business, and the block chain transaction carries business information;
  • Invoke module 902 to invoke a pre-deployed smart contract corresponding to the designated service
  • the determining module 903 determines the display information according to the business information
  • the processing module 904 based on the smart contract, writes the determined display information into the transaction log of the blockchain transaction; or, writes the hash value of the determined display information into the transaction log of the blockchain transaction, And store certain display information;
  • the on-chain module 905 writes the transaction log of the blockchain transaction and the blockchain transaction into the blockchain
  • the display information in the transaction log is displayed to the user.
  • Figure 10 is a schematic structural diagram of a query device for display information provided by an embodiment of this specification.
  • the query server creates a query service interface corresponding to each blockchain transaction stored in the alliance chain network in advance. And expose the created query service interface to the device;
  • the device includes:
  • the determining module 1001 determines the query service interface specified by the user as the target query service interface
  • the calling module 1002 which calls the target query service interface of the query server, so that the query server obtains the target query service interface corresponding to the target query service interface from the alliance chain network when it detects that the target query service interface is called.
  • the transaction log of the blockchain transaction so that the query server extracts display information from the transaction log, and returns the display information to the query client;
  • the display module 1003 displays the received display information to the user.
  • Figure 11 is a schematic structural diagram of a query device for display information provided by an embodiment of the present specification.
  • the device creates a query service interface corresponding to each blockchain transaction stored in the alliance chain network in advance. And expose the created query service interface to the query client;
  • the device includes:
  • the obtaining module 1101 when it is detected that the target query service interface is called, obtains the transaction log of the blockchain transaction corresponding to the target query service interface from the alliance chain network; wherein, the target query service interface is the user's The query service interface specified by the query client;
  • the extraction module 1102 extracts display information from the transaction log, and returns the display information to the query client, so that the query client displays the received display information to the user.
  • Fig. 12 is a schematic structural diagram of a block chain transaction processing device provided by an embodiment of the present specification.
  • the device is any node in the block chain network, and the device includes:
  • the obtaining module 1201 obtains a block chain transaction generated by any business task under the specified business as the current block chain transaction;
  • Invoke module 1202 to invoke a pre-deployed smart contract corresponding to the designated service
  • the processing module 1203 based on the smart contract, acquires the transaction identifier of the last blockchain transaction generated by the business task, and writes the acquired transaction identifier in the transaction log of the current blockchain transaction;
  • the on-chain module 1204 writes the transaction log of the current blockchain transaction and the current blockchain transaction into the blockchain
  • the blockchain transaction generated by the business task before the blockchain transaction can be further queried according to the transaction log of the blockchain transaction.
  • Figure 13 is a schematic structural diagram of a device for querying blockchain transactions provided by an embodiment of this specification.
  • the query server creates a query service interface corresponding to the blockchain transaction for each blockchain transaction stored in the alliance chain network in advance , And expose the created query service interface to the device;
  • the device includes:
  • the determining module 1301 determines the query service interface designated by the user as the target query service interface
  • the calling module 1302 which calls the target query service interface of the query server, so that the query server obtains the target query service interface corresponding to the target query service interface from the alliance chain network when it detects that the target query service interface is called.
  • Blockchain transactions and corresponding transaction logs so that the query server returns the blockchain transaction corresponding to the target query service interface to the query client, and executes the following steps cyclically until the preset stop condition is met :
  • the transaction and the corresponding transaction log; the blockchain transaction corresponding to the extracted transaction identifier is returned to the query client; the transaction log of the blockchain transaction corresponding to the extracted transaction identifier is re-used as the target transaction log.
  • Figure 14 is a schematic structural diagram of a device for querying blockchain transactions provided by an embodiment of this specification.
  • the device creates a query service interface corresponding to the blockchain transaction for each blockchain transaction stored in the alliance chain network in advance , And expose the created query service interface to the query client;
  • the device includes:
  • the first processing module 1401 when it is detected that the target query service interface is called, obtains the blockchain transaction corresponding to the target query service interface and the corresponding transaction log from the alliance chain network; the target query interface is the user The query service interface designated by the query client;
  • the second processing module 1402 returns the blockchain transaction corresponding to the target query service interface to the query client, and executes the following steps cyclically until the preset stopping condition is met: the zone corresponding to the target query service interface
  • the transaction log of the block chain transaction is used as the target transaction log;
  • the transaction identifier is extracted from the target transaction log, and the blockchain transaction corresponding to the extracted transaction identifier and the corresponding transaction log are obtained from the alliance chain network;
  • the extracted transaction The blockchain transaction corresponding to the identifier is returned to the query client; the transaction log of the blockchain transaction corresponding to the extracted transaction identifier is re-used as the target transaction log.
  • the embodiments of this specification also provide a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the program to implement the method disclosed in this specification Function.
  • FIG. 15 shows a more specific hardware structure diagram of a computing device provided by an embodiment of this specification.
  • the device may include a processor 1510, a memory 1520, an input/output interface 1530, a communication interface 1540, and a bus 1550.
  • the processor 1510, the memory 1520, the input/output interface 1530, and the communication interface 1540 realize the communication connection between each other in the device through the bus 1550.
  • the processor 1510 may be implemented by a general-purpose CPU (Central Processing Unit, central processing unit), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits for execution related Program to realize the technical solutions provided in the embodiments of this specification.
  • a general-purpose CPU Central Processing Unit, central processing unit
  • microprocessor microprocessor
  • application specific integrated circuit Application Specific Integrated Circuit, ASIC
  • ASIC Application Specific Integrated Circuit
  • the memory 1520 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory, random access memory), static storage device, dynamic storage device, etc.
  • the memory 1520 may store an operating system and other application programs. When the technical solutions provided in the embodiments of the present specification are implemented through software or firmware, related program codes are stored in the memory 1520 and called and executed by the processor 1510.
  • the input/output interface 1530 is used to connect input/output modules to realize 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 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., and an output device may include a display, a speaker, a vibrator, an indicator light, and the like.
  • the communication interface 1540 is used to connect a communication module (not shown in the figure) to realize the communication interaction between the device and other devices.
  • the communication module can realize communication through wired means (such as USB, network cable, etc.), or through wireless means (such as mobile network, WIFI, Bluetooth, etc.).
  • the bus 1550 includes a path to transmit information between various components of the device (for example, the processor 1510, the memory 1520, the input/output interface 1530, and the communication interface 1540).
  • the above device only shows the processor 1510, the memory 1520, the input/output interface 1530, the communication interface 1540, and the bus 1550, in the specific implementation process, the device may also include the necessary equipment for normal operation. Other components.
  • the above-mentioned devices may also include only the components necessary to implement the solutions of the embodiments of the present specification, and not necessarily include all the components shown in the figures.
  • the embodiments of this specification also provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the function of the method disclosed in this specification is realized.
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • a typical implementation device is a computer.
  • the specific form of the computer can 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 receiving and sending device, and a game control A console, a tablet computer, a wearable device, or a combination of any of these devices.

Abstract

公开了一种区块链交易处理方法及装置。在区块链网络中部署指定业务对应的智能合约,用于根据指定业务产生的区块链交易中携带的业务信息确定适合展示给用户的展示信息,确定的展示信息作为区块链交易的执行结果写入区块链交易的交易日志中。由于区块链交易与相应的交易日志都会被写入区块链,后续用户请求查询区块链交易时,可以将所述区块链交易的交易日志中的展示信息展示给用户。

Description

一种区块链交易处理方法及装置 技术领域
本说明书实施例涉及信息技术领域,尤其涉及一种区块链交易处理方法及装置。
背景技术
目前,将区块链技术与具体的业务结合成为一种趋势。用户可以通过查询区块链网络中存储的区块链交易的方式,获得区块链交易中携带的业务信息,以便了解业务情况。
然而在实际应用中,区块链交易中携带的业务信息的形式并不适合展示给用户。例如,区块链交易中的业务信息可能是一些业务代码,对用户而言较为抽象,难以理解;又如,区块链交易中的业务信息可能是一些概要性的信息,对用户而言不够具体明确;又如,区块链交易中的业务信息仅是一段文本,而用户期望可以通过更加生动的方式(如语音、视频)展示业务信息。
基于此,需要一种区块链交易处理方法,以优化区块链交易中携带的业务信息的展示形式,使其对用户更为友好。
发明内容
为了优化区块链交易中携带的业务信息的展示形式,本说明书实施例提供一种区块链交易处理方法及装置,技术方案如下:
根据本说明书实施例的第1方面,提供一种区块链交易处理方法,包括:
区块链网络中的每个节点执行:
获取指定业务产生的区块链交易,所述区块链交易中携带有业务信息;
调用预先部署的对应于所述指定业务的智能合约;
基于所述智能合约,根据所述业务信息,确定展示信息;
基于所述智能合约,将确定的展示信息写入所述区块链交易的交易日志;
将所述区块链交易与所述区块链交易的交易日志写入区块链;
其中,当用户请求查询所述区块链交易时,将所述交易日志中的展示信息展示给用户。
根据本说明书实施例的第2方面,提供一种区块链交易处理装置,所述装置是所述区块链网络中的任一节点,所述装置包括:
获取模块,获取指定业务产生的区块链交易,所述区块链交易中携带有业务信息;
调用模块,调用预先部署的对应于所述指定业务的智能合约;
确定模块,基于所述智能合约,根据所述业务信息,确定展示信息;
处理模块,基于所述智能合约,将确定的展示信息写入所述区块链交易的交易日志;
上链模块,将所述区块链交易与所述区块链交易的交易日志写入区块链;
其中,当用户请求查询所述区块链交易时,将所述交易日志中的展示信息展示给用户。
本说明书实施例所提供的技术方案,在区块链网络中部署指定业务对应的智能合约,用于根据指定业务产生的区块链交易中携带的业务信息确定适合展示给用户的展示信息,确定的展示信息作为区块链交易的执行结果写入区块链交易的交易日志中。由于区块链交易与相应的交易日志都会被写入区块链,后续用户请求查询区块链交易时,可以将所述区块链交易的交易日志中的展示信息展示给用户。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本说明书实施例。
此外,本说明书实施例中的任一实施例并不需要达到上述的全部效果。
附图说明
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要通过的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书实施例中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。
图1是本说明书实施例提供的一种区块链交易查询系统的架构示意图;
图2是本说明书实施例提供的一种区块链交易查询方法的流程示意图;
图3是本说明书实施例提供的一种区块链交易处理方法的流程示意图;
图4是本说明书实施例提供的一种区块链交易处理方法的流程示意图;
图5是本说明书提供的一种区块链交易处理方法的流程示意图;
图6是本说明书实施例提供的一种针对图5所示的方法中处理的区块链交易的查询方法的流程示意图;
图7是本说明书提供的一种区块链交易查询装置的结构示意图;
图8是本说明书提供的一种区块链交易查询装置的结构示意图;
图9是本说明书提供的一种区块链交易处理装置的结构示意图;
图10是本说明书实施例提供的一种针对展示信息的查询装置的结构示意图;
图11是本说明书实施例提供的一种针对展示信息的查询装置的结构示意图;
图12是本说明书实施例提供的一种区块链交易处理装置的结构示意图;
图13是本说明书实施例提供的一种查询区块链交易的装置的结构示意图;
图14是本说明书实施例提供的一种查询区块链交易的装置的结构示意图;
图15是用于配置本说明书实施例装置的一种计算机设备的结构示意图。
具体实施方式
为了使本领域技术人员更好地理解本说明书实施例中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行详细地描述,显然,所描述的实施例仅仅是本说明书的一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于保护的范围。
以下结合附图,详细说明本说明书各实施例提供的技术方案。
图1是本说明书实施例提供的一种区块链交易查询系统的架构示意图,如图1所示,包括联盟链网络、查询服务端与至少一个查询客户端。
其中,联盟链网络是联盟式的区块链网络,由多个机构成员分别控制的节点设备组成。在实践中,业务产生的区块链交易可以提交给联盟链网络进行存储。
查询服务端是本说明书实施例中引入的中心化设备,对接于联盟链网络。查询服务端具有访问联盟链网络中的至少一个节点上的区块链的权限。当然,联盟链网络也可以不授予查询服务端访问区块链的权限。
在实践中,查询服务端具体是区块链即服务(Block as a Service,BaaS)平台的服务 器。联盟链网络的发起和建立可以通过BaaS平台来进行。联盟链网络的管理员可以登录BaaS平台,来对联盟链网络的各项参数(如节点数量、共识协议、是否授权用户访问、授权哪些用户访问等)进行配置。
查询客户端与查询服务端之间是典型的客户机-服务器(Client-Server,C/S)架构。查询服务端可以对应有不止一个查询客户端,每个查询客户端对应有一个用户。用户想要查询联盟链网络存储的区块链交易时,需要通过自己的设备(如手机、电脑)上安装的查询客户端请求查询服务端代理查询。
所述查询服务端预先针对所述联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给每个查询客户端。其中,查询服务接口实际上是应用编程接口(Application Programming Interface,API),查询服务端将每个区块链交易对应的API暴露给查询客户端,意味着查询客户端可以通过调用某个API的方式,来发起针对该API对应的区块链交易的查询请求。
任一查询客户端,确定用户指定的查询服务接口,作为目标查询服务接口;调用所述查询服务端的目标查询服务接口;将从所述查询服务端接收到的区块链交易提供给所述用户。
查询服务端,当监测到所述目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易,并将获取的区块链交易返回给所述查询客户端。
在后文中的实施例中可以看到,查询服务端也可以将目标查询服务接口对应的交易日志中的展示信息返回给查询客户端进行展示,还可以根据目标查询服务接口对应的区块链交易的交易日志中的上一个关联区块链交易的交易标识来进一步查询到目标查询服务接口对应的区块链交易之前的每个关联的区块链交易和相应的交易日志中的展示信息,将进一步查询到的这些信息也返回给查询客户端。
图2是本说明书实施例提供的一种区块链交易查询方法的流程示意图,包括如下步骤:
S200:查询客户端确定用户指定的查询服务接口,作为目标查询服务接口。
在本说明书实施例中,用户需要查询某个区块链交易时,可以向查询客户端输入该区块链交易的交易标识(一般是该区块链交易的哈希值),查询客户端会根据用户输入的交易标识,确定用户所要查询的区块链交易,进而确定所要调用的查询服务接口。
进一步地,查询服务端可以为每个查询服务接口确定对应的统一资源定位符 (Uniform Resoure Locator,URL),将URL下发给查询客户端。查询客户端将每个查询服务接口对应的URL展示给用户,用户触发URL即可指定所要调用的查询服务接口。
更进一步地,查询服务端可以将每个查询服务接口对应的URL编码成条码(一维条码、二维条码等),将条码下发给查询客户端。某个用户可以通过自己的查询客户端将某个区块链交易对应的查询服务入口的条码展示给其他用户,其他用户可以使用自己的查询客户端扫描该条码,触发自己的查询客户端调用相应的查询服务入口。
即,查询客户端对用户指定的条码进行扫描,解析出所述条码中包含的接口标识,进而将解析出的接口标识对应的查询服务接口作为目标查询服务接口。
在本说明书实施例中,所述查询客户端可以判断用户是否有区块链交易查询权限,若判断结果为是,则确定所述用户指定的查询服务接口。
或者,所述查询客户端判断用户是否有区块链交易查询权限,若判断结果为是,则调用所述查询服务端的目标查询服务接口。
在本说明书实施例中,联盟链网络的管理员(一般是发起联盟链网络的机构成员指定的)可以在BaaS平台(即查询服务端)上进行查询权限的配置。具体地,管理员可以向查询服务端指定一些用户的身份标识(如手机号、身份证号、账号等),这些身份标识有权限查询联盟链网络中的存储的区块链交易。查询服务端记录下这些有查询权限的身份标识。
所述查询客户端判断用户是否有区块链交易查询权限,可以所述查询客户端向所述查询服务端发送用户的身份信息。所述服务端根据接收到的身份信息,判断该身份信息对应的用户是否在所述指定机构成员预先指定的若干具有区块链交易查询权限的用户中,若是,则通知所述查询客户端该身份信息对应的用户具有区块链交易查询权限,否则,通知所述查询客户端该身份信息对应的用户不具有区块链交易查询权限。
S202:查询客户端调用所述查询服务端的目标查询服务接口。
S204:查询服务端当监测到所述目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易。
S206:将获取的区块链交易返回给所述查询客户端。
在本说明书实施例中,所述联盟链网络的指定机构成员预先将自身的权限证书授予 所述查询服务端,所述权限证书用于访问所述指定机构成员所控制的节点上的区块链。
所述查询服务端当监测到所述目标查询服务接口被调用时,可以使用所述指定机构成员预先授予的权限证书访问所述指定机构成员所控制的节点上的区块链;然后从所访问的区块链中读取所述目标查询服务接口对应的区块链交易。
在本说明书实施例中,所述查询服务端可以判断获取的区块链交易的内容是否违背预设的内容审核规则,若不违背,则将获取的区块链交易返回给所述查询客户端。例如,查询服务端可以根据关键词检测技术,检测获取的区块链交易中的交易内容,如果交易内容涉及色情,则认定不符合内容审核规则,拒绝将该区块链交易返回给查询客户端。
S208:查询客户端将接收到的区块链交易提供给所述用户。
在本说明书实施例中,针对每个查询服务接口,查询服务端可以对该查询服务接口每次被调用的事件进行记录,该事件的信息包括时间、地点、请求的用户的身份信息等进行记录。也可以针对每个用户,对该用户每次查询区块链交易的事件进行记录。
通过图2所示的方法,引入中心化的“查询服务端-查询客户端”架构,查询服务端与联盟链网络对接,并且针对联盟链网络中存储的每个区块链交易都创建了相应的查询服务接口,将每个区块链交易对应的查询服务接口暴露给查询客户端。用户通过查询客户端以调用查询服务接口的方式进行区块链交易的查询,简易高效。
此外,本说明书还公开了一种区块链交易处理方法,用于优化区块链交易中携带的业务信息的展示形式,使其对用户更为友好。需要说明的是,本说明书公开的区块链交易处理方法,不限于优化联盟链网络中存储的区块链交易的业务信息的展示形式,也可以优化其他类型的区块链网络(如公有链网络)中存储的区块链交易中业务信息的展示形式。
图3是本说明书实施例提供的一种区块链交易处理方法的流程示意图,区块链网络中的每个节点执行如下步骤:
S300:获取指定业务产生的区块链交易。
在本文中,业务产生的区块链交易,是指业务运转过程中,参与业务的用户发起的区块链交易。区块链交易中包含有业务信息。
在本说明书实施例中,区块链网络可以同时对接多种业务。例如,区块链网络可以对接数据存证业务与商品溯源业务。数据存证业务每需要存证一笔数据,就产生一个相 应的区块链交易,该区块链交易中携带的业务信息可以是所要存证的数据的哈希值;商品溯源业务每需要对商品的一个流转环节进行记录,就产生一个相应的区块链交易,该区块链交易中携带的业务信息可以是该商品经过该流转环节的相关记录信息。
指定业务可以是区块链网络对接的多种业务中的一种业务。为了描述方便,图3所述的方法是针对指定业务而言的。
S302:调用预先部署的对应于所述指定业务的智能合约。
在本说明书实施例中,为了解决区块链交易中的业务信息不适合向用户展示的问题,在区块链网络中部署指定业务对应的智能合约,智能合约用于实现根据区块链交易中的业务信息确定适合向用户展示的展示信息的功能。可以理解,如果区块链网络对接有多种业务,则需要针对每个业务,在区块链网络中部署该业务对应的智能合约。
区块链网络中的每个节点在获取到指定业务产生的区块链交易之后,需要调用指定业务对应的智能合约来对区块链交易进行处理。
S304:基于所述智能合约,根据所述业务信息,确定展示信息。
S306:基于所述智能合约,将确定的展示信息写入所述区块链交易的交易日志;或者,将确定的展示信息的哈希值写入所述区块链交易的交易日志,并存储确定的展示信息。
步骤S304-S306给出了智能合约处理区块链交易的过程。
根据业务信息确定展示信息,具体可以是将业务信息转化成用于向用户展示的展示信息。例如,业务信息是一段抽象的代码,将这段代码转换成文本语言,以便用户可以读懂。
根据业务信息确定展示信息,具体也可以是在预设的展示信息中,选择匹配于所述业务信息的展示信息。
当然,在实际应用中,根据业务信息确定展示信息的方式可以有多种,本说明书不对其进行限制。
在本说明书实施例中,具体可以使用所述区块链交易的发起方所提供的加密秘钥对确定的展示信息进行加密,并将加密后的所述展示信息写入所述区块链交易的交易日志。如果采用非对称加密技术,则加密秘钥具体可以区块链交易的发起方的公钥。如此,只有区块链交易的发起方才能使用自己的私钥进行解密。
在本说明书实施例中,具体也可以使用所述区块链交易的发起方所提供的加密秘钥对确定的展示信息进行加密,并存储加密后的所述展示信息。
在本说明书实施例中,所述指定业务对应的智能合约中还可以内置有预先与查询客户端约定的数据结构。如此,通过智能合约,可以根据所述业务信息与所述智能合约中内置的所述数据结构,确定基于所述数据结构封装的展示信息。
S308:将所述区块链交易与所述区块链交易的交易日志写入区块链。
其中,当用户请求查询所述区块链交易时,将所述交易日志中的展示信息展示给用户。
通过图3所示的方法,在区块链网络中部署指定业务对应的智能合约,用于根据指定业务产生的区块链交易中携带的业务信息确定适合展示给用户的展示信息,确定的展示信息作为区块链交易的执行结果写入区块链交易的交易日志中。由于区块链交易与相应的交易日志都会被写入区块链,后续用户请求查询区块链交易时,可以将所述区块链交易的交易日志中的展示信息展示给用户。
图4是本说明书实施例提供一种针对图3所示的展示信息的查询方法的流程示意图,包括如下步骤:
S400:查询客户端确定用户指定的查询服务接口,作为目标查询服务接口。
S402:查询客户端调用所述查询服务端的目标查询服务接口。
S404:查询服务端当监测到所述目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易的交易日志。
S406:查询服务端从所述交易日志中提取展示信息,并将所述展示信息返回给所述查询客户端。
当然,如果交易日志中仅存在展示信息的哈希值,那么,也可以不获取交易日志,而是从联盟链网络中的任一节点非区块链的存储中获取所述目标查询服务接口对应的区块链交易对应的展示信息。
S408:查询客户端将接收到的所述展示信息展示给所述用户。
图4所示的方法实际上基于图1所示的架构,用户请求查询某个区块链交易时,也可以查询到该区块链交易中携带的业务信息对应的展示信息,查询客户端会将该展示信息展示给用户,方便用户更好得理解区块链交易中的业务信息。
在图4所示的方法中,如果展示信息已被所述用户的加密秘钥加密,则查询客户端使用所述用户的解密秘钥对接收到的所述展示信息进行解密,并将解密后的所述展示信息展示给所述用户。
此外,查询客户端中可以内置有数据结构解析逻辑,用于对基于预设的数据结构封装的数据进行解析,所述展示信息是基于所述数据结构进行封装的。如此,查询客户端可以基于内置的数据结构解析逻辑,对接收到的所述展示信息进行解析,并将解析后的所述展示信息展示给所述用户。
此外,本说明书还公开了一种区块链交易处理方法,用于提升查询某个业务任务产生的一系列关联的区块链交易的效率。需要说明的是,本说明书公开的区块链交易处理方法,不限于提升查询联盟链网络中存储的区块链交易的效率式,也可以提升查询其他类型的区块链网络(如公有链网络)中存储的区块链交易的效率。
图5是本说明书提供的一种区块链交易处理方法的流程示意图,包括如下步骤:
S500:获取指定业务下的任一业务任务产生的区块链交易,作为当前区块链交易。
在本文中,指定业务下的业务任务是指,指定业务在运转过程中,产生的一个持续性的业务任务,该业务任务的执行过程中,需要产生一系列关联的区块链交易提交给区块链网络进行存储。例如,在商品溯源业务下,产生了针对商品A的业务任务,商品A从出厂到运抵消费者手中的每个环节都需要产生相应的区块链交易提交给区块链网络进行存储。商品A的运输过程就是一个业务任务,该业务任务产生的一系列区块链交易之间具有关联性,共同记录了商品A的运输过程。
S502:调用预先部署的对应于所述指定业务的智能合约。
在本说明书实施例中,在区块链网络中部署指定业务对应的智能合约,智能合约用于实现在当前处理的区块链交易的交易日志中写入上一个关联的区块链交易的交易标识的功能。
区块链网络中的每个节点在获取到指定业务产生的区块链交易之后,需要调用指定业务对应的智能合约来对区块链交易进行处理。
S504:基于所述智能合约,获取该业务任务产生的上一个区块链交易的交易标识,并在所述当前区块链交易的交易日志中写入获取的交易标识。
步骤S504给出了智能合约处理区块链交易的过程。
在本说明书实施例中,针对任一区块链交易,该区块链的交易标识为对该区块链交易进行哈希计算得到的哈希值。
在本说明书实施例中,指定业务对应的智能合约可以维护有该业务任务对应的标识记录表。如此,在所述当前区块链交易的交易日志中写入获取的交易标识之后,可以将所述当前区块链交易的交易标识作为一条标识记录添加到所述标识记录表。同时,获取该业务任务产生的上一个区块链交易的交易标识,具体可以是从最近添加到所述标识记录表的标识记录中读取交易标识。
此外,指定业务对应的智能合约可以维护有该业务任务对应的标识记录。如此,在所述当前区块链交易的交易日志中写入获取的交易标识之后,可以将所述标识记录中的交易标识更新为所述当前区块链交易的交易标识。同时,获取该业务任务产生的上一个区块链交易的交易标识,具体可以是从所述标识记录中读取交易标识。
在本说明书实施例中,具体可以使用与该业务任务关联的加密秘钥对获取的交易标识进行加密;在所述当前区块链交易的交易日志中写入加密后的交易标识。
S506:将所述当前区块链交易与所述当前区块链交易的交易日志写入区块链。
其中,当查询到该业务任务产生的任一区块链交易时,可根据该区块链交易的交易日志,进一步查询到该业务任务在该区块链交易之前产生的上一个区块链交易。
通过图5所示的方法,利用区块链网络中部署的智能合约,针对某个业务任务产生的每个区块链交易,在该区块链交易的交易日志中,写入该业务任务在该区块链交易之前产生的上一个区块链交易的交易标识。由于区块链交易与相应的交易日志都会被写入区块链,后续用户请求查询该业务任务下产生的某个区块链交易时,可以根据该区块链交易的交易日志中的交易标识,查询到该区块链交易的上一个关联的区块链交易,如此,用户可以获取到当前请求查询的区块链交易之前的所有关联的区块链交易,不必在区块链中进行遍历,提升查询效率。
图6是本说明书实施例提供的一种针对图5所示的方法中处理的区块链交易的查询方法的流程示意图,包括如下步骤:
S600:查询客户端确定用户指定的查询服务接口,作为目标查询服务接口。
S602:查询客户端调用所述查询服务端的目标查询服务接口。
S604:查询服务端当监测到所述目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易以及相应的交易日志。
S606:查询服务端将所述目标查询服务接口对应的区块链交易返回给所述查询客户端。
S608:循环执行以下步骤S6081~S6084,直至满足预设停止条件。
其中,所述预设停止条件可以是已经向查询客户端返回了指定数量的区块链交易,也可以是已经将所述目标查询服务接口对应的区块链交易之前产生的所有关联的区块链交易都返回给了查询客户端。
S6081:将所述目标查询服务接口对应的区块链交易的交易日志作为目标交易日志。
S6082:从所述目标交易日志中提取交易标识,并从所述联盟链网络获取提取的交易标识对应的区块链交易以及相应的交易日志。
S6083:将提取的交易标识对应的区块链交易返回给所述查询客户端。
S6084:将提取的交易标识对应的区块链交易的交易日志重新作为目标交易日志。
图6所示的方法实际上基于图1所示的架构,用户请求查询某个区块链交易时,也可以查询到该区块链交易之前产生的所有关联的区块链交易。查询客户端会将一系列关联的区块链交易也展示给用户,避免在区块链中进行遍历。
在图6所示的方法中,从所述目标交易日志中提取交易标识,具体可以是:从所述目标交易日志中提取经指定业务任务关联的加密秘钥加密的交易标识,所述目标查询服务接口对应的区块链交易是所述指定业务任务产生的;然后使用所述指定业务任务关联的解密秘钥对所述目标交易日志中的交易标识进行解密。
此外需要说明的是,本说明书所公开的各实施例之间可以相互结合。在实际应用中,基于图1所示的系统架构,可以在用户的查询客户端上内置区块链浏览器功能,用户使用查询客户端请求查询区块链交易,由查询服务端代理查询,向用户返回区块链交易本身以及相应的交易日志中的展示信息,以及根据交易日志中的上一个关联的区块链交易的交易标识,将用户最初查询的区块链交易之前的所有关联的区块链交易(彼此关联的区块链交易是同一业务任务产生的区块链交易)和相应的交易日志中的展示信息也返回给查询客户端,进而展示给用户。
图7是本说明书提供的一种区块链交易查询装置的结构示意图,查询服务端预先针对联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给所述装置;
所述装置包括:
确定模块701,确定用户指定的查询服务接口,作为目标查询服务接口;
调用模块702,调用所述查询服务端的目标查询服务接口,以使所述查询服务端当监测到所述目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易,并将获取的区块链交易返回给所述查询客户端;
提供模块703,将接收到的区块链交易提供给所述用户。
图8是本说明书提供的一种区块链交易查询装置的结构示意图,所述装置预先针对联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给查询客户端;
所述装置包括:
处理模块801,根据调用请求,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易,并将获取的区块链交易返回给所述查询客户端,以使所述查询客户端将接收到的区块链交易提供给所述用户;
其中,所述调用请求是所述查询客户端发送的针对目标查询服务接口的调用请求,所述目标查询服务接口是所述查询客户端确定的用户指定的查询服务接口。
图9是本说明书提供的一种区块链交易处理装置的结构示意图,所述装置是所述区块链网络中的任一节点,所述装置包括:
获取模块901,获取指定业务产生的区块链交易,所述区块链交易中携带有业务信息;
调用模块902,调用预先部署的对应于所述指定业务的智能合约;
确定模块903,基于所述智能合约,根据所述业务信息,确定展示信息;
处理模块904,基于所述智能合约,将确定的展示信息写入所述区块链交易的交易日志;或者,将确定的展示信息的哈希值写入所述区块链交易的交易日志,并存储确定的展示信息;
上链模块905,将所述区块链交易与所述区块链交易的交易日志写入区块链;
其中,当用户请求查询所述区块链交易时,将所述交易日志中的展示信息展示给用户。
图10是本说明书实施例提供的一种针对展示信息的查询装置的结构示意图,查询服务端预先针对联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给所述装置;
所述装置包括:
确定模块1001,确定用户指定的查询服务接口,作为目标查询服务接口;
调用模块1002,调用所述查询服务端的目标查询服务接口,以使所述查询服务端当监测到所述目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易的交易日志,进而使所述查询服务端所述查询服务端从所述交易日志中提取展示信息,并将所述展示信息返回给所述查询客户端;
展示模块1003,将接收到的所述展示信息展示给所述用户。
图11是本说明书实施例提供的一种针对展示信息的查询装置的结构示意图,所述装置预先针对联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给查询客户端;
所述装置包括:
获取模块1101,当监测到目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易的交易日志;其中,所述目标查询服务接口是用户向所述查询客户端指定的查询服务接口;
提取模块1102,从所述交易日志中提取展示信息,并将所述展示信息返回给所述查询客户端,以使所述查询客户端将接收到的所述展示信息展示给所述用户。
图12是本说明书实施例提供的一种区块链交易处理装置的结构示意图,所述装置为区块链网络中的任一节点,所述装置包括:
获取模块1201,获取指定业务下的任一业务任务产生的区块链交易,作为当前区块链交易;
调用模块1202,调用预先部署的对应于所述指定业务的智能合约;
处理模块1203,基于所述智能合约,获取该业务任务产生的上一个区块链交易的交易标识,并在所述当前区块链交易的交易日志中写入获取的交易标识;
上链模块1204,将所述当前区块链交易与所述当前区块链交易的交易日志写入区块链;
其中,当查询到该业务任务产生的任一区块链交易时,可根据该区块链交易的交易日志,进一步查询到该业务任务在该区块链交易之前产生的区块链交易。
图13是本说明书实施例提供的一种查询区块链交易的装置的结构示意图,查询服务端预先针对联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给所述装置;
所述装置包括:
确定模块1301,确定用户指定的查询服务接口,作为目标查询服务接口;
调用模块1302,调用所述查询服务端的目标查询服务接口,以使所述查询服务端当监测到所述目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易以及相应的交易日志,进而使所述查询服务端将所述目标查询服务接口对应的区块链交易返回给所述查询客户端,并循环执行以下步骤,直至满足预设停止条件:将所述目标查询服务接口对应的区块链交易的交易日志作为目标交易日志;从所述目标交易日志中提取交易标识,并从所述联盟链网络获取提取的交易标识对应的区块链交易以及相应的交易日志;将提取的交易标识对应的区块链交易返回给所述查询客户端;将提取的交易标识对应的区块链交易的交易日志重新作为目标交易日志。
图14是本说明书实施例提供的一种查询区块链交易的装置的结构示意图,所述装置预先针对联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给查询客户端;
所述装置包括:
第一处理模块1401,当监测到目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易以及相应的交易日志;所述目标查询接口是用户向所述查询客户端指定的查询服务接口;
第二处理模块1402,将所述目标查询服务接口对应的区块链交易返回给所述查询客户端,以及循环执行以下步骤,直至满足预设停止条件:将所述目标查询服务接口 对应的区块链交易的交易日志作为目标交易日志;从所述目标交易日志中提取交易标识,并从所述联盟链网络获取提取的交易标识对应的区块链交易以及相应的交易日志;将提取的交易标识对应的区块链交易返回给所述查询客户端;将提取的交易标识对应的区块链交易的交易日志重新作为目标交易日志。
本说明书实施例还提供一种计算机设备,其至少包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,处理器执行所述程序时实现本说明书所公开的方法的功能。
图15示出了本说明书实施例所提供的一种更为具体的计算设备硬件结构示意图,该设备可以包括:处理器1510、存储器1520、输入/输出接口1530、通信接口1540和总线1550。其中处理器1510、存储器1520、输入/输出接口1530和通信接口1540通过总线1550实现彼此之间在设备内部的通信连接。
处理器1510可以采用通用的CPU(Central Processing Unit,中央处理器)、微处理器、应用专用集成电路(Application Specific Integrated Circuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本说明书实施例所提供的技术方案。
存储器1520可以采用ROM(Read Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、静态存储设备,动态存储设备等形式实现。存储器1520可以存储操作系统和其他应用程序,在通过软件或者固件来实现本说明书实施例所提供的技术方案时,相关的程序代码保存在存储器1520中,并由处理器1510来调用执行。
输入/输出接口1530用于连接输入/输出模块,以实现信息输入及输出。输入输出/模块可以作为组件配置在设备中(图中未示出),也可以外接于设备以提供相应功能。其中输入设备可以包括键盘、鼠标、触摸屏、麦克风、各类传感器等,输出设备可以包括显示器、扬声器、振动器、指示灯等。
通信接口1540用于连接通信模块(图中未示出),以实现本设备与其他设备的通信交互。其中通信模块可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信。
总线1550包括一通路,在设备的各个组件(例如处理器1510、存储器1520、输入/输出接口1530和通信接口1540)之间传输信息。
需要说明的是,尽管上述设备仅示出了处理器1510、存储器1520、输入/输出接口1530、通信接口1540以及总线1550,但是在具体实施过程中,该设备还可以包括实现正常运行所必需的其他组件。此外,本领域的技术人员可以理解的是,上述设备中也可以仅包含实现本说明书实施例方案所必需的组件,而不必包含图中所示的全部组件。
本说明书实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本说明所公开的方法的功能。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本说明书实施例可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本说明书实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本说明书实施例各个实施例或者实施例的某些部分所述的方法。
上述实施例阐明的系统、方法、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于方法和设备实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的方法实施例仅仅是示意性的,其中所 述作为分离部件说明的模块可以是或者也可以不是物理上分开的,在实施本说明书实施例方案时可以把各模块的功能在同一个或多个软件和/或硬件中实现。也可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
以上所述仅是本说明书实施例的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本说明书实施例原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本说明书实施例的保护范围。

Claims (13)

  1. 一种区块链交易处理方法,包括:
    区块链网络中的每个节点执行:
    获取指定业务产生的区块链交易,所述区块链交易中携带有业务信息;
    调用预先部署的对应于所述指定业务的智能合约;
    基于所述智能合约,根据所述业务信息,确定展示信息;
    基于所述智能合约,将确定的展示信息写入所述区块链交易的交易日志;
    将所述区块链交易与所述区块链交易的交易日志写入区块链;
    其中,当用户请求查询所述区块链交易时,将所述交易日志中的展示信息展示给用户。
  2. 如权利要求1所述的方法,将确定的展示信息写入所述区块链交易的交易日志,具体包括:
    使用所述区块链交易的发起方所提供的加密秘钥对确定的展示信息进行加密,并将加密后的所述展示信息写入所述区块链交易的交易日志。
  3. 如权利要求1所述的方法,所述指定业务对应的智能合约中还内置有预先与查询客户端约定的数据结构;
    根据所述业务信息,确定展示信息,具体包括:
    根据所述业务信息与所述智能合约中内置的所述数据结构,确定基于所述数据结构封装的展示信息。
  4. 一种针对权利要求1~3任一项所述的展示信息的查询方法,查询服务端预先针对联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给查询客户端;
    所述方法包括:
    所述查询客户端确定用户指定的查询服务接口,作为目标查询服务接口;
    所述查询客户端调用所述查询服务端的目标查询服务接口;
    所述查询服务端当监测到所述目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易的交易日志;
    所述查询服务端从所述交易日志中提取展示信息,并将所述展示信息返回给所述查询客户端;
    所述查询客户端将接收到的所述展示信息展示给所述用户。
  5. 如权利要求4所述的方法,所述展示信息已被所述用户的加密秘钥加密;
    所述查询客户端将接收到的所述展示信息展示给所述用户,具体包括:
    所述查询客户端使用所述用户的解密秘钥对接收到的所述展示信息进行解密,并将解密后的所述展示信息展示给所述用户。
  6. 如权利要求4所述的方法,所述查询客户端中内置有数据结构解析逻辑,用于对基于预设的数据结构封装的数据进行解析,所述展示信息是基于所述数据结构进行封装的;
    所述查询客户端将接收到的所述展示信息展示给所述用户,具体包括:
    所述查询客户端基于内置的数据结构解析逻辑,对接收到的所述展示信息进行解析,并将解析后的所述展示信息展示给所述用户。
  7. 一种区块链交易处理装置,所述装置是所述区块链网络中的任一节点,所述装置包括:
    获取模块,获取指定业务产生的区块链交易,所述区块链交易中携带有业务信息;
    调用模块,调用预先部署的对应于所述指定业务的智能合约;
    确定模块,基于所述智能合约,根据所述业务信息,确定展示信息;
    处理模块,基于所述智能合约,将确定的展示信息写入所述区块链交易的交易日志;
    上链模块,将所述区块链交易与所述区块链交易的交易日志写入区块链;
    其中,当用户请求查询所述区块链交易时,将所述交易日志中的展示信息展示给用户。
  8. 一种针对权利要求1~3任一项所述的展示信息的查询系统,包括联盟链网络、查询服务端、查询客户端;
    所述查询服务端预先针对联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给查询客户端;
    所述查询客户端,确定用户指定的查询服务接口,作为目标查询服务接口;调用所述查询服务端的目标查询服务接口;将所述查询服务端返回的展示信息展示给所述用户;
    所述查询服务端当监测到所述目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易的交易日志;从所述交易日志中提取展示信息,并将所述展示信息返回给所述查询客户端。
  9. 一种针对权利要求1~3任一项所述的展示信息的查询方法,查询服务端预先针对联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给查询客户端;
    所述方法包括:
    所述查询客户端确定用户指定的查询服务接口,作为目标查询服务接口;
    调用所述查询服务端的目标查询服务接口,以使所述查询服务端当监测到所述目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易的交易日志,进而使所述查询服务端所述查询服务端从所述交易日志中提取展示信息,并将所述展示信息返回给所述查询客户端;
    将接收到的所述展示信息展示给所述用户。
  10. 一种针对权利要求1~3任一项所述的展示信息的查询方法,查询服务端预先针对联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给查询客户端;
    所述方法包括:
    所述查询服务端当监测到目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易的交易日志;其中,所述目标查询服务接口是用户向所述查询客户端指定的查询服务接口;
    从所述交易日志中提取展示信息,并将所述展示信息返回给所述查询客户端,以使所述查询客户端将接收到的所述展示信息展示给所述用户。
  11. 一种针对权利要求1~3任一项所述的展示信息的查询装置,查询服务端预先针对联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给所述装置;
    所述装置包括:
    确定模块,确定用户指定的查询服务接口,作为目标查询服务接口;
    调用模块,调用所述查询服务端的目标查询服务接口,以使所述查询服务端当监测到所述目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易的交易日志,进而使所述查询服务端所述查询服务端从所述交易日志中提取展示信息,并将所述展示信息返回给所述查询客户端;
    展示模块,将接收到的所述展示信息展示给所述用户。
  12. 一种针对权利要求1~3任一项所述的展示信息的查询装置,所述装置预先针对联盟链网络存储的每个区块链交易,创建该区块链交易对应的查询服务接口,并将创建的该查询服务接口暴露给查询客户端;
    所述装置包括:
    获取模块,当监测到目标查询服务接口被调用时,从所述联盟链网络获取所述目标查询服务接口对应的区块链交易的交易日志;其中,所述目标查询服务接口是用户向所 述查询客户端指定的查询服务接口;
    提取模块,从所述交易日志中提取展示信息,并将所述展示信息返回给所述查询客户端,以使所述查询客户端将接收到的所述展示信息展示给所述用户。
  13. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现如权利要求1或9或10所述的方法。
PCT/CN2020/071415 2019-08-30 2020-01-10 一种区块链交易处理方法及装置 WO2021036171A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/813,634 US10903989B2 (en) 2019-08-30 2020-03-09 Blockchain transaction processing method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910816134.3 2019-08-30
CN201910816134.3A CN110597877A (zh) 2019-08-30 2019-08-30 一种区块链交易处理方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/813,634 Continuation US10903989B2 (en) 2019-08-30 2020-03-09 Blockchain transaction processing method and apparatus

Publications (1)

Publication Number Publication Date
WO2021036171A1 true WO2021036171A1 (zh) 2021-03-04

Family

ID=68856521

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/071415 WO2021036171A1 (zh) 2019-08-30 2020-01-10 一种区块链交易处理方法及装置

Country Status (2)

Country Link
CN (1) CN110597877A (zh)
WO (1) WO2021036171A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10903989B2 (en) 2019-08-30 2021-01-26 Advanced New Technologies Co., Ltd. Blockchain transaction processing method and apparatus
CN110597877A (zh) * 2019-08-30 2019-12-20 阿里巴巴集团控股有限公司 一种区块链交易处理方法及装置
CN110569281A (zh) * 2019-08-30 2019-12-13 阿里巴巴集团控股有限公司 一种区块链交易查询方法及系统
CN112184221A (zh) * 2020-09-22 2021-01-05 安徽理工大学 一种区块链的交易监测系统及装置
CN112488835A (zh) * 2020-11-27 2021-03-12 成都质数斯达克科技有限公司 业务处理方法、电子设备及可读存储介质
CN112925510A (zh) * 2021-03-05 2021-06-08 安徽家家猫科技有限责任公司 一种基于联盟链智能合约的订单跨系统协同定位方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108665372A (zh) * 2018-04-28 2018-10-16 腾讯科技(深圳)有限公司 基于区块链的信息处理、查询、储存方法和装置
CN109213790A (zh) * 2018-08-10 2019-01-15 南京简诺特智能科技有限公司 一种基于区块链的数据流通分析方法和系统
CN109753530A (zh) * 2018-12-27 2019-05-14 石更箭数据科技(上海)有限公司 一种数据处理方法及其装置、介质、终端
CN110046193A (zh) * 2018-11-30 2019-07-23 阿里巴巴集团控股有限公司 基于区块链的数据处理方法、装置和计算机设备
US20190266145A1 (en) * 2018-02-27 2019-08-29 Alibaba Group Holding Limited Executing transactions based on blockchain
CN110597877A (zh) * 2019-08-30 2019-12-20 阿里巴巴集团控股有限公司 一种区块链交易处理方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108513669A (zh) * 2017-12-29 2018-09-07 深圳前海达闼云端智能科技有限公司 基于区块链的众筹信息处理方法、装置、存储介质及电子设备
CN108846603A (zh) * 2018-05-31 2018-11-20 深圳市零度智控科技有限公司 基于区块链的物流追溯方法、用户设备、存储介质及装置
CN108805507A (zh) * 2018-06-14 2018-11-13 柯鸿森 一种电子提单的实现方法及装置
CN109816021B (zh) * 2019-01-28 2021-07-13 网易(杭州)网络有限公司 智能合约处理方法及装置、系统、存储介质和电子设备
CN110163751B (zh) * 2019-04-15 2023-07-04 广州致链科技有限公司 面向联盟链的区块链访问系统及其实现方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190266145A1 (en) * 2018-02-27 2019-08-29 Alibaba Group Holding Limited Executing transactions based on blockchain
CN108665372A (zh) * 2018-04-28 2018-10-16 腾讯科技(深圳)有限公司 基于区块链的信息处理、查询、储存方法和装置
CN109213790A (zh) * 2018-08-10 2019-01-15 南京简诺特智能科技有限公司 一种基于区块链的数据流通分析方法和系统
CN110046193A (zh) * 2018-11-30 2019-07-23 阿里巴巴集团控股有限公司 基于区块链的数据处理方法、装置和计算机设备
CN109753530A (zh) * 2018-12-27 2019-05-14 石更箭数据科技(上海)有限公司 一种数据处理方法及其装置、介质、终端
CN110597877A (zh) * 2019-08-30 2019-12-20 阿里巴巴集团控股有限公司 一种区块链交易处理方法及装置

Also Published As

Publication number Publication date
CN110597877A (zh) 2019-12-20

Similar Documents

Publication Publication Date Title
WO2021036172A1 (zh) 一种区块链交易查询方法及系统
WO2021036170A1 (zh) 一种区块链交易处理方法及装置
WO2021036171A1 (zh) 一种区块链交易处理方法及装置
EP3484125B1 (en) Method and device for scheduling interface of hybrid cloud
US10936581B2 (en) Blockchain transaction processing method and apparatus
US20200233866A1 (en) Blockchain transaction query method and system
US10903989B2 (en) Blockchain transaction processing method and apparatus
TW201541277A (zh) 檢測弱密碼的方法和裝置
US11283622B2 (en) Signature verification for a blockchain ledger
TWI706663B (zh) 基於多個區塊鏈網路的資料存證方法及系統
US11108573B2 (en) Blockchain ledger authentication
EP3813001B1 (en) Data reading method based on a plurality of block chain networks and system
US10783277B2 (en) Blockchain-type data storage
CN114598749A (zh) 一种服务访问方法及装置
CN114117482A (zh) 数据库的加密方法、装置、电子设备及存储介质
WO2020173274A1 (zh) 一种存储、调用区块链账户私钥的方法及装置
CN110011807B (zh) 一种关键信息维护方法及系统
TWI546698B (zh) 基於伺服器的登入系統、登入驗證伺服器及其驗證方法
WO2017129068A1 (zh) 事件执行方法和装置及系统
CN111292082B (zh) 一种块链式账本中的公钥管理方法、装置及设备
US10742802B2 (en) Methods and devices for verifying a communication number
CN111291393A (zh) 请求校验方法及设备
CN110245518B (zh) 一种数据存储方法、装置及设备
TWI725709B (zh) 資料儲存方法、裝置及設備
CN106470107A (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: 20856312

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: 20856312

Country of ref document: EP

Kind code of ref document: A1