WO2023207529A1 - Data processing method and apparatus, device, medium, and product - Google Patents

Data processing method and apparatus, device, medium, and product Download PDF

Info

Publication number
WO2023207529A1
WO2023207529A1 PCT/CN2023/086155 CN2023086155W WO2023207529A1 WO 2023207529 A1 WO2023207529 A1 WO 2023207529A1 CN 2023086155 W CN2023086155 W CN 2023086155W WO 2023207529 A1 WO2023207529 A1 WO 2023207529A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
field
transfer
voucher
data
Prior art date
Application number
PCT/CN2023/086155
Other languages
French (fr)
Chinese (zh)
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 腾讯科技(深圳)有限公司
Publication of WO2023207529A1 publication Critical patent/WO2023207529A1/en

Links

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Definitions

  • the present application relates to the field of Internet technology, and in particular to a data processing method, a data processing device, a computer equipment, a computer-readable storage medium and a computer program product.
  • an asset corresponds to a number, and the transfer of the asset is a change in the ownership of the number.
  • an asset is not necessarily a number, but can also be a description.
  • an electronic invoice can be considered an asset in a certain sense.
  • An electronic invoice can include asset descriptions such as invoice numbers and transaction information. Information, this description information has been determined when the asset issuance (commonly known as invoicing) is completed. If these asset description information are specified in each transaction, it will lead to duplicate content storage, and the content record is not concise enough, affecting the efficiency of data processing. , and it also takes up a lot of storage space.
  • the embodiments of this application propose a data processing method, device and equipment, media, and products, which can make content recording more concise during the transfer process of assets.
  • embodiments of the present application provide a data processing method, which method includes:
  • the transfer transaction data is determined based on the first transaction voucher.
  • the first transaction voucher is generated by the business initiator in the process of executing the asset issuance process.
  • the first transaction The asset description field in the voucher records asset description information;
  • the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher.
  • the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction.
  • the content recorded in the asset description field in the voucher is replacement information, and the replacement information is different from the asset description information.
  • embodiments of the present application provide a data processing method, which method includes:
  • the first transaction voucher generated by the business initiator in the process of issuance of assets.
  • the first transaction voucher is generated based on the issuance transaction data submitted by the business initiator to the blockchain node.
  • the issuance transaction data includes the assets corresponding to the issuance assets. Description information and issuance transaction identifier;
  • the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher
  • the content recorded in the asset description field in the second transaction voucher is empty or the recorded content is Replacement information.
  • the replacement information is not the same as the asset description information.
  • a data processing device which includes:
  • the acquisition unit is used to obtain the transfer transaction data submitted by the business transfer party when transferring assets.
  • the transfer transaction The data is determined based on the first transaction voucher.
  • the first transaction voucher is generated by the business initiator during the execution of asset issuance processing.
  • the asset description field in the first transaction voucher records asset description information;
  • a processing unit configured to generate a second transaction voucher based on the transfer transaction data
  • the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher.
  • the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction.
  • the content recorded in the asset description field in the voucher is replacement information, and the replacement information is different from the asset description information.
  • a data processing device which includes:
  • the acquisition unit is used to obtain the first transaction voucher generated by the business initiator in the process of issuing assets.
  • the first transaction voucher is generated based on the issuance transaction data submitted by the business initiator to the blockchain node.
  • the issuance transaction data includes the issuance transaction data.
  • a processing unit configured to generate transfer transaction data corresponding to the transferred assets based on the first transaction voucher, and send the transfer transaction data to the blockchain node, so that the blockchain node generates a second transaction voucher based on the transfer transaction data;
  • the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher
  • the content recorded in the asset description field in the second transaction voucher is empty or the recorded content is Replacement information.
  • the replacement information is not the same as the asset description information.
  • inventions of the present application provide a computer device.
  • the computer device includes a memory and a processor.
  • the memory stores a computer program.
  • the computer program When executed by the processor, it causes the processor to execute the above-mentioned data processing method.
  • embodiments of the present application provide a computer-readable storage medium that stores a computer program.
  • the computer program When the computer program is read and executed by a processor of a computer device, it causes the computer device to perform the above-mentioned data processing. method.
  • inventions of the present application provide a computer program product or computer program.
  • the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned data processing method.
  • the transfer transaction data submitted by the business transfer party when transferring assets can be obtained.
  • the transfer transaction data is determined based on the first transaction voucher.
  • the first transaction The voucher is generated by the business initiator during the process of asset issuance.
  • the asset description field in the first transaction voucher records asset description information corresponding to the assets issued by the business initiator.
  • a second transaction voucher can be generated based on the transfer transaction data.
  • the transaction ID recorded in the transaction ID field in the first transaction voucher is the same as the transaction ID recorded in the transaction ID field in the second transaction voucher, the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction ID is empty.
  • the content recorded in the asset description field in the transaction voucher is replacement information, which is different from the asset description information. It can be seen that when transferring assets, it is necessary to carry the transaction identifier corresponding to the issuance of the assets, but there is no need to carry the asset description information corresponding to the issued assets, or to replace the asset description information with other replacement information. Therefore, the content recorded during the asset transfer process can be made more concise, thereby improving the efficiency of data processing and saving storage space.
  • Figure 1a is a schematic structural diagram of a blockchain system provided by an embodiment of the present application.
  • Figure 1b is a schematic structural diagram of a blockchain provided by an embodiment of the present application.
  • Figure 1c is a schematic flowchart of generating blocks provided by an embodiment of the present application.
  • Figure 1d is a schematic diagram of the principle of asset transfer provided by the embodiment of the present application.
  • Figure 2 is a schematic architectural diagram of a data processing system provided by an embodiment of the present application.
  • Figure 3 is a schematic flow chart of a data processing method provided by an embodiment of the present application.
  • Figure 4a is a schematic data structure diagram of issuance transaction data provided by an embodiment of the present application.
  • Figure 4b is a schematic diagram of the data structure of transfer transaction data provided by an embodiment of the present application.
  • Figure 4c is a schematic flowchart of a transaction data transfer process provided by an embodiment of the present application.
  • Figure 5 is a schematic flow chart of another data processing method provided by an embodiment of the present application.
  • Figure 6 is an interactive flow chart of a data processing method provided by an embodiment of the present application.
  • Figure 7 is a schematic structural diagram of a data processing device provided by an embodiment of the present application.
  • Figure 8 is a schematic structural diagram of another data processing device provided by an embodiment of the present application.
  • Figure 9 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • the data processing solution of this application can be combined with blockchain technology.
  • blockchain technology involved in the data processing solution provided by this application will be introduced in detail:
  • the blockchain system involved in the embodiments of this application may be a distributed system formed by connecting clients and multiple nodes (any form of computing device in the access network, such as servers and terminal devices) through network communication.
  • FIG. 1a is a schematic structural diagram of a blockchain system provided by an embodiment of the present application.
  • the blockchain system shown in Figure 1a can be a data sharing system 100.
  • the data sharing system 100 refers to a system for data sharing between nodes.
  • the data sharing system 100 can include multiple nodes 101 and clients. Terminal 102, multiple nodes 101 may refer to various computing devices in the data sharing system.
  • Each node 101 can receive input information when working normally (for example, any node 101 can receive the issuance transaction data submitted by the business initiator when issuing assets; for another example, any node 101 can receive the issuance transaction data submitted by the business transfer party when issuing assets.
  • the transfer transaction data submitted during the transfer, etc. and maintain the shared data within the data sharing system based on the input information received.
  • communication connections can exist between nodes in the data sharing system, and information can be transmitted between nodes through the above communication connections.
  • nodes in the data sharing system receives input information
  • other nodes in the data sharing system obtain the input information according to the consensus algorithm and store the input information as shared data, so that all nodes in the data sharing system can The stored data is consistent.
  • Each node in the data sharing system has its corresponding node identifier, and each node in the data sharing system can store the node identifiers of other nodes in the data sharing system, so that the generated node identifiers can be generated later based on the node identifiers of other nodes. Blocks are broadcast to other nodes in the data sharing system.
  • Each node can maintain a node ID list as shown in the following table to store the node name and node ID in the node ID list.
  • the node identifier can be an IP (Internet Protocol, a protocol for interconnection between networks) address and any other information that can be used to identify the node. Table 1 only takes the IP address as an example for explanation.
  • FIG. 1b is a schematic structural diagram of a blockchain provided by an embodiment of the present application.
  • the blockchain consists of multiple blocks.
  • the genesis block in the blockchain includes a block header and a block body.
  • the block header stores the input information characteristic value, version number, timestamp and difficulty value, and the block body stores the input information.
  • the next block of the genesis block has the genesis block as the parent block.
  • the next block also includes a block header and a block body.
  • the block header stores the input information characteristic value of the current block and the block header characteristics of the parent block. value, version number, timestamp and difficulty value, and so on, so that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, thereby ensuring that the Security of entered information.
  • this application can upload transfer transaction data, issuance transaction data, first transaction vouchers, second transaction vouchers, etc. to the blockchain for storage, so as to prevent internal corruption of computer equipment (blockchain nodes). Data has been tampered with, thereby improving the security and privacy of the data.
  • the blockchain node verifies the input information when receiving the input information (for example, when the blockchain node receives the input information submitted by the business transfer party After the transaction data is transferred, the signature recorded in the signature field in the transferred transaction data and the source transaction identifier recorded in the source field in the transferred transaction data can be verified respectively; for another example, the blockchain node receives the signature from the business initiator. After the issuance transaction data is submitted, the signature recorded in the signature field of the issuance transaction data and the business operation permissions of the business initiator can be verified separately). After the verification is completed, the input information is stored in the memory pool and updated. A hash tree used to record input information.
  • SHA256 is the eigenvalue algorithm used to calculate eigenvalues
  • version (version number) is the version information of the relevant block protocol in the blockchain
  • prev_hash is the block header eigenvalue of the parent block of the current block
  • merkle_root is the input information
  • the characteristic value of The feature value threshold can be determined based on nbits.
  • the blockchain node sends the newly generated blocks to other nodes in the data sharing system where it is located based on the node identifiers of other nodes in the data sharing system, and the other nodes verify the newly generated blocks. And after completing the verification, the newly generated block will be added to the blockchain.
  • UTXO Unspent Transaction Output, unspent transaction output
  • a transaction consists of transaction input and transaction output. Each transaction involves spending several inputs and generating several outputs. The output generated is the "unspent transaction output" (UTXO). This UTXO It can be used as the input of the next transaction and generate a new UTXO output.
  • the asset is In this way, it circulates through transactions.
  • Each UTXO has an identity. When it is proven that the caller meets the identity (digital signature), the caller has the right to use the UTXO as input.
  • Figure 1d is a schematic diagram of the principle of asset transfer provided by an embodiment of the present application.
  • the "Issue Asset” transaction may include a transaction hash (for example, Hash: aa8...), transaction input and transaction output.
  • the transaction input may include multiple fields (such as a serial number field, a source field, and a signature field); the transaction output may also include multiple fields (such as a serial number field, an amount field, and a receiving address field).
  • the receiving address field of each transaction can indicate the address to receive the assets in the transaction (such as Zhang San's address). Then, after Zhang San receives the "issuing assets" transaction, it can be used as the input of the next transaction. .
  • the next transaction may be, for example, a "transfer asset” transaction, which may also include a transaction hash (for example, Hash: cd5...), transaction input, and transaction output.
  • the receiving address field of the "Transfer Assets” transaction can indicate the transfer of assets to one or more objects (such as Zhang San and Li Si). Among them, Zhang San owns assets with an amount of 20, and Li Si owns assets with an amount of 30. asset.
  • the blockchain after receiving the UTXO of the previous transaction, it can be used as the input of the next transaction to generate a new UTXO, thereby realizing the transfer and circulation of assets.
  • an asset is not necessarily a number, but can also be a description.
  • an electronic invoice is an asset in a sense.
  • the electronic invoice can include asset description information such as invoice number and transaction information.
  • asset description information such as invoice number and transaction information.
  • the UTXO model can be applied to asset transfer scenarios with asset description information.
  • the blockchain if there is only one kind of asset, you don’t need to care much about the moment when the asset is issued. For subsequent asset transfers, you only need to care about whether the amount of the issued asset is correct. But if you need to issue multiple assets, you need to specify the ID (Identity, identification) of the asset when issuing it. Subsequent UTXO also needs to carry this information (asset ID) to identify which asset it is.
  • each asset has corresponding asset description information, and the asset description information is important, then in order for the transaction party to query the asset description information, the asset description information can be carried in the transaction every time the asset is transferred.
  • Asset description information but if the amount of asset description information is large, it will occupy a large amount of storage space.
  • electronic invoices are similar to this scenario. Each electronic invoice is unique and can be regarded as an asset. Each time an electronic invoice is issued, it is a new asset, and its corresponding asset description information is also different. Therefore, in the electronic invoice scenario, every electronic invoice transfer transaction needs to carry corresponding asset description information, which takes up a lot of storage space.
  • the embodiment of this application proposes a data processing solution, which is mainly used in blockchain-based electronic invoice scenarios.
  • the general principle of this data processing solution is as follows: when the business transfer party needs to transfer assets, the assets can be obtained The transfer transaction data submitted during the transfer.
  • the transfer transaction data is determined based on the first transaction voucher.
  • the first transaction voucher is generated by the business initiator in the process of executing the asset issuance process.
  • the assets in the first transaction voucher The description field records asset description information used to describe the assets issued by the business initiator.
  • a second transaction voucher can be generated based on the transfer transaction data.
  • the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher.
  • the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction
  • the content recorded in the asset description field in the voucher is replacement information, which is different from the asset description information.
  • relevant data such as object information (such as the identity information of the object) may be involved.
  • object information such as the identity information of the object
  • permission from the object needs to be obtained. Or agree, and the collection, use and processing of relevant data need to comply with the relevant laws and regulations of the relevant countries and regions. and standards.
  • FIG. 2 is an architectural schematic diagram of a data processing system provided by an embodiment of the present application.
  • the data processing system may at least include: a blockchain node cluster, a business initiator 202, a business transfer party 203, and a business reimbursement party 204.
  • the business initiator 202, the business transfer party 203, and the business reimbursement party 204 can be called business nodes.
  • the blockchain node cluster can include at least one blockchain node 201.
  • the blockchain cluster shown in Figure 2 includes 3 blockchain nodes 201. This application does not specifically limit the number of blockchain nodes.
  • any blockchain node 201 in the blockchain node cluster and the business initiator 202, the business transfer party 203, and the business reimbursement party 204 can be connected directly or indirectly through wired or wireless communication methods. Applications are not restricted here.
  • any blockchain node 201, business initiator 202, business transfer party 203, and business reimbursement party 204 in the blockchain node cluster can be an independent physical server, or can be composed of multiple physical servers.
  • Server clusters or distributed systems can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), as well as cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, etc.
  • Any blockchain node 201, business initiator 202, business transfer party 203, and business reimbursement party 204 in the blockchain node cluster may also include but are not limited to: mobile phones, tablet computers, notebook computers, handheld computers, mobile Internet devices (MID, mobile internet device), intelligent voice interaction devices, vehicle terminals, roadside equipment, aircraft, wearable devices, smart home appliances, or devices with data processing functions such as smart watches, smart bracelets, pedometers, etc. Wearables, etc.
  • MID mobile internet device
  • the equipment types of the blockchain node 201, the service initiator 202, the service transfer party 203, and the service reimbursement party 204 may be the same or different, and this is not specifically limited in the embodiment of the present application.
  • the blockchain node 201 can be a server, and the business initiator 202, the business transfer party 203, and the business reimbursement party 204 can all be terminal devices; for another example, the blockchain node 201, the business initiator 202, and the business transfer party 203 , and the business reimbursement party 204 can all be servers; for example, the blockchain node 201, the business initiator 202, the business transfer party 203, and the business reimbursement party 204 can all be terminal devices.
  • the blockchain node 201 can receive a transaction request sent by any business node (the business initiator 202, the business transfer party 203, or the business reimbursement party 204), and the transaction request can carry transaction data. Then, the blockchain node 201 performs consensus (verification) on the transaction data carried in the transaction request. If the transaction data passes the verification, the transaction can be executed and the execution result is returned to the corresponding business node.
  • the business initiator 202 the business transfer party 203, or the business reimbursement party 204
  • the transaction request can carry transaction data. Then, the blockchain node 201 performs consensus (verification) on the transaction data carried in the transaction request. If the transaction data passes the verification, the transaction can be executed and the execution result is returned to the corresponding business node.
  • any business node (business initiator 202, business transfer party 203, or business reimbursement party 204) corresponds to its own address and private key.
  • the private key can be used for signing.
  • the business node is mainly responsible for sending transaction requests to the blockchain node 201 and synchronizing transaction execution results from the blockchain node 201.
  • business nodes can synchronize transactions in the blockchain in real time. When an asset (such as an electronic invoice) is transferred to a transaction that matches its own address, it can obtain the transaction and obtain the execution result of the transaction. .
  • the business initiator 202 can generate issuance transaction data and send the issuance transaction data to the blockchain node 201.
  • the issuance transaction data includes asset description information and issuance transaction identification corresponding to the issuance assets; then, the blockchain node 201 can generate a first transaction voucher based on the issuance transaction data.
  • the receiving address field in the first transaction voucher is used to record the first business address that receives the assets issued by the business initiator 202.
  • the first business address may be the address of the business transfer party 203. In this way, assets can be transferred from the business initiator 202 to the business transfer party 203 through the blockchain node 201. Subsequently, the business transfer party 203 can transfer the assets again, for example, transferring the assets to the business reimbursement party 204.
  • the business transfer party 203 can generate transfer transaction data and send the transfer transaction data to the blockchain node 201.
  • the transfer transaction data is determined based on the first transaction voucher, which is generated by the business initiator after completing the asset issuance.
  • the asset description field in the first transaction voucher records the assets issued by the business initiator. asset description information.
  • the blockchain node 201 can generate a second transaction voucher based on the transfer transaction data.
  • the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher
  • the content recorded in the asset description field in the second transaction voucher is empty or the recorded content is Replacement information that is not the same as the asset description information.
  • any business node can send an information query request to the blockchain node 201.
  • the information query request is used to query information about assets. Asset description information.
  • the blockchain node 201 can receive an information query request sent by the business reimbursement party 204, and the information query request carries the transaction identifier to be queried. Then, the blockchain node 201 obtains the target transaction voucher based on the transaction identifier to be queried, and the transaction identifier recorded in the transaction identifier field in the target transaction voucher matches the transaction identifier to be queried.
  • the blockchain node 201 can obtain the asset description information from the asset description field in the target transaction voucher.
  • the business node can index the asset description information recorded in the asset source through the transaction identifier, so the asset description information does not need to be carried in each transaction, which makes the content recorded during the asset transfer process more concise. , thereby improving the efficiency of data processing and saving storage space.
  • the schematic diagram of the system architecture described in the embodiments of the present application is to more clearly illustrate the technical solutions of the embodiments of the present application, and does not constitute a limitation on the technical solutions provided by the embodiments of the present application. It can be understood that with the evolution of the system architecture and the With the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
  • Figure 3 is a schematic flowchart of a data processing method provided by an embodiment of the present application.
  • the data processing method can be performed by a blockchain node (such as a terminal device or terminal device) in the data processing system mentioned in Figure 2. Servers and other computer equipment) execution.
  • the data processing method may include the following steps S301 to S302:
  • S301 Obtain the transfer transaction data submitted by the business transfer party when transferring assets.
  • the transfer transaction data is determined based on the first transaction voucher.
  • the first transaction voucher is generated by the business initiator in the process of executing asset issuance processing.
  • the asset description field in a transaction voucher records asset description information used to describe the assets issued by the business initiator.
  • assets may include but are not limited to: electronic resources, electronic invoices and other virtual resources.
  • the asset description information includes the description information corresponding to the asset. Taking the asset as an electronic invoice as an example, the asset description information can be the face content of the electronic invoice, such as invoice code, invoicing date, invoice number, tax object identification number, etc.
  • the data corresponding to a transaction may include but is not limited to: transaction identifier (used to uniquely identify the transaction, which may be a transaction hash, for example), transaction input, transaction output and other fields.
  • transaction identifier used to uniquely identify the transaction
  • the issuance transaction data submitted by the business initiator when issuing assets can be considered as data corresponding to an issuance transaction (as shown in Figure 4a.
  • Figure 4a is a data structure of issuance transaction data provided by an embodiment of the present application. Schematic diagram); for another example, the transfer transaction data submitted by the business transfer party when transferring assets can be considered as data corresponding to a transfer transaction (as shown in Figure 4b, Figure 4b is a transfer transaction provided by the embodiment of the present application Data structure diagram of the data).
  • a transaction can be uniquely identified by the transaction hash, and the source and signature of the input UTXO can be specified through the transaction input field, and the output UTXO can be specified through the transaction output field.
  • the transaction input field may include one or more fields
  • the transaction output field may also include one or more fields.
  • the transaction input fields in a transaction data can at least include: serial number field, source field, and signature field.
  • the sequence number field is used to record the number of the currently input UTXO, which starts from 0 and increases in sequence (for example, 0, 1, 2).
  • the source field is used to record the transaction hash and number of the source transaction data of the UTXO.
  • the signature field is used to record the signature of the owner of the current UTXO.
  • the transaction output fields in a transaction data can at least include: serial number field, amount field, transaction identification field, asset identification field, asset description field, and receiving address field.
  • the serial number field is used to record the number of the currently output UTXO. The number starts from 0 and increases sequentially (for example, 0, 1, 2...), and this number may be referenced in the output field of another transaction data.
  • the amount field is used to record the transferred amount. Except for asset issuance transactions, the sum of all output amounts corresponding to a certain asset ID in a transaction data needs to be equal to the sum of the input amounts corresponding to the asset ID.
  • the transaction identification field is used to record the transaction hash of the original issuance source of the UTXO.
  • the asset identification field is used to record the asset ID specified when the UTXO is issued.
  • the asset ID can be recorded in the transaction input field, the transaction output field, or can be recorded in In other fields, such as the outermost field of a transaction.
  • the asset description field is used to record the corresponding asset description information when an asset is issued.
  • the asset description information is only recorded in the asset description field in the transaction data of the issuance of the asset.
  • the asset description field in other transaction data is recorded as empty or recorded. Replacement information that is different from the asset description information.
  • the receiving address field is used to record the receiving address of the UTXO, and the recorded address has the authority to use the UTXO.
  • the blockchain node also performs the following operations before obtaining the transfer transaction data submitted by the business transfer party when transferring assets: First, obtain the issuance transaction data submitted by the business initiator when issuing assets. , the issuance transaction data includes the asset description information and the issuance transaction identifier corresponding to the issuance asset; then, the signature recorded in the signature field of the issuance transaction data and the business operation authority of the business initiator are verified respectively; if both are verified, Then the first transaction voucher is generated based on the issuance transaction data.
  • the first transaction voucher is generated based on the transaction output field of the issued transaction data.
  • the transaction output field may include: a transaction identification field, an asset description field, and a receiving address field.
  • the receiving address field is used to record the first business address that receives the assets issued by the business initiator.
  • the first business address is the address of the business transfer party.
  • the blockchain node generates the first transaction voucher based on the issuance transaction data, including: writing the first business address recorded in the receiving address field in the issuance transaction data to the receiving address field in the first transaction voucher;
  • the asset description information recorded in the asset description field in is written to the asset description field in the first transaction voucher;
  • the issuance transaction identification recorded in the transaction identification field in the issuance transaction data is written to the transaction identification in the first transaction voucher field.
  • the first transaction voucher refers to the unspent transaction output (i.e. UTXO) in the issuance transaction data.
  • Figure 4c is a transaction data flow process provided by the embodiment of the present application. Process diagram. As shown in Figure 4c, the amount recorded in the amount field in the issuance transaction data is 50, and none of the assets with an amount of 50 have been consumed. Then, this part of the assets with an amount of 50 can be used as the next transaction data (for example transfer transaction data). For another example, asset transfer can continue based on the transfer transaction data.
  • the asset with the amount of 20 can be transferred to Zhang San respectively (which can be used as the next transfer transaction data (for example, Hash: cd5 ...)), and transfer an asset of 30 to Li Si (can be used as the input part of the next transfer transaction data (such as Hash: g7f%))).
  • the blockchain node after the blockchain node obtains the transfer transaction data submitted by the business transfer party when transferring assets, it also includes: obtaining the signature recorded in the signature field in the transfer transaction data; verifying the signature in the transfer transaction data. The signature of the field record is verified. If the verification passes, the source transaction ID of the source field record in the transfer transaction data is obtained; the transfer transaction data is verified based on the source transaction ID.
  • the blockchain node verifies the transfer transaction data based on the source transaction identifier, including: obtaining the source transaction voucher based on the source transaction identifier, and the transaction identifier recorded in the source field in the source transaction voucher matches the source transaction identifier; Verify the transfer transaction data based on the source transaction voucher.
  • the so-called source transaction certificate can correspond to the issuance transaction data (for example, the data corresponding to the transaction hash of aa8... in Figure 4c), or it can correspond to any transfer transaction data (for example, the transaction hash in Figure 4c is the data corresponding to cd5..., or the transaction hash is the data corresponding to g7f%), the embodiment of this application does not specifically limit this.
  • the blockchain node verifies the transfer transaction data based on the source transaction voucher, including: verifying the transfer transaction data based on the data recorded in the target field in the source transaction voucher.
  • the target field includes the amount field in the source transaction voucher. , any one or more of the transaction identification field, asset identification field, and receiving address field.
  • the amount field in the source transaction data is used to verify the amount field in the transfer transaction data;
  • the transaction identification field in the source transaction data is used to verify the transaction identification field in the transfer transaction data; in the source transaction data
  • the asset identification field is used to verify the asset identification field in the transfer transaction data;
  • the receiving address field in the source transaction data is used to verify the receiving address field in the transfer transaction data.
  • the signature field in the transfer transaction data Recorded signature (for example, Zhang San’s signature, the so-called Zhang San’s signature may refer to the data obtained after signing using Zhang San’s private key).
  • Verifying the signature recorded in the signature field in the transfer transaction data may include: verifying Zhang San's signature through the first business address (such as Zhang San's address) recorded in the receiving address field in the first transaction voucher, and if it matches , then it is determined that the signature verification passes.
  • you can obtain the source transaction identifier for example, aa8...(0) of the source field record in the transfer transaction data. Through this source transaction identifier (for example, aa8...(0)), you can obtain the source transaction.
  • each field in the transfer transaction data can be verified based on each field in the first transaction voucher.
  • the amount recorded in the amount field in the first transaction voucher is 50
  • the amount recorded in the amount field in the transfer transaction data is 50.
  • S302 Generate a second transaction voucher based on the transfer transaction data, where the transaction identifier recorded in the transaction identification field in the first transaction voucher is the same as the transaction identifier recorded in the transaction identification field in the second transaction voucher, and the assets in the second transaction voucher.
  • the content recorded in the description field is empty, or the content recorded in the asset description field in the second transaction voucher is replacement information, and the replacement information is different from the asset description information.
  • the second transaction voucher is generated based on the transaction output field of the transfer transaction data; the transaction output field includes the transaction identification field, the asset description field and the receiving address field; the receiving address field is used to record the second address of the assets transferred by the receiving business transfer party.
  • Business address the second business address is the address of the business reimbursement party.
  • the amount of information corresponding to the replacement information is much smaller than the amount of information corresponding to the asset description information.
  • specific data such as the character "#" or the number "0" can be used as the replacement information.
  • the embodiment of the present application does not The data type of the replacement information is specifically limited.
  • the blockchain node generates a second transaction voucher based on the transfer transaction data, including: writing the second business address recorded in the receiving address field in the transfer transaction data to the second transaction voucher. Receiving address field; write the issuance transaction ID recorded in the transaction ID field in the transfer transaction data to the transaction ID field in the second transaction voucher; set the asset description field in the second transaction voucher to empty, or replace the information Written to the asset description field in the second transaction voucher, the replacement information is different from the asset description information. In this way, when transferring assets, you only need to carry the issuance transaction ID of the issued asset, without carrying asset description information.
  • the blockchain node can obtain an information query request, which carries the transaction identifier to be queried; then, the blockchain node can obtain the target transaction voucher based on the transaction identifier to be queried, and the target transaction The transaction ID recorded in the transaction ID field in the voucher matches the transaction ID to be queried; finally, the blockchain node can obtain the asset description information from the asset description field in the target transaction voucher.
  • the information query request may be initiated by any one of the business transfer party, business reimbursement party or business initiator. In this way, when querying asset description information, the source of the asset can be indexed through the transaction identifier, so that the corresponding asset description information can be obtained from the transaction data of the issued asset, thereby reducing the amount of information storage and improving improve data processing efficiency.
  • the transfer transaction data submitted by the business transfer party when transferring assets can be obtained.
  • the transfer transaction data is determined based on the first transaction voucher.
  • the first transaction The voucher is generated by the business initiator during the process of executing asset issuance.
  • the asset description field in the first transaction voucher records asset description information used to describe the assets issued by the business initiator.
  • a second transaction voucher can be generated based on the transfer transaction data.
  • the transaction ID recorded in the transaction ID field in the first transaction voucher is the same as the transaction ID recorded in the transaction ID field in the second transaction voucher, the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction ID is empty.
  • the content recorded in the asset description field in the transaction voucher is replacement information, which is different from the asset description information. It can be seen that when transferring assets, it is necessary to carry the transaction identifier corresponding to the issuance of the assets, but there is no need to carry the asset description information corresponding to the issued assets, or to replace the asset description information with other replacement information. Generally speaking, since asset description information occupies a large storage space, the embodiment of the present application does not need to carry the asset description information, so the amount of information storage can be reduced during the asset transfer process, thereby saving storage space.
  • Figure 5 is a schematic flowchart of another data processing method provided by an embodiment of the present application.
  • This data processing method can be performed by a business transfer party (such as a terminal device or server, etc.) in the data processing system mentioned in Figure 2. computer equipment).
  • the data processing method may include the following steps S501 to S502:
  • S501 Obtain the first transaction voucher generated by the business initiator in the process of issuance of assets.
  • the first transaction voucher is generated based on the issuance transaction data submitted by the business initiator to the blockchain node.
  • the issuance transaction data includes the issuance transaction data corresponding to the issuance assets. asset description information and issuance transaction identifier.
  • the first transaction voucher includes a transaction identification field and an asset description field; the transaction identification field is used to record the transaction identification, and the asset description field is used to record asset description information.
  • the business transfer party generates transfer transaction data corresponding to the transferred assets based on the first transaction voucher, including: writing the transaction ID recorded in the transaction ID field of the first transaction voucher into the transaction ID field of the transfer transaction data; Set the asset description field to empty, or write replacement information to the asset description field of the transfer transaction data.
  • the replacement information is different from the asset description information.
  • the data structure of the issuance transaction data can be as shown in Figure 4a, in which the first transaction voucher can be generated according to the transaction output field of the issuance transaction data.
  • the transaction output field of the issuance transaction data can be used as the first transaction voucher.
  • the business transfer party after the business transfer party obtains the first transaction voucher generated by the business initiator in the process of issuance of assets, it also includes: obtaining the identity information of the business initiator; initiating the business based on the identity information of the business initiator. The party performs identity verification. If the identity verification passes, the step of generating transfer transaction data corresponding to the transferred assets based on the first transaction voucher is triggered.
  • Identity verification of the service initiator based on the identity information of the service initiator includes: verifying whether the obtained identity information is consistent with the digital signature of the service initiator. If they are consistent, the identity verification is passed. In this way, the identity of the business initiator can be verified and the security during data processing can be improved.
  • S502 Generate transfer transaction data corresponding to the transferred asset based on the first transaction voucher, and send the transfer transaction data to the blockchain node, so that the blockchain node generates a second transaction voucher based on the transfer transaction data.
  • the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher
  • the content recorded in the asset description field in the second transaction voucher is empty or the recorded content is Replacement information.
  • the replacement information is not the same as the asset description information.
  • the first transaction voucher corresponds to the unspent transaction output part of the assets issued by the business initiator, and can be used as the transaction input part when the business transfer party (such as Zhang San) transfers assets. Then, the business transfer party transfers assets in the amount of 30 to Li Si based on the amount recorded in the amount field in the first transaction voucher (for example, 50). Next, after Li Si obtains the assets amounting to 30, he can act as a new business transfer party and continue to transfer this part of the assets amounting to 30 to Wang Wu, etc. In this way, the transfer of assets can be achieved. Among them, during the process of asset transfer, the asset description information will not be carried, or the asset description information can be replaced by replacement information.
  • the amount of information corresponding to the replacement information is much smaller than the amount of information corresponding to the asset description information, for example Specific data (such as the character "#" or the number "0") can be used as the replacement information.
  • Specific data such as the character "#" or the number "0"
  • the embodiment of the present application does not specifically limit the data type of the replacement information.
  • the business transfer party can obtain the assets transferred from the business initiator, and perform asset transfer based on these assets.
  • asset transfer process there is no need to carry asset description information, or the asset description information is replaced with designated replacement information with a smaller amount of information, thereby reducing the amount of information carried during data processing, thereby saving storage space and improving data processing efficiency. .
  • FIG. 6 is an interactive flow chart of a data processing method provided by an embodiment of the present application.
  • This data processing method can be jointly executed by the blockchain node, the business initiator, the business transfer party and the business reimbursement party.
  • the interactive process of the data processing method may include the following steps S601 to S608:
  • S601 The business initiator sends issuance transaction data.
  • the business initiator can initiate a transaction of "issuing assets” (commonly known as invoicing) to the blockchain, and the transaction of "issuing assets” carries the issuance transaction data.
  • the data structure of the issuance transaction data initiated by the business initiator can be shown in Figure 4a.
  • the business initiator can write the face content of the electronic invoice into the "Asset Description" field in the transaction output field (for example, face content 1), fill in 50 in the "Amount” field, and fill in the "Issue Transaction” field corresponding to the transaction.
  • the transaction hash can be filled with the invoice ID (if the invoice ID is not unique, it can be a hash of the asset description plus a timestamp), and the "Receiving Address” field records the address of the invoice recipient (business transfer party) (For example, Zhang San’s address).
  • the blockchain node generates the first transaction voucher based on the issuance transaction data.
  • the blockchain node can first verify the signature recorded in the signature field of the issuance transaction data and the business operation permissions of the business initiator; if both are verified, the third generation is generated based on the issuance transaction data.
  • a transaction certificate
  • the first transaction voucher is generated based on the transaction output field of the issuance transaction data; the transaction output field includes the transaction identification field, the asset description field and the receiving address field; the receiving address field is used to record the receipt of the assets issued by the business initiator.
  • the first business address is the address of the business transfer party; the blockchain node generates the first transaction voucher based on the issuance transaction data, including: writing the first business address recorded in the receiving address field in the issuance transaction data. to the receiving address field in the first transaction voucher; write the asset description information recorded in the asset description field in the issuance transaction data to the asset description field in the first transaction voucher; record in the transaction identification field in the issuance transaction data
  • the issuance transaction identification is written into the transaction identification field in the first transaction voucher.
  • the business transfer party can continuously synchronize transactions from the blockchain node.
  • it can save the relevant information of the transaction (including asset description information) locally and store all the transaction information locally.
  • the required information (such as the transaction hash of the transaction, corresponding UTXO information, asset description information, etc.) is saved in a structured storage (such as a mysql database) for easy query.
  • the business transfer party determines the transfer transaction data based on the first transaction voucher.
  • the business transfer party when it needs to transfer assets, it initiates an asset transfer transaction (commonly known as reimbursement) to the blockchain.
  • an asset transfer transaction commonly known as reimbursement
  • the input of this transaction of transferring assets is the UTXO output by the issuing asset exchange at the time of invoicing.
  • the output "receiving address” field is filled with the blockchain address of the company (hereinafter referred to as the company) for reimbursement (for example, Li Si's address)
  • the "amount” field is filled with 30
  • the "transaction identification” field is filled with the issuance of the asset
  • the transaction hash read from the "Transaction Identification” field in the output of the previous UTXO
  • fill in the asset ID at the time of invoicing in the "Asset Identification” field fill in "Blank” in the "Asset Description” field or fill in the replacement information ( This field is required only for transactions that issue assets).
  • the replacement information is different from the asset description information.
  • the blockchain node after receiving the transfer transaction data sent by the business transfer party, the blockchain node obtains the identity information of the business transfer party, and performs identity verification on the business transfer party based on the identity information of the business transfer party. If the verification passes, the following step S606 is triggered.
  • the identity verification of the business transfer party based on the identity information of the business transfer party includes: verifying whether the obtained identity information is consistent with the digital signature of the business transfer party. If they are consistent, the identity verification is passed. In this way, verifying the identity of the business transfer party can improve the security of the data processing process.
  • S606 The blockchain node generates a second transaction voucher based on the transfer transaction data.
  • the blockchain node after the blockchain node obtains the transfer transaction data submitted by the business transfer party when transferring assets, it also includes: obtaining the signature recorded in the signature field in the transfer transaction data; verifying the signature in the transfer transaction data. The signature of the name field record is verified. If the verification passes, the source transaction ID of the source field record in the transfer transaction data is obtained; the transfer transaction data is verified based on the source transaction ID.
  • the blockchain node can obtain the source transaction voucher based on the source transaction identifier. The transaction identifier recorded in the source field in the source transaction voucher matches the source transaction identifier; then, the transfer transaction data is calibrated based on the source transaction voucher. test.
  • the specific process of the blockchain node verifying the transfer transaction data based on the source transaction certificate can refer to the specific process described in step S301 in the embodiment of Figure 3, which will not be described again in the embodiment of this application.
  • the company business reimbursement party
  • it can save the relevant information of the transaction locally and add the required information (such as the transaction hash of the transaction) , corresponding UTXO information, etc.) are saved into structured storage (such as mysql database) for easy query.
  • S608 The business reimbursement party sends an information inquiry request.
  • any party among the business reimbursement party, the business transfer party, and the business initiator can send an information query request to the blockchain node.
  • the business reimbursement direction to send an information query request to the blockchain node as an example for relevant explanation.
  • the business reimbursement party can generate an information query request based on the transaction ID to be queried, and then send the information query request to the blockchain node. Subsequently, after the blockchain node receives the information query request, it can obtain the target transaction voucher based on the transaction ID to be queried, where the transaction ID recorded in the transaction ID field in the target transaction voucher matches the transaction ID to be queried. For example, if the transaction identifier to be queried is "aa8", then the target transaction voucher may include a first transaction voucher and a second transaction voucher. Finally, the asset description information can be obtained from the asset description field in the target transaction document. Among them, the first transaction voucher is the corresponding voucher when the asset is issued, and its asset description field records asset description information.
  • the second transaction voucher does not carry asset description information. Therefore, the blockchain node reads the asset description information from the asset description field in the first transaction voucher. Finally, the blockchain node can send asset description information to the business reimbursement party.
  • assets can be indexed according to the transaction identifier, the source of the asset can be indexed, and the asset description information can be obtained.
  • the business initiator when issuing assets, the business initiator needs to specify the asset description information and the transaction identifier (such as transaction hash) corresponding to the issuance transaction.
  • the transaction identifier such as transaction hash
  • the business transfer party transfers assets, it needs to execute the transaction hash of the transaction corresponding to the asset issuance without including asset description information.
  • the source of the asset that is, the issuance transaction data when the asset was issued
  • the asset description information can be read from the source. Since asset description information does not need to be stored repeatedly, the amount of information stored is reduced and the efficiency of data processing is improved.
  • FIG. 7 is a schematic structural diagram of a data processing device provided by an embodiment of the present application.
  • the data processing device 700 can be applied to the blockchain node in the aforementioned embodiments.
  • the data processing device 700 can be a computer program (including program code) running in the blockchain node.
  • the data processing device 700 can be an application software, or it can be a hardware component in the blockchain node; the data processing device 700 700 can be used to perform corresponding steps in the data processing method provided by the embodiment of this application.
  • the data processing device 700 may include:
  • the acquisition unit 701 is used to acquire the transfer transaction data submitted by the business transfer party when transferring assets.
  • the transfer transaction data is determined based on the first transaction voucher.
  • the first transaction voucher is obtained by the business initiator in the process of executing the asset issuance process. Generated, the asset description field in the first transaction voucher records asset description information;
  • the processing unit 702 is used to generate a second transaction voucher according to the transfer transaction data
  • the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher.
  • the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction.
  • the content recorded in the asset description field in the voucher is replacement information, and the replacement information is different from the asset description information.
  • processing unit 702 is also used to perform the following operations:
  • the processing unit 702 before the acquisition unit 701 acquires the transfer transaction data submitted by the business transfer party when transferring assets, the processing unit 702 is also configured to perform the following operations:
  • the issuance transaction data includes the asset description information and issuance transaction identification corresponding to the issuance assets;
  • the first transaction voucher is generated based on the issuance transaction data.
  • the first transaction voucher is generated based on the transaction output field of the issuance transaction data;
  • the transaction output field includes a transaction identification field, an asset description field and a receiving address field;
  • the receiving address field is used to record the receiving business initiator.
  • the first business address of the issuing assets which is the address of the business transfer party;
  • the processing unit 702 generates a first transaction voucher according to the issuance transaction data, for performing the following operations:
  • the issuance transaction identification recorded in the transaction identification field in the issuance transaction data is written into the transaction identification field in the first transaction voucher.
  • the processing unit 702 is also used to perform the following operations:
  • Verify the signature of the signature field record in the transfer transaction data If the verification passes, obtain the source transaction identifier of the source field record in the transfer transaction data;
  • the processing unit 702 verifies the transfer transaction data according to the source transaction identifier to perform the following operations:
  • the processing unit 702 verifies the transfer transaction data according to the source transaction voucher to perform the following operations:
  • the transfer transaction data is verified based on the data recorded in the target field in the source transaction voucher.
  • the target field includes any one or more of the amount field, transaction identification field, asset identification field, and receiving address field in the source transaction voucher. ;
  • the amount field in the source transaction data is used to verify the amount field in the transfer transaction data; the transaction identification field in the source transaction data is used to verify the transaction identification field in the transfer transaction data; in the source transaction data
  • the asset identification field is used to verify the asset identification field in the transfer transaction data; the receiving address field in the source transaction data is used to verify the receiving address field in the transfer transaction data.
  • the second transaction voucher is generated based on the transaction output field of the transfer transaction data;
  • the transaction output field includes a transaction identification field, an asset description field and a receiving address field;
  • the receiving address field is used to record the location of the receiving business transfer party.
  • the second business address of the transferred assets, the second business address is the address of the business reimbursement party;
  • the processing unit 702 generates a second transaction voucher according to the transfer transaction data for performing the following operations:
  • the transfer transaction data submitted by the business transfer party when transferring assets can be obtained.
  • the transfer transaction data is determined based on the first transaction voucher.
  • the first transaction The voucher is generated by the business initiator during the process of executing asset issuance.
  • the asset description field in the first transaction voucher records asset description information used to describe the assets issued by the business initiator.
  • a second transaction voucher can be generated based on the transfer transaction data.
  • the transaction ID recorded in the transaction ID field in the first transaction voucher is the same as the transaction ID recorded in the transaction ID field in the second transaction voucher, the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction ID is empty.
  • the content recorded in the asset description field in the transaction voucher is replacement information, which is different from the asset description information. It can be seen that when transferring assets, it is necessary to carry the transaction identifier corresponding to the issuance of the assets, but there is no need to carry the asset description information corresponding to the issued assets, or to replace the asset description information with other replacement information. Generally speaking, since asset description information occupies a large storage space, the embodiment of the present application does not need to carry the asset description information, so the amount of information storage can be reduced during the asset transfer process, thereby saving storage space.
  • FIG. 8 is a schematic structural diagram of another data processing device provided by an embodiment of the present application.
  • the data processing device 800 can be applied to the service transfer party in the aforementioned embodiments.
  • the data processing device 800 may be a computer program (including program code) running in the business transfer party.
  • the data processing device 800 may be an application software, or a computer device used for the business transfer party; the data processing device 800 may be Used to perform corresponding steps in the data processing method provided by the embodiments of this application.
  • the data processing device 800 may include:
  • the acquisition unit 801 is used to obtain the first transaction voucher generated by the business initiator in the process of issuance of assets.
  • the first transaction voucher is generated based on the issuance transaction data submitted by the business initiator to the blockchain node.
  • the issuance transaction data includes Asset description information and issuance transaction identification corresponding to the issued assets;
  • the processing unit 802 is configured to generate transfer transaction data corresponding to the transferred assets based on the first transaction voucher, and send the transfer transaction data to the blockchain node, so that the blockchain node generates a second transaction voucher based on the transfer transaction data;
  • the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher
  • the content recorded in the asset description field in the second transaction voucher is empty or the recorded content is Replacement information.
  • the replacement information is not the same as the asset description information.
  • the first transaction voucher includes a transaction identification field and an asset description field; the transaction identification field is used to record the transaction identification, and the asset description field is used to record asset description information;
  • the processing unit 802 generates transfer transaction data corresponding to the transferred asset based on the first transaction voucher, for performing the following operations:
  • the processing unit 802 is also configured to perform the following operations:
  • the identity of the business initiator is verified based on the identity information of the business initiator. If the identity verification passes, the step of generating transfer transaction data corresponding to the transferred assets based on the first transaction voucher is triggered.
  • the business transfer party can obtain the assets transferred from the business initiator, and perform asset transfer based on these assets.
  • asset transfer process there is no need to carry asset description information, or the asset description information is replaced with designated replacement information with a smaller amount of information, thereby reducing the amount of information carried during data processing, thereby saving storage space and improving data processing efficiency. .
  • FIG. 9 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • the computer device 900 is used to perform the steps performed by the blockchain node and the business node (business transfer party, business initiator, or business reimbursement party) in the foregoing method embodiments.
  • the computer device 900 includes: one or more processors 910, one or more input devices 920, one or more output devices 930, and memory 940.
  • the above-mentioned processor 910, input device 920, output device 930 and memory 940 are connected through a bus 950.
  • the memory 940 is used to store computer programs, which include program instructions.
  • the processor 910 is used to call the program instructions stored in the memory 940 to perform the following operations:
  • the transfer transaction data is determined based on the first transaction voucher.
  • the first transaction voucher is generated by the business initiator in the process of executing the asset issuance process.
  • the first transaction The asset description field in the voucher records asset description information;
  • the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher.
  • the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction.
  • the content recorded in the asset description field in the voucher is replacement information, and the replacement information is different from the asset description information.
  • processor 910 is also configured to perform the following operations:
  • the processor 910 before obtaining the transfer transaction data submitted by the business transfer party when transferring assets, the processor 910 is also used to perform the following operations:
  • the issuance transaction data includes the asset description information and issuance transaction identification corresponding to the issuance assets;
  • the first transaction voucher is generated based on the issuance transaction data.
  • the first transaction voucher is generated based on the transaction output field of the issuance transaction data;
  • the transaction output field includes a transaction identification field, an asset description field and a receiving address field;
  • the receiving address field is used to record the receiving business initiator.
  • the first business address of the issuing assets which is the address of the business transfer party;
  • the processor 910 generates a first transaction voucher according to the issuance transaction data, for performing the following operations:
  • the issuance transaction identification recorded in the transaction identification field in the issuance transaction data is written into the transaction identification field in the first transaction voucher.
  • the processor 910 is also configured to perform the following operations:
  • Verify the signature of the signature field record in the transfer transaction data If the verification passes, obtain the source transaction identifier of the source field record in the transfer transaction data;
  • the processor 910 verifies the transfer transaction data according to the source transaction identifier to perform the following operations:
  • the processor 910 verifies the transfer transaction data based on the source transaction voucher to perform the following operations:
  • the transfer transaction data is verified based on the data recorded in the target field in the source transaction voucher.
  • the target field includes any one or more of the amount field, transaction identification field, asset identification field, and receiving address field in the source transaction voucher. ;
  • the amount field in the source transaction data is used to verify the amount field in the transfer transaction data; the transaction identification field in the source transaction data is used to verify the transaction identification field in the transfer transaction data; in the source transaction data
  • the asset identification field is used to verify the asset identification field in the transfer transaction data; the receiving address field in the source transaction data is used to verify the receiving address field in the transfer transaction data.
  • the second transaction voucher is generated based on the transaction output field of the transfer transaction data;
  • the transaction output field includes a transaction identification field, an asset description field and a receiving address field;
  • the receiving address field is used to record the location of the receiving business transfer party.
  • the second business address of the transferred assets, the second business address is the address of the business reimbursement party;
  • the processor 910 generates a second transaction voucher according to the transfer transaction data for performing the following operations:
  • the processor 910 is configured to call program instructions stored in the memory 940, and is also configured to perform the following operations:
  • the first transaction voucher generated by the business initiator in the process of issuance of assets.
  • the first transaction voucher is generated based on the issuance transaction data submitted by the business initiator to the blockchain node.
  • the issuance transaction data includes the assets corresponding to the issuance assets. Description information and issuance transaction identifier;
  • the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher
  • the content recorded in the asset description field in the second transaction voucher is empty or the recorded content is Replacement information.
  • the replacement information is not the same as the asset description information.
  • the first transaction voucher includes a transaction identification field and an asset description field; the transaction identification field is used to record the transaction identification, and the asset description field is used to record asset description information;
  • the processor 910 generates transfer transaction data corresponding to the transferred asset based on the first transaction voucher for performing the following operations:
  • the processor 910 is also configured to perform the following operations:
  • the identity of the business initiator is verified based on the identity information of the business initiator. If the identity verification passes, the step of generating transfer transaction data corresponding to the transferred assets based on the first transaction voucher is triggered.
  • the transfer transaction data submitted by the business transfer party when transferring assets can be obtained.
  • the transfer transaction data is determined based on the first transaction voucher.
  • the first transaction The voucher is generated by the business initiator during the process of asset issuance.
  • the asset description field in the first transaction voucher records asset description information corresponding to the assets issued by the business initiator.
  • a second transaction voucher can be generated based on the transfer transaction data.
  • the transaction ID recorded in the transaction ID field in the first transaction voucher is the same as the transaction ID recorded in the transaction ID field in the second transaction voucher, the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction ID is empty.
  • the content recorded in the asset description field in the transaction voucher is replacement information, which is different from the asset description information. It can be seen that when transferring assets, it is necessary to carry the transaction identifier corresponding to the issuance of the assets, but there is no need to carry the asset description information corresponding to the issued assets, or to replace the asset description information with other replacement information. Generally speaking, since asset description information occupies a large storage space, the embodiment of the present application does not need to carry the asset description information, so the amount of information storage can be reduced during the asset transfer process, thereby saving storage space and improving data processing efficiency. efficiency.
  • embodiments of the present application also provide a computer storage medium, and a computer program is stored in the computer storage medium, and the computer program includes program instructions.
  • the processor executes the above program instructions, it can execute the corresponding embodiments mentioned above. method, so we will not go into details here.
  • program instructions may be deployed on one computer device, or executed on multiple computer devices located at one location, or on multiple computer devices distributed across multiple locations and interconnected by a communications network.
  • a computer program product or computer program includes computer instructions stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device can perform the methods in the corresponding embodiments. Therefore, the details will not be described here.
  • the above programs can be stored in computer-readable storage media.
  • the programs When executed, , may include the processes of the above method embodiments.
  • the above-mentioned storage media can be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.

