CN116560616A - Digital collection issuing method and device - Google Patents

Digital collection issuing method and device Download PDF

Info

Publication number
CN116560616A
CN116560616A CN202310365440.6A CN202310365440A CN116560616A CN 116560616 A CN116560616 A CN 116560616A CN 202310365440 A CN202310365440 A CN 202310365440A CN 116560616 A CN116560616 A CN 116560616A
Authority
CN
China
Prior art keywords
collection
digital
stock
issued
user
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
CN202310365440.6A
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.)
Ant Blockchain Technology Shanghai Co Ltd
Original Assignee
Ant Blockchain Technology Shanghai 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 Ant Blockchain Technology Shanghai Co Ltd filed Critical Ant Blockchain Technology Shanghai Co Ltd
Priority to CN202310365440.6A priority Critical patent/CN116560616A/en
Publication of CN116560616A publication Critical patent/CN116560616A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
    • G06F5/10Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor having a sequence of storage locations each being individually accessible for both enqueue and dequeue operations, e.g. using random access memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

One or more embodiments of the present disclosure provide a method and an apparatus for issuing digital collection. The method is applied to a digital collection issuing platform and comprises the following steps: responding to an acquisition request initiated by a user for a digital collection issued on a chain, determining a target collection number issued to the user from a number queue in which collection numbers of digital collections which are not issued yet are recorded, and taking the target collection number out of the number queue; and initiating a digital collection issuing transaction to a blockchain system based on the extracted target collection number, so that the blockchain system records the attribution right information of the digital collection numbered as the target collection number to the on-chain account of the user based on the digital collection issuing transaction.

Description

