Transaction method and device based on block chain, electronic equipment and storage medium

By storing transaction information on the blockchain and storing digital vouchers in physical voucher cards, the problem of insufficient security of digital voucher storage is solved, achieving higher digital transaction security and continuous updating of voucher cards.

CN118657614AInactive Publication Date: 2024-09-17CHINA ACADEMY OF INFORMATION & COMM
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411124133.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Digital credentials are at risk of being tampered with or stolen when stored in client wallets or in the cloud, resulting in insufficient security for digital transactions.

Method used

By storing transaction information on the blockchain and storing digital vouchers in physical voucher cards, the security and up-to-dateness of digital vouchers are ensured by utilizing the non-tamperability of the blockchain and the distributed consensus algorithm.

Benefits of technology

It effectively avoids the security risk of digital certificates stored in client wallets or clouds, improves the security of digital transactions, and ensures that the digital certificates in the certificate card are always up to date and suitable for multiple transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657614A
    Figure CN118657614A
Patent Text Reader

Abstract

The embodiment of the invention discloses a transaction method and device based on a block chain, electronic equipment and a storage medium, and the method comprises the steps: carrying out the authentication of a transaction object according to a digital certificate in a transaction instruction, enabling the digital certificate to be obtained based on a certificate card, enabling the certificate card to be an entity card comprising the digital certificate, and enabling the transaction object to pass the authentication. Executing a transaction operation in the transaction instruction, generating transaction information corresponding to the transaction instruction, and storing the transaction information in the block chain; determining updated transaction information corresponding to the digital certificate based on the transaction information; and updating the voucher card according to the updated transaction information to obtain an updated voucher card. Therefore, the digital voucher of the transaction object is set in the voucher card, and the digital voucher can be obtained through the voucher card during digital transaction, so that the situation that the digital voucher is tampered or embezzled due to the fact that the digital voucher is stored in a client wallet or a cloud is avoided, and the security of the digital voucher is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of blockchain technology and digital certificate technology, and in particular to a transaction method and device, electronic device and storage medium based on blockchain. Background Art

[0002] A digital credential is a digital certificate that marks the identity information of the communicating parties in Internet communications. It is widely used in digital payments. When making digital deliveries, you can first obtain the user's digital credential, and then verify the digital credential to authenticate the user and determine whether the user can make digital payments.

[0003] In the process of implementing this application, it was found through research that in related technologies, digital credentials are usually stored in client wallets or in the cloud, but the data security of client wallets or in the cloud is poor, which makes the digital credentials at risk of being tampered with or stolen, thereby causing security risks in digital support. Summary of the invention

[0004] In order to solve the above technical problems, the embodiments of the present disclosure provide a transaction method and device based on blockchain, an electronic device and a storage medium.

[0005] One aspect of an embodiment of the present disclosure provides a blockchain-based transaction method, comprising: authenticating a transaction object according to a digital certificate in a transaction instruction, wherein the digital certificate is obtained based on a certificate card of the transaction object, and the certificate card is a physical card including the digital certificate; in response to the transaction object passing the authentication, executing a transaction operation corresponding to the transaction instruction, generating transaction information corresponding to the transaction instruction, and storing the transaction information in a blockchain; based on the transaction information, determining updated transaction information corresponding to the digital certificate; and updating the certificate card according to the updated transaction information to obtain an updated certificate card.

[0006] Another aspect of the embodiments of the present disclosure provides a blockchain-based transaction device, including: an authentication module, used to authenticate a transaction object according to a digital certificate in a transaction instruction, wherein the digital certificate is obtained based on a certificate card of the transaction object, and the certificate card is a physical card including the digital certificate; a transaction module, used to execute the transaction operation in the transaction instruction in response to the transaction object passing the authentication, generate transaction information corresponding to the transaction instruction, and store the transaction information in the blockchain; a first information determination module, used to determine updated transaction information corresponding to the digital certificate based on the transaction information; and an update module, used to update the certificate card according to the updated transaction information to obtain an updated certificate card.

[0007] Another aspect of the embodiments of the present disclosure provides an electronic device, comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, the above-mentioned blockchain-based transaction method is implemented.

[0008] Another aspect of the embodiments of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned blockchain-based transaction method.

[0009] Another aspect of the embodiments of the present disclosure provides a computer program product, including computer program instructions, characterized in that when the computer program instructions are executed by a processor, the above-mentioned blockchain-based transaction method is implemented.

[0010] The disclosed embodiment provides a transaction method and device based on blockchain, an electronic device and a storage medium, including: authenticating the transaction object according to the digital certificate in the transaction instruction, wherein the digital certificate is obtained based on the certificate card of the transaction object, and the certificate card is a physical card including the digital certificate. When the transaction object passes the authentication, the transaction operation in the transaction instruction is executed, the transaction information in the transaction instruction is generated, and the transaction information is stored in the blockchain; based on the transaction information, the updated transaction information corresponding to the digital certificate is determined; according to the updated transaction information, the certificate card is updated and processed to obtain an updated certificate card. Therefore, in the disclosed embodiment, the digital certificate of the transaction object is set in the certificate card, and the digital certificate can be obtained through the certificate card when conducting a digital transaction, thereby avoiding the situation where the digital certificate is tampered or stolen due to the storage of the digital certificate in the client wallet or the cloud, improving the security of the digital certificate, and thus improving the security of the digital transaction. In addition, after the transaction is completed, the transaction information is used to determine the updated transaction information, and the updated transaction information is used to update the certificate card, so that the digital certificate in the certificate card is the latest certificate, ensuring that the certificate card can be used again for transactions.

