[go: up one dir, main page]

CN112819466B - Digital certificate processing method and device, terminal equipment and storage medium - Google Patents

Digital certificate processing method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN112819466B
CN112819466B CN202110194976.7A CN202110194976A CN112819466B CN 112819466 B CN112819466 B CN 112819466B CN 202110194976 A CN202110194976 A CN 202110194976A CN 112819466 B CN112819466 B CN 112819466B
Authority
CN
China
Prior art keywords
pass
homogeneous
target
hash value
account
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.)
Active
Application number
CN202110194976.7A
Other languages
Chinese (zh)
Other versions
CN112819466A (en
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.)
Guangdong Zhuoqi Cloud Chain Technology Co ltd
Original Assignee
Guangdong Zhuoqi Cloud Chain Technology 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 Guangdong Zhuoqi Cloud Chain Technology Co ltd filed Critical Guangdong Zhuoqi Cloud Chain Technology Co ltd
Priority to CN202110194976.7A priority Critical patent/CN112819466B/en
Publication of CN112819466A publication Critical patent/CN112819466A/en
Application granted granted Critical
Publication of CN112819466B publication Critical patent/CN112819466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/04Payment circuits
    • G06Q20/045Payment circuits using payment protocols involving tickets
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials
    • G06Q20/38215Use of certificates or encrypted proofs of transaction rights
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application provides a processing method, a device, terminal equipment and a storage medium for digital certificate, which comprise the following steps: acquiring a pass creation request, wherein the pass creation request comprises a first hash value and a token value of a homogeneous pass; based on a preset non-homogeneous pass account book, packaging a first hash value and a token value of the homogeneous pass, and generating a target non-homogeneous pass of a target blockchain account; based on the target non-homogeneous pass, carrying out transaction on the homogeneous pass in the target non-homogeneous pass to obtain a transaction result. The application can enable the homogeneous pass to circulate among the blockchain accounts by taking the non-homogeneous pass as a medium, so that the transaction result can be traced by utilizing the non-homogeneous pass and can be counted and benefit distributed by utilizing the homogeneous pass, thereby realizing the traceability of the transaction result and improving the credibility.

Description