Abstract

The present application provides a data processing method and apparatus, a device, a medium, and a product. The method comprises: acquiring transfer transaction data submitted by a service transfer party during asset transfer, wherein the transfer transaction data is determined according to a first transaction certificate, the first transaction certificate is generated by a service initiator in a process of performing asset issuing processing, and asset description information is recorded in an asset description field in the first transaction certificate; and generating a second transaction certificate according to the transfer transaction data, wherein a transaction identifier recorded in a transaction identification field in the first transaction certificate is the same as a transaction identifier recorded in a transaction identification field in the second transaction certificate, content recorded in an asset description field in the second transaction certificate is empty, or the content recorded in the asset description field in the second transaction certificate is replacement information, and the replacement information is different from the asset description information. According to the present application, the recorded content can be more concise in the asset transfer process, and the data processing efficiency can be improved.

Description

数据处理方法、装置及设备、介质、产品Data processing methods, devices and equipment, media, products
本申请要求于2022年4月27日提交中国专利局、申请号为202210456676.6、名称为“数据处理方法、装置及设备、介质、产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on April 27, 2022, with application number 202210456676.6 and titled "Data processing methods, devices and equipment, media, products", the entire content of which is incorporated by reference in in this application.
技术领域Technical field
本申请涉及互联网技术领域,尤其涉及一种数据处理方法、一种数据处理装置、一种计算机设备、一种计算机可读存储介质及一种计算机程序产品。The present application relates to the field of Internet technology, and in particular to a data processing method, a data processing device, a computer equipment, a computer-readable storage medium and a computer program product.
背景技术Background technique
在区块链中,一笔资产对应一个数字,资产的转移就是数字的归属方的转变。从更普遍的概念来讲,一笔资产不一定是一个数字,也可以是一段描述,比如电子发票在某种意义上可以认为是一种资产,电子发票可以包括发票号、交易信息等资产描述信息,这些描述信息在资产发行(俗称开票)完成时就已确定下来,如果在每次交易中都要指定这些资产描述信息,会导致重复的内容存储,内容记录不够简洁,影响数据处理的效率,而且还会占用大量的存储空间。In the blockchain, an asset corresponds to a number, and the transfer of the asset is a change in the ownership of the number. From a more general concept, an asset is not necessarily a number, but can also be a description. For example, an electronic invoice can be considered an asset in a certain sense. An electronic invoice can include asset descriptions such as invoice numbers and transaction information. Information, this description information has been determined when the asset issuance (commonly known as invoicing) is completed. If these asset description information are specified in each transaction, it will lead to duplicate content storage, and the content record is not concise enough, affecting the efficiency of data processing. , and it also takes up a lot of storage space.
发明内容Contents of the invention
本申请实施例提出了一种数据处理方法、装置及设备、介质、产品,可以在资产的转移过程中内容记录更加简洁。The embodiments of this application propose a data processing method, device and equipment, media, and products, which can make content recording more concise during the transfer process of assets.
一方面,本申请实施例提供了一种数据处理方法,该方法包括:On the one hand, embodiments of the present application provide a data processing method, which method includes:
获取业务转移方在进行资产转移时所提交的转移交易数据,转移交易数据是根据第一交易凭证确定的,第一交易凭证是业务发起方在执行资产发行处理的过程中生成的,第一交易凭证中的资产描述字段记录有资产描述信息;Obtain the transfer transaction data submitted by the business transfer party when transferring assets. The transfer transaction data is determined based on the first transaction voucher. The first transaction voucher is generated by the business initiator in the process of executing the asset issuance process. The first transaction The asset description field in the voucher records asset description information;
根据转移交易数据生成第二交易凭证;Generate a second transaction voucher based on the transferred transaction data;
其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空,或者第二交易凭证中的资产描述字段记录的内容为替换信息,替换信息与资产描述信息不相同。Among them, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher. The content recorded in the asset description field in the second transaction voucher is empty, or the second transaction The content recorded in the asset description field in the voucher is replacement information, and the replacement information is different from the asset description information.
一方面,本申请实施例提供了一种数据处理方法,该方法包括:On the one hand, embodiments of the present application provide a data processing method, which method includes:
获取业务发起方在发行资产的过程中所生成的第一交易凭证,第一交易凭证是根据业务发起方向区块链节点所提交的发行交易数据生成的,发行交易数据包括发行资产所对应的资产描述信息和发行交易标识;Obtain the first transaction voucher generated by the business initiator in the process of issuance of assets. The first transaction voucher is generated based on the issuance transaction data submitted by the business initiator to the blockchain node. The issuance transaction data includes the assets corresponding to the issuance assets. Description information and issuance transaction identifier;
根据第一交易凭证生成转移资产对应的转移交易数据,并向区块链节点发送转移交易数据,以使区块链节点根据转移交易数据生成第二交易凭证;Generate transfer transaction data corresponding to the transferred assets based on the first transaction voucher, and send the transfer transaction data to the blockchain node, so that the blockchain node generates a second transaction voucher based on the transfer transaction data;
其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空或者记录的内容为替换信息,替换信息与资产描述信息不相同。Among them, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher, and the content recorded in the asset description field in the second transaction voucher is empty or the recorded content is Replacement information. The replacement information is not the same as the asset description information.
一方面,本申请实施例提供了一种数据处理装置,该装置包括:On the one hand, embodiments of the present application provide a data processing device, which includes:
获取单元,用于获取业务转移方在进行资产转移时所提交的转移交易数据,转移交易 数据是根据第一交易凭证确定的,第一交易凭证是业务发起方在执行资产发行处理的过程中生成的,第一交易凭证中的资产描述字段记录有资产描述信息;The acquisition unit is used to obtain the transfer transaction data submitted by the business transfer party when transferring assets. The transfer transaction The data is determined based on the first transaction voucher. The first transaction voucher is generated by the business initiator during the execution of asset issuance processing. The asset description field in the first transaction voucher records asset description information;
处理单元,用于根据转移交易数据生成第二交易凭证;A processing unit configured to generate a second transaction voucher based on the transfer transaction data;
其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空,或者第二交易凭证中的资产描述字段记录的内容为替换信息,替换信息与资产描述信息不相同。Among them, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher. The content recorded in the asset description field in the second transaction voucher is empty, or the second transaction The content recorded in the asset description field in the voucher is replacement information, and the replacement information is different from the asset description information.
一方面,本申请实施例提供了一种数据处理装置,该装置包括:On the one hand, embodiments of the present application provide a data processing device, which includes:
获取单元,用于获取业务发起方在发行资产的过程中所生成的第一交易凭证,第一交易凭证是根据业务发起方向区块链节点所提交的发行交易数据生成的,发行交易数据包括发行资产所对应的资产描述信息和发行交易标识;The acquisition unit is used to obtain the first transaction voucher generated by the business initiator in the process of issuing assets. The first transaction voucher is generated based on the issuance transaction data submitted by the business initiator to the blockchain node. The issuance transaction data includes the issuance transaction data. The asset description information and issuance transaction identification corresponding to the asset;
处理单元,用于根据第一交易凭证生成转移资产对应的转移交易数据,并向区块链节点发送转移交易数据,以使区块链节点根据转移交易数据生成第二交易凭证;A processing unit configured to generate transfer transaction data corresponding to the transferred assets based on the first transaction voucher, and send the transfer transaction data to the blockchain node, so that the blockchain node generates a second transaction voucher based on the transfer transaction data;
其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空或者记录的内容为替换信息,替换信息与资产描述信息不相同。Among them, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher, and the content recorded in the asset description field in the second transaction voucher is empty or the recorded content is Replacement information. The replacement information is not the same as the asset description information.
一方面,本申请实施例提供一种计算机设备,该计算机设备包括存储器和处理器,存储器存储有计算机程序,计算机程序被处理器执行时,使得处理器执行上述的数据处理方法。On the one hand, embodiments of the present application provide a computer device. The computer device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, it causes the processor to execute the above-mentioned data processing method.
一方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被计算机设备的处理器读取并执行时,使得计算机设备执行上述的数据处理方法。On the one hand, embodiments of the present application provide a computer-readable storage medium that stores a computer program. When the computer program is read and executed by a processor of a computer device, it causes the computer device to perform the above-mentioned data processing. method.
一方面,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述的数据处理方法。On the one hand, embodiments of the present application provide a computer program product or computer program. The computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned data processing method.
本申请实施例中,当业务转移方需要进行资产转移时,可以获取业务转移方在进行资产转移时所提交的转移交易数据,该转移交易数据是根据第一交易凭证确定的,该第一交易凭证是业务发起方在执行资产发行的处理过程中生成的,该第一交易凭证中的资产描述字段记录有用于描述业务发起方发行的资产所对应的资产描述信息。然后,可以根据转移交易数据生成第二交易凭证。其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空,或者该第二交易凭证中的资产描述字段记录的内容为替换信息,该替换信息与资产描述信息不相同。可以看出,在进行资产转移时,需要携带发行资产时所对应的交易标识,但无需携带发行的资产所对应的资产描述信息,或者通过其它替换信息替换资产描述信息。因此,可以使得在资产转移过程中所记录的内容更加简洁,进而可以提高数据处理的效率,而且还可以节省存储空间。In the embodiment of this application, when the business transfer party needs to transfer assets, the transfer transaction data submitted by the business transfer party when transferring assets can be obtained. The transfer transaction data is determined based on the first transaction voucher. The first transaction The voucher is generated by the business initiator during the process of asset issuance. The asset description field in the first transaction voucher records asset description information corresponding to the assets issued by the business initiator. Then, a second transaction voucher can be generated based on the transfer transaction data. Wherein, the transaction ID recorded in the transaction ID field in the first transaction voucher is the same as the transaction ID recorded in the transaction ID field in the second transaction voucher, the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction ID is empty. The content recorded in the asset description field in the transaction voucher is replacement information, which is different from the asset description information. It can be seen that when transferring assets, it is necessary to carry the transaction identifier corresponding to the issuance of the assets, but there is no need to carry the asset description information corresponding to the issued assets, or to replace the asset description information with other replacement information. Therefore, the content recorded during the asset transfer process can be made more concise, thereby improving the efficiency of data processing and saving storage space.
附图简要说明Brief description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术对象来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application. For those with ordinary skills in the field, other drawings can also be obtained based on these drawings without any creative effort.
图1a是本申请实施例提供的一种区块链系统的结构示意图; Figure 1a is a schematic structural diagram of a blockchain system provided by an embodiment of the present application;
图1b是本申请实施例提供的一种区块链的结构示意图;Figure 1b is a schematic structural diagram of a blockchain provided by an embodiment of the present application;
图1c是本申请实施例提供的一种生成区块的流程示意图;Figure 1c is a schematic flowchart of generating blocks provided by an embodiment of the present application;
图1d是本申请实施例提供的一种资产转移的原理示意图;Figure 1d is a schematic diagram of the principle of asset transfer provided by the embodiment of the present application;
图2是本申请实施例提供的一种数据处理系统的架构示意图;Figure 2 is a schematic architectural diagram of a data processing system provided by an embodiment of the present application;
图3是本申请实施例提供的一种数据处理方法的流程示意图;Figure 3 is a schematic flow chart of a data processing method provided by an embodiment of the present application;
图4a是本申请实施例提供的一种发行交易数据的数据结构示意图;Figure 4a is a schematic data structure diagram of issuance transaction data provided by an embodiment of the present application;
图4b是本申请实施例提供的一种转移交易数据的数据结构示意图;Figure 4b is a schematic diagram of the data structure of transfer transaction data provided by an embodiment of the present application;
图4c是本申请实施例提供的一种交易数据流转过程的流程示意图;Figure 4c is a schematic flowchart of a transaction data transfer process provided by an embodiment of the present application;
图5是本申请实施例提供的另一种数据处理方法的流程示意图;Figure 5 is a schematic flow chart of another data processing method provided by an embodiment of the present application;
图6是本申请实施例提供的一种数据处理方法的交互流程图;Figure 6 is an interactive flow chart of a data processing method provided by an embodiment of the present application;
图7是本申请实施例提供的一种数据处理装置的结构示意图;Figure 7 is a schematic structural diagram of a data processing device provided by an embodiment of the present application;
图8是本申请实施例提供的另一种数据处理装置的结构示意图;Figure 8 is a schematic structural diagram of another data processing device provided by an embodiment of the present application;
图9是本申请实施例提供的一种计算机设备的结构示意图。Figure 9 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application.
本申请的数据处理方案可以与区块链技术相结合。接下来,对本申请提供的数据处理方案涉及到的区块链技术进行详细介绍:The data processing solution of this application can be combined with blockchain technology. Next, the blockchain technology involved in the data processing solution provided by this application will be introduced in detail:
本申请实施例所涉及的区块链系统可以是由客户端、多个节点(接入网络中的任意形式的计算设备,如服务器、终端设备)通过网络通信的形式连接形成的分布式系统。接下来结合附图1a-1c对区块链相关技术进行详细介绍:The blockchain system involved in the embodiments of this application may be a distributed system formed by connecting clients and multiple nodes (any form of computing device in the access network, such as servers and terminal devices) through network communication. Next, a detailed introduction to blockchain-related technologies will be given in conjunction with Figures 1a-1c:
一、区块链系统:1. Blockchain system:
请参见图1a,图1a是本申请实施例提供的一种区块链系统的结构示意图。如图1a所示的区块链系统可以为数据共享系统100,该数据共享系统100是指用于节点与节点之间进行数据共享的系统,该数据共享系统100可以包括多个节点101和客户端102,多个节点101可以是指数据共享系统中的各个计算设备。每个节点101在正常工作时可以接收输入信息(例如,任一节点101可以接收业务发起方在发行资产时所提交的发行交易数据;又如,任一节点101可以接收业务转移方在进行资产转移时所提交的转移交易数据等等),并基于接收到的输入信息维护该数据共享系统内的共享数据。为了保证数据共享系统内的信息互通,数据共享系统中的节点之间可以存在通信连接,节点之间可以通过上述通信连接进行信息传输。例如,当数据共享系统中的任意节点接收到输入信息时,数据共享系统中的其他节点便根据共识算法获取该输入信息,将该输入信息作为共享数据进行存储,使得数据共享系统中全部节点上存储的数据均一致。Please refer to Figure 1a, which is a schematic structural diagram of a blockchain system provided by an embodiment of the present application. The blockchain system shown in Figure 1a can be a data sharing system 100. The data sharing system 100 refers to a system for data sharing between nodes. The data sharing system 100 can include multiple nodes 101 and clients. Terminal 102, multiple nodes 101 may refer to various computing devices in the data sharing system. Each node 101 can receive input information when working normally (for example, any node 101 can receive the issuance transaction data submitted by the business initiator when issuing assets; for another example, any node 101 can receive the issuance transaction data submitted by the business transfer party when issuing assets. The transfer transaction data submitted during the transfer, etc.), and maintain the shared data within the data sharing system based on the input information received. In order to ensure information exchange within the data sharing system, communication connections can exist between nodes in the data sharing system, and information can be transmitted between nodes through the above communication connections. For example, when any node in the data sharing system receives input information, other nodes in the data sharing system obtain the input information according to the consensus algorithm and store the input information as shared data, so that all nodes in the data sharing system can The stored data is consistent.
数据共享系统中的每个节点均具有与其对应的节点标识,而且数据共享系统中的每个节点均可以存储数据共享系统中其他节点的节点标识,以便后续根据其他节点的节点标识,将生成的区块广播至数据共享系统中的其他节点。每个节点可维护一个如下表所示的节点标识列表,以将节点名称和节点标识对应存储至该节点标识列表中。其中,节点标识可为IP(Internet Protocol,网络之间互联的协议)地址以及其他任一种能够用于标识该节点的信息,表1中仅以IP地址为例进行说明。 Each node in the data sharing system has its corresponding node identifier, and each node in the data sharing system can store the node identifiers of other nodes in the data sharing system, so that the generated node identifiers can be generated later based on the node identifiers of other nodes. Blocks are broadcast to other nodes in the data sharing system. Each node can maintain a node ID list as shown in the following table to store the node name and node ID in the node ID list. The node identifier can be an IP (Internet Protocol, a protocol for interconnection between networks) address and any other information that can be used to identify the node. Table 1 only takes the IP address as an example for explanation.
表1.节点标识列表
Table 1. List of node identifiers
二、区块链的结构:2. Blockchain structure:
数据共享系统中的每个节点均存储一条相同的区块链。区块链由多个区块组成,参见图1b。图1b是本申请实施例提供的一种区块链的结构示意图。如图1b所示,区块链由多个区块组成。区块链中的创始块中包括区块头和区块体,区块头中存储有输入信息特征值、版本号、时间戳和难度值,区块体中存储有输入信息。创始块的下一区块以创始块为父区块,下一区块中同样包括区块头和区块体,区块头中存储有当前区块的输入信息特征值、父区块的区块头特征值、版本号、时间戳和难度值,并以此类推,使得区块链中每个区块中存储的区块数据均与父区块中存储的区块数据存在关联,从而保证区块中输入信息的安全性。Each node in the data sharing system stores an identical blockchain. The blockchain consists of multiple blocks, see Figure 1b. Figure 1b is a schematic structural diagram of a blockchain provided by an embodiment of the present application. As shown in Figure 1b, the blockchain consists of multiple blocks. The genesis block in the blockchain includes a block header and a block body. The block header stores the input information characteristic value, version number, timestamp and difficulty value, and the block body stores the input information. The next block of the genesis block has the genesis block as the parent block. The next block also includes a block header and a block body. The block header stores the input information characteristic value of the current block and the block header characteristics of the parent block. value, version number, timestamp and difficulty value, and so on, so that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, thereby ensuring that the Security of entered information.
在一种实现方式中,本申请可以将转移交易数据、发行交易数据、第一交易凭证以及第二交易凭证等上传至区块链中进行存储,以防止计算机设备(区块链节点)的内部数据被篡改,从而提升数据的安全性和私密性。In one implementation, this application can upload transfer transaction data, issuance transaction data, first transaction vouchers, second transaction vouchers, etc. to the blockchain for storage, so as to prevent internal corruption of computer equipment (blockchain nodes). Data has been tampered with, thereby improving the security and privacy of the data.
三、区块生成:3. Block generation:
在生成区块链中的各个区块时,参见图1c,区块链的节点在接收到输入信息时,对输入信息进行校验(例如,区块链节点在接收到业务转移方所提交的转移交易数据之后,可以分别对该转移交易数据中的签名字段记录的签名、以及转移交易数据中来源字段记录的来源交易标识进行校验;又如,区块链节点在接收到业务发起方所提交的发行交易数据之后,可以对发行交易数据的签名字段记录的签名、以及业务发起方的业务操作权限分别进行校验),完成校验后,将输入信息存储至内存池中,并更新其用于记录输入信息的哈希树。之后,将更新时间戳更新为接收到输入信息的时间,并尝试不同的随机数,多次进行特征值计算,例如可以进行2-5次特征值计算,使得计算得到的特征值可以满足下述公式:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
When generating each block in the blockchain, see Figure 1c, the blockchain node verifies the input information when receiving the input information (for example, when the blockchain node receives the input information submitted by the business transfer party After the transaction data is transferred, the signature recorded in the signature field in the transferred transaction data and the source transaction identifier recorded in the source field in the transferred transaction data can be verified respectively; for another example, the blockchain node receives the signature from the business initiator. After the issuance transaction data is submitted, the signature recorded in the signature field of the issuance transaction data and the business operation permissions of the business initiator can be verified separately). After the verification is completed, the input information is stored in the memory pool and updated. A hash tree used to record input information. After that, update the update timestamp to the time when the input information is received, try different random numbers, and perform eigenvalue calculations multiple times. For example, 2-5 eigenvalue calculations can be performed so that the calculated eigenvalues can meet the following requirements: formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
其中,SHA256为计算特征值所用的特征值算法;version(版本号)为区块链中相关区块协议的版本信息;prev_hash为当前区块的父区块的区块头特征值;merkle_root为输入信息的特征值;ntime为更新时间戳的更新时间;nbits为当前难度,在一段时间内为定值,并在超出预设时间段后再次进行确定;x为随机数;TARGET为特征值阈值,该特征值阈值可以根据nbits确定得到。Among them, SHA256 is the eigenvalue algorithm used to calculate eigenvalues; version (version number) is the version information of the relevant block protocol in the blockchain; prev_hash is the block header eigenvalue of the parent block of the current block; merkle_root is the input information The characteristic value of The feature value threshold can be determined based on nbits.
这样,当计算得到满足上述公式的特征值时,便可将输入信息对应存储,生成区块头和区块体,得到当前区块。随后,区块链节点根据数据共享系统中其他节点的节点标识,将新生成的区块分别发送给其所在的数据共享系统中的其他节点,由其他节点对新生成的区块进行校验,并在完成校验后将新生成的区块添加至区块链中。In this way, when the characteristic value that satisfies the above formula is calculated, the input information can be stored correspondingly, the block header and block body can be generated, and the current block can be obtained. Subsequently, the blockchain node sends the newly generated blocks to other nodes in the data sharing system where it is located based on the node identifiers of other nodes in the data sharing system, and the other nodes verify the newly generated blocks. And after completing the verification, the newly generated block will be added to the blockchain.
四、基于区块链的资产转移原理:4. Principle of asset transfer based on blockchain:
本申请实施例中,主要介绍基于区块链UTXO(Unspent Transaction Output,未花费过的交易输出)的资产转移的原理流程。其中,交易由交易输入和交易输出组成,每一笔交易都要包括花费几笔输入,产生几笔输出,而其所产生的输出,就是“未花费过的交易输出”(UTXO),这个UTXO可以作为下一笔交易的输入,并产生新的UTXO输出,资产就是 这样通过交易流通起来的。每个UTXO都有一个身份标识,当证明调用方符合身份(数字签名)时,调用方才有权使用该UTXO作为输入。In the embodiment of this application, the principle process of asset transfer based on blockchain UTXO (Unspent Transaction Output, unspent transaction output) is mainly introduced. Among them, a transaction consists of transaction input and transaction output. Each transaction involves spending several inputs and generating several outputs. The output generated is the "unspent transaction output" (UTXO). This UTXO It can be used as the input of the next transaction and generate a new UTXO output. The asset is In this way, it circulates through transactions. Each UTXO has an identity. When it is proven that the caller meets the identity (digital signature), the caller has the right to use the UTXO as input.
接下来,结合附图1d对资产转移原理的详细流程进行介绍。请参见图1d,图1d是本申请实施例提供的一种资产转移的原理示意图。如图1d所示,针对交易1(如图1d所示的“发行资产”交易),该“发行资产”交易可以包括交易哈希(例如Hash:aa8...)、交易输入和交易输出。其中,交易输入又可以包括多个字段(例如序号字段、来源字段和签名字段);交易输出也可以包括多个字段(例如序号字段、数额字段和接收地址字段)。其中,每笔交易的接收地址字段可以指示接收该笔交易中资产的地址(例如张三地址),那么,张三在接收到该“发行资产”交易后,即可作为下一笔交易的输入。进一步地,下一笔交易例如可以为“转移资产”交易,该“转移资产”交易同样可以包括交易哈希(例如Hash:cd5...)、交易输入和交易输出。其中,“转移资产”交易的接收地址字段可以指示将资产转移给一个或多个对象(例如张三、李四),其中,张三拥有数额量为20的资产,李四拥有数额量为30的资产。以此类推,在区块链中,接收到上一笔交易的UTXO后,即可作为下一笔交易的输入,产生新的UTXO,从而实现资产的转移和流通。Next, the detailed process of the asset transfer principle will be introduced with reference to Figure 1d. Please refer to Figure 1d. Figure 1d is a schematic diagram of the principle of asset transfer provided by an embodiment of the present application. As shown in Figure 1d, for transaction 1 (the "Issue Asset" transaction shown in Figure 1d), the "Issue Asset" transaction may include a transaction hash (for example, Hash: aa8...), transaction input and transaction output. The transaction input may include multiple fields (such as a serial number field, a source field, and a signature field); the transaction output may also include multiple fields (such as a serial number field, an amount field, and a receiving address field). Among them, the receiving address field of each transaction can indicate the address to receive the assets in the transaction (such as Zhang San's address). Then, after Zhang San receives the "issuing assets" transaction, it can be used as the input of the next transaction. . Furthermore, the next transaction may be, for example, a "transfer asset" transaction, which may also include a transaction hash (for example, Hash: cd5...), transaction input, and transaction output. Among them, the receiving address field of the "Transfer Assets" transaction can indicate the transfer of assets to one or more objects (such as Zhang San and Li Si). Among them, Zhang San owns assets with an amount of 20, and Li Si owns assets with an amount of 30. asset. By analogy, in the blockchain, after receiving the UTXO of the previous transaction, it can be used as the input of the next transaction to generate a new UTXO, thereby realizing the transfer and circulation of assets.
实践可知,一笔资产不一定是一个数字,也可以是一段描述,比如电子发票在某种意义上就是一种资产,电子发票可以包括发票号、交易信息等资产描述信息。由上述可知,可将UTXO模型应用于带资产描述信息的资产转移场景中。在区块链中,如果只有一种资产,则不太需要关心资产发行的时刻,后续资产转移只需要关心所发行的资产的数额是否正确。但假如需要发行多种资产,在发行时就需要指定该资产的ID(Identity,标识),后续UTXO也需要携带该信息(资产ID),才能识别是哪种资产。更进一步地,假如每个资产都具有对应的资产描述信息,且资产描述信息是重要的,那么为了让交易方查询到该资产描述信息,可以在每次资产转移时,都在交易中携带该资产描述信息,但如果该资产描述信息量较大,则会导致占用大量存储空间。例如,电子发票就是类似这样的场景,每张电子发票都是独一无二的,可以看作是一种资产,每次发行电子发票都是一种新的资产,其对应的资产描述信息也不相同。所以,在电子发票场景中,每一笔进行电子发票转移的交易,都需携带对应的资产描述信息,这就导致占用大量的存储空间。Practice shows that an asset is not necessarily a number, but can also be a description. For example, an electronic invoice is an asset in a sense. The electronic invoice can include asset description information such as invoice number and transaction information. From the above, we can know that the UTXO model can be applied to asset transfer scenarios with asset description information. In the blockchain, if there is only one kind of asset, you don’t need to care much about the moment when the asset is issued. For subsequent asset transfers, you only need to care about whether the amount of the issued asset is correct. But if you need to issue multiple assets, you need to specify the ID (Identity, identification) of the asset when issuing it. Subsequent UTXO also needs to carry this information (asset ID) to identify which asset it is. Furthermore, if each asset has corresponding asset description information, and the asset description information is important, then in order for the transaction party to query the asset description information, the asset description information can be carried in the transaction every time the asset is transferred. Asset description information, but if the amount of asset description information is large, it will occupy a large amount of storage space. For example, electronic invoices are similar to this scenario. Each electronic invoice is unique and can be regarded as an asset. Each time an electronic invoice is issued, it is a new asset, and its corresponding asset description information is also different. Therefore, in the electronic invoice scenario, every electronic invoice transfer transaction needs to carry corresponding asset description information, which takes up a lot of storage space.
基于以上描述,本申请实施例提出一种数据处理方案,主要应用于基于区块链的电子发票场景,该数据处理方案的大致原理如下:当业务转移方需要进行资产转移时,可以获取进行资产转移时所提交的转移交易数据,该转移交易数据是根据第一交易凭证确定的,该第一交易凭证是业务发起方在执行资产发行处理的过程中生成的,该第一交易凭证中的资产描述字段记录有用于描述业务发起方发行的资产的资产描述信息。然后,可以根据转移交易数据生成第二交易凭证。其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空,或者第二交易凭证中的资产描述字段记录的内容为替换信息,该替换信息与资产描述信息不相同。Based on the above description, the embodiment of this application proposes a data processing solution, which is mainly used in blockchain-based electronic invoice scenarios. The general principle of this data processing solution is as follows: when the business transfer party needs to transfer assets, the assets can be obtained The transfer transaction data submitted during the transfer. The transfer transaction data is determined based on the first transaction voucher. The first transaction voucher is generated by the business initiator in the process of executing the asset issuance process. The assets in the first transaction voucher The description field records asset description information used to describe the assets issued by the business initiator. Then, a second transaction voucher can be generated based on the transfer transaction data. Among them, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher. The content recorded in the asset description field in the second transaction voucher is empty, or the second transaction The content recorded in the asset description field in the voucher is replacement information, which is different from the asset description information.
由此可见,在进行资产转移时,需要携带发行资产时所对应的交易标识,但无需携带发行的资产所对应的资产描述信息,或者通过其它替换信息替换资产描述信息。因此,可以使得在资产转移过程中所记录的内容更加简洁,进而可以提高数据处理的效率,节省存储空间。It can be seen that when transferring assets, you need to carry the transaction identifier corresponding to the issuance of the asset, but you do not need to carry the asset description information corresponding to the issued asset, or replace the asset description information with other replacement information. Therefore, the content recorded during the asset transfer process can be made more concise, thereby improving the efficiency of data processing and saving storage space.
需要说明的是,在本申请的后续具体实施方式中,可能涉及到对象信息(例如对象的身份信息)等相关数据,当本申请以上实施例运用到具体产品或技术中时,需要获得对象许可或者同意,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规 和标准。It should be noted that in subsequent implementations of this application, relevant data such as object information (such as the identity information of the object) may be involved. When the above embodiments of this application are applied to specific products or technologies, permission from the object needs to be obtained. Or agree, and the collection, use and processing of relevant data need to comply with the relevant laws and regulations of the relevant countries and regions. and standards.
接下来,对本申请所涉及的数据处理系统的架构图进行相应说明。请参见图2,图2是本申请实施例提供的一种数据处理系统的架构示意图。如图2所示,该数据处理系统至少可以包括:区块链节点集群、业务发起方202、业务转移方203、以及业务报销方204。其中,业务发起方202、业务转移方203、以及业务报销方204可以称为业务节点,区块链节点集群可以包括至少一个区块链节点201,例如图2所示的区块链集群中包括3个区块链节点201,本申请并不对区块链节点的数量进行具体限定。另外,区块链节点集群中的任一区块链节点201与业务发起方202、业务转移方203、以及业务报销方204之间可以分别通过有线或无线通信方式进行直接或间接地连接,本申请在此不做限制。Next, the architecture diagram of the data processing system involved in this application will be described accordingly. Please refer to Figure 2. Figure 2 is an architectural schematic diagram of a data processing system provided by an embodiment of the present application. As shown in Figure 2, the data processing system may at least include: a blockchain node cluster, a business initiator 202, a business transfer party 203, and a business reimbursement party 204. Among them, the business initiator 202, the business transfer party 203, and the business reimbursement party 204 can be called business nodes. The blockchain node cluster can include at least one blockchain node 201. For example, the blockchain cluster shown in Figure 2 includes 3 blockchain nodes 201. This application does not specifically limit the number of blockchain nodes. In addition, any blockchain node 201 in the blockchain node cluster and the business initiator 202, the business transfer party 203, and the business reimbursement party 204 can be connected directly or indirectly through wired or wireless communication methods. Applications are not restricted here.
在实施例中,区块链节点集群中的任一区块链节点201、业务发起方202、业务转移方203、以及业务报销方204可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)、以及大数据和人工智能平台等基础云计算服务的云服务器,等等。In the embodiment, any blockchain node 201, business initiator 202, business transfer party 203, and business reimbursement party 204 in the blockchain node cluster can be an independent physical server, or can be composed of multiple physical servers. Server clusters or distributed systems can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), as well as cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, etc.
区块链节点集群中的任一区块链节点201、业务发起方202、业务转移方203、以及业务报销方204还可以是包括但不限于:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(MID,mobile internet device)、智能语音交互设备、车载终端、路边设备、飞行器、可穿戴设备、智能家电、或者例如智能手表、智能手环、计步器等具有数据处理功能的可穿戴设备,等等。Any blockchain node 201, business initiator 202, business transfer party 203, and business reimbursement party 204 in the blockchain node cluster may also include but are not limited to: mobile phones, tablet computers, notebook computers, handheld computers, mobile Internet devices (MID, mobile internet device), intelligent voice interaction devices, vehicle terminals, roadside equipment, aircraft, wearable devices, smart home appliances, or devices with data processing functions such as smart watches, smart bracelets, pedometers, etc. Wearables, etc.
在实施例中,区块链节点201、业务发起方202、业务转移方203、以及业务报销方204的设备类型可以相同,也可以不相同,本申请实施例对此不做具体限定。例如,区块链节点201可以为服务器,业务发起方202、业务转移方203、以及业务报销方204均可以为终端设备;又如,区块链节点201、业务发起方202、业务转移方203、以及业务报销方204均可以为服务器;还如,区块链节点201、业务发起方202、业务转移方203、以及业务报销方204均可以为终端设备。In the embodiment, the equipment types of the blockchain node 201, the service initiator 202, the service transfer party 203, and the service reimbursement party 204 may be the same or different, and this is not specifically limited in the embodiment of the present application. For example, the blockchain node 201 can be a server, and the business initiator 202, the business transfer party 203, and the business reimbursement party 204 can all be terminal devices; for another example, the blockchain node 201, the business initiator 202, and the business transfer party 203 , and the business reimbursement party 204 can all be servers; for example, the blockchain node 201, the business initiator 202, the business transfer party 203, and the business reimbursement party 204 can all be terminal devices.
在一种实现方式中,区块链节点201可以接收任一业务节点(业务发起方202、业务转移方203、或者业务报销方204)所发送的交易请求,交易请求中可以携带交易数据。然后,区块链节点201对交易请求中所携带的交易数据进行共识(校验),若对该交易数据校验通过,即可执行该交易并向相应的业务节点返回执行结果。In one implementation, the blockchain node 201 can receive a transaction request sent by any business node (the business initiator 202, the business transfer party 203, or the business reimbursement party 204), and the transaction request can carry transaction data. Then, the blockchain node 201 performs consensus (verification) on the transaction data carried in the transaction request. If the transaction data passes the verification, the transaction can be executed and the execution result is returned to the corresponding business node.
另外,任一业务节点(业务发起方202、业务转移方203、或者业务报销方204)对应有自己的地址和私钥。其中,私钥可以用于签名。业务节点主要负责向区块链节点201发送交易请求,以及从区块链节点201处同步交易的执行结果。具体来说,业务节点可以实时同步区块链中的交易,当获取到有资产(例如电子发票)转移到与自身地址相匹配的交易时,即可获取到该交易并获取该交易的执行结果。In addition, any business node (business initiator 202, business transfer party 203, or business reimbursement party 204) corresponds to its own address and private key. Among them, the private key can be used for signing. The business node is mainly responsible for sending transaction requests to the blockchain node 201 and synchronizing transaction execution results from the blockchain node 201. Specifically, business nodes can synchronize transactions in the blockchain in real time. When an asset (such as an electronic invoice) is transferred to a transaction that matches its own address, it can obtain the transaction and obtain the execution result of the transaction. .
例如,以业务节点为业务发起方202为例,对业务发起方202和区块链节点201之间的交互流程进行相应说明。当业务发起方202需要发行资产时,业务发起方202可以生成发行交易数据,并将该发行交易数据发送至区块链节点201。该发行交易数据中包括发行资产所对应的资产描述信息和发行交易标识;然后,区块链节点201可以根据发行交易数据生成第一交易凭证。其中,第一交易凭证中的接收地址字段用于记录接收业务发起方202所发行资产的第一业务地址,该第一业务地址可以为业务转移方203的地址。这样即可通过区块链节点201将资产从业务发起方202转移至业务转移方203。后续,业务转移方203可以进行资产的再次转移,例如将资产转移至业务报销方204。 For example, taking the business node as the business initiator 202 as an example, the interaction process between the business initiator 202 and the blockchain node 201 will be described accordingly. When the business initiator 202 needs to issue assets, the business initiator 202 can generate issuance transaction data and send the issuance transaction data to the blockchain node 201. The issuance transaction data includes asset description information and issuance transaction identification corresponding to the issuance assets; then, the blockchain node 201 can generate a first transaction voucher based on the issuance transaction data. The receiving address field in the first transaction voucher is used to record the first business address that receives the assets issued by the business initiator 202. The first business address may be the address of the business transfer party 203. In this way, assets can be transferred from the business initiator 202 to the business transfer party 203 through the blockchain node 201. Subsequently, the business transfer party 203 can transfer the assets again, for example, transferring the assets to the business reimbursement party 204.
又如,以业务节点为业务转移方203为例,对业务转移方203和区块链节点201之间的交互流程进行相应说明。当业务转移方203需要进行资产转移时,业务转移方203可以生成转移交易数据,并将该转移交易数据发送至区块链节点201。该转移交易数据是根据第一交易凭证确定的,该第一交易凭证是业务发起方在完成资产发行后生成的,该第一交易凭证中的资产描述字段记录有用于描述业务发起方发行的资产的资产描述信息。然后,区块链节点201可以根据转移交易数据生成第二交易凭证。其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空或者记录的内容为替换信息,该替换信息与资产描述信息不相同。For another example, taking the business node as the business transfer party 203 as an example, the interaction process between the business transfer party 203 and the blockchain node 201 will be explained accordingly. When the business transfer party 203 needs to transfer assets, the business transfer party 203 can generate transfer transaction data and send the transfer transaction data to the blockchain node 201. The transfer transaction data is determined based on the first transaction voucher, which is generated by the business initiator after completing the asset issuance. The asset description field in the first transaction voucher records the assets issued by the business initiator. asset description information. Then, the blockchain node 201 can generate a second transaction voucher based on the transfer transaction data. Among them, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher, and the content recorded in the asset description field in the second transaction voucher is empty or the recorded content is Replacement information that is not the same as the asset description information.
在一种实现方式中,任一业务节点(业务发起方202、业务转移方203、或者业务报销方204)可以向区块链节点201发送信息查询请求,该信息查询请求用于查询关于资产的资产描述信息。举例来说,以业务节点为业务报销方204为例,区块链节点201可以接收业务报销方204所发送的信息查询请求,该信息查询请求中携带有待查询的交易标识。然后,区块链节点201根据该待查询的交易标识,获取目标交易凭证,该目标交易凭证中的交易标识字段记录的交易标识与待查询的交易标识相匹配。最后,区块链节点201可以从目标交易凭证中的资产描述字段中获取资产描述信息。通过这种方式,业务节点通过交易标识即可索引到资产源头中所记录的资产描述信息,因此该资产描述信息无需在每次交易中携带,这样使得在资产转移过程中所记录的内容更加简洁,从而提高数据处理的效率,节省存储空间。In one implementation, any business node (business initiator 202, business transfer party 203, or business reimbursement party 204) can send an information query request to the blockchain node 201. The information query request is used to query information about assets. Asset description information. For example, assuming that the business node is the business reimbursement party 204, the blockchain node 201 can receive an information query request sent by the business reimbursement party 204, and the information query request carries the transaction identifier to be queried. Then, the blockchain node 201 obtains the target transaction voucher based on the transaction identifier to be queried, and the transaction identifier recorded in the transaction identifier field in the target transaction voucher matches the transaction identifier to be queried. Finally, the blockchain node 201 can obtain the asset description information from the asset description field in the target transaction voucher. In this way, the business node can index the asset description information recorded in the asset source through the transaction identifier, so the asset description information does not need to be carried in each transaction, which makes the content recorded during the asset transfer process more concise. , thereby improving the efficiency of data processing and saving storage space.
本申请实施例描述的系统架构示意图是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,可以理解的是,随着系统架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题同样适用。The schematic diagram of the system architecture described in the embodiments of the present application is to more clearly illustrate the technical solutions of the embodiments of the present application, and does not constitute a limitation on the technical solutions provided by the embodiments of the present application. It can be understood that with the evolution of the system architecture and the With the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
基于上述对数据处理方案和数据处理系统的相关描述,本申请实施例提出了一种数据处理方法。参见图3所示,图3是本申请实施例提供的一种数据处理方法的流程示意图,该数据处理方法可由上述图2所提及的数据处理系统中的区块链节点(例如终端设备或服务器等计算机设备)执行。其中,该数据处理方法可包括如下步骤S301~S302:Based on the above related description of the data processing scheme and data processing system, the embodiment of the present application proposes a data processing method. Referring to Figure 3, Figure 3 is a schematic flowchart of a data processing method provided by an embodiment of the present application. The data processing method can be performed by a blockchain node (such as a terminal device or terminal device) in the data processing system mentioned in Figure 2. Servers and other computer equipment) execution. Among them, the data processing method may include the following steps S301 to S302:
S301:获取业务转移方在进行资产转移时所提交的转移交易数据,转移交易数据是根据第一交易凭证确定的,第一交易凭证是业务发起方在执行资产发行处理的过程中生成的,第一交易凭证中的资产描述字段记录有用于描述业务发起方发行的资产的资产描述信息。S301: Obtain the transfer transaction data submitted by the business transfer party when transferring assets. The transfer transaction data is determined based on the first transaction voucher. The first transaction voucher is generated by the business initiator in the process of executing asset issuance processing. The asset description field in a transaction voucher records asset description information used to describe the assets issued by the business initiator.
本申请实施例中,资产可以包括但不限于:电子资源、电子发票等虚拟资源。资产描述信息包括资产对应的描述信息,以资产为电子发票为例,资产描述信息可以为电子发票的票面内容,例如发票代码、开票日期、发票号码、纳税对象识别号等等。In the embodiment of this application, assets may include but are not limited to: electronic resources, electronic invoices and other virtual resources. The asset description information includes the description information corresponding to the asset. Taking the asset as an electronic invoice as an example, the asset description information can be the face content of the electronic invoice, such as invoice code, invoicing date, invoice number, tax object identification number, etc.
另外,一笔交易对应的数据可以包括但不限于:交易标识(用于唯一标识该笔交易,例如可以为交易哈希)、交易输入和交易输出等字段的数据。例如,业务发起方在进行资产发行时提交的发行交易数据可以认为是一笔发行交易所对应的数据(如图4a所示,图4a是本申请实施例提供的一种发行交易数据的数据结构示意图);又如,业务转移方在进行资产转移时提交的转移交易数据可以认为是一笔转移交易所对应的数据(如图4b所示,图4b是本申请实施例提供的一种转移交易数据的数据结构示意图)。In addition, the data corresponding to a transaction may include but is not limited to: transaction identifier (used to uniquely identify the transaction, which may be a transaction hash, for example), transaction input, transaction output and other fields. For example, the issuance transaction data submitted by the business initiator when issuing assets can be considered as data corresponding to an issuance transaction (as shown in Figure 4a. Figure 4a is a data structure of issuance transaction data provided by an embodiment of the present application. Schematic diagram); for another example, the transfer transaction data submitted by the business transfer party when transferring assets can be considered as data corresponding to a transfer transaction (as shown in Figure 4b, Figure 4b is a transfer transaction provided by the embodiment of the present application Data structure diagram of the data).
其中,针对一笔交易数据(例如发行交易数据、转移交易数据等等)中的每个字段,其对应的含义如下表2所示: Among them, for each field in a transaction data (such as issuance transaction data, transfer transaction data, etc.), its corresponding meaning is as shown in Table 2 below:
表2.交易数据中的各个字段的含义
Table 2. The meaning of each field in transaction data
从上表2可以看出,一笔交易可以通过交易哈希来唯一标识,并且可以通过交易输入字段指定输入的UTXO的来源和签名,以及可以通过交易输出字段指定输出的UTXO。As can be seen from Table 2 above, a transaction can be uniquely identified by the transaction hash, and the source and signature of the input UTXO can be specified through the transaction input field, and the output UTXO can be specified through the transaction output field.
在一种实现方式中,交易输入字段可以包括一个或多个字段,交易输出字段也可以包括一个或多个字段。接下来,分别对交易输入字段和交易输出字段中具体所包括的字段以及含义进行相应解释说明。In one implementation, the transaction input field may include one or more fields, and the transaction output field may also include one or more fields. Next, the specific fields and meanings included in the transaction input field and transaction output field are explained accordingly.
例如,交易输入字段中各个字段的含义可以如下表3所示:For example, the meaning of each field in the transaction input field can be shown in Table 3 below:
表3.交易输入字段中的各个字段的含义
Table 3. Meaning of each field in the transaction input field
如表3所示,一笔交易数据中的交易输入字段至少可以包括:序号字段、来源字段、以及签名字段。其中,序号字段用于记录当前输入的UTXO的编号,该编号从0开始依次递增(例如,0,1,2...)。来源字段用于记录UTXO的来源交易数据的交易hash以及编号。签名字段用于记录当前UTXO的拥有者的签名,在验证该交易数据时需要验证签名字段中记录的签名是否与UTXO的地址(记录于地址字段中,参见下表3)对应,若对应,则验证成功。As shown in Table 3, the transaction input fields in a transaction data can at least include: serial number field, source field, and signature field. Among them, the sequence number field is used to record the number of the currently input UTXO, which starts from 0 and increases in sequence (for example, 0, 1, 2...). The source field is used to record the transaction hash and number of the source transaction data of the UTXO. The signature field is used to record the signature of the owner of the current UTXO. When verifying the transaction data, it is necessary to verify whether the signature recorded in the signature field corresponds to the address of the UTXO (recorded in the address field, see Table 3 below). If so, then Verification successful.
又如,交易输出字段中各个字段的含义可以如下表4所示:As another example, the meaning of each field in the transaction output field can be shown in Table 4 below:
表4.交易输出字段中的各个字段的含义
Table 4. Meaning of each field in the transaction output field
如表4所示,一笔交易数据中的交易输出字段至少可以包括:序号字段、数额字段、交易标识字段、资产标识字段、资产描述字段、以及接收地址字段。其中,序号字段用于记录当前输出的UTXO的编号,该编号从0开始依次递增(例如,0,1,2...),并且该编号可能在另一笔交易数据的输出字段中被引用。数额字段用于记录转移的数额,除了发行资产交易,一笔交易数据的某个资产ID对应的所有输出数额总和,需要等于该资产ID对应的输入的数额总和。交易标识字段用于记录该UTXO的最初发行来源的交易哈希。资产标识字段用于记录发行该UTXO时指定的资产ID,其中,当要求一笔交易包括一种资产ID时,资产ID既可记录于交易输入字段中、也可记录于交易输出字段中,还可以记录于 其它字段中,例如交易的最外层字段。资产描述字段用于记录发行资产时对应的资产描述信息,资产描述信息只记录于发行该笔资产的交易数据中的资产描述字段中,其它交易数据中的资产描述字段中记录为空,或者记录为与资产描述信息不相同的替换信息。接收地址字段用于记录该UTXO的接收地址,所记录的地址具备使用该UTXO的权限。As shown in Table 4, the transaction output fields in a transaction data can at least include: serial number field, amount field, transaction identification field, asset identification field, asset description field, and receiving address field. Among them, the serial number field is used to record the number of the currently output UTXO. The number starts from 0 and increases sequentially (for example, 0, 1, 2...), and this number may be referenced in the output field of another transaction data. . The amount field is used to record the transferred amount. Except for asset issuance transactions, the sum of all output amounts corresponding to a certain asset ID in a transaction data needs to be equal to the sum of the input amounts corresponding to the asset ID. The transaction identification field is used to record the transaction hash of the original issuance source of the UTXO. The asset identification field is used to record the asset ID specified when the UTXO is issued. When a transaction is required to include an asset ID, the asset ID can be recorded in the transaction input field, the transaction output field, or can be recorded in In other fields, such as the outermost field of a transaction. The asset description field is used to record the corresponding asset description information when an asset is issued. The asset description information is only recorded in the asset description field in the transaction data of the issuance of the asset. The asset description field in other transaction data is recorded as empty or recorded. Replacement information that is different from the asset description information. The receiving address field is used to record the receiving address of the UTXO, and the recorded address has the authority to use the UTXO.
在一种实现方式中,区块链节点在获取业务转移方在进行资产转移时所提交的转移交易数据之前,还执行以下操作:首先,获取业务发起方在发行资产时所提交的发行交易数据,发行交易数据包括发行资产所对应的资产描述信息和发行交易标识;然后,对发行交易数据的签名字段记录的签名、以及业务发起方的业务操作权限分别进行校验;若均校验通过,则根据发行交易数据生成第一交易凭证。In one implementation, the blockchain node also performs the following operations before obtaining the transfer transaction data submitted by the business transfer party when transferring assets: First, obtain the issuance transaction data submitted by the business initiator when issuing assets. , the issuance transaction data includes the asset description information and the issuance transaction identifier corresponding to the issuance asset; then, the signature recorded in the signature field of the issuance transaction data and the business operation authority of the business initiator are verified respectively; if both are verified, Then the first transaction voucher is generated based on the issuance transaction data.
具体实现时,第一交易凭证是根据发行交易数据的交易输出字段生成的。交易输出字段可以包括:交易标识字段、资产描述字段和接收地址字段,接收地址字段用于记录接收业务发起方所发行资产的第一业务地址,第一业务地址为业务转移方的地址。区块链节点根据发行交易数据生成第一交易凭证,包括:可以将发行交易数据中的接收地址字段中记录的第一业务地址写入至第一交易凭证中的接收地址字段;将发行交易数据中的资产描述字段中记录的资产描述信息写入至第一交易凭证中的资产描述字段;将发行交易数据中的交易标识字段中记录的发行交易标识写入至第一交易凭证中的交易标识字段。In specific implementation, the first transaction voucher is generated based on the transaction output field of the issued transaction data. The transaction output field may include: a transaction identification field, an asset description field, and a receiving address field. The receiving address field is used to record the first business address that receives the assets issued by the business initiator. The first business address is the address of the business transfer party. The blockchain node generates the first transaction voucher based on the issuance transaction data, including: writing the first business address recorded in the receiving address field in the issuance transaction data to the receiving address field in the first transaction voucher; The asset description information recorded in the asset description field in is written to the asset description field in the first transaction voucher; the issuance transaction identification recorded in the transaction identification field in the issuance transaction data is written to the transaction identification in the first transaction voucher field.
在实施例中,第一交易凭证是指发行交易数据中的未花费过的交易输出(即UTXO),例如,请参见图4c,图4c是本申请实施例提供的一种交易数据流转过程的流程示意图。如图4c所示,发行交易数据中数额字段记录的数额为50,且这部分数额为50的资产均未被消费过,那么,该部分数额为50的资产可作为下一笔交易数据(例如转移交易数据)的输入部分。又如,基于转移交易数据可继续进行资产转移,例如基于转移交易数据中数额为50的资产,可以分别向张三转数额为20的资产(可以作为下一笔转移交易数据(例如Hash:cd5...)的输入部分),以及向李四转数额为30的资产(可以作为下一笔转移交易数据(例如Hash:g7f...))的输入部分)。In the embodiment, the first transaction voucher refers to the unspent transaction output (i.e. UTXO) in the issuance transaction data. For example, please refer to Figure 4c. Figure 4c is a transaction data flow process provided by the embodiment of the present application. Process diagram. As shown in Figure 4c, the amount recorded in the amount field in the issuance transaction data is 50, and none of the assets with an amount of 50 have been consumed. Then, this part of the assets with an amount of 50 can be used as the next transaction data (for example transfer transaction data). For another example, asset transfer can continue based on the transfer transaction data. For example, based on the asset with the amount of 50 in the transfer transaction data, the asset with the amount of 20 can be transferred to Zhang San respectively (which can be used as the next transfer transaction data (for example, Hash: cd5 ...)), and transfer an asset of 30 to Li Si (can be used as the input part of the next transfer transaction data (such as Hash: g7f...))).
在一种实现方式中,区块链节点获取业务转移方在进行资产转移时所提交的转移交易数据之后,还包括:获取转移交易数据中的签名字段记录的签名;对转移交易数据中的签名字段记录的签名进行校验,若校验通过,则获取转移交易数据中来源字段记录的来源交易标识;根据来源交易标识对转移交易数据进行校验。In one implementation, after the blockchain node obtains the transfer transaction data submitted by the business transfer party when transferring assets, it also includes: obtaining the signature recorded in the signature field in the transfer transaction data; verifying the signature in the transfer transaction data. The signature of the field record is verified. If the verification passes, the source transaction ID of the source field record in the transfer transaction data is obtained; the transfer transaction data is verified based on the source transaction ID.
具体来说,区块链节点根据来源交易标识对转移交易数据进行校验,包括:根据来源交易标识,获取来源交易凭证,来源交易凭证中的来源字段记录的交易标识与来源交易标识相匹配;根据来源交易凭证,对转移交易数据进行校验。需要说明的是,所谓来源交易凭证既可以对应发行交易数据(例如图4c中交易哈希为aa8...所对应的数据),也可以对应任一个转移交易数据(例如图4c中交易哈希为cd5...所对应的数据,或者交易哈希为g7f...所对应的数据),本申请实施例对此不做具体限定。Specifically, the blockchain node verifies the transfer transaction data based on the source transaction identifier, including: obtaining the source transaction voucher based on the source transaction identifier, and the transaction identifier recorded in the source field in the source transaction voucher matches the source transaction identifier; Verify the transfer transaction data based on the source transaction voucher. It should be noted that the so-called source transaction certificate can correspond to the issuance transaction data (for example, the data corresponding to the transaction hash of aa8... in Figure 4c), or it can correspond to any transfer transaction data (for example, the transaction hash in Figure 4c is the data corresponding to cd5..., or the transaction hash is the data corresponding to g7f...), the embodiment of this application does not specifically limit this.
进一步地,区块链节点根据来源交易凭证,对转移交易数据进行校验,包括:根据来源交易凭证中目标字段记录的数据对转移交易数据进行校验,目标字段包括来源交易凭证中的数额字段、交易标识字段、资产标识字段、接收地址字段中的任意一种或多种。其中,来源交易数据中的数额字段用于对转移交易数据中的数额字段进行校验;来源交易数据中的交易标识字段用于对转移交易数据中的交易标识字段进行校验;来源交易数据中的资产标识字段用于对转移交易数据中的资产标识字段进行校验;来源交易数据中的接收地址字段用于对转移交易数据中的接收地址字段进行校验。Further, the blockchain node verifies the transfer transaction data based on the source transaction voucher, including: verifying the transfer transaction data based on the data recorded in the target field in the source transaction voucher. The target field includes the amount field in the source transaction voucher. , any one or more of the transaction identification field, asset identification field, and receiving address field. Among them, the amount field in the source transaction data is used to verify the amount field in the transfer transaction data; the transaction identification field in the source transaction data is used to verify the transaction identification field in the transfer transaction data; in the source transaction data The asset identification field is used to verify the asset identification field in the transfer transaction data; the receiving address field in the source transaction data is used to verify the receiving address field in the transfer transaction data.
举例来说,如图4b所示的转移交易数据中,首先获取该转移交易数据中的签名字段 记录的签名(例如张三签名,所谓张三签名可以是指利用张三的私钥进行签名后得到的数据)。对该转移交易数据中的签名字段记录的签名进行校验可以包括:通过第一交易凭证中接收地址字段记录的第一业务地址(例如张三地址),对张三签名进行校验,若匹配,则确定对该签名校验通过。接下来,即可获取该转移交易数据中来源字段记录的来源交易标识(例如aa8...(0)),通过该来源交易标识(例如aa8...(0)),可以获取到来源交易凭证(例如第一交易凭证)。最后,可以基于第一交易凭证中的各个字段分别对转移交易数据中的各个字段进行校验,例如,第一交易凭证中数额字段记录的数额为50,转移交易数据中的数额字段中记录的数额为20和30,由于50=20+30,则对数额字段校验通过;又如,第一交易凭证中的资产标识字段记录的资产标识为abcd,转移交易数据中的资产标识字段记录的资产标识也为abcd,则对资产标识字段校验通过,以此类推,依次对每个字段进行校验,若均校验通过,则确定对该转移交易数据校验通过。For example, in the transfer transaction data shown in Figure 4b, first obtain the signature field in the transfer transaction data Recorded signature (for example, Zhang San’s signature, the so-called Zhang San’s signature may refer to the data obtained after signing using Zhang San’s private key). Verifying the signature recorded in the signature field in the transfer transaction data may include: verifying Zhang San's signature through the first business address (such as Zhang San's address) recorded in the receiving address field in the first transaction voucher, and if it matches , then it is determined that the signature verification passes. Next, you can obtain the source transaction identifier (for example, aa8...(0)) of the source field record in the transfer transaction data. Through this source transaction identifier (for example, aa8...(0)), you can obtain the source transaction. Voucher (such as the first transaction voucher). Finally, each field in the transfer transaction data can be verified based on each field in the first transaction voucher. For example, the amount recorded in the amount field in the first transaction voucher is 50, and the amount recorded in the amount field in the transfer transaction data is 50. The amounts are 20 and 30. Since 50=20+30, the verification of the amount field passes; for another example, the asset identification field recorded in the first transaction voucher is abcd, and the asset identification field recorded in the transfer transaction data is If the asset identification is also abcd, then the verification of the asset identification field passes, and so on, each field is verified in turn. If all verifications pass, it is determined that the transfer transaction data has passed the verification.
S302:根据转移交易数据生成第二交易凭证,其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空,或者第二交易凭证中的资产描述字段记录的内容为替换信息,替换信息与资产描述信息不相同。S302: Generate a second transaction voucher based on the transfer transaction data, where the transaction identifier recorded in the transaction identification field in the first transaction voucher is the same as the transaction identifier recorded in the transaction identification field in the second transaction voucher, and the assets in the second transaction voucher The content recorded in the description field is empty, or the content recorded in the asset description field in the second transaction voucher is replacement information, and the replacement information is different from the asset description information.
其中,第二交易凭证是根据转移交易数据的交易输出字段生成的;交易输出字段包括交易标识字段、资产描述字段和接收地址字段;接收地址字段用于记录接收业务转移方所转移资产的第二业务地址,第二业务地址为业务报销方的地址。另外,通常情况下,替换信息所对应的信息量远小于资产描述信息对应的信息量,例如可以将特定数据(例如字符“#”或数字“0”)作为替换信息,本申请实施例并不对替换信息的数据类型进行具体限定。Among them, the second transaction voucher is generated based on the transaction output field of the transfer transaction data; the transaction output field includes the transaction identification field, the asset description field and the receiving address field; the receiving address field is used to record the second address of the assets transferred by the receiving business transfer party. Business address, the second business address is the address of the business reimbursement party. In addition, under normal circumstances, the amount of information corresponding to the replacement information is much smaller than the amount of information corresponding to the asset description information. For example, specific data (such as the character "#" or the number "0") can be used as the replacement information. The embodiment of the present application does not The data type of the replacement information is specifically limited.
在一种可能的实现方式中,区块链节点根据转移交易数据生成第二交易凭证,包括:将转移交易数据中的接收地址字段中记录的第二业务地址写入至第二交易凭证中的接收地址字段;将转移交易数据中交易标识字段中记录的发行交易标识写入至第二交易凭证中的交易标识字段;将第二交易凭证中的资产描述字段设置为空,或者,将替换信息写入至第二交易凭证中的资产描述字段,替换信息与资产描述信息不相同。通过这种方式,在进行资产转移时,只需携带发行资产的发行交易标识,而无需携带资产描述信息。In a possible implementation, the blockchain node generates a second transaction voucher based on the transfer transaction data, including: writing the second business address recorded in the receiving address field in the transfer transaction data to the second transaction voucher. Receiving address field; write the issuance transaction ID recorded in the transaction ID field in the transfer transaction data to the transaction ID field in the second transaction voucher; set the asset description field in the second transaction voucher to empty, or replace the information Written to the asset description field in the second transaction voucher, the replacement information is different from the asset description information. In this way, when transferring assets, you only need to carry the issuance transaction ID of the issued asset, without carrying asset description information.
在一种实现方式中,区块链节点可以获取信息查询请求,该信息查询请求中携带有待查询的交易标识;然后,区块链节点可以根据待查询的交易标识,获取目标交易凭证,目标交易凭证中的交易标识字段记录的交易标识与待查询的交易标识相匹配;最后,区块链节点可以从目标交易凭证中的资产描述字段中获取资产描述信息。其中,信息查询请求可以是业务转移方、业务报销方或者业务发起方中的任一个发起的。通过这种方式,在查询资产描述信息时,通过交易标识即可索引到资产的源头,从而从发行资产的交易数据中即可获取到相应的资产描述信息,从而减少了信息存储量,并提高了数据处理效率。In one implementation, the blockchain node can obtain an information query request, which carries the transaction identifier to be queried; then, the blockchain node can obtain the target transaction voucher based on the transaction identifier to be queried, and the target transaction The transaction ID recorded in the transaction ID field in the voucher matches the transaction ID to be queried; finally, the blockchain node can obtain the asset description information from the asset description field in the target transaction voucher. The information query request may be initiated by any one of the business transfer party, business reimbursement party or business initiator. In this way, when querying asset description information, the source of the asset can be indexed through the transaction identifier, so that the corresponding asset description information can be obtained from the transaction data of the issued asset, thereby reducing the amount of information storage and improving improve data processing efficiency.
本申请实施例中,当业务转移方需要进行资产转移时,可以获取业务转移方在进行资产转移时所提交的转移交易数据,该转移交易数据是根据第一交易凭证确定的,该第一交易凭证是业务发起方在执行资产发行的处理过程中生成的,该第一交易凭证中的资产描述字段记录有用于描述业务发起方发行的资产的资产描述信息。然后,可以根据转移交易数据生成第二交易凭证。其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空,或者该第二交易凭证中的资产描述字段记录的内容为替换信息,该替换信息与资产描述信息不相同。可以看出,在进行资产转移时,需要携带发行资产时所对应的交易标识,但无需携带发行的资产所对应的资产描述信息,或者通过其它替换信息替换资产描述信息。 通常来说,由于资产描述信息所占存储空间较大,而本申请实施例无需携带该资产描述信息,因此可以在资产的转移过程中降低信息存储量,从而节省存储空间。In the embodiment of this application, when the business transfer party needs to transfer assets, the transfer transaction data submitted by the business transfer party when transferring assets can be obtained. The transfer transaction data is determined based on the first transaction voucher. The first transaction The voucher is generated by the business initiator during the process of executing asset issuance. The asset description field in the first transaction voucher records asset description information used to describe the assets issued by the business initiator. Then, a second transaction voucher can be generated based on the transfer transaction data. Wherein, the transaction ID recorded in the transaction ID field in the first transaction voucher is the same as the transaction ID recorded in the transaction ID field in the second transaction voucher, the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction ID is empty. The content recorded in the asset description field in the transaction voucher is replacement information, which is different from the asset description information. It can be seen that when transferring assets, it is necessary to carry the transaction identifier corresponding to the issuance of the assets, but there is no need to carry the asset description information corresponding to the issued assets, or to replace the asset description information with other replacement information. Generally speaking, since asset description information occupies a large storage space, the embodiment of the present application does not need to carry the asset description information, so the amount of information storage can be reduced during the asset transfer process, thereby saving storage space.
请参见图5,图5是本申请实施例提供的另一种数据处理方法的流程示意图,该数据处理方法可由图2所提及的数据处理系统中的业务转移方(例如终端设备或服务器等计算机设备)执行。其中,该数据处理方法可包括如下步骤S501~S502:Please refer to Figure 5. Figure 5 is a schematic flowchart of another data processing method provided by an embodiment of the present application. This data processing method can be performed by a business transfer party (such as a terminal device or server, etc.) in the data processing system mentioned in Figure 2. computer equipment). Among them, the data processing method may include the following steps S501 to S502:
S501:获取业务发起方在发行资产的过程中所生成的第一交易凭证,第一交易凭证是根据业务发起方向区块链节点所提交的发行交易数据生成的,发行交易数据包括发行资产所对应的资产描述信息和发行交易标识。S501: Obtain the first transaction voucher generated by the business initiator in the process of issuance of assets. The first transaction voucher is generated based on the issuance transaction data submitted by the business initiator to the blockchain node. The issuance transaction data includes the issuance transaction data corresponding to the issuance assets. asset description information and issuance transaction identifier.
具体来说,第一交易凭证包括交易标识字段和资产描述字段;交易标识字段用于记录交易标识,资产描述字段用于记录资产描述信息。业务转移方根据第一交易凭证生成转移资产对应的转移交易数据,包括:将第一交易凭证的交易标识字段记录的交易标识写入至转移交易数据的交易标识字段中;将转移交易数据中的资产描述字段设置为空,或者,将替换信息写入至转移交易数据的资产描述字段中,替换信息与资产描述信息不相同。例如,发行交易数据的数据结构可以如图4a所示,其中,可以根据发行交易数据的交易输出字段生成第一交易凭证,具体的,可以将发行交易数据的交易输出字段作为第一交易凭证。Specifically, the first transaction voucher includes a transaction identification field and an asset description field; the transaction identification field is used to record the transaction identification, and the asset description field is used to record asset description information. The business transfer party generates transfer transaction data corresponding to the transferred assets based on the first transaction voucher, including: writing the transaction ID recorded in the transaction ID field of the first transaction voucher into the transaction ID field of the transfer transaction data; Set the asset description field to empty, or write replacement information to the asset description field of the transfer transaction data. The replacement information is different from the asset description information. For example, the data structure of the issuance transaction data can be as shown in Figure 4a, in which the first transaction voucher can be generated according to the transaction output field of the issuance transaction data. Specifically, the transaction output field of the issuance transaction data can be used as the first transaction voucher.
在一种实现方式中,业务转移方获取业务发起方在发行资产的过程中所生成的第一交易凭证之后,还包括:获取业务发起方的身份信息;根据业务发起方的身份信息对业务发起方进行身份校验,若身份校验通过,则触发执行根据第一交易凭证生成转移资产对应的转移交易数据的步骤。根据业务发起方的身份信息对业务发起方进行身份校验包括:检验获取的身份信息与业务发起方的数字签名是否一致,若一致,则身份校验通过。通过这种方式,可以对业务发起方的身份进行校验,可以提高数据处理过程中的安全性。In one implementation, after the business transfer party obtains the first transaction voucher generated by the business initiator in the process of issuance of assets, it also includes: obtaining the identity information of the business initiator; initiating the business based on the identity information of the business initiator. The party performs identity verification. If the identity verification passes, the step of generating transfer transaction data corresponding to the transferred assets based on the first transaction voucher is triggered. Identity verification of the service initiator based on the identity information of the service initiator includes: verifying whether the obtained identity information is consistent with the digital signature of the service initiator. If they are consistent, the identity verification is passed. In this way, the identity of the business initiator can be verified and the security during data processing can be improved.
S502:根据第一交易凭证生成转移资产对应的转移交易数据,并向区块链节点发送转移交易数据,以使区块链节点根据转移交易数据生成第二交易凭证。其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空或者记录的内容为替换信息,替换信息与资产描述信息不相同。S502: Generate transfer transaction data corresponding to the transferred asset based on the first transaction voucher, and send the transfer transaction data to the blockchain node, so that the blockchain node generates a second transaction voucher based on the transfer transaction data. Among them, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher, and the content recorded in the asset description field in the second transaction voucher is empty or the recorded content is Replacement information. The replacement information is not the same as the asset description information.
在实施例中,第一交易凭证对应业务发起方所发行资产中的未花费过的交易输出部分,可以作为业务转移方(例如张三)转移资产时的交易输入部分。然后,业务转移方根据第一交易凭证中数额字段记录的数额(例如50),向李四转移数额为30的资产。接下来,李四在获取到数额为30的资产后可以作为新的业务转移方,将这部分数额为30的资产继续转给王五等等,通过这种方式,即可实现资产的流转。其中,在资产转移的过程中,并不会携带资产描述信息,或者可以用替换信息代替资产描述信息,通常情况下,该替换信息所对应的信息量远小于资产描述信息对应的信息量,例如可以将特定数据(例如字符“#”或数字“0”)作为替换信息,本申请实施例并不对替换信息的数据类型进行具体限定。In the embodiment, the first transaction voucher corresponds to the unspent transaction output part of the assets issued by the business initiator, and can be used as the transaction input part when the business transfer party (such as Zhang San) transfers assets. Then, the business transfer party transfers assets in the amount of 30 to Li Si based on the amount recorded in the amount field in the first transaction voucher (for example, 50). Next, after Li Si obtains the assets amounting to 30, he can act as a new business transfer party and continue to transfer this part of the assets amounting to 30 to Wang Wu, etc. In this way, the transfer of assets can be achieved. Among them, during the process of asset transfer, the asset description information will not be carried, or the asset description information can be replaced by replacement information. Usually, the amount of information corresponding to the replacement information is much smaller than the amount of information corresponding to the asset description information, for example Specific data (such as the character "#" or the number "0") can be used as the replacement information. The embodiment of the present application does not specifically limit the data type of the replacement information.
本申请实施例中,业务转移方可以获取来自业务发起方所转移的资产,并基于该部分资产进行资产转移。在资产转移过程中,无需携带资产描述信息,或者用指定的信息量较少的替换信息代替资产描述信息,从而降低数据处理过程中所携带的信息量,进而节省存储空间,并提高数据处理效率。In the embodiment of this application, the business transfer party can obtain the assets transferred from the business initiator, and perform asset transfer based on these assets. During the asset transfer process, there is no need to carry asset description information, or the asset description information is replaced with designated replacement information with a smaller amount of information, thereby reducing the amount of information carried during data processing, thereby saving storage space and improving data processing efficiency. .
请参见图6,图6是本申请实施例提供的一种数据处理方法的交互流程图。该数据处理方法可以由区块链节点、业务发起方、业务转移方和业务报销方共同执行。其中,该数据处理方法的交互流程可以包括如下步骤S601~S608:Please refer to Figure 6, which is an interactive flow chart of a data processing method provided by an embodiment of the present application. This data processing method can be jointly executed by the blockchain node, the business initiator, the business transfer party and the business reimbursement party. The interactive process of the data processing method may include the following steps S601 to S608:
S601:业务发起方发送发行交易数据。 S601: The business initiator sends issuance transaction data.
本申请实施例中,以电子发票场景为例,对区块链节点和相关业务节点(业务发起方、业务转移方和业务报销方)之间所执行的数据处理方法的交互流程进行详细介绍。In the embodiment of this application, taking the electronic invoice scenario as an example, the interactive process of the data processing method executed between the blockchain node and the relevant business nodes (business initiator, business transfer party and business reimbursement party) is introduced in detail.
举例来说,业务发起方可以向区块链发起一笔“发行资产”的交易(俗称开票),该“发行资产”的交易携带有发行交易数据。其中,业务发起方发起的发行交易数据的数据结构可以如图4a所示。接下来,业务发起方可以将电子发票的票面内容写入到交易输出字段中的“资产描述”字段(例如票面内容1),“数额”字段填写50,“发行交易”字段填该笔交易对应的交易哈希,“资产标识”字段可以填写发票ID(若发票ID不唯一,可以是资产描述加上时间戳的哈希),“接收地址”字段记录收票方(业务转移方)的地址(例如张三地址)。For example, the business initiator can initiate a transaction of "issuing assets" (commonly known as invoicing) to the blockchain, and the transaction of "issuing assets" carries the issuance transaction data. Among them, the data structure of the issuance transaction data initiated by the business initiator can be shown in Figure 4a. Next, the business initiator can write the face content of the electronic invoice into the "Asset Description" field in the transaction output field (for example, face content 1), fill in 50 in the "Amount" field, and fill in the "Issue Transaction" field corresponding to the transaction. The transaction hash, the "Asset ID" field can be filled with the invoice ID (if the invoice ID is not unique, it can be a hash of the asset description plus a timestamp), and the "Receiving Address" field records the address of the invoice recipient (business transfer party) (For example, Zhang San’s address).
S602:区块链节点根据发行交易数据生成第一交易凭证。S602: The blockchain node generates the first transaction voucher based on the issuance transaction data.
在一种实现方式中,区块链节点首先可以对发行交易数据的签名字段记录的签名、以及业务发起方的业务操作权限分别进行校验;若均校验通过,则根据发行交易数据生成第一交易凭证。In one implementation, the blockchain node can first verify the signature recorded in the signature field of the issuance transaction data and the business operation permissions of the business initiator; if both are verified, the third generation is generated based on the issuance transaction data. A transaction certificate.
具体来说,第一交易凭证是根据发行交易数据的交易输出字段生成的;交易输出字段包括交易标识字段、资产描述字段和接收地址字段;接收地址字段用于记录接收业务发起方所发行资产的第一业务地址,第一业务地址为业务转移方的地址;区块链节点根据发行交易数据生成第一交易凭证,包括:将发行交易数据中的接收地址字段中记录的第一业务地址写入至第一交易凭证中的接收地址字段;将发行交易数据中的资产描述字段中记录的资产描述信息写入至第一交易凭证中的资产描述字段;将发行交易数据中的交易标识字段中记录的发行交易标识写入至第一交易凭证中的交易标识字段。Specifically, the first transaction voucher is generated based on the transaction output field of the issuance transaction data; the transaction output field includes the transaction identification field, the asset description field and the receiving address field; the receiving address field is used to record the receipt of the assets issued by the business initiator. The first business address is the address of the business transfer party; the blockchain node generates the first transaction voucher based on the issuance transaction data, including: writing the first business address recorded in the receiving address field in the issuance transaction data. to the receiving address field in the first transaction voucher; write the asset description information recorded in the asset description field in the issuance transaction data to the asset description field in the first transaction voucher; record in the transaction identification field in the issuance transaction data The issuance transaction identification is written into the transaction identification field in the first transaction voucher.
S603:业务转移方同步第一交易凭证。S603: The business transfer party synchronizes the first transaction voucher.
具体来说,业务转移方可以不断从区块链节点同步交易,当获取到某笔交易的接收地址为自身地址时,将该交易的相关信息(包含资产描述信息)保存到本地,并将所需要的信息(如该交易的交易哈希、对应的UTXO信息、资产描述信息等)保存到结构化存储(如mysql数据库)中便于查询。Specifically, the business transfer party can continuously synchronize transactions from the blockchain node. When it obtains that the receiving address of a certain transaction is its own address, it can save the relevant information of the transaction (including asset description information) locally and store all the transaction information locally. The required information (such as the transaction hash of the transaction, corresponding UTXO information, asset description information, etc.) is saved in a structured storage (such as a mysql database) for easy query.
S604:业务转移方根据第一交易凭证确定转移交易数据。S604: The business transfer party determines the transfer transaction data based on the first transaction voucher.
具体来说,当业务转移方需要进行资产转移时,向区块链发起一笔转移资产的交易(俗称报销)。其中,该笔转移资产的交易的输入为开票时发行资产交易所输出的UTXO,具体为输入的“来源”字段中填写开票时的交易哈希加上开票时的输出序号(由于只有一个输出,所以序号为0),输出的“接收地址”字段填写报销的公司(以下简称公司)的区块链地址(例如李四地址),“数额”字段填写30,“交易标识”字段填写发行该资产的交易哈希(从上一个UTXO的输出中的“交易标识”字段中读取),“资产标识”字段中填写开票时的资产ID,“资产描述”字段填“空”或者填写替换信息(只有发行资产的交易需要填这个字段)。其中,替换信息与资产描述信息不相同。Specifically, when the business transfer party needs to transfer assets, it initiates an asset transfer transaction (commonly known as reimbursement) to the blockchain. Among them, the input of this transaction of transferring assets is the UTXO output by the issuing asset exchange at the time of invoicing. Specifically, in the "source" field of the input, fill in the transaction hash at the time of invoicing plus the output sequence number at the time of invoicing (since there is only one output, Therefore, the serial number is 0), the output "receiving address" field is filled with the blockchain address of the company (hereinafter referred to as the company) for reimbursement (for example, Li Si's address), the "amount" field is filled with 30, and the "transaction identification" field is filled with the issuance of the asset The transaction hash (read from the "Transaction Identification" field in the output of the previous UTXO), fill in the asset ID at the time of invoicing in the "Asset Identification" field, fill in "Blank" in the "Asset Description" field or fill in the replacement information ( This field is required only for transactions that issue assets). Among them, the replacement information is different from the asset description information.
S605:业务转移方发送转移交易数据。S605: The business transfer party sends the transfer transaction data.
在一种实现方式中,区块链节点接收业务转移方发送的转移交易数据之后,获取业务转移方的身份信息,并根据业务转移方的身份信息对业务转移方进行身份校验。若校验通过,则触发执行以下步骤S606。根据业务转移方的身份信息对业务转移方进行身份校验包括:检验获取的身份信息与业务转移方的数字签名是否一致,若一致,则身份校验通过。通过这种方式,对业务转移方的身份进行校验,可以提高数据处理过程的安全性。In one implementation, after receiving the transfer transaction data sent by the business transfer party, the blockchain node obtains the identity information of the business transfer party, and performs identity verification on the business transfer party based on the identity information of the business transfer party. If the verification passes, the following step S606 is triggered. The identity verification of the business transfer party based on the identity information of the business transfer party includes: verifying whether the obtained identity information is consistent with the digital signature of the business transfer party. If they are consistent, the identity verification is passed. In this way, verifying the identity of the business transfer party can improve the security of the data processing process.
S606:区块链节点根据转移交易数据生成第二交易凭证。S606: The blockchain node generates a second transaction voucher based on the transfer transaction data.
在一种实现方式中,区块链节点获取业务转移方在进行资产转移时所提交的转移交易数据之后,还包括:获取转移交易数据中的签名字段记录的签名;对转移交易数据中的签 名字段记录的签名进行校验,若校验通过,则获取转移交易数据中来源字段记录的来源交易标识;根据来源交易标识对转移交易数据进行校验。具体来说,区块链节点可以根据来源交易标识,获取来源交易凭证,来源交易凭证中的来源字段记录的交易标识与来源交易标识相匹配;然后,根据来源交易凭证,对转移交易数据进行校验。In one implementation, after the blockchain node obtains the transfer transaction data submitted by the business transfer party when transferring assets, it also includes: obtaining the signature recorded in the signature field in the transfer transaction data; verifying the signature in the transfer transaction data. The signature of the name field record is verified. If the verification passes, the source transaction ID of the source field record in the transfer transaction data is obtained; the transfer transaction data is verified based on the source transaction ID. Specifically, the blockchain node can obtain the source transaction voucher based on the source transaction identifier. The transaction identifier recorded in the source field in the source transaction voucher matches the source transaction identifier; then, the transfer transaction data is calibrated based on the source transaction voucher. test.
其中,区块链节点根据来源交易凭证,对转移交易数据进行校验的具体过程可以参考图3实施例中步骤S301中所阐述的具体过程,本申请实施例在此不再赘述。Among them, the specific process of the blockchain node verifying the transfer transaction data based on the source transaction certificate can refer to the specific process described in step S301 in the embodiment of Figure 3, which will not be described again in the embodiment of this application.
S607:业务报销方同步第二交易凭证。S607: The business reimbursement party synchronizes the second transaction voucher.
具体来说,当公司(业务报销方)获取到区块链有一笔转移给自身的交易时,可以将该交易的相关信息保存到本地,并将所需要的信息(例如该交易的交易哈希、对应的UTXO信息等)保存到结构化存储(如mysql数据库)中便于查询。Specifically, when the company (business reimbursement party) obtains a transaction transferred to itself in the blockchain, it can save the relevant information of the transaction locally and add the required information (such as the transaction hash of the transaction) , corresponding UTXO information, etc.) are saved into structured storage (such as mysql database) for easy query.
S608:业务报销方发送信息查询请求。S608: The business reimbursement party sends an information inquiry request.
在实施例中,业务报销方、业务转移方、业务发起方中的任一方均可向区块链节点发送信息查询请求。接下来,以业务报销方向区块链节点发送信息查询请求为例进行相关说明。In the embodiment, any party among the business reimbursement party, the business transfer party, and the business initiator can send an information query request to the blockchain node. Next, take the business reimbursement direction to send an information query request to the blockchain node as an example for relevant explanation.
具体实现时,业务报销方可以根据待查询的交易标识生成信息查询请求,然后将该信息查询请求发送至区块链节点。后续,区块链节点接收到该信息查询请求之后,可以根据待查询的交易标识,获取目标交易凭证,其中,目标交易凭证中的交易标识字段记录的交易标识与待查询的交易标识相匹配。例如,待查询的交易标识为“aa8...”,那么,目标交易凭证可以包括第一交易凭证和第二交易凭证。最后,可以从目标交易凭证中的资产描述字段中获取资产描述信息。其中,第一交易凭证为发行资产时所对应的凭证,其资产描述字段中记录有资产描述信息,第二交易凭证中不携带资产描述信息。因此,区块链节点从第一交易凭证中的资产描述字段中读取资产描述信息。最后,区块链节点可以向业务报销方发送资产描述信息。通过上述方式,根据交易标识即可进行资产索引,索引到资产的源头,并获取其中的资产描述信息。During specific implementation, the business reimbursement party can generate an information query request based on the transaction ID to be queried, and then send the information query request to the blockchain node. Subsequently, after the blockchain node receives the information query request, it can obtain the target transaction voucher based on the transaction ID to be queried, where the transaction ID recorded in the transaction ID field in the target transaction voucher matches the transaction ID to be queried. For example, if the transaction identifier to be queried is "aa8...", then the target transaction voucher may include a first transaction voucher and a second transaction voucher. Finally, the asset description information can be obtained from the asset description field in the target transaction document. Among them, the first transaction voucher is the corresponding voucher when the asset is issued, and its asset description field records asset description information. The second transaction voucher does not carry asset description information. Therefore, the blockchain node reads the asset description information from the asset description field in the first transaction voucher. Finally, the blockchain node can send asset description information to the business reimbursement party. Through the above method, assets can be indexed according to the transaction identifier, the source of the asset can be indexed, and the asset description information can be obtained.
本申请实施例中,业务发起方在发行资产时,需要指定资产描述信息和发行交易对应的交易标识(例如交易哈希)。业务转移方在进行资产转移时,需要执行资产发行时所对应交易的交易哈希,而无需包含资产描述信息。当需要获取资产描述信息时,通过交易哈希即可索引到该资产的源头(即发行该资产时的发行交易数据),并从源头中读取资产描述信息。由于资产描述信息无需重复存储,因此减少了信息存储量,并提高了数据处理的效率。In the embodiment of this application, when issuing assets, the business initiator needs to specify the asset description information and the transaction identifier (such as transaction hash) corresponding to the issuance transaction. When the business transfer party transfers assets, it needs to execute the transaction hash of the transaction corresponding to the asset issuance without including asset description information. When it is necessary to obtain asset description information, the source of the asset (that is, the issuance transaction data when the asset was issued) can be indexed through the transaction hash, and the asset description information can be read from the source. Since asset description information does not need to be stored repeatedly, the amount of information stored is reduced and the efficiency of data processing is improved.
请参见图7,图7是本申请实施例提供的一种数据处理装置的结构示意图。该数据处理装置700可应用于前述实施例中的区块链节点。数据处理装置700可以是运行于区块链节点中的一个计算机程序(包括程序代码),例如该数据处理装置700为一个应用软件,也可以是区块链节点中的硬件组件;该数据处理装置700可以用于执行本申请实施例提供的数据处理方法中的相应步骤。该数据处理装置700可包括:Please refer to FIG. 7 , which is a schematic structural diagram of a data processing device provided by an embodiment of the present application. The data processing device 700 can be applied to the blockchain node in the aforementioned embodiments. The data processing device 700 can be a computer program (including program code) running in the blockchain node. For example, the data processing device 700 can be an application software, or it can be a hardware component in the blockchain node; the data processing device 700 700 can be used to perform corresponding steps in the data processing method provided by the embodiment of this application. The data processing device 700 may include:
获取单元701,用于获取业务转移方在进行资产转移时所提交的转移交易数据,转移交易数据是根据第一交易凭证确定的,第一交易凭证是业务发起方在执行资产发行处理的过程中生成的,第一交易凭证中的资产描述字段记录有资产描述信息;The acquisition unit 701 is used to acquire the transfer transaction data submitted by the business transfer party when transferring assets. The transfer transaction data is determined based on the first transaction voucher. The first transaction voucher is obtained by the business initiator in the process of executing the asset issuance process. Generated, the asset description field in the first transaction voucher records asset description information;
处理单元702,用于根据转移交易数据生成第二交易凭证;The processing unit 702 is used to generate a second transaction voucher according to the transfer transaction data;
其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空,或者第二交易凭证中的资产描述字段记录的内容为替换信息,替换信息与资产描述信息不相同。 Among them, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher. The content recorded in the asset description field in the second transaction voucher is empty, or the second transaction The content recorded in the asset description field in the voucher is replacement information, and the replacement information is different from the asset description information.
在一种实现方式中,处理单元702还用于执行以下操作:In one implementation, the processing unit 702 is also used to perform the following operations:
获取信息查询请求,信息查询请求中携带有待查询的交易标识;Obtain an information query request, which carries the transaction identifier to be queried;
根据待查询的交易标识,获取目标交易凭证,目标交易凭证中的交易标识字段记录的交易标识与待查询的交易标识相匹配;Obtain the target transaction voucher according to the transaction ID to be queried, and the transaction ID recorded in the transaction ID field in the target transaction voucher matches the transaction ID to be queried;
从目标交易凭证中的资产描述字段中获取资产描述信息。Obtain asset description information from the asset description field in the target transaction document.
在一种实现方式中,在获取单元701获取业务转移方在进行资产转移时所提交的转移交易数据之前,处理单元702还用于执行以下操作:In one implementation, before the acquisition unit 701 acquires the transfer transaction data submitted by the business transfer party when transferring assets, the processing unit 702 is also configured to perform the following operations:
获取业务发起方在发行资产时所提交的发行交易数据,发行交易数据包括发行资产所对应的资产描述信息和发行交易标识;Obtain the issuance transaction data submitted by the business initiator when issuing assets. The issuance transaction data includes the asset description information and issuance transaction identification corresponding to the issuance assets;
对发行交易数据的签名字段记录的签名、以及业务发起方的业务操作权限分别进行校验;Verify the signature of the signature field record of the issuance transaction data and the business operation authority of the business initiator respectively;
若均校验通过,则根据发行交易数据生成第一交易凭证。If all verifications pass, the first transaction voucher is generated based on the issuance transaction data.
在一种实现方式中,第一交易凭证是根据发行交易数据的交易输出字段生成的;交易输出字段包括交易标识字段、资产描述字段和接收地址字段;接收地址字段用于记录接收业务发起方所发行资产的第一业务地址,第一业务地址为业务转移方的地址;In one implementation, the first transaction voucher is generated based on the transaction output field of the issuance transaction data; the transaction output field includes a transaction identification field, an asset description field and a receiving address field; the receiving address field is used to record the receiving business initiator. The first business address of the issuing assets, which is the address of the business transfer party;
处理单元702根据发行交易数据生成第一交易凭证,用于执行以下操作:The processing unit 702 generates a first transaction voucher according to the issuance transaction data, for performing the following operations:
将发行交易数据中的接收地址字段中记录的第一业务地址写入至第一交易凭证中的接收地址字段;Write the first business address recorded in the receiving address field in the issuance transaction data to the receiving address field in the first transaction voucher;
将发行交易数据中的资产描述字段中记录的资产描述信息写入至第一交易凭证中的资产描述字段;Write the asset description information recorded in the asset description field in the issuance transaction data to the asset description field in the first transaction voucher;
将发行交易数据中的交易标识字段中记录的发行交易标识写入至第一交易凭证中的交易标识字段。The issuance transaction identification recorded in the transaction identification field in the issuance transaction data is written into the transaction identification field in the first transaction voucher.
在一种实现方式中,在获取单元701获取业务转移方在进行资产转移时所提交的转移交易数据之后,处理单元702还用于执行以下操作:In one implementation, after the acquisition unit 701 acquires the transfer transaction data submitted by the business transfer party when transferring assets, the processing unit 702 is also used to perform the following operations:
获取转移交易数据中的签名字段记录的签名;Obtain the signature of the signature field record in the transfer transaction data;
对转移交易数据中的签名字段记录的签名进行校验,若校验通过,则获取转移交易数据中来源字段记录的来源交易标识;Verify the signature of the signature field record in the transfer transaction data. If the verification passes, obtain the source transaction identifier of the source field record in the transfer transaction data;
根据来源交易标识对转移交易数据进行校验。Verify the transfer transaction data based on the source transaction identifier.
在一种实现方式中,处理单元702根据来源交易标识对转移交易数据进行校验,用于执行以下操作:In one implementation, the processing unit 702 verifies the transfer transaction data according to the source transaction identifier to perform the following operations:
根据来源交易标识,获取来源交易凭证,来源交易凭证中的来源字段记录的交易标识与来源交易标识相匹配;Obtain the source transaction voucher based on the source transaction identifier, and the transaction identifier recorded in the source field in the source transaction voucher matches the source transaction identifier;
根据来源交易凭证,对转移交易数据进行校验。Verify the transfer transaction data based on the source transaction voucher.
在一种实现方式中,处理单元702根据来源交易凭证,对转移交易数据进行校验,用于执行以下操作:In one implementation, the processing unit 702 verifies the transfer transaction data according to the source transaction voucher to perform the following operations:
根据来源交易凭证中目标字段记录的数据对转移交易数据进行校验,所述目标字段包括来源交易凭证中的数额字段、交易标识字段、资产标识字段、接收地址字段中的任意一种或多种;The transfer transaction data is verified based on the data recorded in the target field in the source transaction voucher. The target field includes any one or more of the amount field, transaction identification field, asset identification field, and receiving address field in the source transaction voucher. ;
其中,来源交易数据中的数额字段用于对转移交易数据中的数额字段进行校验;来源交易数据中的交易标识字段用于对转移交易数据中的交易标识字段进行校验;来源交易数据中的资产标识字段用于对转移交易数据中的资产标识字段进行校验;来源交易数据中的接收地址字段用于对转移交易数据中的接收地址字段进行校验。 Among them, the amount field in the source transaction data is used to verify the amount field in the transfer transaction data; the transaction identification field in the source transaction data is used to verify the transaction identification field in the transfer transaction data; in the source transaction data The asset identification field is used to verify the asset identification field in the transfer transaction data; the receiving address field in the source transaction data is used to verify the receiving address field in the transfer transaction data.
在一种实现方式中,第二交易凭证是根据转移交易数据的交易输出字段生成的;交易输出字段包括交易标识字段、资产描述字段和接收地址字段;接收地址字段用于记录接收业务转移方所转移资产的第二业务地址,第二业务地址为业务报销方的地址;In one implementation, the second transaction voucher is generated based on the transaction output field of the transfer transaction data; the transaction output field includes a transaction identification field, an asset description field and a receiving address field; the receiving address field is used to record the location of the receiving business transfer party. The second business address of the transferred assets, the second business address is the address of the business reimbursement party;
处理单元702根据转移交易数据生成第二交易凭证,用于执行以下操作:The processing unit 702 generates a second transaction voucher according to the transfer transaction data for performing the following operations:
将转移交易数据中的接收地址字段中记录的第二业务地址写入至第二交易凭证中的接收地址字段;Write the second business address recorded in the receiving address field in the transfer transaction data to the receiving address field in the second transaction voucher;
将转移交易数据中交易标识字段中记录的发行交易标识写入至第二交易凭证中的交易标识字段;Write the issuance transaction ID recorded in the transaction ID field in the transfer transaction data to the transaction ID field in the second transaction voucher;
将第二交易凭证中的资产描述字段设置为空,或者,将替换信息写入至第二交易凭证中的资产描述字段,替换信息与资产描述信息不相同。Set the asset description field in the second transaction voucher to empty, or write replacement information to the asset description field in the second transaction voucher, where the replacement information is different from the asset description information.
本申请实施例中,当业务转移方需要进行资产转移时,可以获取业务转移方在进行资产转移时所提交的转移交易数据,该转移交易数据是根据第一交易凭证确定的,该第一交易凭证是业务发起方在执行资产发行的处理过程中生成的,该第一交易凭证中的资产描述字段记录有用于描述业务发起方发行的资产的资产描述信息。然后,可以根据转移交易数据生成第二交易凭证。其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空,或者该第二交易凭证中的资产描述字段记录的内容为替换信息,该替换信息与资产描述信息不相同。可以看出,在进行资产转移时,需要携带发行资产时所对应的交易标识,但无需携带发行的资产所对应的资产描述信息,或者通过其它替换信息替换资产描述信息。通常来说,由于资产描述信息所占存储空间较大,而本申请实施例无需携带该资产描述信息,因此可以在资产的转移过程中降低信息存储量,从而节省存储空间。In the embodiment of this application, when the business transfer party needs to transfer assets, the transfer transaction data submitted by the business transfer party when transferring assets can be obtained. The transfer transaction data is determined based on the first transaction voucher. The first transaction The voucher is generated by the business initiator during the process of executing asset issuance. The asset description field in the first transaction voucher records asset description information used to describe the assets issued by the business initiator. Then, a second transaction voucher can be generated based on the transfer transaction data. Wherein, the transaction ID recorded in the transaction ID field in the first transaction voucher is the same as the transaction ID recorded in the transaction ID field in the second transaction voucher, the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction ID is empty. The content recorded in the asset description field in the transaction voucher is replacement information, which is different from the asset description information. It can be seen that when transferring assets, it is necessary to carry the transaction identifier corresponding to the issuance of the assets, but there is no need to carry the asset description information corresponding to the issued assets, or to replace the asset description information with other replacement information. Generally speaking, since asset description information occupies a large storage space, the embodiment of the present application does not need to carry the asset description information, so the amount of information storage can be reduced during the asset transfer process, thereby saving storage space.
请参见图8,图8是本申请实施例提供的另一种数据处理装置的结构示意图。该数据处理装置800可应用于前述实施例中的业务转移方。数据处理装置800可以是运行于业务转移方中的一个计算机程序(包括程序代码),例如该数据处理装置800为一个应用软件,或者是用于业务转移方的计算机设备;该数据处理装置800可以用于执行本申请实施例提供的数据处理方法中的相应步骤。该数据处理装置800可包括:Please refer to FIG. 8 , which is a schematic structural diagram of another data processing device provided by an embodiment of the present application. The data processing device 800 can be applied to the service transfer party in the aforementioned embodiments. The data processing device 800 may be a computer program (including program code) running in the business transfer party. For example, the data processing device 800 may be an application software, or a computer device used for the business transfer party; the data processing device 800 may be Used to perform corresponding steps in the data processing method provided by the embodiments of this application. The data processing device 800 may include:
获取单元801,用于获取业务发起方在发行资产的过程中所生成的第一交易凭证,第一交易凭证是根据业务发起方向区块链节点所提交的发行交易数据生成的,发行交易数据包括发行资产所对应的资产描述信息和发行交易标识;The acquisition unit 801 is used to obtain the first transaction voucher generated by the business initiator in the process of issuance of assets. The first transaction voucher is generated based on the issuance transaction data submitted by the business initiator to the blockchain node. The issuance transaction data includes Asset description information and issuance transaction identification corresponding to the issued assets;
处理单元802,用于根据第一交易凭证生成转移资产对应的转移交易数据,并向区块链节点发送转移交易数据,以使区块链节点根据转移交易数据生成第二交易凭证;The processing unit 802 is configured to generate transfer transaction data corresponding to the transferred assets based on the first transaction voucher, and send the transfer transaction data to the blockchain node, so that the blockchain node generates a second transaction voucher based on the transfer transaction data;
其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空或者记录的内容为替换信息,替换信息与资产描述信息不相同。Among them, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher, and the content recorded in the asset description field in the second transaction voucher is empty or the recorded content is Replacement information. The replacement information is not the same as the asset description information.
在一种实现方式中,第一交易凭证包括交易标识字段和资产描述字段;交易标识字段用于记录交易标识,资产描述字段用于记录资产描述信息;In one implementation, the first transaction voucher includes a transaction identification field and an asset description field; the transaction identification field is used to record the transaction identification, and the asset description field is used to record asset description information;
处理单元802根据第一交易凭证生成转移资产对应的转移交易数据,用于执行以下操作:The processing unit 802 generates transfer transaction data corresponding to the transferred asset based on the first transaction voucher, for performing the following operations:
将第一交易凭证的交易标识字段记录的交易标识写入至转移交易数据的交易标识字段中;Write the transaction ID recorded in the transaction ID field of the first transaction voucher into the transaction ID field of the transfer transaction data;
将转移交易数据中的资产描述字段设置为空,或者,将替换信息写入至转移交易数据的资产描述字段中,替换信息与所述资产描述信息不相同。 Set the asset description field in the transfer transaction data to empty, or write replacement information into the asset description field of the transfer transaction data, where the replacement information is different from the asset description information.
在一种实现方式中,在获取单元801获取业务发起方在发行资产的过程中所生成的第一交易凭证之后,处理单元802还用于执行以下操作:In one implementation, after the acquisition unit 801 acquires the first transaction voucher generated by the business initiator in the process of issuing assets, the processing unit 802 is also configured to perform the following operations:
获取业务发起方的身份信息;Obtain the identity information of the business initiator;
根据业务发起方的身份信息对业务发起方进行身份校验,若身份校验通过,则触发执行根据第一交易凭证生成转移资产对应的转移交易数据的步骤。The identity of the business initiator is verified based on the identity information of the business initiator. If the identity verification passes, the step of generating transfer transaction data corresponding to the transferred assets based on the first transaction voucher is triggered.
本申请实施例中,业务转移方可以获取来自业务发起方所转移的资产,并基于该部分资产进行资产转移。在资产转移过程中,无需携带资产描述信息,或者用指定的信息量较少的替换信息代替资产描述信息,从而降低数据处理过程中所携带的信息量,进而节省存储空间,并提高数据处理效率。In the embodiment of this application, the business transfer party can obtain the assets transferred from the business initiator, and perform asset transfer based on these assets. During the asset transfer process, there is no need to carry asset description information, or the asset description information is replaced with designated replacement information with a smaller amount of information, thereby reducing the amount of information carried during data processing, thereby saving storage space and improving data processing efficiency. .
请参见图9,图9是本申请实施例提供的一种计算机设备的结构示意图。该计算机设备900用于执行前述方法实施例中区块链节点、业务节点(业务转移方、业务发起方、或者业务报销方)所执行的步骤,该计算机设备900包括:一个或多个处理器910、一个或多个输入设备920、一个或多个输出设备930和存储器940。上述处理器910、输入设备920、输出设备930和存储器940通过总线950连接。存储器940用于存储计算机程序,所述计算机程序包括程序指令,处理器910用于调用存储器940存储的程序指令,执行以下操作:Please refer to FIG. 9 , which is a schematic structural diagram of a computer device provided by an embodiment of the present application. The computer device 900 is used to perform the steps performed by the blockchain node and the business node (business transfer party, business initiator, or business reimbursement party) in the foregoing method embodiments. The computer device 900 includes: one or more processors 910, one or more input devices 920, one or more output devices 930, and memory 940. The above-mentioned processor 910, input device 920, output device 930 and memory 940 are connected through a bus 950. The memory 940 is used to store computer programs, which include program instructions. The processor 910 is used to call the program instructions stored in the memory 940 to perform the following operations:
获取业务转移方在进行资产转移时所提交的转移交易数据,转移交易数据是根据第一交易凭证确定的,第一交易凭证是业务发起方在执行资产发行处理的过程中生成的,第一交易凭证中的资产描述字段记录有资产描述信息;Obtain the transfer transaction data submitted by the business transfer party when transferring assets. The transfer transaction data is determined based on the first transaction voucher. The first transaction voucher is generated by the business initiator in the process of executing the asset issuance process. The first transaction The asset description field in the voucher records asset description information;
根据转移交易数据生成第二交易凭证;Generate a second transaction voucher based on the transferred transaction data;
其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空,或者第二交易凭证中的资产描述字段记录的内容为替换信息,替换信息与资产描述信息不相同。Among them, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher. The content recorded in the asset description field in the second transaction voucher is empty, or the second transaction The content recorded in the asset description field in the voucher is replacement information, and the replacement information is different from the asset description information.
在一种实现方式中,处理器910还用于执行以下操作:In one implementation, the processor 910 is also configured to perform the following operations:
获取信息查询请求,信息查询请求中携带有待查询的交易标识;Obtain an information query request, which carries the transaction identifier to be queried;
根据待查询的交易标识,获取目标交易凭证,目标交易凭证中的交易标识字段记录的交易标识与待查询的交易标识相匹配;Obtain the target transaction voucher according to the transaction ID to be queried, and the transaction ID recorded in the transaction ID field in the target transaction voucher matches the transaction ID to be queried;
从目标交易凭证中的资产描述字段中获取资产描述信息。Obtain asset description information from the asset description field in the target transaction document.
在一种实现方式中,在获取业务转移方在进行资产转移时所提交的转移交易数据之前,处理器910还用于执行以下操作:In one implementation, before obtaining the transfer transaction data submitted by the business transfer party when transferring assets, the processor 910 is also used to perform the following operations:
获取业务发起方在发行资产时所提交的发行交易数据,发行交易数据包括发行资产所对应的资产描述信息和发行交易标识;Obtain the issuance transaction data submitted by the business initiator when issuing assets. The issuance transaction data includes the asset description information and issuance transaction identification corresponding to the issuance assets;
对发行交易数据的签名字段记录的签名、以及业务发起方的业务操作权限分别进行校验;Verify the signature of the signature field record of the issuance transaction data and the business operation authority of the business initiator respectively;
若均校验通过,则根据发行交易数据生成第一交易凭证。If all verifications pass, the first transaction voucher is generated based on the issuance transaction data.
在一种实现方式中,第一交易凭证是根据发行交易数据的交易输出字段生成的;交易输出字段包括交易标识字段、资产描述字段和接收地址字段;接收地址字段用于记录接收业务发起方所发行资产的第一业务地址,第一业务地址为业务转移方的地址;In one implementation, the first transaction voucher is generated based on the transaction output field of the issuance transaction data; the transaction output field includes a transaction identification field, an asset description field and a receiving address field; the receiving address field is used to record the receiving business initiator. The first business address of the issuing assets, which is the address of the business transfer party;
处理器910根据发行交易数据生成第一交易凭证,用于执行以下操作:The processor 910 generates a first transaction voucher according to the issuance transaction data, for performing the following operations:
将发行交易数据中的接收地址字段中记录的第一业务地址写入至第一交易凭证中的接收地址字段;Write the first business address recorded in the receiving address field in the issuance transaction data to the receiving address field in the first transaction voucher;
将发行交易数据中的资产描述字段中记录的资产描述信息写入至第一交易凭证中的 资产描述字段;Write the asset description information recorded in the asset description field in the issuance transaction data to the first transaction voucher Asset description field;
将发行交易数据中的交易标识字段中记录的发行交易标识写入至第一交易凭证中的交易标识字段。The issuance transaction identification recorded in the transaction identification field in the issuance transaction data is written into the transaction identification field in the first transaction voucher.
在一种实现方式中,在获取业务转移方在进行资产转移时所提交的转移交易数据之后,处理器910还用于执行以下操作:In one implementation, after obtaining the transfer transaction data submitted by the business transfer party when transferring assets, the processor 910 is also configured to perform the following operations:
获取转移交易数据中的签名字段记录的签名;Obtain the signature of the signature field record in the transfer transaction data;
对转移交易数据中的签名字段记录的签名进行校验,若校验通过,则获取转移交易数据中来源字段记录的来源交易标识;Verify the signature of the signature field record in the transfer transaction data. If the verification passes, obtain the source transaction identifier of the source field record in the transfer transaction data;
根据来源交易标识对转移交易数据进行校验。Verify the transfer transaction data based on the source transaction identifier.
在一种实现方式中,处理器910根据来源交易标识对转移交易数据进行校验,用于执行以下操作:In one implementation, the processor 910 verifies the transfer transaction data according to the source transaction identifier to perform the following operations:
根据来源交易标识,获取来源交易凭证,来源交易凭证中的来源字段记录的交易标识与来源交易标识相匹配;Obtain the source transaction voucher based on the source transaction identifier, and the transaction identifier recorded in the source field in the source transaction voucher matches the source transaction identifier;
根据来源交易凭证,对转移交易数据进行校验。Verify the transfer transaction data based on the source transaction voucher.
在一种实现方式中,处理器910根据来源交易凭证,对转移交易数据进行校验,用于执行以下操作:In one implementation, the processor 910 verifies the transfer transaction data based on the source transaction voucher to perform the following operations:
根据来源交易凭证中目标字段记录的数据对转移交易数据进行校验,所述目标字段包括来源交易凭证中的数额字段、交易标识字段、资产标识字段、接收地址字段中的任意一种或多种;The transfer transaction data is verified based on the data recorded in the target field in the source transaction voucher. The target field includes any one or more of the amount field, transaction identification field, asset identification field, and receiving address field in the source transaction voucher. ;
其中,来源交易数据中的数额字段用于对转移交易数据中的数额字段进行校验;来源交易数据中的交易标识字段用于对转移交易数据中的交易标识字段进行校验;来源交易数据中的资产标识字段用于对转移交易数据中的资产标识字段进行校验;来源交易数据中的接收地址字段用于对转移交易数据中的接收地址字段进行校验。Among them, the amount field in the source transaction data is used to verify the amount field in the transfer transaction data; the transaction identification field in the source transaction data is used to verify the transaction identification field in the transfer transaction data; in the source transaction data The asset identification field is used to verify the asset identification field in the transfer transaction data; the receiving address field in the source transaction data is used to verify the receiving address field in the transfer transaction data.
在一种实现方式中,第二交易凭证是根据转移交易数据的交易输出字段生成的;交易输出字段包括交易标识字段、资产描述字段和接收地址字段;接收地址字段用于记录接收业务转移方所转移资产的第二业务地址,第二业务地址为业务报销方的地址;In one implementation, the second transaction voucher is generated based on the transaction output field of the transfer transaction data; the transaction output field includes a transaction identification field, an asset description field and a receiving address field; the receiving address field is used to record the location of the receiving business transfer party. The second business address of the transferred assets, the second business address is the address of the business reimbursement party;
处理器910根据转移交易数据生成第二交易凭证,用于执行以下操作:The processor 910 generates a second transaction voucher according to the transfer transaction data for performing the following operations:
将转移交易数据中的接收地址字段中记录的第二业务地址写入至第二交易凭证中的接收地址字段;Write the second business address recorded in the receiving address field in the transfer transaction data to the receiving address field in the second transaction voucher;
将转移交易数据中交易标识字段中记录的发行交易标识写入至第二交易凭证中的交易标识字段;Write the issuance transaction ID recorded in the transaction ID field in the transfer transaction data to the transaction ID field in the second transaction voucher;
将第二交易凭证中的资产描述字段设置为空,或者,将替换信息写入至第二交易凭证中的资产描述字段,替换信息与资产描述信息不相同。Set the asset description field in the second transaction voucher to empty, or write replacement information to the asset description field in the second transaction voucher, where the replacement information is different from the asset description information.
在实施例中,处理器910用于调用存储器940存储的程序指令,还用于执行以下操作:In an embodiment, the processor 910 is configured to call program instructions stored in the memory 940, and is also configured to perform the following operations:
获取业务发起方在发行资产的过程中所生成的第一交易凭证,第一交易凭证是根据业务发起方向区块链节点所提交的发行交易数据生成的,发行交易数据包括发行资产所对应的资产描述信息和发行交易标识;Obtain the first transaction voucher generated by the business initiator in the process of issuance of assets. The first transaction voucher is generated based on the issuance transaction data submitted by the business initiator to the blockchain node. The issuance transaction data includes the assets corresponding to the issuance assets. Description information and issuance transaction identifier;
根据第一交易凭证生成转移资产对应的转移交易数据,并向区块链节点发送转移交易数据,以使区块链节点根据转移交易数据生成第二交易凭证;Generate transfer transaction data corresponding to the transferred assets based on the first transaction voucher, and send the transfer transaction data to the blockchain node, so that the blockchain node generates a second transaction voucher based on the transfer transaction data;
其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空或者记录的内容为替换信息,替换信息与资产描述信息不相同。 Among them, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher, and the content recorded in the asset description field in the second transaction voucher is empty or the recorded content is Replacement information. The replacement information is not the same as the asset description information.
在一种实现方式中,第一交易凭证包括交易标识字段和资产描述字段;交易标识字段用于记录交易标识,资产描述字段用于记录资产描述信息;In one implementation, the first transaction voucher includes a transaction identification field and an asset description field; the transaction identification field is used to record the transaction identification, and the asset description field is used to record asset description information;
处理器910根据第一交易凭证生成转移资产对应的转移交易数据,用于执行以下操作:The processor 910 generates transfer transaction data corresponding to the transferred asset based on the first transaction voucher for performing the following operations:
将第一交易凭证的交易标识字段记录的交易标识写入至转移交易数据的交易标识字段中;Write the transaction ID recorded in the transaction ID field of the first transaction voucher into the transaction ID field of the transfer transaction data;
将转移交易数据中的资产描述字段设置为空,或者,将替换信息写入至转移交易数据的资产描述字段中,替换信息与所述资产描述信息不相同。Set the asset description field in the transfer transaction data to empty, or write replacement information into the asset description field of the transfer transaction data, where the replacement information is different from the asset description information.
在一种实现方式中,在获取业务发起方在发行资产的过程中所生成的第一交易凭证之后,处理器910还用于执行以下操作:In one implementation, after obtaining the first transaction voucher generated by the business initiator in the process of issuing assets, the processor 910 is also configured to perform the following operations:
获取业务发起方的身份信息;Obtain the identity information of the business initiator;
根据业务发起方的身份信息对业务发起方进行身份校验,若身份校验通过,则触发执行根据第一交易凭证生成转移资产对应的转移交易数据的步骤。The identity of the business initiator is verified based on the identity information of the business initiator. If the identity verification passes, the step of generating transfer transaction data corresponding to the transferred assets based on the first transaction voucher is triggered.
本申请实施例中,当业务转移方需要进行资产转移时,可以获取业务转移方在进行资产转移时所提交的转移交易数据,该转移交易数据是根据第一交易凭证确定的,该第一交易凭证是业务发起方在执行资产发行的处理过程中生成的,该第一交易凭证中的资产描述字段记录有用于描述业务发起方发行的资产所对应的资产描述信息。然后,可以根据转移交易数据生成第二交易凭证。其中,第一交易凭证中的交易标识字段记录的交易标识与第二交易凭证中的交易标识字段记录的交易标识相同,第二交易凭证中的资产描述字段记录的内容为空,或者该第二交易凭证中的资产描述字段记录的内容为替换信息,该替换信息与资产描述信息不相同。可以看出,在进行资产转移时,需要携带发行资产时所对应的交易标识,但无需携带发行的资产所对应的资产描述信息,或者通过其它替换信息替换资产描述信息。通常来说,由于资产描述信息所占存储空间较大,而本申请实施例无需携带该资产描述信息,因此可以在资产的转移过程中降低信息存储量,从而节省存储空间,并提高数据处理的效率。In the embodiment of this application, when the business transfer party needs to transfer assets, the transfer transaction data submitted by the business transfer party when transferring assets can be obtained. The transfer transaction data is determined based on the first transaction voucher. The first transaction The voucher is generated by the business initiator during the process of asset issuance. The asset description field in the first transaction voucher records asset description information corresponding to the assets issued by the business initiator. Then, a second transaction voucher can be generated based on the transfer transaction data. Wherein, the transaction ID recorded in the transaction ID field in the first transaction voucher is the same as the transaction ID recorded in the transaction ID field in the second transaction voucher, the content recorded in the asset description field in the second transaction voucher is empty, or the second transaction ID is empty. The content recorded in the asset description field in the transaction voucher is replacement information, which is different from the asset description information. It can be seen that when transferring assets, it is necessary to carry the transaction identifier corresponding to the issuance of the assets, but there is no need to carry the asset description information corresponding to the issued assets, or to replace the asset description information with other replacement information. Generally speaking, since asset description information occupies a large storage space, the embodiment of the present application does not need to carry the asset description information, so the amount of information storage can be reduced during the asset transfer process, thereby saving storage space and improving data processing efficiency. efficiency.
此外,本申请实施例还提供了一种计算机存储介质,且计算机存储介质中存储有计算机程序,且该计算机程序包括程序指令,当处理器执行上述程序指令时,能够执行前文所对应实施例中的方法,因此,这里将不再进行赘述。对于本申请所涉及的计算机存储介质实施例中未披露的技术细节,请参照本申请方法实施例的描述。作为示例,程序指令可以被部署在一个计算机设备上,或者在位于一个地点的多个计算机设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算机设备上执行。In addition, embodiments of the present application also provide a computer storage medium, and a computer program is stored in the computer storage medium, and the computer program includes program instructions. When the processor executes the above program instructions, it can execute the corresponding embodiments mentioned above. method, so we will not go into details here. For technical details not disclosed in the computer storage medium embodiments involved in this application, please refer to the description of the method embodiments in this application. By way of example, program instructions may be deployed on one computer device, or executed on multiple computer devices located at one location, or on multiple computer devices distributed across multiple locations and interconnected by a communications network.
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备可以执行前文所对应实施例中的方法,因此,这里将不再进行赘述。According to one aspect of the present application, a computer program product or computer program is provided, which computer program product or computer program includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device can perform the methods in the corresponding embodiments. Therefore, the details will not be described here.
本领域普通技术对象可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,上述存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through computer programs. The above programs can be stored in computer-readable storage media. When the programs are executed, , may include the processes of the above method embodiments. Among them, the above-mentioned storage media can be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
以上所揭露的仅为本申请较佳实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。 What is disclosed above is only the preferred embodiment of the present application. Of course, it cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application still fall within the scope of the present application.

Claims (16)

  1. 一种数据处理方法,包括:A data processing method including:
    获取业务转移方在进行资产转移时所提交的转移交易数据,所述转移交易数据是根据第一交易凭证确定的,所述第一交易凭证是业务发起方在执行资产发行处理的过程中生成的,所述第一交易凭证中的资产描述字段记录有资产描述信息;Obtain the transfer transaction data submitted by the business transfer party when transferring assets. The transfer transaction data is determined based on the first transaction voucher. The first transaction voucher is generated by the business initiator in the process of executing the asset issuance process. , the asset description field in the first transaction voucher records asset description information;
    根据所述转移交易数据生成第二交易凭证;Generate a second transaction voucher based on the transfer transaction data;
    其中,所述第一交易凭证中的交易标识字段记录的交易标识与所述第二交易凭证中的交易标识字段记录的交易标识相同,所述第二交易凭证中的资产描述字段记录的内容为空,或者所述第二交易凭证中的资产描述字段记录的内容为替换信息,所述替换信息与所述资产描述信息不相同。Wherein, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher, and the content recorded in the asset description field in the second transaction voucher is: empty, or the content recorded in the asset description field in the second transaction voucher is replacement information, and the replacement information is different from the asset description information.
  2. 如权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, further comprising:
    获取信息查询请求,所述信息查询请求中携带有待查询的交易标识;Obtain an information query request, which carries the transaction identifier to be queried;
    根据所述待查询的交易标识,获取目标交易凭证,所述目标交易凭证中的交易标识字段记录的交易标识与所述待查询的交易标识相匹配;Obtain a target transaction voucher according to the transaction identifier to be queried, and the transaction identifier recorded in the transaction identifier field in the target transaction voucher matches the transaction identifier to be queried;
    从所述目标交易凭证中的资产描述字段中获取资产描述信息。Obtain asset description information from the asset description field in the target transaction voucher.
  3. 如权利要求1所述的方法,其中,所述获取业务转移方在进行资产转移时所提交的转移交易数据之前,还包括:The method of claim 1, wherein before obtaining the transfer transaction data submitted by the business transfer party when performing asset transfer, it further includes:
    获取业务发起方在发行资产时所提交的发行交易数据,所述发行交易数据包括发行资产所对应的资产描述信息和发行交易标识;Obtain the issuance transaction data submitted by the business initiator when issuing assets. The issuance transaction data includes asset description information and issuance transaction identification corresponding to the issuance assets;
    对所述发行交易数据的签名字段记录的签名、以及所述业务发起方的业务操作权限分别进行校验;Verify the signature recorded in the signature field of the issuance transaction data and the business operation authority of the business initiator respectively;
    若均校验通过,则根据所述发行交易数据生成第一交易凭证。If all verifications pass, a first transaction voucher is generated based on the issuance transaction data.
  4. 如权利要求3所述的方法,其中,所述第一交易凭证是根据所述发行交易数据的交易输出字段生成的;所述交易输出字段包括交易标识字段、资产描述字段和接收地址字段;所述接收地址字段用于记录接收所述业务发起方所发行资产的第一业务地址,所述第一业务地址为所述业务转移方的地址;The method of claim 3, wherein the first transaction voucher is generated according to the transaction output field of the issuance transaction data; the transaction output field includes a transaction identification field, an asset description field and a receiving address field; The receiving address field is used to record the first business address for receiving the assets issued by the business initiator, and the first business address is the address of the business transfer party;
    所述根据所述发行交易数据生成第一交易凭证,包括:The generating of the first transaction voucher based on the issuance transaction data includes:
    将所述发行交易数据中的接收地址字段中记录的第一业务地址写入至所述第一交易凭证中的接收地址字段;Write the first business address recorded in the receiving address field in the issuance transaction data into the receiving address field in the first transaction voucher;
    将所述发行交易数据中的资产描述字段中记录的资产描述信息写入至所述第一交易凭证中的资产描述字段;writing the asset description information recorded in the asset description field in the issuance transaction data to the asset description field in the first transaction voucher;
    将所述发行交易数据中的交易标识字段中记录的发行交易标识写入至所述第一交易凭证中的交易标识字段。The issuance transaction identification recorded in the transaction identification field in the issuance transaction data is written into the transaction identification field in the first transaction voucher.
  5. 如权利要求1所述的方法,其中,所述获取业务转移方在进行资产转移时所提交的转移交易数据之后,还包括:The method according to claim 1, wherein after obtaining the transfer transaction data submitted by the business transfer party when transferring assets, it further includes:
    获取所述转移交易数据中的签名字段记录的签名;Obtain the signature of the signature field record in the transfer transaction data;
    对所述转移交易数据中的签名字段记录的签名进行校验,若校验通过,则获取所述转移交易数据中来源字段记录的来源交易标识;Verify the signature recorded in the signature field in the transfer transaction data, and if the verification passes, obtain the source transaction identifier recorded in the source field in the transfer transaction data;
    根据所述来源交易标识对所述转移交易数据进行校验。The transfer transaction data is verified according to the source transaction identifier.
  6. 如权利要求5所述的方法,其中,所述根据所述来源交易标识对所述转移交易数据进行校验,包括: The method of claim 5, wherein the verifying the transfer transaction data according to the source transaction identifier includes:
    根据所述来源交易标识,获取来源交易凭证,所述来源交易凭证中的来源字段记录的交易标识与所述来源交易标识相匹配;Obtain a source transaction voucher according to the source transaction identifier, and the transaction identifier recorded in the source field in the source transaction voucher matches the source transaction identifier;
    根据所述来源交易凭证,对所述转移交易数据进行校验。The transfer transaction data is verified according to the source transaction voucher.
  7. 如权利要求6所述的方法,其中,所述根据所述来源交易凭证,对所述转移交易数据进行校验,包括:The method of claim 6, wherein verifying the transfer transaction data based on the source transaction voucher includes:
    根据所述来源交易凭证中目标字段记录的数据对所述转移交易数据进行校验,所述目标字段包括所述来源交易凭证中的数额字段、交易标识字段、资产标识字段、接收地址字段中的任意一种或多种;The transfer transaction data is verified based on the data recorded in the target field in the source transaction voucher. The target field includes the amount field, transaction identification field, asset identification field, and receiving address field in the source transaction voucher. any one or more;
    其中,所述来源交易数据中的数额字段用于对转移交易数据中的数额字段进行校验;所述来源交易数据中的交易标识字段用于对转移交易数据中的交易标识字段进行校验;所述来源交易数据中的资产标识字段用于对转移交易数据中的资产标识字段进行校验;所述来源交易数据中的接收地址字段用于对转移交易数据中的接收地址字段进行校验。Wherein, the amount field in the source transaction data is used to verify the amount field in the transfer transaction data; the transaction identification field in the source transaction data is used to verify the transaction identification field in the transfer transaction data; The asset identification field in the source transaction data is used to verify the asset identification field in the transfer transaction data; the receiving address field in the source transaction data is used to verify the receiving address field in the transfer transaction data.
  8. 如权利要求1所述的方法,其中,所述第二交易凭证是根据所述转移交易数据的交易输出字段生成的;所述交易输出字段包括交易标识字段、资产描述字段和接收地址字段;所述接收地址字段用于记录接收所述业务转移方所转移资产的第二业务地址,所述第二业务地址为业务报销方的地址;The method of claim 1, wherein the second transaction voucher is generated according to the transaction output field of the transfer transaction data; the transaction output field includes a transaction identification field, an asset description field and a receiving address field; The receiving address field is used to record the second business address that receives the transferred assets from the business transfer party, and the second business address is the address of the business reimbursement party;
    所述根据所述转移交易数据生成第二交易凭证,包括:Generating a second transaction voucher based on the transfer transaction data includes:
    将所述转移交易数据中的接收地址字段中记录的第二业务地址写入至所述第二交易凭证中的接收地址字段;Write the second business address recorded in the receiving address field in the transfer transaction data to the receiving address field in the second transaction voucher;
    将所述转移交易数据中交易标识字段中记录的发行交易标识写入至所述第二交易凭证中的交易标识字段;Write the issuance transaction identification recorded in the transaction identification field in the transfer transaction data into the transaction identification field in the second transaction voucher;
    将所述第二交易凭证中的资产描述字段设置为空,或者,将替换信息写入至所述第二交易凭证中的资产描述字段,所述替换信息与所述资产描述信息不相同。Set the asset description field in the second transaction voucher to empty, or write replacement information to the asset description field in the second transaction voucher, where the replacement information is different from the asset description information.
  9. 一种数据处理方法,包括:A data processing method including:
    获取业务发起方在发行资产的过程中所生成的第一交易凭证,所述第一交易凭证是根据所述业务发起方向区块链节点所提交的发行交易数据生成的,所述发行交易数据包括发行资产所对应的资产描述信息和发行交易标识;Obtain the first transaction voucher generated by the business initiator in the process of issuance of assets. The first transaction voucher is generated based on the issuance transaction data submitted by the business initiator to the blockchain node. The issuance transaction data includes Asset description information and issuance transaction identification corresponding to the issued assets;
    根据所述第一交易凭证生成转移资产对应的转移交易数据,并向所述区块链节点发送所述转移交易数据,以使所述区块链节点根据所述转移交易数据生成第二交易凭证;Generate transfer transaction data corresponding to the transferred assets based on the first transaction voucher, and send the transfer transaction data to the blockchain node, so that the blockchain node generates a second transaction voucher based on the transfer transaction data. ;
    其中,所述第一交易凭证中的交易标识字段记录的交易标识与所述第二交易凭证中的交易标识字段记录的交易标识相同,所述第二交易凭证中的资产描述字段记录的内容为空或者记录的内容为替换信息,所述替换信息与所述资产描述信息不相同。Wherein, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher, and the content recorded in the asset description field in the second transaction voucher is: The empty or recorded content is replacement information, and the replacement information is different from the asset description information.
  10. 如权利要求9所述的方法,其中,所述第一交易凭证包括交易标识字段和资产描述字段;所述交易标识字段用于记录交易标识,所述资产描述字段用于记录资产描述信息;The method of claim 9, wherein the first transaction voucher includes a transaction identification field and an asset description field; the transaction identification field is used to record a transaction identification, and the asset description field is used to record asset description information;
    所述根据所述第一交易凭证生成转移资产对应的转移交易数据,包括:Generating transfer transaction data corresponding to the transferred assets based on the first transaction voucher includes:
    将所述第一交易凭证的交易标识字段记录的交易标识写入至所述转移交易数据的交易标识字段中;Write the transaction identification recorded in the transaction identification field of the first transaction voucher into the transaction identification field of the transfer transaction data;
    将所述转移交易数据中的资产描述字段设置为空,或者,将替换信息写入至所述转移交易数据的资产描述字段中,所述替换信息与所述资产描述信息不相同。Set the asset description field in the transfer transaction data to empty, or write replacement information into the asset description field of the transfer transaction data, where the replacement information is different from the asset description information.
  11. 如权利要求9所述的方法,其中,所述获取业务发起方在发行资产的过程中所生成的第一交易凭证之后,还包括:The method of claim 9, wherein after obtaining the first transaction voucher generated by the business initiator in the process of issuance of assets, it further includes:
    获取所述业务发起方的身份信息; Obtain the identity information of the business initiator;
    根据所述业务发起方的身份信息对所述业务发起方进行身份校验,若身份校验通过,则触发执行所述根据所述第一交易凭证生成转移资产对应的转移交易数据的步骤。An identity verification is performed on the business initiator based on the identity information of the business initiator. If the identity verification passes, the step of generating transfer transaction data corresponding to the transferred assets based on the first transaction voucher is triggered.
  12. 一种数据处理装置,包括:A data processing device including:
    获取单元,用于获取业务转移方在进行资产转移时所提交的转移交易数据,所述转移交易数据是根据第一交易凭证确定的,所述第一交易凭证是业务发起方在执行资产发行处理的过程中生成的,所述第一交易凭证中的资产描述字段记录有资产描述信息;The acquisition unit is used to obtain the transfer transaction data submitted by the business transfer party when performing asset transfer. The transfer transaction data is determined based on the first transaction voucher. The first transaction voucher is the business initiator's execution of asset issuance processing. Generated in the process, the asset description field in the first transaction voucher records asset description information;
    处理单元,用于根据所述转移交易数据生成第二交易凭证;A processing unit configured to generate a second transaction voucher based on the transfer transaction data;
    其中,所述第一交易凭证中的交易标识字段记录的交易标识与所述第二交易凭证中的交易标识字段记录的交易标识相同,所述第二交易凭证中的资产描述字段记录的内容为空,或者所述第二交易凭证中的资产描述字段记录的内容为替换信息,所述替换信息与所述资产描述信息不相同。Wherein, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher, and the content recorded in the asset description field in the second transaction voucher is: empty, or the content recorded in the asset description field in the second transaction voucher is replacement information, and the replacement information is different from the asset description information.
  13. 一种数据处理装置,包括:A data processing device including:
    获取单元,用于获取业务发起方在发行资产的过程中所生成的第一交易凭证,所述第一交易凭证是根据所述业务发起方向区块链节点所提交的发行交易数据生成的,所述发行交易数据包括发行资产所对应的资产描述信息和发行交易标识;The acquisition unit is used to obtain the first transaction voucher generated by the business initiator in the process of issuance of assets. The first transaction voucher is generated based on the issuance transaction data submitted by the business initiator to the blockchain node, so The above-mentioned issuance transaction data includes asset description information and issuance transaction identification corresponding to the issuance assets;
    处理单元,用于根据所述第一交易凭证生成转移资产对应的转移交易数据,并向所述区块链节点发送所述转移交易数据,以使所述区块链节点根据所述转移交易数据生成第二交易凭证;A processing unit configured to generate transfer transaction data corresponding to the transferred assets based on the first transaction voucher, and send the transfer transaction data to the blockchain node, so that the blockchain node can generate the transfer transaction data according to the transfer transaction data. Generate the second transaction voucher;
    其中,所述第一交易凭证中的交易标识字段记录的交易标识与所述第二交易凭证中的交易标识字段记录的交易标识相同,所述第二交易凭证中的资产描述字段记录的内容为空或者记录的内容为替换信息,所述替换信息与所述资产描述信息不相同。Wherein, the transaction identification recorded in the transaction identification field in the first transaction voucher is the same as the transaction identification recorded in the transaction identification field in the second transaction voucher, and the content recorded in the asset description field in the second transaction voucher is: The empty or recorded content is replacement information, and the replacement information is different from the asset description information.
  14. 一种计算机设备,包括:存储装置和处理器;A computer device including: a storage device and a processor;
    存储器,所述存储器中存储一条或多条计算机程序;A memory in which one or more computer programs are stored;
    处理器,用于加载所述一条或多条计算机程序实现如权利要求1-8或9-11中任一项所述的数据处理方法。A processor, configured to load the one or more computer programs to implement the data processing method according to any one of claims 1-8 or 9-11.
  15. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序适于被处理器加载并执行如权利要求1-8或9-11中任一项所述的数据处理方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program is adapted to be loaded and executed by a processor as described in any one of claims 1-8 or 9-11 data processing methods.
  16. 一种计算机程序产品,其中,所述计算程序产品包括计算机程序,所述计算机程序适于被处理器加载并执行如权利要求1-8或9-11中任一项所述的数据处理方法。 A computer program product, wherein the computing program product includes a computer program, the computer program is adapted to be loaded by a processor and execute the data processing method according to any one of claims 1-8 or 9-11.
PCT/CN2023/086155 2022-04-27 2023-04-04 Data processing method and apparatus, device, medium, and product WO2023207529A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210456676.6 2022-04-27
CN202210456676.6A CN117010889A (en) 2022-04-27 2022-04-27 Data processing method, device, equipment, medium and product

Publications (1)

Publication Number Publication Date
WO2023207529A1 true WO2023207529A1 (en) 2023-11-02

Family

ID=88517529

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/086155 WO2023207529A1 (en) 2022-04-27 2023-04-04 Data processing method and apparatus, device, medium, and product

Country Status (2)

Country Link
CN (1) CN117010889A (en)
WO (1) WO2023207529A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117539644A (en) * 2024-01-09 2024-02-09 四川迅鳐科技有限公司 Block chain transaction query method, system and storage medium based on service chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111325585A (en) * 2020-01-17 2020-06-23 腾讯科技(深圳)有限公司 Asset transfer method, device and computer readable storage medium
US20200304518A1 (en) * 2016-10-03 2020-09-24 Visa International Service Association Network topology
CN112508578A (en) * 2021-02-04 2021-03-16 支付宝(杭州)信息技术有限公司 Resource transfer request verification and sending method and device based on block chain
CN113190622A (en) * 2021-03-16 2021-07-30 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200304518A1 (en) * 2016-10-03 2020-09-24 Visa International Service Association Network topology
CN111325585A (en) * 2020-01-17 2020-06-23 腾讯科技(深圳)有限公司 Asset transfer method, device and computer readable storage medium
CN112508578A (en) * 2021-02-04 2021-03-16 支付宝(杭州)信息技术有限公司 Resource transfer request verification and sending method and device based on block chain
CN113190622A (en) * 2021-03-16 2021-07-30 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117539644A (en) * 2024-01-09 2024-02-09 四川迅鳐科技有限公司 Block chain transaction query method, system and storage medium based on service chain
CN117539644B (en) * 2024-01-09 2024-03-26 四川迅鳐科技有限公司 Block chain transaction query method, system and storage medium based on service chain

Also Published As

Publication number Publication date
CN117010889A (en) 2023-11-07

Similar Documents

Publication Publication Date Title
TWI679874B (en) Cross-blockchain authentication method and device, and electronic equipment
US11501533B2 (en) Media authentication using distributed ledger
CN113711536B (en) Extracting data from a blockchain network
CN107577427B (en) data migration method, device and storage medium for blockchain system
US20190251557A1 (en) Executing multi-party transactions using smart contracts
CN111144881A (en) Selective access to asset transfer data
WO2020186901A1 (en) Block chain-based data check system and method, computing device, and storage medium
TW202038173A (en) Blockchain-based data processing system and method, computing device and storage medium
WO2022121538A1 (en) Data synchronization method and system based on blockchain, and related device
TW201943250A (en) Cross-blockchain authentication method and apparatus, and electronic device
CN109508564B (en) Block chain-based digital asset storage system and method
TW202030656A (en) Cross-chain right-using system, method and device, electronic equipment and storage medium
US20230316273A1 (en) Data processing method and apparatus, computer device, and storage medium
CN111460458B (en) Data processing method, related device and computer storage medium
US20230052935A1 (en) Asynchronous accounting method and apparatus for blockchain, medium and electronic device
US20230102617A1 (en) Repeat transaction verification method, apparatus, and device, and medium
US20160241649A1 (en) Directory service discovery and/or learning
US11917057B2 (en) Method, device, and apparatus for processing distributed data, and medium
US20230079672A1 (en) Cross-chain data transmission method and apparatus, computer device, storage medium, and computer program product
WO2023045617A1 (en) Transaction data processing method and apparatus, device and medium
WO2023207529A1 (en) Data processing method and apparatus, device, medium, and product
US11044104B2 (en) Data certification as a service powered by permissioned blockchain network
WO2023071554A1 (en) Data processing method and apparatus based on blockchain network, and device and storage medium
WO2023005500A1 (en) Cross-chain transaction processing method and apparatus, electronic device, and storage medium
WO2023221350A1 (en) Blockchain-based code copyright registration system, method and platform

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

Country of ref document: EP

Kind code of ref document: A1