[0011] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0013] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which: Figure 1 It is a flowchart of a transaction method based on blockchain provided by an exemplary embodiment of the present application; Figure 2is a flowchart of step S100 provided by an exemplary embodiment of the present application; Figure 3 is a flowchart of a blockchain-based transaction method provided by another exemplary embodiment of the present application; Figure 4 is a flowchart of step S200 provided by an exemplary embodiment of the present application; Figure 5 is a front schematic diagram of a credential card provided by an exemplary embodiment of the present application; Figure 6 is a side view of a credential card provided by an exemplary embodiment of the present application; Figure 7 It is a flowchart of a transaction method based on blockchain provided by another exemplary embodiment of the present application; Figure 8 is a flowchart of step S130 provided by an exemplary embodiment of the present application; Fig. 9 is a flowchart of a blockchain-based transaction method provided by another exemplary embodiment of the present application; Fig.10 A block diagram of a transaction device based on blockchain in an embodiment of the present disclosure is shown; Fig.11 The figure is a schematic diagram of the structure of an application embodiment of the electronic device disclosed in the present invention. DETAILED DESCRIPTION

[0014] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.

[0015] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.

[0016] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.

[0017] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.

[0018] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.

[0019] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.

[0020] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0021] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0022] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0023] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0024] The embodiments of the present disclosure can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.

[0025] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in distributed cloud computing environments, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.

[0026] In the disclosed embodiments: In a narrow sense, blockchain is a decentralized shared ledger that combines data blocks into a specific data structure in a chain in chronological order, and is cryptographically guaranteed to be tamper-proof and unforgeable. It can safely store simple, sequential, and system-verifiable data. In a broad sense, blockchain technology is a new multi-centralized infrastructure and distributed computing paradigm that uses encryption technology to verify and store data, distributed consensus algorithms to add and update data, and code running on the blockchain, namely smart contracts, to ensure the automatic enforcement of business logic.

[0027] The public chain is a blockchain system established through the Proof of Work (PoW) mechanism and the Proof of Stake (PoS) mechanism. Specifically, the public chain refers to a blockchain where anyone can read and send transactions, and transactions can be effectively confirmed and participate in the consensus process.

[0028] The consortium chain is a blockchain system based on the Practical Byzantine Fault Tolerance (PBFT) mechanism. Specifically, the consortium chain refers to a specific group of members and limited third parties, with multiple pre-selected nodes designated as account keepers, and the generation of each block is jointly determined by all pre-selected nodes.

[0029] Figure 1 is a flowchart of a transaction method based on blockchain provided by an exemplary embodiment of the present application. This embodiment can be applied to electronic devices, such as Figure 1 As shown, the blockchain-based transaction method may include the following steps: Step S100: authenticating the transaction object according to the digital certificate in the transaction instruction.

[0030] The digital certificate is obtained based on the certificate card of the transaction object, and the certificate card is a physical card including the digital certificate.

[0031] The transaction instruction includes the digital certificate of the transaction object. The transaction object may include, but is not limited to, individuals, enterprises, groups or organizations. The digital certificate is used to prove whether the transaction object has the transaction authority. The digital certificate may include multiple pieces of certificate information. For example, the digital certificate may include: certificate identification, certificate version, certificate validity date, transaction object ID (Identity document, identification number), etc.

[0032] The voucher card is a physical card. The material and shape of the voucher card can be set according to actual needs, and are not specifically limited in this embodiment. For example, the voucher card can be a paper card or a plastic card. The shape of the voucher card can be, for example, rectangular or circular.

[0033] In a specific implementation, a chip may be provided in the credential card, and the digital credential is stored in the chip. The digital credential can be obtained from the chip. Alternatively, a QR code or bar code identifying the digital credential is provided on the credential card, and the digital credential can be obtained by scanning the QR code or bar code.

[0034] In one implementation, a transaction instruction may be sent to a server via an input device (eg, a keyboard, a touch screen, etc.), and the server may authenticate the transaction object based on the digital certificate to determine whether the transaction object has the authority to conduct the transaction.

[0035] Step S110, in response to the transaction object passing the authentication, executing the transaction operation in the transaction instruction, generating transaction information corresponding to the transaction instruction, and storing the transaction information in the blockchain.

[0036] The transaction instruction may also include a transaction operation. The transaction operation includes the transaction content indicating whether the transaction is a collection transaction or a payment transaction, and the transaction amount. The transaction information includes: the account balance of the transaction object, the object identifier, and the transaction amount, transaction time, transaction operation method, transaction serial number, etc. The account identifier is used to identify the transaction object, and the transaction operation method includes: payment or collection, etc.

[0037] In a specific implementation, when it is determined based on the digital certificate that the transaction object has not passed the authentication, it is determined that the transaction object does not have the authority to trade, and the transaction operation is terminated.

[0038] Step S120: determining updated transaction information corresponding to the digital certificate based on the transaction information.

[0039] Among them, the updated transaction information is used to update the corresponding credential information in the digital certificate.

[0040] In a specific implementation, the transaction information may be regarded as a historical transaction, a hash calculation may be performed on the historical transaction to determine the hash value of the historical transaction, and the updated transaction information may be constructed based on the hash value of the historical transaction and the account balance.

[0041] Step S130, updating the voucher card according to the update transaction information to obtain an updated voucher card.

[0042] The updated transaction information can be used to update the corresponding information in the digital voucher in the voucher card, so as to update the voucher card and obtain an updated voucher card. The transaction object can use the updated voucher card for the next transaction.

[0043] Exemplarily, the transaction information is taken as a historical transaction, and it is assumed that the update information includes: the hash value of the historical transaction and the account balance. A QR code identifying the digital certificate is set on the voucher card. In the server, the balance information in the digital certificate is updated using the account balance, and the hash value of the historical transaction is updated to the digital certificate to obtain an updated digital certificate. Then, a new QR code corresponding to the updated digital certificate is generated, and the new QR code is printed on the voucher card to update the voucher card.

[0044] In the disclosed embodiment, the digital certificate of the transaction object is set in the voucher card. When conducting digital transactions, the digital certificate can be obtained through the voucher card, thereby avoiding the situation where the digital certificate is tampered with or stolen due to the digital certificate being stored in the client wallet or the cloud, improving the security of the digital certificate, and further improving the security of digital transactions. In addition, after the transaction is completed, the transaction information is used to determine the update transaction information, and the voucher card is updated using the updated transaction information, so that the digital certificate in the voucher card is the latest certificate, ensuring that the voucher card can be used again for transactions.

[0045] Figure 2 is a flow chart of step S100 provided by an exemplary embodiment of the present application. In some optional implementations, such as Figure 2 As shown, step S100 includes the following steps: Step S101, obtaining the account information of the transaction object.

[0046] The transaction object has a digital account, and the digital account includes the account information of the transaction object. The account information includes at least one of the following credential information: credential identification, credential version, credential diagnosis chain information, credential call chain information, credential amount, credential string, and transaction record.

[0047] The credential call chain information includes the call chain information of each historical transaction that has occurred in the digital account corresponding to the digital credential (i.e., the digital account of the transaction object). The call chain information may include the flow information of the transaction amount between different computer systems in a transaction operation, that is, in a transaction operation, which computer systems and network platforms have processed the corresponding transaction amount in sequence.

[0048] The credential diagnostic chain includes diagnostic chain information of each historical transaction that has occurred in the digital account corresponding to the digital credential. The diagnostic chain information may include hardware snapshot information of each system and platform involved in the call chain information. The hardware snapshot information may specifically include the parameters of each hardware involved in the corresponding system or platform when the transaction operation occurs.

[0049] The voucher amount refers to the current balance of the digital account corresponding to the digital voucher. The voucher string is a string used to authenticate the identity of the transaction object. The voucher identifier is used to identify the digital voucher.

[0050] In a specific implementation, the transaction instruction may further include an object identifier of the transaction object. The object identifier is used to identify the transaction object. For example, the object identifier may be a DID (Decentralized Identity) identifier, a custom code, etc.

[0051] In the server, after completing the transaction operation in the transaction instruction, the transaction information generated by this transaction is stored in the common chain as a historical transaction. The call chain information and diagnostic chain information corresponding to the historical transaction, as well as the voucher identifier, voucher version, and voucher string are stored in the alliance chain. The balance information in the transaction information is stored in the alliance chain as the voucher amount.

[0052] The transaction record of the transaction object can be obtained from the public chain based on the object identifier. The transaction record includes the historical transaction information of the transaction object. The historical transaction information includes the hash value of the block to which each historical transaction of the transaction object belongs in the public chain, and the hash value of the parent block of the block.

[0053] Based on the object identifier, the voucher identifier, voucher version, voucher diagnostic chain information, voucher call chain information, voucher amount and voucher string are obtained from the alliance chain, wherein the voucher call chain information may specifically include: the hash value of the block to which the call chain information of each historical transaction belongs in the alliance chain, and the hash value of the parent block of the block. The voucher diagnostic chain information may specifically include: the hash value of the block to which the diagnostic chain information of each historical transaction belongs in the alliance chain, and the hash value of the parent block of the block.

[0054] Account information is constructed based on transaction records, voucher identifiers, voucher versions, voucher diagnostic chain information, voucher call chain information, voucher amounts, and voucher strings.

[0055] Step S102, verifying the digital certificate according to the account information.

[0056] Among them, the digital certificate includes at least one of the following certificate information: certificate identification, certificate version, certificate diagnosis chain information, certificate call chain information, certificate amount, certificate character string, and transaction record.

[0057] In a specific implementation, it is determined whether each piece of credential information in the digital certificate is consistent with the corresponding information in the account information. When each piece of credential information in the digital certificate is consistent with the corresponding information in the account information, it is determined that the digital certificate has passed the verification; when there is credential information in the digital certificate that is inconsistent with the account information, it is determined that the digital certificate has not passed the verification.

[0058] Step S103, in response to the digital certificate passing the verification, determining that the transaction object passes the authentication.

[0059] In a specific manner, when the digital certificate fails to pass the verification, it is determined that the transaction object has failed the authentication, that is, the transaction object does not have the authority to trade.

[0060] Figure 3 is a flowchart of a blockchain-based transaction method provided by another exemplary embodiment of the present application. In some optional implementations, such as Figure 3 As shown, digital certificates can be obtained in the following ways: Step S200: based on a plurality of marks of the credential card, determining the credential information identifiers of the credential information corresponding to each mark.

[0061] There are multiple marks on the voucher card, each mark corresponds to a voucher information identifier, each voucher information identifier is used to identify a voucher information, and each voucher information identifier includes multiple characters.

[0062] In an optional embodiment, the mark includes at least one of the following: a barcode, a two-dimensional code, and at least one group of holes set in a preset manner. For example, the barcode or two-dimensional code can be set on the voucher card by printing or spraying. The two-dimensional code or barcode of the voucher card can be scanned by a scanning device, and the corresponding voucher information identification can be determined by the collected two-dimensional code or barcode. Among them, the scanning device can be, for example, a laser scanner, a three-dimensional scanner, etc.

[0063] In one implementation, a correspondence between a preset flag and a credential information identifier may be preset, and the credential information identifier corresponding to each flag may be determined by using the correspondence between the preset flag and the credential information identifier.

[0064] Step S210: determining the credential information corresponding to the plurality of credential information identifiers.

[0065] In the server, a correspondence between a preset credential information identifier and the credential information may be pre-established, and then the credential information corresponding to each credential information identifier is determined by using the correspondence between the preset credential information identifier and the credential information.

[0066] Exemplarily, assuming that the credential identifier is a barcode, each barcode is used to identify a piece of credential information, each credential information identifier is scanned using a scanning device, and the credential information corresponding to each credential information identifier is determined through each credential information identifier obtained by scanning.

[0067] Step S220, determining a digital certificate based on multiple certificate information.

[0068] Among them, a digital certificate can be constructed from multiple credential information.

[0069] Figure 4 is a flow chart of step S200 provided by an exemplary embodiment of the present application. In some optional implementations, such as Figure 4 As shown, step S200 may include the following steps: Step S201, obtaining hole information and position information corresponding to each hole in a plurality of groups of holes from a voucher card.

[0070] The mark includes at least one group of holes arranged in a preset manner. The hole information includes at least one of the following: the shape, depth, diameter, arrangement order, and internal features of the holes. The internal features of the holes include the number of protrusions and / or depressions arranged on the inner wall of the holes.

[0071] In a specific implementation, each mark includes a group of holes arranged in a preset manner, that is, each group of holes represents a mark. The holes located in the same row, the same column or the same area can be determined as a group of holes. Each group of holes can be determined based on the position information of each hole.

[0072] The shape of the hole may include, for example, a circle, a triangle, a rectangle, a regular hexagon, a regular pentagon, an arrow, a four-pointed star or a five-pointed star, etc. The raised portion may include, for example, a convex point, and the shape of the convex point may include, for example, a circle, a rectangle or a triangle, etc. The recessed portion may include, for example, a recessed point, and the shape of the recessed portion may include, for example, a circle, a rectangle or a triangle, etc. The position information of the hole includes the position of the hole on the credential card.

[0073] In a specific implementation, reflective paint can be sprayed inside the hole so that the scanning device can collect the internal features of the hole. The credential card can be anti-counterfeited by spraying reflective paint inside the hole. For example, based on a laser scanner, a laser can be input into the hole at an incident angle less than or equal to 1° to collect the internal features of the hole. The reflective paint can be obtained by mixing color pigments with silver powder.

[0074] Step S202: based on the hole information and position information corresponding to each hole in the plurality of groups of holes, the plurality of groups of holes are escaped to obtain a plurality of credential information identifiers.

[0075] The correspondence between the preset mark and the credential information identifier may include: the correspondence between the preset hole information and the character, and the correspondence between the preset position and the type.

[0076] The correspondence between the preset hole information and the characters may include: the hole information corresponding to each character. The characters may include numbers 0 to 9, lowercase letters a to z, and uppercase letters A to Z. Exemplarily, it is assumed that the hole information includes: the shape and internal features of the hole, and the internal features of the hole include: the number of protrusions. Hole information A includes: when the hole shape is a rectangle and the internal feature of the hole includes 3 protrusions, the character 1 corresponding to hole information A; when hole information B includes: when the hole shape is the center of a circle and the internal feature of the hole includes 2 protrusions, the character 2 corresponding to hole information B; when the collected hole information is hole information A, the hole information can be converted to character 1.

[0077] The types in the correspondence between the preset position and the type may include, for example: voucher identification, voucher version, voucher diagnostic chain information, voucher call chain information, voucher amount, voucher string and transaction record. The type of each hole can be determined by the correspondence between the preset position and the type, that is, the type corresponding to each hole can be used to determine which voucher information the characters corresponding to the hole information of the hole are used to form. For example, the correspondence between the preset position and the type includes: the upper left area (position information) of the voucher card corresponds to the voucher amount. When the position information of the hole is detected to be located in the upper left area of ​​the voucher card, it can be determined that the characters corresponding to the hole information of the hole are used to form the voucher information identification that identifies the voucher amount.

[0078] In a specific implementation, holes belonging to the same group can be determined based on the position information of each hole. For each group of holes, based on the hole information of each hole in the group of holes, the characters corresponding to each hole in the group of holes are determined by using the correspondence between the preset hole information and the characters. Based on the position information of any hole in the group of holes, the type of any hole is determined by using the correspondence between the preset position and the type, and the type is determined as the type corresponding to the group of holes. According to the characters and types corresponding to each hole in the group of holes, the credential information identifier corresponding to the group of holes is determined to complete the escape of a group of holes.

[0079] For example, Figure 5 It is a front schematic diagram of a credential card provided by an exemplary embodiment of the present application. Figure 6 FIG. 1 is a side view of a credential card provided by an exemplary embodiment of the present application. Figure 5-6 As shown, the credential card is divided into four areas, namely P1 to P4, and the holes in each area are defined as a group of holes. The hole information includes: the shape and internal features of the hole, and the internal features of the hole include the number of raised points (raised parts) on the inner wall of the hole.

[0080] The voucher card is scanned by a scanning device to obtain the hole information of all holes on the voucher card and the position information on the voucher card. Based on the position information of each hole, multiple holes are grouped to determine the groups of holes belonging to the P1~P4 areas. Based on the position information of the first hole in each group of holes, the type corresponding to each group of holes is determined by using the correspondence between the preset position and the type; based on the hole information of each hole in each group of holes, the character corresponding to each hole in each group of holes is determined by using the correspondence between the preset hole information and the character, and the voucher information identifier corresponding to each group of holes is determined by the character corresponding to each hole in each group of holes and the type corresponding to each group of holes. Among them, a group of holes belonging to the P1 area corresponds to the voucher information identifier corresponding to the voucher diagnosis chain information, a group of holes belonging to the P2 area corresponds to the voucher information identifier corresponding to the voucher amount, a group of holes belonging to the P3 area corresponds to the voucher information identifier corresponding to the transaction record, and a group of holes belonging to the P4 area corresponds to the voucher information identifier corresponding to the voucher string.

[0081] Based on the voucher information identifier corresponding to each group of holes, the corresponding relationship between the preset voucher information identifier and the voucher information is used to determine the voucher information corresponding to each group of holes, that is, to obtain the voucher diagnosis chain information, voucher amount, transaction record and voucher string. The voucher diagnosis chain information, voucher amount, transaction record and voucher string constitute a digital voucher.

[0082] Figure 7 is a flowchart of a blockchain-based transaction method provided by another exemplary embodiment of the present application. In some optional implementations, such as Figure 7 As shown, before step S130, the following steps are also included: Step S300, obtaining area information of the printable area on the voucher card.

[0083] The area information of the printable area includes: the ratio between the area of ​​the blank area on the voucher card and the area of ​​the voucher card, or the area of ​​the blank area on the voucher card.

[0084] In a specific implementation, an image acquisition device may be used to capture an image of a voucher card, and the image may be recognized using image recognition technology to determine the area of ​​the blank area on the voucher card and the area of ​​the voucher card, and to confirm the area information of the printable area.

[0085] Step S310: in response to the region information satisfying the first preset condition, updating the voucher card according to the update transaction information.

[0086] Among them, a preset printable area threshold can be set. When the ratio between the area of ​​the blank area on the voucher card in the area information of the printable area and the area of ​​the voucher card, or the area of ​​the blank area on the voucher card is greater than or equal to the preset printable area threshold, it is determined that the area information of the printable area meets the first preset condition.

[0087] Figure 8 is a flow chart of step S130 provided by an exemplary embodiment of the present application. In some optional implementations, such as Figure 8 As shown, step S130 may include the following steps: Step S131, updating the corresponding credential information in the digital credential based on the updated transaction information to obtain new credential information.

[0088] Wherein, updating transaction information includes at least one of the following: transaction information, and diagnostic chain information, call chain information, and balance information corresponding to the transaction information. Specifically, the diagnostic chain information, call chain information, and balance information generated in a transaction operation may be referred to as the diagnostic chain information, call chain information, and balance information corresponding to the transaction information generated by the transaction operation.

[0089] In a specific implementation, in the server, the diagnosis chain information and the call chain information are stored in the alliance chain, and the transaction information is stored in the shared chain as a historical transaction.

[0090] Get the hash value of the block to which the diagnostic chain information belongs in the alliance chain, and the hash value of the parent block of the block; get the hash value of the block to which the call chain information belongs in the alliance chain, and the hash value of the parent block of the block; get the hash value of the block to which the historical transaction information belongs in the public chain, and the hash value of the parent block of the block.

[0091] The balance information is used as the new voucher amount. The hash value of the block to which the diagnostic chain information belongs in the alliance chain, and the hash value of the parent block of the block, are updated to the voucher diagnostic chain information to generate new voucher diagnostic chain information. The hash value of the block to which the call chain information belongs in the alliance chain, and the hash value of the parent block of the block, are updated to the voucher call chain information to generate new voucher call chain information. The hash value of the block to which the historical transaction information belongs in the public chain, and the hash value of the parent block of the block are updated to the transaction record to obtain a new transaction record.

[0092] Step S132, obtaining a new credential information identifier corresponding to the new credential information.

[0093] Among them, a preset identifier creation rule for creating a credential information identifier may be preset. For example, the preset identifier creation rule may include: the length of the credential information identifier, the character combination form, etc.

[0094] In a specific implementation, the new voucher information may be new voucher diagnosis chain information, new voucher call chain information, new voucher amount, and new transaction record.

[0095] Rules can be created based on preset identifiers to determine new voucher information identifiers corresponding to new voucher diagnostic chain information, new voucher call chain information, new voucher amount and new transaction records respectively, and then the new voucher information identifiers corresponding to the new voucher diagnostic chain information, new voucher call chain information, new voucher amount and new transaction records are updated to the correspondence between the preset voucher information identifier and the voucher information.

[0096] Step S133, determining the printing information of the new mark corresponding to the new credential information identifier.

[0097] The printing information includes: the printing position of the new logo. The printable area can be divided into multiple printing areas according to preset area parameters (for example, height and width), and any printing area is determined as the printing position.

[0098] In one implementation, the new flag corresponding to each new credential information identifier may be determined by using the correspondence between the preset flag and the credential information identifier.

[0099] Step S134, based on the printing information of the new logo, the new logo is set in the printable area to update the voucher card.

[0100] According to the printing information, a new mark is set in the printing area by spraying or printing, so as to update the voucher card.

[0101] In a specific implementation, the mark corresponding to the original credential information on the credential card corresponding to the new credential information may also be destroyed. For example, when the new credential information is a new transaction record, the mark corresponding to the original transaction record on the credential card is destroyed. The mark on the credential card may be destroyed by blackening, punching, etc.

[0102] In some optional implementations, step S133 in the embodiment of the present application may specifically include: escaping the new credential information identifier and determining the printing information of the new mark.

[0103] The new mark is a group of holes set in a preset manner. The printing information includes: hole information and position information of the holes to be punched. The hole information of the holes to be printed includes: the shape and internal features of the holes to be printed, and the internal features of the holes to be printed include: the number of raised parts and / or recessed parts.

[0104] In one implementation, based on the new credential information identifier, the hole information to be punched corresponding to the new credential information identifier may be determined by utilizing the correspondence between preset hole information and characters.

[0105] Based on the new credential information identifier, the position information of the hole to be punched corresponding to the new credential information identifier can be determined by using the pre-set correspondence between the preset position and the type.

[0106] Accordingly, step S134 may specifically include: setting the holes to be punched in the printable area based on the hole information and position information of the holes to be punched, so as to update the voucher card.

[0107] In one embodiment, according to the hole information and position information of the hole to be punched, a 3D printing device is used to print the hole to be punched into the printable area, and the voucher card is updated.

[0108] Fig. 9 is a flowchart of a blockchain-based transaction method provided by another exemplary embodiment of the present application. In some optional implementations, such as Fig. 9 As shown, after step S300, the following steps are also included: Step S400: in response to the area information satisfying the second preset condition, obtaining an initial credential card.

[0109] The initial credential card is a physical card. The material and shape of the initial credential card can be set according to actual needs, and are not specifically limited in this embodiment. For example, the initial credential card can be a paper card, a plastic card, etc. The shape of the credential card is rectangular, circular, etc.

[0110] When the ratio of the blank area on the voucher card in the area information of the printable area to the area of ​​the voucher card, or the blank area on the voucher card is smaller than a preset printable area threshold, it is determined that the area information of the printable area meets the second preset condition.

[0111] Step S410, determining new credential information based on the updated transaction information and the digital credential.

[0112] The new voucher information may include: voucher identification, voucher version, new voucher diagnosis chain information, new voucher call chain information, new voucher amount, voucher string and new transaction record.

[0113] In one implementation, the transaction record can be updated according to the transaction information to obtain a new transaction record; the voucher diagnostic chain information can be updated according to the diagnostic chain information to obtain new voucher diagnostic chain information; the voucher diagnostic chain information can be updated according to the call chain information to obtain new voucher diagnostic chain information; the voucher call chain information can be updated according to the call chain information to obtain new voucher call chain information; and the balance information can be used as the new voucher amount.

[0114] The credential identification, credential version and credential string in the digital credential, as well as the new credential diagnosis chain information, new credential call chain information, new credential amount and new transaction record are used as new credential information. The new transaction record can be stored in the public chain; the credential identification, credential version, credential string, new credential diagnosis chain information, new credential call chain information and new credential amount can be stored in the alliance chain.

[0115] Step S420: Determine a new credential information identifier of the new credential information based on the new credential information.

[0116] In one implementation, a preset identifier creation rule may be used to create a new credential information identifier corresponding to each new credential information.

[0117] Step S430, determining the printing information of the new logo based on the new credential information identifier.

[0118] In one embodiment, the new mark may be a group of holes set in a preset manner. Based on each new credential information identifier, the hole information of the hole to be punched corresponding to each new credential information identifier may be determined by using the correspondence between the preset hole information and the character; based on each new credential information identifier, the position information of the hole to be punched corresponding to each new credential information identifier may be determined by using the correspondence between the preset position and the type, and the hole information of the hole to be punched and the position information constitute the printing information.

[0119] Step S440: Based on the printing information, a new mark is set on the initial credential card to obtain a new credential card.

[0120] Among them, the new credential card has several new logos.

[0121] In one embodiment, the holes to be punched can be printed on the initial credential card using a 3D printing device according to the hole information and position information of the holes to be punched, so as to set the new mark on the initial credential card and obtain a new credential card.