Digital certificate processing method and device, terminal equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for processing digital certificates, a terminal device, and a storage medium.
Background
Digital certificates of interest are tokens that exist in digital form, such as coupons for consumption, coupons, and pick-up coupons. In a cross-subject collaboration scenario, such as where merchant A issues a ticket to its customer that is accepted by merchant B, data processing such as ticket acceptance, benefit distribution, etc., is involved. In order to ensure the reliability of the data processing process, the block chain technology is adopted to process the digital evidence at present, and the method mainly comprises two modes of ' result uplink ' and ' on-chain non-homogeneous evidence.
The result uplink is to uplink the processing result of the business logic, but the blockchain cannot judge the correctness of the processing result, and an attacker can still interfere with the processing result by tampering with the database. The "on-chain non-homogeneous pass" is to use the non-homogeneous pass to represent the ticket, its business logic is based on the blockchain and the storage and inquiry are based on the blockchain, but the non-homogeneous pass can not be overlapped or split, and is not suitable for statistics and benefit distribution. It can be seen that the current blockchain-based ticket processing method has the problem of low credibility.
Disclosure of Invention
The embodiment of the application aims to provide a processing method, a device, terminal equipment and a storage medium for digital certificate, which aim to solve the problem of low credibility of the current ticket processing mode based on block chain.
In a first aspect, an embodiment of the present application provides a method for processing digital certificates, including:
Acquiring a pass creation request, wherein the pass creation request comprises a first hash value and a token value of a homogeneous pass;
based on a preset non-homogeneous pass account book, packaging a first hash value and a token value of the homogeneous pass, and generating a target non-homogeneous pass of a target blockchain account;
Based on the target non-homogeneous pass, carrying out transaction on the non-homogeneous pass and/or the homogeneous pass in the target non-homogeneous pass to obtain a transaction result.
In this embodiment, the first hash value and the token value of the homogeneous pass are packaged based on a preset heterogeneous pass account book to generate a target heterogeneous pass of the target blockchain account, so that the homogeneous pass can circulate between blockchain accounts with the heterogeneous pass as a medium, and the target heterogeneous pass has the characteristics of both the heterogeneous pass and the homogeneous pass; and based on the target non-homogeneous pass, carrying out transaction on the non-homogeneous pass and/or the homogeneous pass in the target non-homogeneous pass to obtain a transaction result, so that the transaction result can be traced by utilizing the non-homogeneous pass and can be counted and benefit distributed by utilizing the homogeneous pass, thereby realizing traceability of the transaction result and improving the credibility.
Further, based on a preset heterogeneous universal certificate account book, packaging a hash value and a token value of the homogeneous universal certificate, and generating a target heterogeneous universal certificate of the target blockchain account, including:
Inputting the first hash value and the token value of the homogenization pass into a preset non-homogenization pass account book to obtain a new non-homogenization pass account book;
generating a second hash value of the heterogeneous general evidence based on the new heterogeneous general evidence ledger;
verifying the correctness of input parameters in the non-homogeneous general ledger, wherein the input parameters comprise a first hash value, a token value and a second hash value;
And if the input parameters are correct, signing the non-homogeneous pass based on the signature certificate of the target blockchain account to obtain the target non-homogeneous pass.
In this embodiment, the first hash value and the token value of the homogenization pass are input into a preset non-homogenization pass account book, so that the non-homogenization pass contains the first hash value for identifying the homogenization pass and the token value for representing the number of the homogenization passes; and generating a second hash value of the non-homogeneous pass certificate based on the new non-homogeneous pass certificate so as to be used for identifying the non-homogeneous pass certificate, and then verifying and signing through parameters to ensure the data security.
Further, based on the target non-homogeneous pass, performing a transaction on the non-homogeneous pass and/or the homogeneous pass in the target non-homogeneous pass to obtain a transaction result, including:
acquiring a pass transaction request, wherein the pass transaction request comprises a transaction pass quantity and a pass receiving account;
And transferring the first hash value, the token value corresponding to the transaction verification quantity and the second hash value to a verification receiving account to obtain a transaction result.
In this embodiment, the transaction result is obtained by transferring the first hash value, the token value corresponding to the transaction verification number, and the second hash value to the verification receiving account, so that which non-homogeneous verification is obtained from the second hash value in the transaction result, the transaction amount in the transaction result can be obtained, and the identification code of the transaction amount can be obtained from the first hash value in the transaction result.
Further, based on the target non-homogeneous pass, performing a transaction on the non-homogeneous pass and/or the homogeneous pass in the target non-homogeneous pass, and after obtaining a transaction result, further including:
if the final receiving account of the target non-homogeneous pass is a target destroying account, destroying the target non-homogeneous pass.
In this embodiment, for the equity certificates such as the ticket, the ticket cannot be reused after use, so the non-homogeneous pass corresponding to the ticket needs to be destroyed, so that the non-homogeneous pass is prevented from being reused, and the accuracy of the transaction result is ensured.
Further, after destroying the target heterogeneous pass, further comprising:
And transferring the homogenization pass in the non-homogenization pass to a preset blockchain account.
In this embodiment, the homogenous communication is released for creating a new non-homogenous communication, so as to realize recycling.
Further, based on the target non-homogeneous pass, performing a transaction on the non-homogeneous pass and/or the homogeneous pass in the target non-homogeneous pass, and after obtaining a transaction result, further including:
acquiring an intelligent contract, wherein the intelligent contract comprises a benefit distribution strategy;
Based on the benefit distribution strategy, according to the credit receipt account and the received token value of the non-homogeneous credit in the transaction result, distributing the benefit corresponding to the received token value to the credit receipt account.
In this embodiment, since the transaction result records the token receiving account of the non-homogeneous token and the token value of the received homogeneous token, the benefit distribution can be based on the non-homogeneous token, and statistics can be performed based on the homogeneous token, thereby facilitating realization of benefit distribution.
Further, the transaction result includes a first hash value and a second hash value, and based on the target non-homogeneous pass, the transaction is performed on the non-homogeneous pass and/or the homogeneous pass in the target non-homogeneous pass, and after the transaction result is obtained, the method further includes:
And tracing the non-homogeneous pass based on the second hash value in the transaction result to obtain a circulation record of the non-homogeneous pass.
In this embodiment, the second hash value is used to trace the non-homogeneous pass, so that the circulation record of the non-homogeneous pass in each blockchain account can be obtained.
In a second aspect, an embodiment of the present application provides a device for processing digital certificates, including:
The acquisition module is used for acquiring a pass creation request, wherein the pass creation request comprises a first hash value and a token value of a homogeneous pass;
The generation module is used for packaging the first hash value and the token value of the homogeneous pass based on a preset heterogeneous pass account book to generate a target heterogeneous pass of the target blockchain account;
And the transaction module is used for carrying out transaction on the non-homogeneous pass and/or the homogeneous pass in the target non-homogeneous pass based on the target non-homogeneous pass to obtain a transaction result.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory and a processor, where the memory is configured to store a computer program, and the processor is configured to execute the computer program to cause the terminal device to execute the method for processing digital authentication according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements the method for processing digital authentication according to the first aspect.
It will be appreciated that the advantages of the second to fourth aspects are described with reference to the related description of the first aspect, and will not be repeated here.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a digital certificate processing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a digital certificate processing device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 4 is a schematic diagram of an NFT trace back process provided by an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
As described in the related background art, the current ticket processing method is mainly "result uplink" and "on-link non-homogeneous pass", but the non-homogeneous pass cannot be overlapped and split, which is unfavorable for benefit distribution, and the homogeneous pass cannot be traced.
Aiming at the problems in the prior art, the application provides a method for generating a target non-homogeneous pass of a target blockchain account by packaging a first hash value and a token value of a homogeneous pass based on a preset non-homogeneous pass account, so that the homogeneous pass can circulate among blockchain accounts with the non-homogeneous pass as a medium, and the target non-homogeneous pass has the characteristics of both the non-homogeneous pass and the homogeneous pass; and based on the target non-homogeneous pass, carrying out transaction on the non-homogeneous pass and/or the homogeneous pass in the target non-homogeneous pass to obtain a transaction result, so that the transaction result can be traced by utilizing the non-homogeneous pass and can be counted and benefit distributed by utilizing the homogeneous pass, thereby realizing traceability of the transaction result and improving the credibility.
Referring to fig. 1, fig. 1 shows a flowchart of an implementation of a method for processing digital certificates according to an embodiment of the present application. The method for processing the digital certificate in the embodiment of the application can be applied to terminal equipment, wherein the terminal equipment comprises, but is not limited to, computer equipment such as a notebook computer, a desktop computer, a physical server, a cloud server and the like which are built by using a block chain technology. The processing method of the digital certificate in the embodiment of the application comprises the steps S101 to S103, and is described in detail as follows:
step S101, acquiring a pass creation request, wherein the pass creation request comprises a first hash value of a homogeneous pass and a token value, the first hash value is an identification of the homogeneous pass, and the token value is used for representing the number of the homogeneous pass.
In this example, the homogeneous pass (Fungible Token, FT) is a digital pass relative to the heterogeneous pass (Non-Fungible Token, NFT). For example, the traditional accounting method of electronic cash is a homogeneous certificate, for example, if user a transfers 10 yuan to user a and then user B transfers 10 yuan to user a, any person cannot prove whether the electronic cash transferred twice is the same "10 yuan". In contrast, a banknote is a non-homogeneous pass because each banknote has a number that can easily distinguish between different "10" digits. The first hash value is used for identifying the homogenization pass, and the token value is used for identifying the pass number.
Step S102, based on a preset heterogeneous communication account book, packaging a first hash value and a token value of the homogeneous communication account, and generating a target heterogeneous communication account of the target blockchain account.
In this embodiment, the non-homogeneous general ledger is a type of feature ledger recorded on the blockchain. Illustratively, the blockchain account a is created with the SDK encapsulated at the application layer, the FT is created after the blockchain account a, and an NFT is created on the basis of the FT. FT is converted to NFT by a certain ratio, both NFT and FT being the same ledger at creation time. In the process of creating the NFT, the hash value of the original FT and the number of tokens to be converted need to be input on the NFT ledger.
In an embodiment, based on a preset heterogeneous universal certificate account book, packaging a hash value and a token value of a homogeneous universal certificate to generate a target heterogeneous universal certificate of a target blockchain account, including: inputting the first hash value and the token value of the homogenization pass into a preset non-homogenization pass account book to obtain a new non-homogenization pass account book; generating a second hash value of the heterogeneous general evidence based on the new heterogeneous general evidence ledger; verifying the correctness of input parameters in the non-homogeneous general ledger, wherein the input parameters comprise a first hash value, a token value and a second hash value; and if the input parameters are correct, signing the non-homogeneous pass based on the signature certificate of the target blockchain account to obtain the target non-homogeneous pass.
In this embodiment, the license creation request includes request parameters such as a blockchain account address, a first hash value, a message, an FT value that the NFT needs to include, and a signature key. Specifically, verifying request parameters and node types, checking whether an operation of creating the NFT can be initiated, if so, inputting a first hash value and a token value into an NFT account book, and generating an NFT hash; after verifying the signature secret key, placing the NFT account book into an account book pool for waiting to be processed; and when the NFT account book is executed, checking whether final input parameters of the NFT account book are correct, and signing the NFT account book if the final input parameters are correct to generate the NFT.
The first hash value and the token value of the homogenization pass are input into a preset non-homogenization pass account book, so that the non-homogenization pass contains the first hash value for identifying the homogenization pass and the token value for representing the number of the homogenization passes; and generating a second hash value of the non-homogeneous pass certificate based on the new non-homogeneous pass certificate so as to be used for identifying the non-homogeneous pass certificate, and then verifying and signing through parameters to ensure the data security.
Step S103, based on the target non-homogeneous pass, carrying out transaction on the non-homogeneous pass and/or the homogeneous pass in the target non-homogeneous pass to obtain a transaction result.
In this embodiment, FT transactions and NFT transactions can be performed using target non-homogeneous pass. It is understood that FT transactions are processes that utilize non-homogeneous ones of the target non-homogeneous passes to conduct transactions, and NFT transactions are processes that utilize homogeneous ones of the target non-homogeneous passes to conduct transactions. The FT transaction flow process may be: initiating transfer, verifying whether the hash value, the timestamp, the signature and the related account of the receiver account reach the balance to be deducted, if the conditions are met, generating output contents of the transaction, such as the hash value of the transaction, the latest holder information and the latest circulation record of the homogenization pass, and finally transferring FT to the receiver account.
By way of example and not limitation, an application scenario is provided in which government settings stimulate funds expected to be used by market consumers, such as 1000 ten thousand, which 1000 ten thousand corresponds to FT in this embodiment. The government issues funds to the channel through the blockchain, e.g., channel a receives 200 tens of thousands, dividing it into 4 tens of thousands of 50 denominations (50 FT per serving) of consumer coupons (NFT). When a consumer goes to a venue for consumption, the venue party is responsible for verifying the approval and assigning the FT to the venue party account according to the smart contract.
In an embodiment, based on the target non-homogeneous pass, performing a transaction on the homogeneous pass in the target non-homogeneous pass to obtain a transaction result, including: acquiring a pass transaction request, wherein the pass transaction request comprises a transaction pass quantity and a pass receiving account; and transferring the first hash value, the token value corresponding to the transaction verification quantity and the second hash value to a verification receiving account to obtain a transaction result.
Illustratively, the target non-homogeneous pass is a consumption ticket, the government issues a ticket with a total value of 15 yuan to the channel party, the channel party divides the ticket into 5 yuan and 10 yuan consumption tickets, and then a non-homogeneous pass with a5 yuan amount and a non-homogeneous pass with a 10 piece amount are respectively created, wherein the token value of the homogeneous pass in the non-homogeneous pass is 5 to represent the amount of the consumption ticket. Therefore, in actual transaction, when the user a consumes at the merchant B using the 5-membered consumption coupon, the 5-membered of the user a in the blockchain needs to be transferred to the merchant B, and then the blockchain transfers token=5 in the homogeneity of the user a to the merchant B.
In this embodiment, the transaction result is obtained by transferring the first hash value, the token value corresponding to the transaction verification number, and the second hash value to the verification receiving account, so that which non-homogeneous verification is obtained from the second hash value in the transaction result, the transaction amount in the transaction result can be obtained, and the identification code of the transaction amount can be obtained from the first hash value in the transaction result.
In an embodiment, based on the target non-homogeneous pass, performing a transaction on the homogeneous pass in the target non-homogeneous pass, and after obtaining a transaction result, further including: if the final receiving account of the target non-homogeneous pass is a target destroying account, destroying the target non-homogeneous pass.
In this embodiment, for the equity certificates such as the ticket, the ticket cannot be reused after use, so the non-homogeneous pass corresponding to the ticket needs to be destroyed, so that the non-homogeneous pass is prevented from being reused, and the accuracy of the transaction result is ensured.
Each NFT has an end use object before creation and will use the object as the last flow for the non-homogenous pass based on this. For example, address a creates an NFT containing 50 units FT (i.e., the token value of FT is 50), then after a series of flows, the NFT finally flows to destruction address B, at which time a function is called to confirm whether to destroy and generate a hash value of the current destruction event record, and if true is returned, the NFT is destroyed, and the process can be understood as the verification of the NFT.
In an embodiment, after destroying the target heterogeneous certificate, further comprising: and transferring the homogenization pass in the non-homogenization pass to a preset blockchain account.
In this embodiment, the homogenous communication is released for creating a new non-homogenous communication, so as to realize recycling.
In an embodiment, based on the target non-homogeneous pass, performing a transaction on the homogeneous pass in the target non-homogeneous pass, and after obtaining a transaction result, further including: acquiring an intelligent contract, wherein the intelligent contract comprises a benefit distribution strategy; based on the benefit distribution strategy, according to the credit receipt account and the received token value of the non-homogeneous credit in the transaction result, distributing the benefit corresponding to the received token value to the credit receipt account.
In this embodiment, the NFT may adhere to a certain intelligent contract to be destroyed, and the released FT may perform directional transfer under the control of the intelligent contract rule. Knowing that the NFT has been streamed through three account addresses, for example, by querying, the last released FT can be evenly distributed to three accounts by the smart contract rules, for example, the benefit distribution for the consumer coupon promotion by a badminton merchant.
An intelligent contract can be understood as an account book on a blockchain, with code executing automatically upon some event triggering a term in the contract. Illustratively, the smart contract implementation flow for the certification distribution is as follows:
A field called "attribute" is added to the NFT that reflects the type of NFT currently being created, such as 1 for shuttlecocks. And each time the system receives a verification request of the NFT, the system can directly call the badminton intelligent contract to distribute FT. Meanwhile, when the NFT is created, it can input which intelligent contract function the NFT defaults to call, and at the same time, the NFT supports the IDs of which contracts, the type (i.e. "attribute") of the NFT is created, and the type is filled in by jason format by using the programmable ledger.
In addition to entering an "attribute" field for the NFT and formulating an intelligent contract containing a rule, more importantly, a correspondence between the type and the contract (a validation rule) is established, and the correspondence is validated on each shuttlecock ticket, and the correspondence can be written on another intelligent contract and can be directly invoked when in use.
In this embodiment, since the transaction result records the token receiving account of the non-homogeneous token and the token value of the received homogeneous token, the transaction result can be distributed based on the benefits of the non-homogeneous token, and statistics can be performed based on the homogeneous token, thereby being beneficial to realizing benefits distribution.
In an embodiment, the transaction result includes a first hash value and a second hash value, and based on the target non-homogeneous pass, the method further includes, after obtaining the transaction result, performing a transaction on a homogeneous pass in the target non-homogeneous pass: and tracing the non-homogeneous pass based on the second hash value in the transaction result to obtain a circulation record of the non-homogeneous pass.
In this embodiment, the NFT is combined with the existing consumption ticket, so that the NFT is explicitly entitled to and stored in the real consumption ticket, and the NFT is applied to tracing and storing a value product, so that the NFT becomes a main carrier of the consumption ticket. Illustratively, a set of traceability system is designed for NFT, and the procedure is as follows: NFT flows over multiple accounts, eventually being revoked at an account (assuming the account is D); calling a function to inquire that the NFT is sourced from an account C through the NFT identification of which the owner is D; with the pointer, index up is continued, tracing back to the earliest created NFT, which is characterized by the absence of the last NFT source.
Then, as shown in fig. 4, the NFT trace back process established by the user A, B, C, D, all trace back data of the entire process will be stored together by the user A, B, C, D, and other users in the system can access the data of this chain only after being authorized. According to the embodiment, the non-homogeneous pass is traced through the second hash value, so that the circulation records of the non-homogeneous pass in each blockchain account can be obtained.
In order to execute the method corresponding to the method embodiment to achieve the corresponding functions and technical effects, a digital certificate processing device is provided below. Referring to fig. 2, fig. 2 is a block diagram of a digital certificate processing device according to an embodiment of the present application. The apparatus in this embodiment includes modules for performing the steps in the embodiment corresponding to fig. 1, and particularly refer to fig. 1 and the related description in the embodiment corresponding to fig. 1. For convenience of explanation, only the parts related to this embodiment are shown, and the processing device for digital certificate provided in this embodiment of the present application includes:
An obtaining module 201, configured to obtain a certificate creation request, where the certificate creation request includes a first hash value and a token value of a homogenous certificate;
The generating module 202 is configured to encapsulate the first hash value and the token value of the homogeneous pass based on a preset heterogeneous pass account book, and generate a target heterogeneous pass of the target blockchain account;
The transaction module 203 is configured to perform a transaction on the non-homogeneous pass and the homogeneous pass in the target non-homogeneous pass based on the target non-homogeneous pass, so as to obtain a transaction result.
In one embodiment, the generating module 202 includes:
The input unit is used for inputting the first hash value and the token value of the homogenization pass into the preset non-homogenization pass account book to obtain a new non-homogenization pass account book;
The generation unit is used for generating a second hash value of the non-homogeneous general evidence based on the new non-homogeneous general evidence account book;
The verification unit is used for verifying the correctness of the input parameters in the non-homogeneous general ledger, wherein the input parameters comprise the first hash value, the token value and the second hash value;
And the signature unit is used for signing the heterogeneous pass based on the signature certificate of the target blockchain account if the input parameters are correct, so as to obtain the target heterogeneous pass.
In one embodiment, the transaction module 203 includes:
The system comprises an acquisition unit, a verification processing unit and a verification processing unit, wherein the acquisition unit is used for acquiring a verification transaction request, and the verification transaction request comprises a transaction verification quantity and a verification receiving account;
and the transferring unit is used for transferring the first hash value, the token value corresponding to the transaction verification quantity and the second hash value to the verification receiving account to obtain the transaction result.
In an embodiment, the apparatus further includes:
And the destroying module is used for destroying the target heterogeneous pass if the final receiving account of the target heterogeneous pass is the target destroying account.
In an embodiment, the apparatus further includes:
And the transfer module is used for transferring the homogenization pass in the non-homogenization pass to a preset blockchain account.
In an embodiment, the apparatus further includes:
the second acquisition module is used for acquiring intelligent contracts, wherein the intelligent contracts comprise benefit distribution strategies;
And the distribution module is used for distributing benefits corresponding to the received token value to the credit receiving account according to the credit receiving account and the received token value of the non-homogeneous credit in the transaction result based on the benefits distribution strategy.
In an embodiment, the apparatus further includes:
And the tracing module is used for tracing the non-homogeneous pass based on the second hash value in the transaction result to obtain a circulation record of the non-homogeneous pass.
Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 3, the terminal device 3 of this embodiment includes: at least one processor 30 (only one shown in fig. 3), a memory 31 and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, the processor 30 implementing the steps in any of the method embodiments described above when executing the computer program 32.
The terminal device 3 may be a notebook computer, a desktop computer, a physical server, a cloud server, or other computing devices built by using a blockchain technology. The terminal device may include, but is not limited to, a processor 30, a memory 31. It will be appreciated by those skilled in the art that fig. 3 is merely an example of the terminal device 3 and does not constitute a limitation of the terminal device 3, and may include more or less components than illustrated, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The Processor 30 may be a central processing unit (Central Processing Unit, CPU), the Processor 30 may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may in some embodiments be an internal storage unit of the terminal device 3, such as a hard disk or a memory of the terminal device 3. The memory 31 may in other embodiments also be an external storage device of the terminal device 3, such as a plug-in hard disk provided on the terminal device 3, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like. Further, the memory 31 may also include both an internal storage unit and an external storage device of the terminal device 3. The memory 31 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs etc., such as program codes of the computer program etc. The memory 31 may also be used for temporarily storing data that has been output or is to be output.
In addition, the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement steps in any of the above-mentioned method embodiments.
Embodiments of the present application provide a computer program product enabling a terminal device to carry out the steps of the method embodiments described above when the computer program product is run on the terminal device.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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.