Digital collection issuing method and device
Technical Field
One or more embodiments of the present disclosure relate to the field of blockchain technologies, and in particular, to a method and an apparatus for issuing digital collections.
Background
The blockchain technology (also called as the distributed ledger technology) is a decentralised distributed database technology, has various characteristics of decentralization, disclosure transparency, non-tampering, trust and the like, and is suitable for application scenes with high demands on data reliability.
In view of the above advantages of the blockchain technology, and the current public attention is paid to private data of the public, a large number of users choose to store the data in the blockchain system so as to ensure the security of the data.
Disclosure of Invention
In view of this, one or more embodiments of the present disclosure provide a method and apparatus for providing digital collection.
In order to achieve the above object, one or more embodiments of the present disclosure provide the following technical solutions:
according to a first aspect of one or more embodiments of the present disclosure, a digital collection issuing method is provided, which is applied to a digital collection issuing platform, and includes:
responding to an acquisition request initiated by a user for a digital collection issued on a chain, determining a target collection number issued to the user from a number queue in which collection numbers of digital collections which are not issued yet are recorded, and taking the target collection number out of the number queue;
and initiating a digital collection issuing transaction to a blockchain system based on the extracted target collection number, so that the blockchain system records the attribution right information of the digital collection numbered as the target collection number to the on-chain account of the user based on the digital collection issuing transaction.
According to a second aspect of one or more embodiments of the present disclosure, there is provided a digital stock distribution method applied to a blockchain system, including:
responding to an acquisition transaction initiated by a user aiming at a digital collection issued on a chain, determining a target collection number issued to the user from a number queue recorded with collection numbers of digital collections which are not issued yet, and taking the target collection number out of the number queue;
and recording the attribution right information of the digital collection numbered as the target collection number to the on-chain account of the user.
According to a third aspect of one or more embodiments of the present specification, there is provided a digital collection dispensing device applied to a digital collection dispensing platform, including:
the determining unit is used for responding to an acquisition request for the digital collection issued on the chain initiated by a user, determining a target collection number issued to the user from a number queue recorded with collection numbers of the digital collections which are not issued yet, and taking the target collection number out of the digital collection queue;
and the issuing unit initiates a digital collection issuing transaction to a blockchain system based on the extracted target collection number so that the blockchain system records the attribution right information of the digital collection numbered as the target collection number to the on-chain account of the user based on the digital collection issuing transaction.
According to a fourth aspect of one or more embodiments of the present specification, there is provided a digital stock dispensing apparatus, for use in a blockchain system, comprising:
the determining unit is used for determining a target collection number issued to the user from a number queue recorded with collection numbers of the digital collections which are not issued in response to the acquisition transaction of the digital collections issued on the chain initiated by the user, and taking the target collection number out of the number queue;
and the issuing unit records the attribution right information of the digital collection numbered as the target collection number to the account on the chain of the user.
According to a fifth aspect of one or more embodiments of the present specification, there is provided an electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor implements the method of the first or second aspect by executing the executable instructions.
According to a sixth aspect of one or more embodiments of the present description, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method according to the first or second aspect.
Drawings
Fig. 1 is a flowchart of a digital collection issuing method according to an exemplary embodiment.
Fig. 2 is a flowchart of another digital collection distribution method according to an exemplary embodiment.
Fig. 3 is an interactive diagram of a digital signature casting method provided by an exemplary embodiment.
Fig. 4 is a schematic diagram of a FIFO queue provided by an exemplary embodiment.
Fig. 5 is an interaction diagram of a digital handwriting purchasing method according to an exemplary embodiment.
Fig. 6 is a schematic diagram of an apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram of a digital stock dispensing device according to an exemplary embodiment.
Fig. 8 is a block diagram of another digital stock dispensing apparatus provided in an exemplary embodiment.
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 embodiments do not represent all implementations consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with aspects of one or more embodiments of the present description as detailed in the accompanying claims.
It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. Furthermore, individual steps described in this specification, in other embodiments, may be described as being split into multiple steps; while various steps described in this specification may be combined into a single step in other embodiments.
Because the blockchain technology has the characteristics of non-falsification, disclosure transparency and the like, more and more data are stored in the blockchain system so as to ensure the security of the data.
Digital collection is also called Non-homogeneous Token (NFT), which is a trusted digital rights and interests credential with unique features in a blockchain system, and is a data object that can record and process multidimensional and complex attributes on a blockchain. Digital collections are typically mapped with unique collection numbers after being published to a blockchain system to ensure uniqueness and irreplaceability. For example, multiple digital calligraphies may be distributed in a blockchain system and each digital calligraphies may be given a stock number for labeling the uniqueness of the different digital calligraphies.
In the related art, the blockchain system maintains the stock numbers of the respective digital stock in the database after the release of the digital stock is completed. On the basis, under the condition that the user requests to acquire the digital collection, the collection number issued to the user can be determined by inquiring in the database, and the digital collection corresponding to the collection number is issued to the user by the blockchain system.
It should be appreciated that for digital collections, different collection numbers may have a different value, and that the user may prefer a collection number based on personal preferences, and that the digital collections of different collection numbers may themselves have a different value. For example, for the same type of digital collection, there may be a case where the smaller the collection number value, the higher the value; a collection number that may be smaller or larger in value for a user based on personal preference; for some digital collections, such as digital calligraphies, different collection numbers may correspond to different calligraphies, so that different digital calligraphies have different values.
For the above reasons, when a digital stock is issued for a user, the stock number of the digital stock issued to the user is determined, which affects whether the issued digital stock meets the expectations of the user to a great extent. However, as described above, in the related art, the issue of the digital collection is performed by using the database query method, in the actual issue process, after the collection number of the digital collection issued to the user is determined from the database by the query method, the related art instructs the blockchain system to perform the operation of issuing the digital collection to the user, and in this process, there is a certain time difference, in which the collection number is still recorded in the database and is in a non-issued state, if in this stage, the acquisition request of the digital collection initiated by another user is received again, and in this stage, the related art is very likely to have the situation of repeatedly issuing the digital collection of the same collection number, thereby resulting in the issue of the collection number.
In view of this, in order to solve the situation that the related art contends for the number of the collection in the process of issuing the digital collection, the present disclosure proposes a method for issuing the digital collection, which can avoid the situation that multiple users contend for the digital collection with the same number of the collection in the process of issuing the digital collection.
Fig. 1 is a flowchart illustrating a digital collection issuing method according to an exemplary embodiment. The method is applied to a digital collection distribution platform, as shown in fig. 1, and can comprise the following steps:
step 102, in response to a request initiated by a user for acquiring a digital collection issued on a chain, determining a target collection number issued to the user from a number queue in which collection numbers of digital collections which are not issued yet are recorded, and taking the target collection number out of the number queue.
As can be seen from the above description, the situation of competing for the number of the collection is very easy to occur in the related art, which is caused by the fact that the related art adopts a database query mode to issue the digital collection.
In view of this, the present specification does not issue digital collections by means of database query, but rather issues digital collections by means of constructing a number queue for maintaining collection numbers. For example, when receiving a request for acquiring a digital collection from a user, the digital collection issuing platform can determine a target collection number issued to the user from a number queue in which collection numbers of digital collections that have not been issued are recorded, and take the target collection number out of the number queue.
It should be understood that, because the present specification records the collection number in a number queue, the present specification may take the target collection number out of the number queue after determining the target collection number issued to the user. On the one hand, the operation of issuing the digital collection for the user is performed based on the extracted target collection number; on the other hand, even if the digital collection acquisition request of the other user is received, the problem that the target collection number is issued again to the other user can be obviously avoided because the target collection number is taken out of the number queue, that is, the number queue does not contain the target collection number. In other words, the present specification avoids the situation of contending for the number of the collection in the related art due to the issue of the digital collection by adopting the database query method by introducing the number queue.
In the present specification, it is possible to preferentially cast digital collections in the blockchain system, and after casting of the digital collections is completed, assign collection numbers to the cast digital collections, and record the collection numbers of the respective cast digital collections in a previously constructed number queue for recording collection numbers of digital collections that have not yet been issued.
The number queues in the present specification may be maintained in different bodies according to actual requirements, which is not limited in the present specification. For example, the numbered queue may be created and maintained by the digital stock distribution platform; for another example, the number queue may be maintained in a distributed cache, in which case, the blockchain system may provide the collection number to the distributed cache after assigning the collection number to the cast digital collection, so that the received collection number is recorded in the maintained number queue by the distributed cache, and the digital collection issuing platform may instruct the distributed cache to extract a collection number from the maintained number queue by sending a number extraction request to the distributed cache, so as to return the target collection number to the digital collection number. Of course, this is merely illustrative, and the number queue is specifically maintained at which main body, and how the parties interact to determine the target collection number, which can be determined by those skilled in the art according to actual needs, and this specification is not limited thereto.
In the present specification, the number of the target collection issued to the user may be determined from the number queue according to various rules.
In an embodiment, the target collection number issued to the user may be determined according to the recording order of each collection number in the number queue. For example, the collection number recorded earliest in the number queue may be determined as the target collection number issued to the user; for another example, the collection number recorded at the latest in the number queue may be determined as the target collection number issued to the user. Of course, this example is merely illustrative, and how to determine the target collection number according to the recording order of the collection numbers in the number queue may be determined by those skilled in the art according to actual needs, which is not limited in this embodiment.
In this embodiment, in the case where the collection number recorded earliest in the number queue is determined as the target collection number issued to the user, the created number queue may be a FIFO (First in, first out, first in First out queue). Because the FIFO queue defaults to take the data recorded preferentially as the data to be extracted, if the numbering queue is called to issue the stock number for the user, the numbering queue can directly output the stock number recorded earliest in the recorded stock numbers as the target stock number issued to the user. Of course, the specific type of queue used for the numbered queues is merely illustrative, and may be determined by those skilled in the art according to actual needs, which is not limited in this embodiment.
In another embodiment, the target stock number issued to the user may be determined from the number queue according to the number value of each stock number. For example, the collection number with the smallest number value in the number queue may be determined as the target collection number issued to the user; for another example, the collection number with the largest number value in the number queue may be determined as the target collection number issued to the user. Of course, this example is merely illustrative, and how to determine the target collection number according to the number value of the collection number can be determined by those skilled in the art according to actual needs, which is not limited in this embodiment.
In still another embodiment, the target collection number issued to the user may be determined from a number queue in which collection numbers of digital collections that have not been issued are recorded according to a casting order of the digital collections corresponding to each collection number. For example, the stock number of the earliest cast digital stock in the stock queue may be determined as the target stock number issued to the user; for another example, the stock number of the digital stock cast at the latest in the number queue may be determined as the target stock number issued to the user. Of course, this example is merely illustrative, and how to determine the target collection number according to the casting order of the digital collection corresponding to the collection number may be determined by those skilled in the art according to actual needs, which is not limited in this embodiment.
In the specification, the collection numbers contained in the number queue can be ordered according to a preset ordering rule, and on the basis, the target collection number issued to the user can be determined according to the arrangement sequence of the collection numbers in the number queue. For example, the collection number arranged last may be regarded as the target collection number issued to the user. In this specification, the preset sorting rule may be determined by a person skilled in the art according to actual needs, for example, the preset sorting rule may be "sorting according to the recording order in the numbering queue", "sorting according to the numerical value of the stock number", "sorting according to the casting order of the corresponding digital stock" in the above embodiment, which is not limited in this specification.
And 104, initiating a digital collection issuing transaction to a blockchain system based on the extracted target collection number, so that the blockchain system records the attribution right information of the digital collection numbered as the target collection number to the on-chain account of the user based on the digital collection issuing transaction.
In the specification, after the digital collection issuing platform takes out the target collection number from the number queue, a digital collection issuing transaction can be initiated to the blockchain system based on the target collection number. After receiving the digital collection issuing transaction, the blockchain system can record the attribution right information of the digital collection numbered as the target collection number into the on-chain account of the user so as to represent that the digital collection is issued to the user.
In this specification, the blockchain system may also return a notification message of successful issuance after recording the attribution right information of the digital collection numbered as the target collection number to the user's on-chain account. The digital collection issuing platform can forward the received notification message to the user.
It should be noted that, the digital collection in the present specification may be a virtual article that is purely virtual and is built on a network, or may be a digital certificate corresponding to a physical article under a chain. Which digital collection or collections are specifically included can be determined by those skilled in the art according to actual circumstances, and this specification is not limited thereto.
It should be emphasized that the blockchain system in this specification may be deployed based on the conventional architecture of blockchain technology, i.e., all nodes in the blockchain system are formed by deploying blockchain code on corresponding physical devices, in most cases, each node corresponds to a physical device; the blockchain system of the specification can also be deployed based on a BaaS (Blockchain as a Service) architecture in the blockchain technology, namely all nodes in the blockchain system are formed by deploying blockchain codes on virtual machines realized by cloud services, and the blockchain nodes do not need to correspond to corresponding entity devices one by one.
According to the technical scheme, the digital stock issuing platform in the specification takes out the target stock number issued to the user from the number queue recorded with the stock numbers of the digital stock which is not issued yet under the condition that the digital stock issuing platform receives the acquisition request of the digital stock initiated by the user, and initiates the digital stock issuing transaction to the blockchain system based on the target stock number so as to instruct the blockchain system to execute the issuing operation of the digital stock.
It should be understood that, because the present description refers to the way of taking the collection number from the number queue, the collection number of the digital collection is issued to the user, that is, once the target collection number issued to the user is determined, the target collection number is not recorded in the number queue, so that even if an acquisition request initiated by another user is subsequently received, the target collection number is not issued to the other user. Obviously, through the technical scheme of the specification, the problem that the situation of competing for the collection number is easily caused by adopting a database query mode to issue the collection number in the related art can be avoided.
In this specification, another digital collection issuing method is also proposed. In this method, most operation modes, for example, how to determine the target collection number from the number queue, how to construct the number queue, etc., are consistent with the digital collection issuing method described above, except that the execution subject is changed from the digital collection issuing platform to the blockchain system, for example, the above operations can be implemented by deploying various intelligent contracts, and the related contents will be referred to the above description and will not be described in detail.
Fig. 2 is a flowchart illustrating another digital collection issuing method according to an exemplary embodiment of the present disclosure. The method is applied to a blockchain system, as shown in fig. 2, and may include the steps of:
step 202, in response to a user initiated acquisition transaction for a digital collection published on a chain, determining a target collection number issued to the user from a number queue in which collection numbers of digital collections which are not issued yet are recorded, and taking the target collection number out of the number queue.
Compared with the digital collection issuing method, the method has the advantages that the blockchain system executes the operation of issuing collection numbers to users, and the users can instruct the blockchain system to issue digital collections for the users by initiating the manner of acquiring transactions for the digital collections issued on the chain to the blockchain system.
After receiving the acquisition transaction, the blockchain system can determine the target collection number issued to the user from a number queue recorded with the collection numbers of the digital collections which are not issued yet, take the target collection number out of the number queue, and record the attribution right information of the digital collections numbered as the target collection number to the on-chain account of the user. On this basis, the blockchain system may also return an informing message to the user that the digital stock numbered as the target stock number has been issued to the user.
As described above, in the present specification, it is possible to cast digital collections preferentially in the blockchain system, and in the case of completing the casting of the digital collections, assign collection numbers to the cast digital collections, and record the collection numbers of the respective cast digital collections in a previously constructed number queue for recording the collection numbers of digital collections that have not yet been issued. In the process, the casting party of the digital collection can instruct the blockchain system to execute the casting operation of the digital collection by sending the digital collection casting transaction to the blockchain system, and the blockchain system can cast the digital collection according to collection information contained in the digital collection casting transaction and allocate a collection number to the cast digital collection under the condition that the blockchain system receives the digital collection casting transaction, and then add the allocated collection number to a pre-constructed number queue.
As described above, the number queue in the present specification can be maintained in different bodies according to actual demands. For example, the numbering queue may be created and maintained by a blockchain system to quickly determine the target stock number issued to the user when the digital stock is issued; for another example, the numbering queue may be maintained in a distributed cache, in which case the blockchain system may obtain the target collection number issued to the user from the distributed cache by interacting with the distributed cache. Of course, this example is merely illustrative, and how to maintain the numbering queues is specifically determined by one skilled in the art according to actual needs, and this specification is not limited thereto.
As described above, the blockchain system may determine the target collection number assigned to the user from the number queue in a variety of ways. For example, the target collection number issued to the user may be determined according to the recording order of each collection number in the number queue; for another example, the target collection number issued to the user may be determined from a number queue according to the number value of each collection number; for another example, the target collection number issued to the user may be determined from the number queue according to the casting order of the digital collections corresponding to each collection number. Of course, this example is merely illustrative, and how to determine the target collection number specifically can be determined by those skilled in the art according to actual needs, which is not limited in this specification.
As described above, the present specification may further order the collection numbers included in the number queue according to a preset ordering rule, and on this basis, the target collection number issued to the user may be determined according to the order of arrangement of the collection numbers in the number queue. For example, the collection number arranged last may be regarded as the target collection number issued to the user. In this specification, the preset sorting rule may be determined by a person skilled in the art according to actual needs, for example, the preset sorting rule may be "sorting according to the recording order in the numbering queue", "sorting according to the numerical value of the stock number", "sorting according to the casting order of the corresponding digital stock" in the above embodiment, which is not limited in this specification.
And 204, recording the attribution right information of the digital collection numbered as the target collection number to the on-chain account of the user.
As described above, after determining the target collection number assigned to the user, the attribution right information of the digital collection numbered as the target collection number may be recorded to the user's on-chain account. And when the recording is completed, the characterization issues the digital collection numbered as the target collection number to the user. After the digital collection is issued to the user, an informing message of successful issuing can be returned to the user, and whether the target collection number is added in the informing message can be determined according to actual requirements so as to inform the collection number of the digital collection issued to the user.
As can be seen from the above technical solution, in the case of receiving a user initiated transaction for acquiring a digital collection, the blockchain system in the present specification takes out a target collection number issued to a user from a number queue in which collection numbers of digital collections that have not been issued are recorded, and performs an operation of recording attribution right information of the digital collection numbered as the target collection number in an account on the user's chain.
It should be understood that, because the present description refers to the way of taking the collection number from the number queue, the collection number of the digital collection is issued to the user, that is, once the target collection number issued to the user is determined, the target collection number is not recorded in the number queue, so that even if the acquisition transaction initiated by another user is subsequently received, the target collection number is not issued to the other user. Obviously, through the technical scheme of the specification, the problem that the situation of competing for the collection number is easily caused by adopting a database query mode to issue the collection number in the related art can be avoided.
The method for issuing digital stock in the present specification will be described below by taking "buy and sell digital calligraphies" as an example.
Before describing the process of issuing digital handwriting, a casting process of the digital handwriting is described first.
Fig. 3 is an interactive diagram of a digital handwriting casting method according to an exemplary embodiment of the present disclosure. As shown in fig. 3, the method may include the steps of:
step 301, a casting direction digital collection issuing platform sends a digital handwriting casting request.
In this embodiment, the casting party of the digital collection may be a merchant of digital calligraphies, and may send a digital calligraphies casting request to the digital collection issuing platform through the client held by the merchant to instruct the digital collection issuing platform to interact with the blockchain system, so as to achieve the purpose of casting digital calligraphies in the blockchain system.
Step 302, the digital collection distribution platform generates a digital handwriting casting transaction based on handwriting casting information contained in the received request.
In this embodiment, after the digital collection issuing platform receives the digital handwriting casting request, the digital handwriting casting transaction may be generated based on the handwriting casting information contained therein. For example, the handwriting casting information may include: font information of the digital handwriting to be cast, content of the digital handwriting to be cast, and the like.
Step 303, the digital collection distribution platform sends the digital handwriting casting transaction to the blockchain system.
In this embodiment, after the digital collection distribution platform generates the digital handwriting casting transaction, the digital handwriting casting transaction may be sent to the blockchain system to perform the digital handwriting casting operation by the blockchain system.
Step 304, the blockchain system casts digital calligraphies based on information contained in the digital calligraphies casting transaction.
In step 305, the blockchain system assigns a handwriting number to the cast digital handwriting.
In this embodiment, the blockchain system may assign a handwriting number to each digital handwriting after the casting of the digital handwriting is completed, for distinguishing each digital handwriting.
For example, each digital handwriting may be assigned a handwriting number in the casting order, wherein the earlier the digital handwriting is cast, the smaller the numerical value of its handwriting number. Then, the relationship between each digital handwriting and the handwriting number thereof obtained by assignment can be as shown in the following table 1:
digital handwriting Handwriting numbering
Handwriting A 001
Handwriting B 002
Handwriting C 003
Handwriting D 004
Handwriting F 005
TABLE 1
At step 306, the blockchain system registers each digital handwriting and its handwriting number association to the cast party's on-chain account.
In this embodiment, after the handwriting numbers are assigned to the cast digital handwriting, each digital handwriting and the handwriting numbers thereof can be associated and verified to the on-chain account of the casting party. It should be appreciated that verifying the association of the two to the on-chain account of the casting party is equivalent to recording the ownership information of the digital handwriting to the on-chain account of the casting party to characterize the ownership of the cast digital handwriting to the casting party.
And step 307, the blockchain system returns the assigned handwriting numbers to the digital collection issuing platform.
In this embodiment, after the block chain system allocates the handwriting numbers to the digital handwriting, the allocated handwriting numbers may also be returned to the digital stock providing platform, so that the digital stock providing platform may be used to provide the handwriting numbers for the users who purchase the digital handwriting.
Step 308, the digital collection issuing platform sends the received handwriting numbers to the distributed cache.
In this embodiment, the number queue for maintaining the handwriting numbers of the digital handwriting may be maintained in the distributed cache, so after the digital stock issuing platform receives the handwriting numbers, the received handwriting numbers may be sent to the distributed cache, so that the distributed cache stores the received handwriting numbers in the pre-configured number queue according to the casting order.
In step 309, the distributed cache records the received handwriting number to a pre-created FIFO queue.
In this embodiment, the number queue maintained in the distributed cache is a FIFO queue, and then, after each number is recorded in the FIFO queue in the casting order, the handwriting number recorded in the FIFO queue may be as shown in fig. 4.
According to the technical scheme, the digital stock issuing platform in the specification can be used for casting digital stock in the blockchain system under the instruction of a casting party, and the blockchain system is used for distributing stock numbers for all the digital stock. On this basis, each stock number is also recorded in a distributed cache corresponding to the digital stock distribution platform in a queue.
It should be understood that, because the collection numbers are maintained in the distributed cache, and the digital collection issuing platform also receives the collection numbers of each digital collection, the digital collection issuing platform can check the collection numbers maintained in the distributed cache, for example, by adopting a timing checking mode, it is ensured that the collection numbers maintained in the distributed cache are not lost, and the problem that the efficiency of issuing the digital collections is affected due to the loss of cache data in the distributed cache is greatly reduced.
After the digital handwriting is cast in the manner of fig. 3, each user can acquire the attribution right of the digital handwriting in a purchasing manner. Next, a purchasing process of the digital handwriting will be described.
Fig. 5 is an interaction diagram of a digital handwriting purchasing method according to an exemplary embodiment of the present disclosure. As shown in fig. 5, the method may include the steps of:
in step 501, the client generates a digital handwriting purchase request based on an operation of a first user.
In this embodiment, the first user may initiate a purchase request for the cast but not yet issued digital handwriting to the digital collection issuing platform through the held client, so as to obtain the corresponding digital handwriting.
For example, the digital collection distribution platform may provide a display platform of digital collections that have been cast on a chain, but have not yet been distributed, so that a user determines digital collections to purchase after browsing, and then initiates a purchase request to the digital collection distribution platform. In this embodiment, the user initiates a purchase request for digital handwriting.
Step 502, the client sends the generated digital handwriting purchase request to the digital collection issuing platform.
In this embodiment, after the client generates the purchase request under the operation of the first user, the generated digital handwriting purchase request may be sent to the digital collection issuing platform, so that the digital collection issuing platform triggers a payment process of purchasing the digital handwriting.
In this embodiment, the digital collection issuing platform may establish a connection with the payment platform in advance, so as to conveniently trigger a payment procedure for the digital handwriting purchasing operation. For example, the digital collection distribution platform may obtain a payment link from the payment platform and return the payment link to the client to complete the payment operation by the client.
Of course, this payment manner is merely illustrative, and how to perform the payment operation can be determined by those skilled in the art according to actual needs, which is not limited in this embodiment. For example, after the first user finishes payment by himself, a digital handwriting purchase request is started, and only a credential for finishing payment operation is added in the request.
In step 503, the digital collection distribution platform returns a payment link to the client.
Step 504, the client sends a notification message of successful payment to the digital collection issuing platform.
In this embodiment, after the first user completes the payment operation, the client may send a notification message of successful payment to the digital stock issuing platform.
Step 505, the digital stock issuing platform sends a number allocation request to the distributed cache.
In this embodiment, the digital collection issuing platform may perform the operation of assigning the handwriting number to the first user after receiving the notification message. Because the number queue of the embodiment is maintained by the distributed cache, the digital stock issuing platform may send a number allocation request to the distributed cache to instruct the distributed cache to determine the target handwriting number allocated to the first user from the number queue.
In step 506, the distributed cache fetches the target handwriting number from the maintained number queue.
For example, if the handwriting numbers recorded in the FIFO queue maintained by the current distributed cache are as shown in fig. 4, since the FIFO queue follows the principle of "first in first out", it is left in right out in fig. 4, and therefore, after the distributed cache sends an instruction to the FIFO queue, the FIFO will automatically output the rightmost number 001 as the target handwriting number allocated to the first user.
Step 507, the distributed cache returns the fetched target handwriting number to the digital collection issuing platform.
With the above example in mind, after number 001 is obtained, number 001 may be returned to the digital stock dispensing platform.
Step 508, the digital collection issuing platform generates a digital handwriting issuing transaction based on the target handwriting number.
With the above example in mind, after receiving the number 001 returned by the distributed cache, the digital collection issuing platform may generate a digital handwriting issuing transaction based on the number 001 and send the transaction to the blockchain system.
Step 509, the digital collection issuing platform sends the generated digital handwriting issuing transaction to the blockchain system.
Step 510, the blockchain system determines the digital handwriting numbered as the target handwriting number from the digital handwriting belonging to the casting party.
With the above example in mind, the blockchain system, upon receiving a digital handwriting issuing transaction, can read the number 001 therefrom to determine the digital handwriting a corresponding to the number 001 from the digital handwriting recorded in the on-chain account of the casting party shown in table 1 based on the number.
In step 511, the blockchain system registers the target handwriting number in association with the determined digital handwriting to the first user's on-chain account.
After determining the digital handwriting a, the number 001 and the digital handwriting a may be associated and stored in the account on the first user's chain, which is equivalent to recording the attribution right information of the digital handwriting a in the account on the first user's chain, so as to indicate that the digital handwriting a is issued to the first user.
Step 512, the blockchain system returns a notification message for notifying the success of the release to the digital collection release platform
In this embodiment, after the blockchain system issues the determined digital collection to the first user, an informing message for informing that the issuance is successful may be returned to the digital collection issuing platform. The digital stock issuing platform can send the digital stock to the client side, and the first user can know the digital handwriting obtained by the first user.
In step 513, the digital stock distribution platform forwards the notification message to the client.
As can be seen from the above technical solution, since the present specification records the collection numbers of the digital collections that have not yet been issued in the form of a queue, and any collection number is taken out of the queue after being assigned to the user, when the digital collection is issued next time, any collection number is not already present in the queue and cannot be assigned to other users. Therefore, according to the technical scheme of the specification, the situation that the collection number of the digital collection is striven for because the digital collection is issued in a database query mode in the related art can be avoided.
Fig. 6 is a schematic block diagram of an apparatus provided in an exemplary embodiment. Referring to fig. 6, at the hardware level, the device includes a processor 602, an internal bus 604, a network interface 606, a memory 608, and a non-volatile storage 610, although other hardware required by other services is possible. One or more embodiments of the present description may be implemented in a software-based manner, such as by the processor 602 reading a corresponding computer program from the non-volatile memory 610 into the memory 608 and then running. Of course, in addition to software implementation, one or more embodiments of the present disclosure do not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but may also be hardware or a logic device.
Referring to fig. 7, the digital stock dispensing apparatus may be applied to the device shown in fig. 6 to implement the technical solution of the present specification. The digital collection issuing device is applied to a digital collection issuing platform and can comprise:
a determining unit 701, in response to an acquisition request for a digital collection issued on a chain initiated by a user, determining a target collection number issued to the user from a number queue in which collection numbers of digital collections that have not been issued are recorded, and taking the target collection number out of the digital collection queue;
The issuing unit 702 initiates a digital collection issuing transaction to a blockchain system based on the extracted target collection number, so that the blockchain system issues the attribution right of the digital collection numbered as the target collection number to the on-chain account of the user based on the digital collection issuing transaction.
Optionally, the determining unit 701 is further configured to:
determining the target stock number issued to the user according to the recording sequence of each stock number in a number queue, wherein the number queue records the stock numbers of the digital stock which is not issued; or alternatively, the process may be performed,
determining a target stock number issued to the user from a stock number queue recorded with the stock numbers of the digital stock which are not issued according to the number value of each stock number; or alternatively, the process may be performed,
and determining the target stock number issued to the user from a number queue recorded with the stock numbers of the digital stocks which are not issued according to the casting sequence of the digital stocks corresponding to each stock number.
Optionally, the numbering queue adopts a first-in first-out queue; the determination unit 701 is further configured to:
and determining the earliest recorded stock number from a number queue recorded with the stock numbers of the digital stock which is not issued yet, and taking the stock number as the target stock number issued to the user.
Optionally, the collection numbers recorded in the number queue are ordered according to a preset ordering rule; the determination unit 701 is further configured to:
according to the stock number arrangement sequence after the sorting according to the preset sorting rule, determining the target stock number issued to the user from a number queue recorded with the stock numbers of the digital stock which are not issued yet;
wherein the preset ordering rule comprises at least one of the following: sorting according to the recording sequence in the numbering queue; ordering according to the value of the collection number.
Optionally, the method further comprises:
and the distribution unit 703 is used for obtaining the serial numbers of the digital collections after the blockchain system completes the casting of the digital collections, and recording the obtained serial numbers of the digital collections in the serial number queue.
Alternatively to this, the method may comprise,
the number queue is created and maintained by the digital collection issuing platform; or alternatively, the process may be performed,
the number queue is maintained in a distributed cache, and the target collection number is extracted and returned by the distributed cache under the condition that a number extraction request sent by the digital collection issuing platform is received.
Referring to fig. 8, the digital stock dispensing apparatus may be applied to the device shown in fig. 6 to implement the technical solution of the present specification. The digital collection issuing device is applied to a blockchain system and can comprise:
A determining unit 801, responsive to a user initiated acquisition transaction for a digital collection issued on a chain, determining a target collection number issued to the user from a number queue in which collection numbers of digital collections that have not been issued are recorded, and taking the target collection number out of the number queue;
and the issuing unit 802 records the attribution right information of the digital collection numbered as the target collection number to the account on the chain of the user.
Optionally, the method further comprises:
a casting unit 803 which casts the digital collection according to collection information included in the digital collection casting transaction and assigns a collection number to the cast digital collection in case of receiving the digital collection casting transaction;
and adding the allocated collection number into the number queue.
Optionally, the determining unit 801 is further configured to:
determining the target stock number issued to the user according to the recording sequence of each stock number in a number queue, wherein the number queue records the stock numbers of the digital stock which is not issued; or alternatively, the process may be performed,
determining a target stock number issued to the user from a stock number queue recorded with the stock numbers of the digital stock which are not issued according to the number value of each stock number; or alternatively, the process may be performed,
And determining the target stock number issued to the user from a number queue recorded with the stock numbers of the digital stocks which are not issued according to the casting sequence of the digital stocks corresponding to each stock number.
Optionally, the collection numbers recorded in the number queue are ordered according to a preset ordering rule; the determination unit 801 is further configured to:
according to the stock number arrangement sequence after the sorting according to the preset sorting rule, determining the target stock number issued to the user from a number queue recorded with the stock numbers of the digital stock which are not issued yet;
wherein the preset ordering rule comprises at least one of the following: sorting according to the recording sequence in the numbering queue; ordering according to the value of the collection number.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
In a typical configuration, a computer includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, read only compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by the computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The terminology used in the one or more embodiments of the specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the specification. As used in this specification, one or more embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in one or more embodiments of the present description to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
The foregoing description of the preferred embodiment(s) is (are) merely intended to illustrate the embodiment(s) of the present invention, and it is not intended to limit the embodiment(s) of the present invention to the particular embodiment(s) described.

Claims (14)

1. A digital stock issuing method is applied to a digital stock issuing platform and comprises the following steps:
responding to an acquisition request initiated by a user for a digital collection issued on a chain, determining a target collection number issued to the user from a number queue in which collection numbers of digital collections which are not issued yet are recorded, and taking the target collection number out of the number queue;
and initiating a digital collection issuing transaction to a blockchain system based on the extracted target collection number, so that the blockchain system records the attribution right information of the digital collection numbered as the target collection number to the on-chain account of the user based on the digital collection issuing transaction.
2. The method of claim 1, wherein the determining the target stock number issued to the user from the number queue in which stock numbers of digital stock that have not been issued are recorded, comprises:
Determining the target stock number issued to the user according to the recording sequence of each stock number in a number queue, wherein the number queue records the stock numbers of the digital stock which is not issued; or alternatively, the process may be performed,
determining a target stock number issued to the user from a stock number queue recorded with the stock numbers of the digital stock which are not issued according to the number value of each stock number; or alternatively, the process may be performed,
and determining the target stock number issued to the user from a number queue recorded with the stock numbers of the digital stocks which are not issued according to the casting sequence of the digital stocks corresponding to each stock number.
3. The method of claim 2, the numbering queue employing a first-in first-out queue; the determining the target collection number issued to the user according to the recording sequence of each collection number in the number queue comprises the following steps:
and determining the earliest recorded stock number from a number queue recorded with the stock numbers of the digital stock which is not issued yet, and taking the stock number as the target stock number issued to the user.
4. The method of claim 1, wherein the collection numbers recorded in the numbering queue are ordered according to a preset ordering rule; the determining the target collection number issued to the user from the number queue recorded with the collection numbers of the digital collections which are not issued yet comprises the following steps:
According to the stock number arrangement sequence after the sorting according to the preset sorting rule, determining the target stock number issued to the user from a number queue recorded with the stock numbers of the digital stock which are not issued yet;
wherein the preset ordering rule comprises at least one of the following: sorting according to the recording sequence in the numbering queue; ordering according to the value of the collection number.
5. The method of claim 1, further comprising:
and acquiring a collection number allocated to the cast digital collection by the blockchain system after the casting of the digital collection is completed, and recording the acquired collection number in the number queue.
6. The method according to claim 1,
the number queue is created and maintained by the digital collection issuing platform; or alternatively, the process may be performed,
the number queue is maintained in a distributed cache, and the target collection number is extracted and returned by the distributed cache under the condition that a number extraction request sent by the digital collection issuing platform is received.
7. A digital stock distribution method is applied to a blockchain system and comprises the following steps:
responding to an acquisition transaction initiated by a user aiming at a digital collection issued on a chain, determining a target collection number issued to the user from a number queue recorded with collection numbers of digital collections which are not issued yet, and taking the target collection number out of the number queue;
And recording the attribution right information of the digital collection numbered as the target collection number to the on-chain account of the user.
8. The method of claim 7, further comprising:
under the condition that a digital collection casting transaction is received, casting a digital collection according to collection information contained in the digital collection casting transaction, and distributing collection numbers for the cast digital collection;
and adding the allocated collection number into the number queue.
9. The method of claim 7, wherein determining the target stock number issued to the user from the number queue in which stock numbers of digital stock that have not been issued are recorded, comprises:
determining the target stock number issued to the user according to the recording sequence of each stock number in a number queue, wherein the number queue records the stock numbers of the digital stock which is not issued; or alternatively, the process may be performed,
determining a target stock number issued to the user from a stock number queue recorded with the stock numbers of the digital stock which are not issued according to the number value of each stock number; or alternatively, the process may be performed,
and determining the target stock number issued to the user from a number queue recorded with the stock numbers of the digital stocks which are not issued according to the casting sequence of the digital stocks corresponding to each stock number.
10. The method of claim 7, wherein the collection numbers recorded in the number queue are ordered according to a preset ordering rule; the determining the target collection number issued to the user from the number queue recorded with the collection numbers of the digital collections which are not issued yet comprises the following steps:
according to the stock number arrangement sequence after the sorting according to the preset sorting rule, determining the target stock number issued to the user from a number queue recorded with the stock numbers of the digital stock which are not issued yet;
wherein the preset ordering rule comprises at least one of the following: sorting according to the recording sequence in the numbering queue; ordering according to the value of the collection number.
11. A digital collection dispensing device, applied to a digital collection dispensing platform, comprising:
the determining unit is used for responding to an acquisition request for the digital collection issued on the chain initiated by a user, determining a target collection number issued to the user from a number queue recorded with collection numbers of the digital collections which are not issued yet, and taking the target collection number out of the number queue;
and the issuing unit initiates a digital collection issuing transaction to a blockchain system based on the extracted target collection number so that the blockchain system records the attribution right information of the digital collection numbered as the target collection number to the on-chain account of the user based on the digital collection issuing transaction.
12. A digital stock dispensing device for use in a blockchain system, comprising:
the determining unit is used for determining a target collection number issued to the user from a number queue recorded with collection numbers of the digital collections which are not issued in response to the acquisition transaction of the digital collections issued on the chain initiated by the user, and taking the target collection number out of the number queue;
and the issuing unit records the attribution right information of the digital collection numbered as the target collection number to the account on the chain of the user.
13. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the method of any of claims 1-10 by executing the executable instructions.
14. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of any of claims 1-10.
CN202310365440.6A 2023-04-04 2023-04-04 Digital collection issuing method and device Pending CN116560616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310365440.6A CN116560616A (en) 2023-04-04 2023-04-04 Digital collection issuing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310365440.6A CN116560616A (en) 2023-04-04 2023-04-04 Digital collection issuing method and device