[0122] Fig.10 A block diagram of a transaction device based on blockchain in an embodiment of the present disclosure is shown. Fig.10 As shown, the transaction device based on blockchain in this embodiment includes: An authentication module 500 is used to authenticate the transaction object according to the digital certificate in the transaction instruction, wherein the digital certificate is obtained based on the certificate card of the transaction object, and the certificate card is a physical card including the digital certificate; The transaction module 510 is used to execute the transaction operation in the transaction instruction in response to the transaction object passing the authentication, generate transaction information corresponding to the transaction instruction, and store the transaction information in the blockchain; A first information determination module 520, configured to determine, based on the transaction information, update transaction information corresponding to the digital certificate; The updating module 530 is used to update the credential card according to the updating transaction information to obtain an updated credential card.

[0123] In an optional embodiment, the authentication module 500 in the embodiment of the present disclosure includes: An information confirmation submodule, used to obtain the account information of the transaction object; A verification submodule, configured to verify the digital certificate according to the account information, wherein the account information and the digital certificate include at least one of the following certificate information: certificate identification, certificate version, certificate diagnosis chain information, certificate call chain information, certificate amount, certificate string, and transaction record; The determination submodule is used to determine whether the transaction object has passed the authentication in response to the digital certificate passing the verification.

[0124] In an optional embodiment, the credential card in the embodiment of the present disclosure is provided with a plurality of marks; The blockchain-based transaction device also includes: A second information determination module, configured to determine, based on the multiple marks of the credential card, a credential information identifier corresponding to the credential information of each mark; A third information determination module, used to determine the credential information corresponding to the multiple credential information identifiers respectively; The credential determination module is used to determine the digital credential based on multiple credential information.

[0125] In an optional embodiment, the mark in the embodiment of the present disclosure includes at least one of the following: a barcode, a QR code, and at least one group of holes arranged in a preset manner.

[0126] In an optional embodiment, the sign in the embodiment of the present disclosure includes at least one group of holes arranged in a preset manner; The second information determination module includes: an acquisition submodule, for acquiring hole information and position information corresponding to each hole in the plurality of groups of holes from the credential card, wherein the hole information includes at least one of the following: shape, depth, diameter, arrangement order, and internal features of the holes, wherein the internal features of the holes include the number of protrusions and / or depressions provided on the inner wall of the holes; The escape submodule is used to escape the multiple groups of holes based on the hole information and the position information corresponding to each hole in the multiple groups of holes, so as to obtain the multiple credential information identifiers.

[0127] In an optional embodiment, the blockchain-based transaction device in the embodiment of the present disclosure further includes: An area acquisition module, used to acquire area information of a printable area on the credential card; The first judgment module is used to update the credential card according to the update transaction information in response to the area information satisfying a first preset condition.

[0128] In an optional embodiment, the update module 530 in the embodiment of the present disclosure includes: A first update submodule, configured to update corresponding credential information in the digital credential based on the update transaction information to obtain new credential information, wherein the update transaction information includes at least one of the following: the transaction information, and the diagnosis chain information, the call chain information, and the balance information corresponding to the transaction information; A second updating submodule, used to obtain a new credential information identifier corresponding to the new credential information; A third updating submodule, used to determine printing information of a new mark corresponding to the new credential information identifier; The fourth updating submodule is used to set the new mark in the printable area based on the printing information of the new mark to update the credential card.

[0129] In an optional embodiment, the new mark in the embodiment of the present disclosure is at least one group of holes arranged in a preset manner; The third updating submodule in the embodiment of the present disclosure is specifically used to: escape the new credential information identifier to determine the printing information, the printing information including: hole information and position information of the hole to be punched; The fourth updating submodule in the embodiment of the present disclosure is specifically used to: set the hole to be punched in the printable area based on the hole information and position information of the hole to be punched, so as to update the credential card.

[0130] In an optional embodiment, the blockchain-based transaction device in the embodiment of the present disclosure further includes: a fourth information determination module, configured to obtain an initial credential card in response to the area information satisfying a second preset condition; a fifth information determination module, configured to determine new credential information based on the update transaction information and the digital credential; a sixth information determination module, configured to determine a new credential information identifier of the new credential information based on the new credential information; a seventh information determination module, configured to determine printing information of a new mark based on the new credential information identifier; The printing module is used to set a new mark on the initial credential card based on the printing information to obtain a new credential card.

[0131] The blockchain-based transaction device of the embodiment of the present application corresponds to the embodiment of the blockchain-based transaction method of the present application, and the relevant contents can be referenced to each other and will not be repeated here.

[0132] The beneficial technical effects corresponding to the exemplary embodiment of the blockchain-based transaction device of the embodiment of the present application can be found in the corresponding beneficial technical effects of the above-mentioned corresponding exemplary method part, which will not be repeated here.

[0133] In addition, an embodiment of the present disclosure further provides an electronic device, including: Memory for storing computer programs; The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the blockchain-based transaction method described in any of the above embodiments of the present disclosure is implemented.

[0134] Fig.11 This is a schematic diagram of the structure of an application embodiment of the electronic device disclosed in the present invention. Fig.11 The electronic device according to the embodiment of the present disclosure is described. The electronic device may be any one or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive the collected input signals from them.

[0135] like Fig.11 As shown, the electronic device includes one or more processors and memory.

[0136] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.

[0137] The memory may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor may execute the program instructions to implement the blockchain-based transaction method and / or other desired functions of the various embodiments of the present disclosure described above.

[0138] In one example, the electronic device may further include: an input device and an output device, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0139] In addition, the input device may also include, for example, a keyboard, a mouse, and the like.

[0140] The output device can output various information to the outside, including the determined distance information, direction information, etc. The output device can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0141] Of course, to simplify, Fig.11 Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.

