CN117522398A - Block chain data processing method, device and equipment, medium and program product - Google Patents

Block chain data processing method, device and equipment, medium and program product Download PDF

Info

Publication number
CN117522398A
CN117522398A CN202210901945.5A CN202210901945A CN117522398A CN 117522398 A CN117522398 A CN 117522398A CN 202210901945 A CN202210901945 A CN 202210901945A CN 117522398 A CN117522398 A CN 117522398A
Authority
CN
China
Prior art keywords
target
digital collection
verified
address
locking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210901945.5A
Other languages
Chinese (zh)
Inventor
陈自民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202210901945.5A priority Critical patent/CN117522398A/en
Publication of CN117522398A publication Critical patent/CN117522398A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application provides a block chain data processing method, a device, a medium and a program product. The method comprises the following steps: acquiring a preprocessing request aiming at the digital collection to be issued, wherein the preprocessing request carries a digital collection locking value; responding to the preprocessing request, generating locking transaction data comprising a target contract identification and a target issuing address, and carrying out uplink processing on the locking transaction data; obtaining a digital collection uplink request, wherein the digital collection uplink request comprises: digital collection locking value, contract identification to be verified, issuing address to be verified; and if the contract identification to be verified and the issuing address to be verified pass verification based on the digital collection locking value, issuing the digital collection indicated by the contract identification to be verified into the issuing address to be verified. According to the digital collection issuing method and device, the issuing address can be locked with the contract identification for issuing the digital collection in advance, and the security in the digital collection issuing process is improved.

Description