Publications (1)

Publication Number Publication Date
CN116560616A true CN116560616A (en) 2023-08-08

Family

ID=87497328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310365440.6A Pending CN116560616A (en) 2023-04-04 2023-04-04 Digital collection issuing method and device

Country Status (1)

Country Link
CN (1) CN116560616A (en)

Similar Documents

Publication Publication Date Title
CN110148017B (en) Rights issuing method and device based on blockchain, electronic equipment and storage medium
US10785168B2 (en) Allocating virtual resource based on block chain
EP3779815A1 (en) Rights and interests distribution method and device and electronic device
EP3565219B1 (en) Service execution method and device
CN110020542B (en) Data reading and writing method and device and electronic equipment
EP3905178A1 (en) Blockchain-based resource allocation method and apparatus, and electronic device
US11972414B2 (en) Data recording methods and apparatuses, electronic devices, and storage media
CN113220717B (en) Block chain-based data verification method and device and electronic equipment
CN110060153B (en) Data evidence storage method and system based on multiple block chain networks
JP6386097B2 (en) Method and system for managing residual values in distributed processing of transactions
CN112400182A (en) Method and device for executing intelligent contracts in block chain and electronic equipment
CN114331428A (en) Non-homogeneous evidence-based distribution method and device
JP2019504415A (en) Data storage service processing method and apparatus
CN113194143B (en) Block chain account creating method and device and electronic equipment
CN113762940A (en) Asset management method and device based on block chain and electronic equipment
CN113469815A (en) Data management method and device
CN107301550B (en) Acquisition method of credit information and establishment method and device of credit management and control rule
CN112637222A (en) Request processing method and device
CN116560616A (en) Digital collection issuing method and device
CN108876339B (en) E-pet transaction method and device based on certificate
CN112650748A (en) Business clue distribution method and device, electronic equipment and readable storage medium
CN114722782A (en) Data application method and device, electronic equipment and storage medium
CN109214884B (en) Demand matching method and device and electronic equipment
CN110060152B (en) Data reading method and system based on multiple block chain networks
CN111523052A (en) Block chain-based user recommendation method and device and electronic equipment

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