Claims (6)

1. A method for processing digital certificates, comprising:
acquiring a pass creation request, wherein the pass creation request comprises a first hash value of a homogeneous pass and a token value, the first hash value is an identification of the homogeneous pass, and the token value is used for representing the quantity of the homogeneous pass;
Inputting the first hash value and the token value of the homogenization pass into a preset non-homogenization pass account book to obtain a new non-homogenization pass account book;
generating a second hash value of the heterogeneous general evidence based on the new heterogeneous general evidence ledger;
verifying the correctness of input parameters in the non-homogeneous general ledger, wherein the input parameters comprise the first hash value, the token value and the second hash value;
If the input parameters are correct, signing the non-homogeneous pass based on a signature certificate of a target blockchain account to obtain a target non-homogeneous pass;
Acquiring a pass transaction request, wherein the pass transaction request comprises transaction pass quantity and a pass receiving account;
Transferring the first hash value, the token value corresponding to the transaction verification quantity and the second hash value to the verification receiving account to obtain a transaction result;
Tracing the non-homogeneous pass based on the second hash value in the transaction result to obtain a circulation record of the non-homogeneous pass;
if the final receiving account of the target non-homogeneous pass is a target destroying account, destroying the target non-homogeneous pass, wherein the target destroying account is used for indicating the final flow direction of the target non-homogeneous pass.
2. The method for processing digital passcard according to claim 1, wherein if the final receiving account of the target non-homogeneous passcard is the target destruction account, after destroying the target non-homogeneous passcard, further comprising:
And transferring the homogeneous pass in the non-homogeneous pass to a preset blockchain account.
3. The method for processing digital passcards according to claim 1, wherein the processing the non-homogeneous passcard and/or the homogeneous passcard in the target non-homogeneous passcard based on the target non-homogeneous passcard, after obtaining the transaction result, further comprises:
acquiring an intelligent contract, wherein the intelligent contract comprises a benefit distribution strategy;
And distributing benefits corresponding to the received token value to the credit receiving account according to the credit receiving account of the non-homogeneous credit and the received token value in the transaction result based on the benefits distribution strategy.
4. A digital certificate processing apparatus, comprising:
The system comprises an acquisition module, a verification module and a verification module, wherein the acquisition module is used for acquiring a verification creation request, and the verification creation request comprises a first hash value and a token value of a homogeneous verification;
The generation module is used for inputting the first hash value and the token value of the homogenization pass into a preset non-homogenization pass account book to obtain a new non-homogenization pass account book; generating a second hash value of the heterogeneous general evidence based on the new heterogeneous general evidence ledger; verifying the correctness of input parameters in the non-homogeneous general ledger, wherein the input parameters comprise the first hash value, the token value and the second hash value; if the input parameters are correct, signing the non-homogeneous pass based on a signature certificate of a target blockchain account to obtain a target non-homogeneous pass;
The transaction module is used for acquiring a pass transaction request, wherein the pass transaction request comprises a transaction pass quantity and a pass receiving account; transferring the first hash value, the token value corresponding to the transaction verification quantity and the second hash value to the verification receiving account to obtain a transaction result;
The tracing module is used for tracing the non-homogeneous pass based on the second hash value in the transaction result to obtain a circulation record of the non-homogeneous pass;
the destroying module is used for destroying the target non-homogeneous pass if the final receiving account of the target non-homogeneous pass is a target destroying account, and the target destroying account is used for indicating the final flow direction of the target non-homogeneous pass.
5. A terminal device comprising a memory for storing a computer program and a processor that runs the computer program to cause the terminal device to perform the method of processing digital authentication according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the digital authentication processing method according to any one of claims 1 to 3.
CN202110194976.7A 2021-02-20 2021-02-20 Digital certificate processing method and device, terminal equipment and storage medium Active CN112819466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110194976.7A CN112819466B (en) 2021-02-20 2021-02-20 Digital certificate processing method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110194976.7A CN112819466B (en) 2021-02-20 2021-02-20 Digital certificate processing method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112819466A CN112819466A (en) 2021-05-18
CN112819466B true CN112819466B (en) 2024-08-16