Block chain data processing method, device and equipment, medium and program product
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a blockchain data processing method, a blockchain data processing apparatus, a computer device, a computer readable storage medium, and a computer program product.
Background
In the blockchain, the digital collection is a technical means for confirming and circulating ownership of the assets under the chain, and provides an excellent asset digitizing technology for the assets under the chain in the digital economy, so that the digital collection is gradually spread over aspects of daily life of people. The uniqueness of the digital collection is widely applied to the field of copyright protection, namely, copyright protection can be performed on digital drawings, cultural works, music, videos and the like based on the digital collection.
At present, the digital collection is issued mainly by submitting a transaction request to the blockchain, and then the blockchain verifies the transaction request and then issues the corresponding digital collection. In the blockchain, the transaction request may be monitored by other nodes, resulting in a situation where the transaction is contended maliciously.
Disclosure of Invention
The embodiment of the application provides a blockchain data processing method, a device, equipment, a medium and a program product, which can lock an issuing address and a contract identification for issuing digital collections in advance.
In one aspect, an embodiment of the present application provides a blockchain data processing method, including:
acquiring a preprocessing request aiming at a digital collection to be issued, wherein the preprocessing request carries a digital collection locking value, the digital collection locking value is determined according to a target contract identifier and a target issuing address, and the target contract identifier is used for indicating issuing of the target digital collection;
Responding to the preprocessing request, generating locking transaction data comprising a target contract identification and a target issuing address, and carrying out uplink processing on the locking transaction data;
obtaining a digital collection uplink request, wherein the digital collection uplink request comprises: the digital collection locking value, the contract identification to be verified and the issuing address to be verified, and the digital collection uplink request is sent after the successful uplink of the locking transaction data is confirmed;
and if the contract identification to be verified and the issuing address to be verified pass verification based on the digital collection locking value, issuing the digital collection indicated by the contract identification to be verified into the issuing address to be verified.
In one aspect, an embodiment of the present application provides a blockchain data processing method, including:
acquiring a target contract identification and a target release address, and determining a digital collection locking value according to the target contract identification and the target release address;
generating a preprocessing request aiming at the digital stock to be issued according to the digital stock locking value, sending the preprocessing request to a block chain node so that the block chain node responds to the preprocessing request, generating locking transaction data comprising a target contract identification and a target issuing address, and carrying out uplink processing on the locking transaction data;
After confirming that the locked transaction data is successfully uplink, generating a digital collection uplink request, wherein the digital collection uplink request comprises the following steps: digital collection locking value, contract identification to be verified, issuing address to be verified;
and sending the digital stock uplink request to the blockchain node, so that the blockchain node issues the digital stock indicated by the contract identification to be verified to the issuing address to be verified after the contract identification to be verified and the issuing address to be verified are verified based on the digital stock locking value.
In one aspect, an embodiment of the present application provides a blockchain data processing device, including:
the acquisition unit is used for acquiring a preprocessing request aiming at the digital collection to be issued, wherein the preprocessing request carries a digital collection locking value, the digital collection locking value is determined according to a target contract identifier and a target issuing address, and the target contract identifier is used for indicating issuing of the target digital collection;
the processing unit is used for responding to the preprocessing request, generating locking transaction data comprising a target contract identification and a target issuing address, and carrying out uplink processing on the locking transaction data;
the acquisition unit is further configured to acquire a digital collection uplink request, where the digital collection uplink request includes: the digital collection locking value, the contract identification to be verified and the issuing address to be verified, and the digital collection uplink request is sent after the successful uplink of the locking transaction data is confirmed;
And the processing unit is also used for issuing the digital collection indicated by the contract identification to be verified to the issuing address to be verified if the contract identification to be verified and the issuing address to be verified pass verification based on the digital collection locking value.
In one aspect, an embodiment of the present application provides a blockchain data processing device, including:
the acquisition unit is used for acquiring the target contract identification and the target release address and determining a digital collection locking value according to the target contract identification and the target release address;
the processing unit is used for generating a preprocessing request aiming at the digital collection to be issued according to the digital collection locking value, sending the preprocessing request to the blockchain node so that the blockchain node responds to the preprocessing request, generating locking transaction data comprising a target contract identification and a target issuing address, and carrying out uplink processing on the locking transaction data;
the processing unit is further configured to generate a digital collection uplink request after confirming that the locked transaction data is successfully uplink, where the digital collection uplink request includes: digital collection locking value, contract identification to be verified, issuing address to be verified;
and the sending unit is used for sending the digital collection uplink request to the blockchain node so that the blockchain node issues the digital collection indicated by the contract identification to be verified to the issuing address to be verified after the contract identification to be verified and the issuing address to be verified pass verification based on the digital collection locking value.
In one aspect, an embodiment of the present application provides a computer device, where the computer device includes a memory and a processor, and the memory stores a computer program, where the computer program when executed by the processor causes the processor to perform the above-mentioned blockchain data processing method.
In one aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program that, when read and executed by a processor of a computer device, causes the computer device to perform the above-described blockchain data processing method.
In one aspect, embodiments of the present application provide a computer program product or computer program comprising 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 executes the computer instructions to cause the computer device to perform the blockchain data processing method described above.
In the embodiment of the present application, when a digital collection is issued, a preprocessing request for the digital collection to be issued may be first obtained, where the preprocessing request carries a digital collection locking value, where the digital collection locking value is determined according to a target contract identifier and a target issue address, and the target contract identifier is used to indicate that the target digital collection is issued. Locking transaction data including the target contract identification and the target issue address may then be generated in response to the preprocessing request and the locking transaction data may be processed in a uplink manner. Obtaining a digital collection uplink request, the digital collection uplink request comprising: the digital collection locking value, the contract identification to be verified, the issue address to be verified, and the digital collection uplink request is sent after the successful uplink of the locking transaction data is confirmed. And finally, if the contract identification to be verified and the issuing address to be verified pass verification based on the digital collection locking value, issuing the digital collection indicated by the contract identification to be verified to the issuing address to be verified. Therefore, the digital collection issuing in the application needs to go through two stages, the first stage can pre-submit a preprocessing request, and the target contract identification and the target issuing address can be locked based on the preprocessing request, namely, the target digital collection indicated by the target contract identification needs to be issued by casting of the target issuing address. In the second stage, even if other nodes can monitor the concrete content of the transaction, the first stage locks the target release address with the target contract identification in advance, so that the digital collection can only be cast by the target release address, thereby avoiding the security problem caused by the monitored transaction (for example, the transaction is robbed by other nodes), and further improving the security in the release process of the digital collection.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained according to these drawings without inventive effort for the person skilled in the art.
FIG. 1a is a schematic block chain node system according to an embodiment of the present application;
FIG. 1b is a block chain architecture diagram according to one embodiment of the present application;
FIG. 2 is a schematic diagram of a data processing system according to an embodiment of the present application;
FIG. 3 is a flowchart of a blockchain data processing method according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a data acquisition scenario provided in an embodiment of the present application;
FIG. 5 is a flowchart illustrating another blockchain data processing method provided by embodiments of the present application;
FIG. 6 is an interactive flow diagram of a blockchain data processing method according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a block chain data processing apparatus according to an embodiment of the present application;
FIG. 8 is a schematic diagram of another block chain data processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application.
The embodiment of the application provides a data processing scheme, which mainly depends on an asset issuing platform of an open chain and digital collection protocol of a trust SQL (a bottom platform for providing a block chain basic service function for an upper application scene), and can be used for issuing digital collections. The general principle of this data processing scheme is as follows: when the digital collection is issued, a preprocessing request for the digital collection to be issued can be firstly obtained, the preprocessing request carries a digital collection locking value, the digital collection locking value is determined according to a target contract identifier and a target issuing address, and the target contract identifier is used for indicating the issuing of the target digital collection. Locking transaction data including the target contract identification and the target issue address may then be generated in response to the preprocessing request and the locking transaction data may be processed in a uplink manner. Obtaining a digital collection uplink request, the digital collection uplink request comprising: the digital collection locking value, the contract identification to be verified, the issue address to be verified, and the digital collection uplink request is sent after the successful uplink of the locking transaction data is confirmed. And finally, if the contract identification to be verified and the issuing address to be verified pass verification based on the digital collection locking value, issuing the digital collection indicated by the contract identification to be verified to the issuing address to be verified.
Therefore, the digital collection issuing in the application needs to go through two stages, the first stage can pre-submit a preprocessing request, and the target contract identification and the target issuing address can be locked based on the preprocessing request, namely, the target digital collection indicated by the target contract identification needs to be issued by casting of the target issuing address. In the second stage, even if other nodes can monitor the concrete content of the transaction, the first stage locks the target release address with the target contract identification in advance, so that the digital collection can only be cast by the target release address, thereby avoiding the security problem caused by the monitored transaction (for example, the transaction is robbed by other nodes), and further improving the security in the release process of the digital collection.
The data processing scheme of the present application may be combined with blockchain techniques. Next, the blockchain technology related to the data processing scheme provided in the present application is described in detail:
the blockchain system according to the embodiments of the present application may be a distributed system formed by connecting computer devices (e.g., terminal devices or servers) and a plurality of blockchain nodes (e.g., servers or terminal devices) through a network communication. The blockchain correlation technique is described in association with fig. 1 a-1 b as follows:
1. Blockchain system:
the data processing system according to the embodiments of the present application may be a distributed system (i.e., a block link point system) formed by connecting a plurality of nodes through a network communication. The related art related to blockchain node systems is described in detail below with reference to fig. 1 a:
referring to fig. 1a, fig. 1a is a schematic structural diagram of a blockchain node system according to an embodiment of the present application. The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like, and is mainly used for sorting data according to time sequence, encrypting the data into an account book, preventing the account book from being tampered and forged, and simultaneously verifying, storing and updating the data. The blockchain is essentially a de-centralized database, each node in the database stores an identical blockchain, and the blockchain network comprises a consensus node, and the consensus node is responsible for the consensus of the blockchain whole network.
The blockchain node system as shown in fig. 1a may correspond to a blockchain network that may include, but is not limited to, a blockchain network to which a federated chain, a public chain, a private chain, and the like correspond. A blockchain node system refers to a system for sharing data between blockchain nodes, and the blockchain node system may include a plurality of nodes, where the plurality of nodes may include a node 101, a node 102, a node 103, a …, and a node 10n, and the node 101, the node 102, the node 103, …, and the node 10n may be collectively referred to as blockchain nodes. It may be appreciated that the communication connection may be established between the nodes by an information connection manner, and the information connection is not limited to a specific connection manner, for example, may be directly or indirectly connected by a wired communication manner, may be directly or indirectly connected by a wireless communication manner, and may also be connected by other connection manners, which is not limited herein.
Each node (node 101, node 102, node 103, …, node 10 n) in the blockchain node system may receive input information (e.g., node 101 may receive a preprocessing request for a digital collection to be issued sent by a computer device (e.g., a terminal device or a server), or, for example, node 101 may receive a digital collection uplink request sent by a computer device (e.g., a terminal device or a server), etc.) during normal operation, and maintain shared data in the data sharing system based on the received input information. In order to ensure the information intercommunication in the data sharing system, information connection can exist between each node in the data sharing system, and the nodes can transmit information through the information connection. For example, when any node in the data sharing system receives input information, other nodes in the data sharing system acquire the input information according to a consensus algorithm, and store the input information as data in the shared data, so that the data stored on all nodes in the data sharing system are consistent.
For each node (node 101, node 102, node 103, …, node 10 n) in the blockchain node system shown in fig. 1a, there is a node identification corresponding thereto, and each node in the blockchain node system may store the node identifications of other nodes in the blockchain node system so as to subsequently broadcast the generated blocks to other nodes in the blockchain node system according to the node identifications of the other nodes. Each node can maintain a node identification list shown in the following table, and the node names and the node identifications are correspondingly stored in the node identification list.
The node identifier may be an IP (Internet Protocol, protocol of interconnection between networks) address, and any other information that can be used to identify the node, and the IP address is only illustrated in table 1.
TABLE 1 node identification list
Node name Node identification
Node 1 000.000.000.000
Node 2 111.111.111.111
Node N xx.xx.xx.xx
2. Structure of the blockchain:
each node in the blockchain node system stores one and the same blockchain. The blockchain is composed of a plurality of blocks, referring to fig. 1b, fig. 1b is a schematic structural diagram of a blockchain according to an embodiment of the present application. As shown in fig. 1b, the blockchain is composed of a plurality of blocks, the starting block comprises a block head and a block body, the block head stores an input information characteristic value, a version number, a time stamp and a difficulty value, and the block body stores input information; the next block of the starting block takes the starting block as a father block, the next block also comprises a block head and a block body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the father block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain are associated with the block data stored in the father block, and the safety of the input information in the block is ensured.
It will be appreciated that a Block (Block) is a packet of data carrying transaction data over a blockchain network, and is a data structure that is time stamped and hashed with the previous Block, the Block being authenticated and the transactions in the Block being determined by the network's consensus mechanism. In one possible implementation, the present application may place the process of issuing digital collections on a blockchain. For example, the preprocessing request, the digital collection locking value, the digital collection uplink request, the contract identification to be verified, the issue address to be verified and the like are uploaded into the blockchain of the blockchain network for storage, and the issue of the digital collection can be completed after the consensus in the blockchain network, so that the security and the reliability of the process of issuing the digital collection are ensured.
It should be noted that, in the following specific embodiments of the present application, related data such as object information (for example, identity information of a target object) needs to be obtained for permission or consent of the object when the above embodiments of the present application are applied to specific products or technologies, and the collection, use and processing of the related data need to comply with related laws and regulations and standards of related countries and regions.
Next, an architecture diagram of the data processing system according to the present application will be described. With reference to FIG. 2, FIG. 2 is a schematic diagram illustrating an architecture of a data processing system according to an embodiment of the present application. As shown in fig. 2, the system architecture diagram may at least include: a blockchain system, and a computer device 202. The blockchain system may specifically be a federated blockchain that may include at least one blockchain node 201 therein. It is to be appreciated that the number of blockchain nodes 201 in the blockchain system is for illustration only and the present application is not specifically limited to the number of blockchain nodes 201 in the blockchain system. In addition, the blockchain nodes 201 in the blockchain system are directly or indirectly connected to the computer device 202 through wired or wireless communication, which is not limited herein.
It should be noted that, the computer device 202 may be a blockchain node inside the blockchain system, or may be a device outside the blockchain system, which is not specifically limited in comparison in the embodiment of the present application.
The blockchain node 201 and the computer device 202 may be independent physical servers, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content distribution networks), basic cloud computing services such as big data and artificial intelligent platforms, and the like.
Blockchain node 201, computer device 202 may also be a device including, but not limited to: a mobile phone, a tablet computer, a notebook computer, a palm computer, a mobile internet device (MID, mobile internet device), an intelligent voice interaction device, an on-board terminal, a roadside device, an aircraft, a wearable device, an intelligent home appliance, or a wearable device with a data processing function such as a smart watch, a smart bracelet, a pedometer, or the like.
In one possible implementation, the above-mentioned data processing scheme is further illustrated by way of example with respect to blockchain node 201 and computer device 202. Specifically, the blockchain node 201 may obtain a preprocessing request sent by the computer device 202 for a digital collection to be issued, where the preprocessing request carries a digital collection locking value, where the digital collection locking value is determined according to a target contract identifier and a target issue address, and the target contract identifier is used to indicate issuing of the target digital collection; the blockchain node 201 responds to the preprocessing request, generates locking transaction data comprising a target contract identification and a target issuing address, and performs uplink processing on the locking transaction data; blockchain node 201 obtains a digital collection uplink request that includes: the digital collection locking value, the contract identification to be verified, the issue address to be verified, the digital collection uplink request being issued by the computer device 202 after confirming that the locking transaction data is successfully uplink; if the blockchain node 201 verifies that the contract identification to be verified and the issue address to be verified pass based on the digital collection locking value, issuing the digital collection indicated by the contract identification to be verified into the issue address to be verified.
In another possible implementation, the computer device 202 obtains a target contract identification, a target issue address, and determines a digital collection locking value based on the target contract identification, the target issue address; the computer equipment 202 generates a preprocessing request for the digital collection to be issued according to the digital collection locking value, and sends the preprocessing request to the blockchain node 201, so that the blockchain node 201 responds to the preprocessing request, generates locking transaction data comprising a target contract identification and a target issuing address, and performs uplink processing on the locking transaction data; after confirming that the locked transaction data is successfully uplink, computer device 202 generates a digital collection uplink request comprising: digital collection locking value, contract identification to be verified, issuing address to be verified; the computer device 202 sends a digital collection uplink request to the blockchain node 201, so that the blockchain node 201 issues the digital collection indicated by the contract identification to be verified into the issue address to be verified after the contract identification to be verified and the issue address to be verified are verified based on the digital collection locking value.
It can be understood that, as the implementation object of the present application can be known, along with the evolution of the system architecture and the appearance of a new service scenario, the technical solution provided by the embodiment of the present application is applicable to similar technical problems.
Based on the above description of the data processing scheme and the data processing system, the embodiment of the application provides a blockchain data processing method. Referring to fig. 3, fig. 3 is a flowchart of a blockchain data processing method provided in an embodiment of the present application, where the blockchain data processing method may be executed by a blockchain node (e.g., a terminal device or a server) in the data processing system mentioned in fig. 2. The blockchain data processing method may include the following steps S301 to S304:
s301, acquiring a preprocessing request aiming at a digital collection to be issued, wherein the preprocessing request carries a digital collection locking value, the digital collection locking value is determined according to a target contract identifier and a target issuing address, and the target contract identifier is used for indicating issuing of the target digital collection.
In this application, a digital collection is a rights, equity credential for a virtual digital commodity, and may include, but is not limited to: digital drawings, pictures, music, video, 3D models, and the like. Digital collections may be issued based on digital collection protocols.
In one possible implementation manner, before the block chain node obtains the preprocessing request for the digital collection to be issued, the block chain node may also obtain the object identity identifier of the target object sent by the computer device, where the object identity identifier is generated after the real name authentication server receives the identity information of the target object and successfully performs real name authentication on the identity information of the target object. The computer device then associates the object identification with a target issue address corresponding to the target object. Wherein the real name authentication comprises at least one of the following: and verifying the validity of the identity information and verifying the security of the identity information.
In a possible implementation manner, the block link point obtains the object identity of the target object sent by the computer device, and may specifically include the following procedures: the target object can perform real-name authentication by logging in a real-name authentication applet (wherein the applet refers to an application program which is free from installation), and then the real-name authentication applet can acquire identity information recorded by the target object in the real-name authentication applet. The real-name authentication applet may then send the IDentity information of the target object to a real-name authentication server, which may be, for example, a Decentralised IDentity (DID) server. After receiving the identity information submitted by the target object, the DID server may invoke a third party platform (e.g., an operator) interface to perform real-name authentication on the identity information of the target object, and if the real-name authentication is successful, generate an object identity (DID identity) of the target object, and send the real-name authentication success notification message to the computer device, so that the computer device sends the DID identity of the target object to the blockchain node.
Specifically, real-name information of the target object may be obtained by invoking a third party platform (e.g., operator) interface. Then, real-name authentication can be performed on the identity information of the target object based on the acquired real-name information, which specifically includes: comparing each item of specific information in the real-name information with each item of specific information in the identity information respectively, if the specific information is the same as the specific information in the identity information, determining that the real-name authentication of the target object is successful, and generating a real-name authentication success notification message; if any of the items are different, determining that the authentication of the real name of the target object fails.
Please refer to fig. 4, fig. 4 is a schematic diagram of a data acquisition scenario provided in the embodiment of the present application. As shown in fig. 4, the real-name authentication server may send an authorization request to the computer device used by the target object before acquiring the identity information of the target object. Then, after the computer device used by the target object receives the authorization request, an authorization interface (e.g., interface S400 shown in fig. 4) may be displayed in the computer device. Specifically, if the target object clicks the validation control 401 in the authorization interface S400, the real-name authentication server is allowed to acquire identity information on behalf of the target object. In this way, when the real-name verification server needs to acquire the identity information of the target object, authorization needs to be requested to the target object, and after the target object is successfully authorized, the party can acquire the corresponding identity information, so that the privacy of the identity information of the target object can be ensured.
In one possible implementation manner, the computer device associates the object identity with a target issue address corresponding to the target object, and specifically includes the following procedures: firstly, receiving an identity registration request sent by a real-name verification server, wherein the identity registration request carries an object identity of a target object; then, responding to the identity registration request, obtaining a blockchain address of the target object, and taking the blockchain address as a target issuing address; and associating the object identity with a target issuing address corresponding to the target object. The blockchain address may be an account address in a blockchain determined based on a public key of the target object, and specifically may be determined by calculating a hash value of the public key of the target object through a digest algorithm (for example, SHA-256 algorithm, SHA-512 algorithm, etc.). It will be appreciated that the blockchain address of the target object is unique across the blockchain.
In this way, in the process of issuing the digital collection, real-name verification is performed on the identity information of the target object in advance, so that the reliability and the safety in the process of issuing the digital collection can be improved.
In one possible implementation, the digital collection lock value may be determined by the computer device based on the target contract identification, the target issue address, and then the computer device generates a preprocessing request based on the digital collection lock value and sends the preprocessing request to the computer device. In another possible implementation manner, the preprocessing request carries the target contract identifier and the target release address, and after the computer equipment sends the preprocessing request comprising the target contract identifier and the target release address to the computer equipment, the computer equipment determines to obtain the digital collection locking value according to the target contract identifier and the target release address. In order to ensure cheating of computer equipment, the embodiment of the application takes the example that the computer equipment generates a digital collection locking value as an example to correspondingly explain.
Specifically, the digital collection locking value is obtained by performing hash operation on the target random value, the description metadata, the target contract identification and the target release address by the computer equipment based on a hash algorithm. The target random value may be a random value obtained according to a random algorithm, for example, the target random value may be a salt value. The description metaData is used to describe attribute information of the digital collection to be released, for example, the digital collection to be released is a picture, and the attribute information corresponding to the picture may include, but is not limited to: URL (Uniform Resource Locator) links of pictures, detailed parameters of pictures (e.g. exposure, brightness, saturation), etc. The target contract identifier is determined based on a target release address, and is generated by a specific rule such as, for example, a target contract identifier tokenid= (target release address+digital stock sequential encoding). For example, the digital collection lock value may be expressed as: hash (salt, token id, metaData, address).
S302, locking transaction data comprising a target contract identification and a target issuing address is generated in response to the preprocessing request, and uplink processing is carried out on the locking transaction data.
In one possible implementation, the preprocessing request carries an identification of the computer device. The computer device may first verify the identity of the computer device in response to the preprocessing request, and if the verification passes, generate locking transaction data according to the target contract identity and the target issue address. In this way, it is possible to verify whether the computer device is a malicious node, thereby ensuring reliability and security in the data processing process.
In one possible implementation, the computer device performs the uplink processing on the locking transaction data, and may include the following procedures: performing verification processing on the locking transaction data to obtain a verification result; if the verification result is that the verification is passed, a locking success notification message is generated, and the locking success notification message is returned to the computer equipment. Wherein the lock success notification message is used for indicating that the target digital collection is issued to the target issue address. Specifically, the computer device performs verification processing on the locking transaction data, which may specifically include: first, the locking transaction data is sent to each blockchain node in the blockchain network, so that each blockchain node performs consensus processing on the locking transaction data respectively. And then, receiving the consensus result returned by each blockchain node, and determining the verification result of the locking transaction data according to the received consensus result. The verification result can include that verification is passed and verification is not passed, and if the verification is determined to be passed, a locking success notification message is generated; and if the verification is determined not to pass, generating a verification failure notification message.
S303, acquiring a digital collection uplink request, wherein the digital collection uplink request comprises the following steps: the digital collection locking value, the contract identification to be verified, the issue address to be verified, and the digital collection uplink request are sent after the successful uplink of the locking transaction data is confirmed.
It will be appreciated that if the computer device receives a lock success notification message sent by the computer device, the computer device may confirm that the lock transaction data has been successfully uplink. The computer device may then generate a digital collection upload request and send the digital collection upload request to the computer device.
In one possible implementation, the digital collection uplink request carries an identification of the computer device. The computer device responds to the digital collection uplink request, firstly, the identification of the computer device can be checked, and if the verification is passed, the step of verifying the contract identification to be verified and the issuing address to be verified based on the digital collection locking value is triggered to be executed. In this way, it is possible to verify whether the computer device is a malicious node, thereby ensuring reliability and security in the data processing process.
S304, if the contract identification to be verified and the issuing address to be verified pass verification based on the digital collection locking value, the digital collection indicated by the contract identification to be verified is issued to the issuing address to be verified.
In one possible implementation, the digital collection upload request may also include description metadata and a target random value for the digital collection to be released. The digital collection uplink request mentioned in the embodiment of the present application includes: the digital collection locking value, the contract identification to be verified, the issuing address to be verified, the description metadata of the digital collection to be issued and the target random value.
Specifically, the computer device verifies the contract identifier to be verified and the issue address to be verified based on the digital collection locking value, and specifically may include: firstly, carrying out hash operation processing on a contract identifier to be verified, an issuing address to be verified, description metadata and a target random value based on a hash algorithm to obtain a digital collection verification value. And then comparing the digital collection locking value with the digital collection verification value, and if the comparison is successful, determining that the contract identification to be verified and the issuing address to be verified pass the verification.
For example, assume that the contract identification to be verified is represented as tokenId ', the issue address to be verified is represented as address', and the digital stock lock value is represented as: hash (salt, token id, metaData, address). Then, hash operation is performed on the token id ', address', metaData, and salt based on the hash algorithm, and the obtained digital stock verification value is expressed as: hash (token, token id ', metaData, address'). If hash (salt, token id, metaData, address) =hash (salt, token id ', metaData, address'), it is determined that the contract identification to be verified and the issue address to be verified pass verification.
In one possible implementation, after determining that the contract identification to be verified, the issue address to be verified, passes verification, the computer device may also generate an issue success notification message generated after issuing the target digital collection to the issue address to be verified. Finally, the computer device may return the issue success notification message to the computer device to cause the computer device to output the target digital collection, e.g., the computer device may invoke a related applet to present the target digital collection.
In the embodiment of the present application, when a digital collection is issued, a preprocessing request for the digital collection to be issued may be first obtained, where the preprocessing request carries a digital collection locking value, where the digital collection locking value is determined according to a target contract identifier and a target issue address, and the target contract identifier is used to indicate that the target digital collection is issued. Locking transaction data including the target contract identification and the target issue address may then be generated in response to the preprocessing request and the locking transaction data may be processed in a uplink manner. Obtaining a digital collection uplink request, the digital collection uplink request comprising: the digital collection locking value, the contract identification to be verified, the issue address to be verified, and the digital collection uplink request is sent after the successful uplink of the locking transaction data is confirmed. And finally, if the contract identification to be verified and the issuing address to be verified pass verification based on the digital collection locking value, issuing the digital collection indicated by the contract identification to be verified to the issuing address to be verified. Therefore, the digital collection issuing in the application needs to go through two stages, the first stage can pre-submit a preprocessing request, and the target contract identification and the target issuing address can be locked based on the preprocessing request, namely, the target digital collection indicated by the target contract identification needs to be issued by casting of the target issuing address. In the second stage, even if other nodes can monitor the concrete content of the transaction, the first stage locks the target release address with the target contract identification in advance, so that the digital collection can only be cast by the target release address, thereby avoiding the security problem caused by the monitored transaction (for example, the transaction is robbed by other nodes), and further improving the security in the release process of the digital collection.
Referring to fig. 5, fig. 5 is a flowchart of another blockchain data processing method according to an embodiment of the present application, where the blockchain data processing method may be executed by a computer device in the data processing system mentioned in fig. 2. The blockchain data processing method may include the following steps S501 to S504:
s501, acquiring a target contract identification and a target release address, and determining a digital collection locking value according to the target contract identification and the target release address.
In one possible implementation manner, before the computer device obtains the target contract identifier and the target issuing address, an identity verification request submitted by the target object may also be obtained, where the identity verification request carries identity information of the target object. Then, the computer device may send the authentication request to the real-name authentication server, so that the real-name authentication server performs real-name authentication on the identity information of the target object, and then generates the object identity of the target object. Finally, the computer device may send the object identity of the target object to the blockchain node to cause the blockchain node to associate the object identity with the target issue address generated for the target object.
Specifically, the specific process of real-name authentication for the identity information of the target object by the real-name authentication server may refer to the related steps in the embodiment of fig. 3, which is not described herein in detail. And when the real-name verification server needs to acquire the identity information of the target object, authorization needs to be requested to the target object, and after the target object is successfully authorized, the party can acquire the corresponding identity information, so that the privacy of the identity information of the target object can be ensured.
In one possible implementation, the computer device determines the digital collection locking value according to the target contract identification and the target release address, and may specifically include: firstly, acquiring a target random value and description metadata of a digital collection to be issued, wherein the description metadata is used for describing attribute information of the digital collection to be issued; and carrying out hash operation processing on the target random value, the description metaData (metaData), the target contract identifier (token Id) and the target issuing address (address) based on a hash algorithm to obtain a digital collection locking value. Wherein the target random value may be a random value (e.g., salt value) generated according to a random algorithm, and the generated digital stock locking value may be expressed as: hash (salt, token id, metaData, address).
S502, generating a preprocessing request aiming at the digital collection to be issued according to the digital collection locking value, sending the preprocessing request to the blockchain node so that the blockchain node responds to the preprocessing request, generating locking transaction data comprising a target contract identification and a target issuing address, and carrying out uplink processing on the locking transaction data.
In one possible implementation, the computer device may generate a pre-processing request based on the identity of the computer device and the digital collection lock value, and may then send the pre-processing request to the blockchain node. It should be noted that, the specific execution process of generating the locking transaction data including the target contract identifier and the target issue address and performing the uplink processing on the locking transaction data by the block link point in response to the preprocessing request may refer to the related steps involved in the embodiment of fig. 3, which is not described herein again.
S503, after confirming that the locking transaction data is successfully uplink, generating a digital collection uplink request, wherein the digital collection uplink request comprises: digital collection locking value, contract identification to be verified, and issue address to be verified.
Specifically, the computer device may receive a lock success notification message sent by the blockchain node, where the lock success notification message is generated after the blockchain node verifies that the locked transaction data is passed, and the lock success notification message is used to instruct the blockchain node to send the target digital stock into the target issue address. The computer device then generates a digital collection uplink request in response to the lock success notification message.
In one possible implementation, the digital collection upload request may include: digital stock locking value, contract identification to be verified, issue address to be verified, target random value, and description metadata of digital stock to be issued. Of course, the digital collection uplink request may also include an identification of the computer device, which may be used to verify the identity of the computer device, thereby ensuring the security and reliability of the computer device.
In one possible implementation manner, a locking success notification message sent by the blockchain node is received, wherein the locking success notification message is generated after the blockchain node verifies the locking transaction data, and the locking success notification message is used for indicating the blockchain node to issue the target digital collection into the target issue address; and responding to the locking success notification message, and generating a digital collection uplink request.
S504, sending the digital collection uplink request to the blockchain node, so that the blockchain node issues the digital collection indicated by the contract identification to be verified to the issuing address to be verified after the contract identification to be verified and the issuing address to be verified are verified based on the digital collection locking value.
It should be noted that, after the contract identifier to be verified and the issue address to be verified are verified based on the digital collection locking value, the blockchain node issues the digital collection indicated by the contract identifier to be verified to the issue address to be verified, and the specific execution steps may refer to the related execution steps in the embodiment of fig. 3, which is not described herein.
In the embodiment of the application, the issuing of the digital collection needs to go through two stages. First, for the first phase, the issuer of the digital collection (the computer device) need only submit one digital collection lock value to the blockchain: a hash (hash, token id, metaData, address) cannot acquire a digital collection actually issued by an issuer through the digital collection lock value, and thus cannot perform a first-aid running operation of the digital collection. Second, for the second phase, although the issuer submitted the detailed data of the collection issuance (including random numbers such as salt values) in the transaction (digital collection uplink request) in the second phase. The attacker can acquire the values by monitoring the second-stage transaction, but the issuing address where the digital collection can be issued is already locked in the first-stage transaction, i.e. the digital collection to be issued can only be issued to the designated issuing address, and the attack value cannot be taken in the first-stage transaction even though the attack value acquires a random value, so that the digital collection is issued. In this way, the reliability and the safety in the process of issuing the digital collection are ensured.
The description of the specific flow of the blockchain data processing method is presented in connection with fig. 3 and 5. Next, referring to fig. 6, fig. 6 is an interactive flowchart of a blockchain data processing method according to an embodiment of the present application. The blockchain data processing method can be jointly executed by a blockchain node, a real-name verification server and computer equipment. The interactive flow of the blockchain data processing method may include the following steps S1 to S13:
s1, the target object logs in the computer equipment to carry out real-name authentication.
In one possible implementation, an applet may be run in the computer device, where the applet refers to an installation-free application. The applet has an identity verification function, and the target object can verify the real name of the identity information through the applet.
S2, the real-name verification server acquires the identity information of the target object.
S3, the real-name authentication server performs real-name authentication on the identity information of the target object.
In one possible implementation manner, the real-name authentication server performs real-name authentication on the identity information of the target object, which specifically may include: and verifying the validity of the identity information and verifying the security of the identity information. If the identity information real-name authentication is successful, an object identity can be generated for the target object.
S4, the real-name verification server sends an identity registration request.
In specific implementation, the blockchain node may receive an identifier registration request sent by the real-name verification server, where the identifier registration request carries an object identifier of the target object. The block chain link point responds to the identity registration request to acquire a block chain address of a target object, and takes the block chain address as a target issuing address; an off-center identity contract may then be invoked to associate the object identity with a target issue address corresponding to the target object.
S5, the blockchain node sends the object identity to the computer equipment.
If the identity registration is successful, the blockchain node may send the object identity to the computer device.
S6, the block chain node receives a preprocessing request sent by the computer equipment.
In specific implementation, the blockchain node acquires a preprocessing request which is sent by the computer equipment and aims at the digital collection to be issued, wherein the preprocessing request carries a digital collection locking value, the digital collection locking value is determined according to a target contract identifier and a target issuing address, and the target contract identifier is used for indicating issuing of the target digital collection.
The step of determining the digital collection locking value according to the target contract identifier and the target release address by the computer device may be executed by the computer device or may be executed by the block link point, for ensuring security and reliability, in this embodiment of the present application, the computer device is described by taking the computer device as an example, where the step of determining the digital collection locking value by the computer device according to the target contract identifier and the target release address may refer to the relevant execution step in the above embodiment in detail, and this embodiment of the present application is not repeated herein.
Specifically, the digital collection locking value is obtained by performing hash operation on the target random value, the description metadata, the target contract identification and the target release address by the computer equipment based on a hash algorithm; the description metadata is used for describing attribute information of the digital collection to be released, and the target contract identification is determined according to the target release address.
S7, the block chain link point carries out uplink processing on the locking transaction data.
In particular implementations, the blockchain node may generate locking transaction data including the target contract identification and the target issue address in response to the preprocessing request, and perform a uplink processing on the locking transaction data. Specifically, the blockchain node performs uplink processing on the locked transaction data, which may include: and carrying out verification processing on the locking transaction data to obtain a verification result.
S8, calling the digital collection contract to generate a locking success notification message.
In one possible implementation, if the verification result is that the verification is passed, the blockchain node may invoke the digital collection contract to generate the lock success notification message. Wherein the lock success notification message is used for indicating that the target digital collection is issued to the target issue address.
S9, the block chain link point returns a locking success notification message to the computer equipment.
S10, the block chain link point acquires a digital collection uplink request.
Wherein the digital collection uplink request includes: the digital collection locking value, the contract identification to be verified, the issue address to be verified, and the digital collection uplink request is sent by the computer device after the locking transaction data uplink is confirmed to be successful. Specifically, after receiving the lock success notification message returned by the blockchain node, the computer device can confirm that the lock transaction data is successfully uplink.
In one possible implementation manner, the digital collection uplink request may further include an identifier of the computer device, where the identifier of the computer device may be used to verify the identity of the computer device by using the block link point, so as to ensure reliability and security of the issuing process of the digital collection.
S11, the block chain link point verifies the digital collection uplink request.
In one possible implementation, the digital collection uplink request further includes description metadata and a target random value for the digital collection to be issued; the blockchain node can call the digital collection contract to verify the digital collection uplink request.
Specifically, the specific process of the blockchain node verifying the digital collection uplink request is as follows: carrying out hash operation processing on the contract identification to be verified, the issuing address to be verified, the description metadata and the target random value based on a hash algorithm to obtain a digital collection verification value; and comparing the digital collection locking value with the digital collection verification value.
S12, the blockchain node generates a release success notification message.
If the comparison of the digital collection locking value and the digital collection verification value is successful, determining that the contract identification to be verified and the release address to be verified pass verification, and calling the digital collection contract to generate a release success notification message.
S13, the block chain returns a release success notification message to the computer equipment.
In the embodiment of the application, the issuing of the digital collection needs to go through two stages. First, for the first phase, the issuer of the digital collection (the computer device) need only submit one digital collection lock value to the blockchain: a hash (hash, token id, metaData, address) cannot acquire a digital collection actually issued by an issuer through the digital collection lock value, and thus cannot perform a first-aid running operation of the digital collection. Second, for the second phase, although the issuer submitted the detailed data of the collection issuance (including random numbers such as salt values) in the transaction (digital collection uplink request) in the second phase. The attacker can acquire the values by monitoring the second-stage transaction, but the issuing address where the digital collection can be issued is already locked in the first-stage transaction, i.e. the digital collection to be issued can only be issued to the designated issuing address, and the attack value cannot be taken in the first-stage transaction even though the attack value acquires a random value, so that the digital collection is issued. In this way, the reliability and the safety in the process of issuing the digital collection are ensured.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a blockchain data processing device according to an embodiment of the present application. The blockchain data processing device 700 is applicable to the computer apparatus (blockchain node) in the foregoing embodiments. The blockchain data processing device 700 may be a computer program (including program code) running in a computer apparatus, for example, the blockchain data processing device 700 is an application software; the blockchain data processing device 700 may be used to perform the corresponding steps in the blockchain data processing methods provided by embodiments of the present application. The blockchain data processing device 700 may include:
an obtaining unit 701, configured to obtain a preprocessing request for a digital collection to be issued, where the preprocessing request carries a digital collection locking value, and the digital collection locking value is determined according to a target contract identifier and a target issue address, where the target contract identifier is used to indicate issuing of a target digital collection;
a processing unit 702, configured to generate locking transaction data including a target contract identifier and a target issue address in response to the preprocessing request, and perform uplink processing on the locking transaction data;
the obtaining unit 701 is further configured to obtain a digital collection uplink request, where the digital collection uplink request includes: the digital collection locking value, the contract identification to be verified and the issuing address to be verified, and the digital collection uplink request is sent after the successful uplink of the locking transaction data is confirmed;
The processing unit 702 is further configured to issue the digital collection indicated by the contract identifier to be verified into the issue address to be verified if the contract identifier to be verified and the issue address to be verified pass verification based on the digital collection lock value.
In one possible implementation, before the obtaining unit 701 obtains the preprocessing request for the digital collection to be issued, the processing unit 702 is further configured to:
acquiring an object identity of a target object sent by computer equipment, wherein the object identity is generated after the real name authentication server successfully carries out real name authentication on the identity information of the target object after receiving the identity information of the target object;
associating the object identity with a target issuing address corresponding to the target object;
wherein the real name authentication comprises at least one of the following: and verifying the validity of the identity information and verifying the security of the identity information.
In one possible implementation, the processing unit 702 associates the object identity with a target issue address corresponding to the target object, for performing the following operations:
receiving an identity registration request sent by a real-name verification server, wherein the identity registration request carries an object identity of a target object;
Responding to the identity registration request, obtaining a blockchain address of a target object, and taking the blockchain address as a target issuing address;
and associating the object identity with a target issuing address corresponding to the target object.
In one possible implementation, the processing unit 702 performs a chaining process on the locked transaction data for performing the following operations:
performing verification processing on the locking transaction data to obtain a verification result;
if the verification result is that the verification is passed, a locking success notification message is generated, and the locking success notification message is returned to the computer equipment;
wherein the lock success notification message is used for indicating that the target digital collection is issued to the target issue address.
In one possible implementation manner, the digital collection locking value is obtained by performing hash operation on the target random value, the description metadata, the target contract identification and the target release address by the computer equipment based on a hash algorithm;
the description metadata is used for describing attribute information of the digital collection to be released, and the target contract identification is determined according to the target release address.
In one possible implementation, the digital collection uplink request further includes description metadata and a target random value for the digital collection to be issued; the processing unit 702 is further configured to perform the following operations:
Carrying out hash operation processing on the contract identification to be verified, the issuing address to be verified, the description metadata and the target random value based on a hash algorithm to obtain a digital collection verification value;
and comparing the digital collection locking value with the digital collection verification value, and if the comparison is successful, determining that the contract identification to be verified and the issuing address to be verified pass the verification.
In one possible implementation, the processing unit 702 is further configured to, after determining that the contract identification to be verified, the issue address to be verified, passes verification, perform the following operations:
generating a release success notification message, wherein the release success notification message is generated after a target digital collection is released to a release address to be verified;
and returning the release success notification message to the computer equipment so that the computer equipment outputs the target digital collection.
In the embodiment of the present application, when a digital collection is issued, a preprocessing request for the digital collection to be issued may be first obtained, where the preprocessing request carries a digital collection locking value, where the digital collection locking value is determined according to a target contract identifier and a target issue address, and the target contract identifier is used to indicate that the target digital collection is issued. Locking transaction data including the target contract identification and the target issue address may then be generated in response to the preprocessing request and the locking transaction data may be processed in a uplink manner. Obtaining a digital collection uplink request, the digital collection uplink request comprising: the digital collection locking value, the contract identification to be verified, the issue address to be verified, and the digital collection uplink request is sent after the successful uplink of the locking transaction data is confirmed. And finally, if the contract identification to be verified and the issuing address to be verified pass verification based on the digital collection locking value, issuing the digital collection indicated by the contract identification to be verified to the issuing address to be verified. Therefore, the digital collection issuing in the application needs to go through two stages, the first stage can pre-submit a preprocessing request, and the target contract identification and the target issuing address can be locked based on the preprocessing request, namely, the target digital collection indicated by the target contract identification needs to be issued by casting of the target issuing address. In the second stage, even if other nodes can monitor the concrete content of the transaction, the first stage locks the target release address with the target contract identification in advance, so that the digital collection can only be cast by the target release address, thereby avoiding the security problem caused by the monitored transaction (for example, the transaction is robbed by other nodes), and further improving the security in the release process of the digital collection.
Referring to fig. 8, fig. 8 is a schematic diagram of a block chain data processing apparatus according to another embodiment of the present application. The blockchain data processing apparatus 800 may be applied to the computer device (terminal device or server) in the foregoing embodiments. The blockchain data processing device 800 may be a computer program (including program code) running in a computer apparatus, for example, the blockchain data processing device 800 is an application software; the blockchain data processing device 800 may be used to perform the corresponding steps in the blockchain data processing methods provided by embodiments of the present application. The blockchain data processing device 800 may include:
an obtaining unit 801, configured to obtain a target contract identifier and a target release address, and determine a digital collection locking value according to the target contract identifier and the target release address;
a processing unit 802, configured to generate a preprocessing request for a digital collection to be issued according to the digital collection locking value, and send the preprocessing request to a blockchain node, so that the blockchain node responds to the preprocessing request, generate locking transaction data including a target contract identifier and a target issue address, and perform uplink processing on the locking transaction data;
The processing unit 802 is further configured to generate a digital collection uplink request after confirming that the locked transaction data is successfully uplink, where the digital collection uplink request includes: digital collection locking value, contract identification to be verified, issuing address to be verified;
and the sending unit 803 is configured to send a digital collection uplink request to the blockchain node, so that the blockchain node issues the digital collection indicated by the contract identifier to be verified to the issue address to be verified after the contract identifier to be verified and the issue address to be verified are verified based on the digital collection locking value.
In one possible implementation, before the obtaining unit 801 obtains the target contract identifier and the target issue address, the processing unit 802 is further configured to:
acquiring an identity verification request submitted by a target object, wherein the identity verification request carries identity information of the target object;
the identity verification request is sent to a real-name verification server, so that the real-name verification server successfully carries out real-name authentication on the identity information of the target object and then generates an object identity of the target object;
and sending the object identity of the target object to the blockchain node so that the blockchain node associates the object identity with the target issuing address generated for the target object.
In one possible implementation, the processing unit 802 determines a digital collection locking value according to the target contract identification and the target issue address, for performing the following operations:
acquiring a target random value and description metadata of the digital collection to be issued, wherein the description metadata is used for describing attribute information of the digital collection to be issued;
and carrying out hash operation processing on the target random value, the description metadata, the target contract identification and the target release address based on a hash algorithm to obtain a digital collection locking value.
In one possible implementation, processing unit 802 generates a digital collection uplink request for performing the following operations:
receiving a locking success notification message sent by the block chain node, wherein the locking success notification message is generated after the block chain node verifies the locking transaction data, and is used for indicating the block chain node to issue the target digital collection to the target issuing address;
and responding to the locking success notification message, and generating a digital collection uplink request.
In the embodiment of the application, the issuing of the digital collection needs to go through two stages. First, for the first stage, the issuer (computer device) of the digital collection only needs to submit a digital collection lock value to the blockchain, and an attacker cannot acquire the digital collection actually issued by the issuer through the digital collection lock value, so that the first-run operation of the digital collection cannot be performed. Second, for the second phase, although the issuer submitted the detailed data of the collection issuance (including random numbers such as salt values) in the transaction (digital collection uplink request) in the second phase. The attacker can acquire the values by monitoring the second-stage transaction, but the issuing address where the digital collection can be issued is already locked in the first-stage transaction, i.e. the digital collection to be issued can only be issued to the designated issuing address, and the attack value cannot be taken in the first-stage transaction even though the attack value acquires a random value, so that the digital collection is issued. In this way, the reliability and the safety in the process of issuing the digital collection are ensured.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer device 900 is configured to perform the steps performed by the block chain node and the computer device in the foregoing method embodiment, where the computer device 900 includes: one or more processors 910; one or more input devices 920, one or more output devices 930, and a memory 940. The processor 910, the input device 920, the output device 930, and the memory 940 are connected by a bus 950. Memory 940 is configured to store a computer program comprising program instructions, and processor 910 is configured to invoke the program instructions stored in memory 940 to perform the following operations:
acquiring a preprocessing request aiming at a digital collection to be issued, wherein the preprocessing request carries a digital collection locking value, the digital collection locking value is determined according to a target contract identifier and a target issuing address, and the target contract identifier is used for indicating issuing of the target digital collection;
responding to the preprocessing request, generating locking transaction data comprising a target contract identification and a target issuing address, and carrying out uplink processing on the locking transaction data;
obtaining a digital collection uplink request, wherein the digital collection uplink request comprises: the digital collection locking value, the contract identification to be verified and the issuing address to be verified, and the digital collection uplink request is sent after the successful uplink of the locking transaction data is confirmed;
And if the contract identification to be verified and the issuing address to be verified pass verification based on the digital collection locking value, issuing the digital collection indicated by the contract identification to be verified into the issuing address to be verified.
In one possible implementation, before obtaining the preprocessing request for the digital collection to be issued, the processor 910 is further configured to:
acquiring an object identity of a target object sent by computer equipment, wherein the object identity is generated after the real name authentication server successfully carries out real name authentication on the identity information of the target object after receiving the identity information of the target object;
associating the object identity with a target issuing address corresponding to the target object;
wherein the real name authentication comprises at least one of the following: and verifying the validity of the identity information and verifying the security of the identity information.
In one possible implementation, the processor 910 associates the object id with a target issue address corresponding to the target object, for performing the following operations:
receiving an identity registration request sent by a real-name verification server, wherein the identity registration request carries an object identity of a target object;
Responding to the identity registration request, obtaining a blockchain address of a target object, and taking the blockchain address as a target issuing address;
and associating the object identity with a target issuing address corresponding to the target object.
In one possible implementation, the processor 910 performs a chaining process on the locked transaction data for performing the following operations:
performing verification processing on the locking transaction data to obtain a verification result;
if the verification result is that the verification is passed, a locking success notification message is generated, and the locking success notification message is returned to the computer equipment;
wherein the lock success notification message is used for indicating that the target digital collection is issued to the target issue address.
In one possible implementation manner, the digital collection locking value is obtained by performing hash operation on the target random value, the description metadata, the target contract identification and the target release address by the computer equipment based on a hash algorithm;
the description metadata is used for describing attribute information of the digital collection to be released, and the target contract identification is determined according to the target release address.
In one possible implementation, the digital collection uplink request further includes description metadata and a target random value for the digital collection to be issued; the processor 910 is further configured to perform the following operations:
Carrying out hash operation processing on the contract identification to be verified, the issuing address to be verified, the description metadata and the target random value based on a hash algorithm to obtain a digital collection verification value;
and comparing the digital collection locking value with the digital collection verification value, and if the comparison is successful, determining that the contract identification to be verified and the issuing address to be verified pass the verification.
In one possible implementation, the processor 910 is further configured to, after determining that the contract identification to be verified, the issue address to be verified, passes verification, perform the following operations:
generating a release success notification message, wherein the release success notification message is generated after a target digital collection is released to a release address to be verified;
and returning the release success notification message to the computer equipment so that the computer equipment outputs the target digital collection.
In one possible implementation, the processor 910 is configured to call the program instructions stored in the memory 940, and further configured to perform the following operations:
acquiring a target contract identification and a target release address, and determining a digital collection locking value according to the target contract identification and the target release address;
generating a preprocessing request aiming at the digital stock to be issued according to the digital stock locking value, sending the preprocessing request to a block chain node so that the block chain node responds to the preprocessing request, generating locking transaction data comprising a target contract identification and a target issuing address, and carrying out uplink processing on the locking transaction data;
After confirming that the locked transaction data is successfully uplink, generating a digital collection uplink request, wherein the digital collection uplink request comprises the following steps: digital collection locking value, contract identification to be verified, issuing address to be verified;
and sending the digital stock uplink request to the blockchain node, so that the blockchain node issues the digital stock indicated by the contract identification to be verified to the issuing address to be verified after the contract identification to be verified and the issuing address to be verified are verified based on the digital stock locking value.
In one possible implementation, before obtaining the target contract identification, the target issue address, the processor 910 is further configured to:
acquiring an identity verification request submitted by a target object, wherein the identity verification request carries identity information of the target object;
the identity verification request is sent to a real-name verification server, so that the real-name verification server successfully carries out real-name authentication on the identity information of the target object and then generates an object identity of the target object;
and sending the object identity of the target object to the blockchain node so that the blockchain node associates the object identity with the target issuing address generated for the target object.
In one possible implementation, the processor 910 determines a digital collection lock value from the target contract identification and the target issue address for performing the following operations:
acquiring a target random value and description metadata of the digital collection to be issued, wherein the description metadata is used for describing attribute information of the digital collection to be issued;
and carrying out hash operation processing on the target random value, the description metadata, the target contract identification and the target release address based on a hash algorithm to obtain a digital collection locking value.
In one possible implementation, processor 910 generates a digital collection upload request for performing the following:
receiving a locking success notification message sent by the block chain node, wherein the locking success notification message is generated after the block chain node verifies the locking transaction data, and is used for indicating the block chain node to issue the target digital collection to the target issuing address;
and responding to the locking success notification message, and generating a digital collection uplink request.
In the embodiment of the application, the issuing of the digital collection needs to go through two stages. First, for the first stage, the issuer (computer device) of the digital collection only needs to submit a digital collection lock value to the blockchain, and an attacker cannot acquire the digital collection actually issued by the issuer through the digital collection lock value, so that the first-run operation of the digital collection cannot be performed. Second, for the second phase, although the issuer submitted the detailed data of the collection issuance (including random numbers such as salt values) in the transaction (digital collection uplink request) in the second phase. The attacker can acquire the values by monitoring the second-stage transaction, but the issuing address where the digital collection can be issued is already locked in the first-stage transaction, i.e. the digital collection to be issued can only be issued to the designated issuing address, and the attack value cannot be taken in the first-stage transaction even though the attack value acquires a random value, so that the digital collection is issued. In this way, the reliability and the safety in the process of issuing the digital collection are ensured.
Furthermore, it should be noted here that: the embodiment of the present application further provides a computer storage medium, and the computer storage medium stores a computer program, where the computer program includes program instructions, when executed by a processor, can perform the method in the corresponding embodiment, and therefore, a detailed description will not be given here. For technical details not disclosed in the embodiments of the computer storage medium related to the present application, please refer to the description of the method embodiments of the present application. As an example, the program instructions may be deployed on one computer device or executed on multiple computer devices at one site or distributed across multiple sites and interconnected by a communication network.
According to one aspect of the present application, there is provided a computer program product or computer program comprising 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 method in the foregoing corresponding embodiment, and therefore, a detailed description will not be given here.
It will be understood by those skilled in the art that implementing all or part of the above-described methods in the embodiments may be implemented by a computer program for instructing relevant hardware, and the above-described program may be stored in a computer readable storage medium, and the program may include the steps of the embodiments of the above-described methods when executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random-access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (15)