[0142] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to perform the steps in the blockchain-based transaction method according to various embodiments of the present disclosure described in the above part of this specification.

[0143] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0144] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, cause the processor to execute the steps of the blockchain-based transaction method according to various embodiments of the present disclosure described in the above part of this specification.

[0145] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0146] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.

[0147] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0148] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0149] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0150] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.

[0151] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0152] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0153] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A transaction method based on blockchain, characterized in that: include: Authenticating the transaction object according to the digital certificate in the transaction instruction, wherein the digital certificate is obtained based on the certificate card of the transaction object, and the certificate card is a physical card including the digital certificate; In response to the transaction object passing the authentication, executing the transaction operation in the transaction instruction, generating transaction information corresponding to the transaction instruction, and storing the transaction information in the blockchain; Based on the transaction information, determining updated transaction information corresponding to the digital certificate; The credential card is updated according to the update transaction information to obtain an updated credential card.

2. The method according to claim 1, characterized in that Authenticating the transaction object according to the digital certificate in the transaction instruction includes: Obtaining account information of the transaction object; Verifying the digital certificate according to the account information, wherein the account information and the digital certificate include at least one of the following certificate information: certificate identification, certificate version, certificate diagnosis chain information, certificate call chain information, certificate amount, certificate string, and transaction record; In response to the digital certificate being verified, it is determined that the transaction object is authenticated.

3. The method according to claim 1 or 2, characterized in that: The credential card is provided with a plurality of marks; The method further comprises: Based on the multiple marks of the credential card, determining the credential information identifiers corresponding to the credential information of each mark; Determine the credential information corresponding to each of the plurality of credential information identifiers; Based on the plurality of credential information, the digital credential is determined.

4. The method according to claim 3, characterized in that The mark includes at least one of the following: a barcode, a QR code, and at least one group of holes arranged in a preset manner.

5. The method according to claim 3, characterized in that: The sign includes at least one set of holes arranged in a predetermined manner; The determining, based on the multiple marks on the credential card, the credential information identifiers of the credential information corresponding to the marks respectively comprises: Obtaining hole information and position information corresponding to each hole in the plurality of groups of holes from the credential card, wherein the hole information includes at least one of the following: shape, depth, diameter, arrangement order, and internal features of the holes, wherein the internal features of the holes include the number of protrusions and / or depressions provided on the inner wall of the holes; Based on the hole information and position information corresponding to each hole in the multiple groups of holes, the multiple groups of holes are escaped to obtain the multiple credential information identifiers.

6. The method according to claim 1 or 2, characterized in that: Before the updating process of the credential card according to the update transaction information is performed, the method further includes: Obtaining area information of a printable area on the credential card; In response to the region information satisfying a first preset condition, the credential card is updated according to the update transaction information.

7. The method according to claim 6, characterized in that The updating process of the credential card according to the update transaction information includes: Based on the update transaction information, the corresponding credential information in the digital credential is updated to obtain new credential information, wherein the update transaction information includes at least one of the following: the transaction information, and the diagnosis chain information, the call chain information, and the balance information corresponding to the transaction information; Obtaining a new credential information identifier corresponding to the new credential information; Determine printing information of a new mark corresponding to the new credential information identifier; Based on the printing information of the new mark, the new mark is set in the printable area to update the credential card.

8. The method according to claim 7, characterized in that The new mark is at least one group of holes arranged in a preset manner; The step of determining the printing information of the new mark corresponding to the new credential information identifier includes: Translating the new voucher information identifier to determine the printing information, the printing information including: hole information and position information of the hole to be punched; The step of setting the new mark in the printable area based on the printing information of the new mark comprises: Based on the hole information and position information of the hole to be punched, the hole to be punched is set in the printable area to update the credential card.

9. The method according to claim 6, characterized in that The method further comprises: In response to the area information satisfying a second preset condition, obtaining an initial credential card; determining new credential information based on the updated transaction information and the digital credential; Based on the new credential information, determining a new credential information identifier of the new credential information; Determining printing information of a new mark based on the new credential information identifier; Based on the printing information, a new mark is set on the initial credential card to obtain a new credential card.

10. A transaction device based on blockchain, characterized in that: include: An authentication module, used to authenticate the transaction object according to the digital certificate in the transaction instruction, wherein the digital certificate is obtained based on the certificate card of the transaction object, and the certificate card is a physical card including the digital certificate; A transaction module, configured to execute the transaction operation in the transaction instruction in response to the transaction object passing the authentication, generate transaction information corresponding to the transaction instruction, and store the transaction information in the blockchain; A first information determination module, used to determine updated transaction information corresponding to the digital certificate based on the transaction information; The updating module is used to update the credential card according to the updating transaction information to obtain an updated credential card.

11. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute a computer program stored in the memory, and when the computer program is executed, implement the method described in any one of claims 1 to 9.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method described in any one of claims 1 to 9 is implemented.

13. A computer program product comprising computer program instructions, characterized in that When the computer program instructions are executed by a processor, the method described in any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Method for implementing two-dimensional code certification

    CN101388066A

  • Network transaction safety recording method and corresponding equipment system

    CN106447341A

  • Account balance tamper-proofing method

    CN114139219A

  • Electronic bankbook equipment

    CN114971612A

  • Method and system for electronic vouchers via blockchain

    US20190012695A1