Family

ID=75864473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110194976.7A Active CN112819466B (en) 2021-02-20 2021-02-20 Digital certificate processing method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112819466B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113837857A (en) * 2021-08-13 2021-12-24 合肥维天运通信息科技股份有限公司 A method and system for option trading of pending orders based on blockchain
CN113746638B (en) * 2021-09-03 2023-04-07 杭州复杂美科技有限公司 NFT storage method, NFT restoration method, computer device, and storage medium
CN114095214B (en) * 2021-10-29 2023-12-12 上海热线信息网络有限公司 Encryption and decryption method, device, equipment and medium based on block chain NFT technology
CN114070554B (en) * 2021-11-11 2024-01-19 杭州安存网络科技有限公司 Method and device for determining ownership of block chain machine generated data
CN114024687B (en) * 2021-11-11 2022-10-28 上海证章信息科技有限公司 Method for realizing NFT detachable and interchangeable through locking reissue
CN114092257A (en) * 2021-11-29 2022-02-25 上海万向区块链股份公司 Transparent share transfer method and system based on fragmented NFT
CN114140168A (en) * 2021-12-07 2022-03-04 广州蚁比特区块链科技有限公司 Resource processing method and device based on block chain, block chain equipment and medium
CN113952707B (en) * 2021-12-16 2022-03-22 广州优刻谷科技有限公司 RFID-based somatosensory game action recognition method, scoring method and system
CN114331428A (en) * 2021-12-17 2022-04-12 蚂蚁区块链科技(上海)有限公司 Non-homogeneous evidence-based distribution method and device
CN114444876A (en) * 2021-12-28 2022-05-06 杭州协能科技股份有限公司 Energy storage product data management method and system based on block link certification technology
CN114385981B (en) * 2022-01-29 2025-08-29 浙江大学 A method and device for generating digital rights proof of physical artwork
CN114581089A (en) * 2022-05-07 2022-06-03 杭州链城数字科技有限公司 NFT-based data transaction method, device, system, electronic device and medium
CN115063125A (en) * 2022-06-13 2022-09-16 杭州复杂美科技有限公司 NFT application method based on two-layer network, computer equipment and storage medium
CN115115413A (en) * 2022-07-18 2022-09-27 北京溪塔科技有限公司 A method and system for issuing rights and interests based on blockchain

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108335207A (en) * 2018-02-14 2018-07-27 阿里巴巴集团控股有限公司 Assets management method and device, electronic equipment
CN111105236A (en) * 2020-01-06 2020-05-05 江苏恒为信息科技有限公司 Realization algorithm of non-homogeneity evidence

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106097030A (en) * 2016-04-29 2016-11-09 北京太云科技有限公司 The data processing method of a kind of assets based on block chain, Apparatus and system
CN110288357A (en) * 2019-03-25 2019-09-27 上海分布信息科技有限公司 A kind of source tracing method based on Data token
CN112308741A (en) * 2019-07-26 2021-02-02 傲为信息技术(江苏)有限公司 Digital Asset Financial System
CN111415156A (en) * 2020-03-26 2020-07-14 北京马上游科技有限责任公司 Shopping card implementation method based on block chain

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108335207A (en) * 2018-02-14 2018-07-27 阿里巴巴集团控股有限公司 Assets management method and device, electronic equipment
CN111105236A (en) * 2020-01-06 2020-05-05 江苏恒为信息科技有限公司 Realization algorithm of non-homogeneity evidence

Also Published As

Publication number Publication date
CN112819466A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN112819466B (en) Digital certificate processing method and device, terminal equipment and storage medium
TWI723658B (en) Methods and devices for protecting sensitive data of transaction activity based on smart contract in blockchain
CN109544160B (en) Transaction authenticity verification method and system based on block chain and intelligent contract
CN109035019B (en) Bill transaction method, system, computer device and storage medium
CN111444209B (en) Data processing method, device, equipment and medium based on block chain
CN110599275B (en) Data processing method, device and storage medium based on blockchain network
CN105719172A (en) Information issuing method and device
CN113537984A (en) Blockchain-based content verification method and device, and electronic equipment
CN111309745B (en) Virtual resource processing method and device, electronic equipment and storage medium
CN109933626B (en) Financial business data processing method and device and financial transaction terminal
CN112529647B (en) Block chain-based commodity transaction method, device and computer equipment
CN111833059B (en) A data asset management method in a data bank and a data bank system
CN111260488B (en) Data processing method and device and readable storage medium
JP6457391B2 (en) Method and system for distributing data streams
US20250028790A1 (en) Systems and Methods for Token Use and Protection Using Blockchain
US20190286841A1 (en) Detecting alterations of journal data structures
CN108985930A (en) Information processing method and device, block chain node and storage medium
CN113159768A (en) Transaction certificate storage method, device and equipment
CN112561407B (en) Blockchain-based asset management method, system and device
CN110599176B (en) Block chain-based data processing method and device, storage medium and node equipment
CN113469820B (en) Asset management method, device and system based on block chain
CN111784343A (en) Digital asset operation system and method
CN116739596A (en) Blockchain-based transaction supervision method, device, equipment, medium and product
CN114240431B (en) Feedback method, device, computer equipment and storage medium for order adjustment request
CN110599347A (en) Bill processing method, device, computer readable storage medium and computer 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
GR01 Patent grant
GR01 Patent grant