1. A method of blockchain data processing, comprising:
acquiring a preprocessing request aiming at a digital collection to be issued, wherein the preprocessing request carries a digital collection locking value, the digital collection locking value is determined according to a target contract identifier and a target issuing address, and the target contract identifier is used for indicating issuing of a target digital collection;
responding to the preprocessing request, generating locking transaction data comprising the target contract identification and the target issuing address, and carrying out uplink processing on the locking transaction data;
Obtaining a digital collection uplink request, wherein the digital collection uplink request comprises: the digital collection locking value, the contract identification to be verified and the issuing address to be verified, and the digital collection uplink request is sent after the locking transaction data uplink success is confirmed;
and if the contract identification to be verified and the issuing address to be verified pass verification based on the digital collection locking value, issuing the digital collection indicated by the contract identification to be verified into the issuing address to be verified.
2. The method of claim 1, wherein prior to obtaining the pre-processing request for the digital collection to be issued, further comprising:
acquiring an object identity of a target object sent by computer equipment, wherein the object identity is generated after the real-name authentication server successfully carries out real-name authentication on the identity information of the target object after receiving the identity information of the target object;
associating the object identity with a target issuing address corresponding to the target object;
wherein the real-name authentication includes at least one of: and verifying the validity of the identity information and verifying the security of the identity information.
3. The method of claim 2, wherein associating the object identity with a target issue address corresponding to the target object comprises:
receiving an identification registration request sent by the real-name verification server, wherein the identification registration request carries an object identification of the target object;
responding to the identity registration request, obtaining a blockchain address of the target object, and taking the blockchain address as a target issuing address;
and associating the object identity with a target issuing address corresponding to the target object.
4. The method of claim 1, wherein said processing said locked transaction data includes:
performing verification processing on the locking transaction data to obtain a verification result;
if the verification result is that the verification is passed, a locking success notification message is generated, and the locking success notification message is returned to the computer equipment;
the locking success notification message is used for indicating that the target digital collection is issued to the target issuing address.
5. The method of claim 1, wherein the digital collection locking value is obtained by the computer device performing hash operation on a target random value, description metadata, the target contract identification, and the target release address based on a hash algorithm;
The description metadata is used for describing attribute information of the digital collection to be released, and the target contract identification is determined according to the target release address.
6. The method of claim 5, wherein the digital collection upload request further includes description metadata of the digital collection to be issued and the target random value; the method further comprises the steps of:
carrying out hash operation processing on the contract identification to be verified, the release address to be verified, the description metadata and the target random value based on a hash algorithm to obtain a digital collection verification value;
and comparing the digital collection locking value with the digital collection verification value, and if the comparison is successful, determining that the contract identification to be verified and the issuing address to be verified are verified.
7. The method of claim 6, wherein the determining that the issuing address to be verified passes after verifying the contract identification to be verified, further comprises:
generating a release success notification message, wherein the release success notification message is generated after the target digital collection is released to a release address to be verified;
and returning the release success notification message to the computer equipment so that the computer equipment outputs the target digital collection.
8. A method of blockchain data processing, comprising:
acquiring a target contract identifier and a target release address, and determining a digital collection locking value according to the target contract identifier and the target release address;
generating a preprocessing request aiming at the digital collection to be issued according to the digital collection locking value, and sending the preprocessing request to a blockchain node so that the blockchain node responds to the preprocessing request, generating locking transaction data comprising the target contract identification and the target issuing address, and carrying out uplink processing on the locking transaction data;
after confirming that the locked transaction data is successfully uplink, generating a digital collection uplink request, wherein the digital collection uplink request comprises the following steps: the digital collection locking value, the contract identification to be verified and the issuing address to be verified;
and sending the digital collection uplink request to a blockchain node, so that the blockchain node issues the digital collection indicated by the contract identification to be verified to the issuing address to be verified after the contract identification to be verified and the issuing address to be verified are verified based on the digital collection locking value.
9. The method of claim 8, wherein prior to obtaining the target contract identification, the target issue address, further comprising:
acquiring an identity verification request submitted by a target object, wherein the identity verification request carries identity information of the target object;
the identity verification request is sent to a real-name verification server, so that the real-name verification server successfully carries out real-name authentication on the identity information of the target object and then generates an object identity of the target object;
and sending the object identity of the target object to a blockchain node so that the blockchain node associates the object identity with a target issuing address generated for the target object.
10. The method of claim 8, wherein the determining a digital collection lock value based on the target contract identification and the target issue address comprises:
acquiring a target random value and description metadata of the digital collection to be issued, wherein the description metadata is used for describing attribute information of the digital collection to be issued;
and carrying out hash operation processing on the target random value, the description metadata, the target contract identification and the target issuing address based on a hash algorithm to obtain a digital collection locking value.
11. The method of claim 8, wherein generating a digital collection upload request comprises:
receiving a lock success notification message sent by the blockchain node, wherein the lock success notification message is generated after the blockchain node verifies the lock transaction data, and the lock success notification message is used for indicating the blockchain link point to send the target digital collection to the target release address;
and responding to the locking success notification message, and generating a digital collection uplink request.
12. A blockchain data processing device, comprising:
the acquisition unit is used for acquiring a preprocessing request aiming at the digital collection to be issued, wherein the preprocessing request carries a digital collection locking value, the digital collection locking value is determined according to a target contract identifier and a target issuing address, and the target contract identifier is used for indicating issuing of the target digital collection;
the processing unit is used for responding to the preprocessing request, generating locking transaction data comprising the target contract identification and the target issuing address, and carrying out uplink processing on the locking transaction data;
The obtaining unit is further configured to obtain a digital collection uplink request, where the digital collection uplink request includes: the digital collection locking value, the contract identification to be verified and the issuing address to be verified, and the digital collection uplink request is sent after the locking transaction data uplink success is confirmed;
and the processing unit is further used for issuing the digital collection indicated by the contract identification to be verified to the issuing address to be verified if the contract identification to be verified and the issuing address to be verified pass verification based on the digital collection locking value.
13. A blockchain data processing device, comprising:
the acquisition unit is used for acquiring a target contract identifier and a target release address and determining a digital collection locking value according to the target contract identifier and the target release address;
the processing unit is used for generating a preprocessing request aiming at the digital stock to be issued according to the digital stock locking value, sending the preprocessing request to a blockchain node so that the blockchain node responds to the preprocessing request, generating locking transaction data comprising the target contract identification and the target issuing address, and carrying out uplink processing on the locking transaction data;
The processing unit is further configured to generate a digital collection uplink request after confirming that the locked transaction data is successfully uplink, where the digital collection uplink request includes: the digital collection locking value, the contract identification to be verified and the issuing address to be verified;
and the sending unit is used for sending the digital collection uplink request to a blockchain node so that the blockchain node issues the digital collection indicated by the contract identification to be verified to the issuing address to be verified after the contract identification to be verified and the issuing address to be verified are verified based on the digital collection locking value.
14. A computer device, comprising: a memory device and a processor;
a memory in which one or more computer programs are stored;
a processor for loading the one or more computer programs to implement the blockchain data processing method of any of claims 1-7 or 8-11.
15. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be loaded by a processor and to perform the blockchain data processing method of any of claims 1-7 or 8-11.
CN202210901945.5A 2022-07-27 2022-07-27 Block chain data processing method, device and equipment, medium and program product Pending CN117522398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210901945.5A CN117522398A (en) 2022-07-27 2022-07-27 Block chain data processing method, device and equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210901945.5A CN117522398A (en) 2022-07-27 2022-07-27 Block chain data processing method, device and equipment, medium and program product

Publications (1)

Publication Number Publication Date
CN117522398A true CN117522398A (en) 2024-02-06

Family

ID=89763125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210901945.5A Pending CN117522398A (en) 2022-07-27 2022-07-27 Block chain data processing method, device and equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN117522398A (en)

Similar Documents

Publication Publication Date Title
WO2020258846A1 (en) Method and apparatus for sending certifiable messages across chains
CN110839029B (en) Micro-service registration method and device
CN111163182A (en) Block chain-based device registration method and apparatus, electronic device, and storage medium
CN111753334B (en) Method and device for verifying consistency of data across alliance chains and electronic equipment
CN112612856B (en) Block chain-based data processing method and device
CN112000744A (en) Signature method and related equipment
CN111488372A (en) Data processing method, device and storage medium
CN112311779B (en) Data access control method and device applied to block chain system
CN116541465A (en) Block chain-based data processing method and device
CN112651044B (en) Business transaction method, system and storage medium based on block chain technology
CN111698196A (en) Authentication method and micro-service system
CN111597537B (en) Block chain network-based certificate issuing method, related equipment and medium
CN115001714B (en) Resource access method and device, electronic equipment and storage medium
CN117522398A (en) Block chain data processing method, device and equipment, medium and program product
CN113014540B (en) Data processing method, device, equipment and storage medium
CN112671787B (en) Rule execution verification method and device, electronic equipment and storage medium
CN117040929B (en) Access processing method, device, equipment, medium and program product
CN111985927B (en) Block chain address authentication method and block chain transaction method based on social network
CN112597512B (en) Temperature data control method and device based on block chain and storage medium
CN113810426B (en) Access system, method and device of instant messaging service
WO2016158908A1 (en) Network communication method and network communication system
US20230325833A1 (en) Blockchain-based data processing method and apparatus, device, storage medium, and program product
CN117216807A (en) Service calling method, device, equipment, medium and product based on block chain
CN117176354A (en) Data processing method, device, equipment, medium and product
CN117992538A (en) Block chain data processing method, device, computer equipment, medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination