CN110930196A - Block chain-based electronic card issuing method, device and medium - Google Patents

Block chain-based electronic card issuing method, device and medium Download PDF

Info

Publication number
CN110930196A
CN110930196A CN201911185065.7A CN201911185065A CN110930196A CN 110930196 A CN110930196 A CN 110930196A CN 201911185065 A CN201911185065 A CN 201911185065A CN 110930196 A CN110930196 A CN 110930196A
Authority
CN
China
Prior art keywords
verification code
card
user
platform
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911185065.7A
Other languages
Chinese (zh)
Inventor
张岚
庞松涛
商广勇
王伟兵
马岩堂
赵树林
姜鑫
陶鑫
刘伟巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Quality Chain Technology Co Ltd
Original Assignee
Shandong ICity Information 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 Shandong ICity Information Technology Co., Ltd. filed Critical Shandong ICity Information Technology Co., Ltd.
Priority to CN201911185065.7A priority Critical patent/CN110930196A/en
Publication of CN110930196A publication Critical patent/CN110930196A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0208Trade or exchange of goods or services in exchange for incentives or rewards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0239Online discounts or incentives

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a block chain-based electronic card issuing method, device and medium, comprising: deploying a blockchain platform; receiving the card and ticket information sent by the card and ticket issuing platform; encrypting the random verification code to obtain an encrypted verification code; hashing the random verification code to obtain a hash verification code; writing the card information carrying the encrypted verification code and the Hash verification code into a block chain platform; decrypting the encrypted verification code to obtain a verification code to be confirmed; and if the hash value obtained after the verification code to be confirmed is hashed is consistent with the hash verification code, the electronic card voucher is issued to the user. Because the data in the blockchain platform is public and transparent, the user can trace the issuance of the electronic card ticket through a corresponding path at any time. And because the blockchain platform is in distributed storage, data tampering of a single node cannot be effective, and the truthfulness and the credibility of the data on the blockchain platform are ensured.

Description

Block chain-based electronic card issuing method, device and medium
Technical Field
The application relates to the field of electronic card tickets, in particular to an electronic card ticket issuing method, device and medium based on a block chain.
Background
Along with the improvement of living standard of people, more and more people choose to trade, shop and the like from the network, so that the life of people is more convenient.
People can use the electronic card to save cost when shopping or trading through the network. However, the prior art has some problems in the issuing and using of electronic card. For example, the issuing party of the electronic card is usually a business corresponding to the corresponding platform, so that the issuing process and the issuing result of the electronic card are only grasped by the business, and the user cannot know the actual issuing process of the electronic card. The electronic card is opaque in the issuing process, so that unfair and reasonable issuing is easily induced, and the benefit of a user is influenced.
Disclosure of Invention
In order to solve the above problem, the present application provides a block chain-based electronic card issuing method, including: deploying a blockchain platform based on the blockchain framework, and deploying a card and ticket issuing platform and a user as nodes in the blockchain platform; receiving card and ticket information sent by the card and ticket issuing platform, wherein the card and ticket information comprises a card and ticket number and a random verification code; encrypting the random verification code by the public key of the user to obtain an encrypted verification code; hashing the random verification code to obtain a hash verification code; writing the card information carrying the encrypted verification code and the Hash verification code into the block chain platform; decrypting the encrypted verification code through the private key of the user to obtain a verification code to be confirmed; and if the hash value obtained after the verification code to be confirmed is hashed is consistent with the hash verification code, the electronic card is issued to the user, and the identity information and the receiving time of the user are written into the block chain platform.
In one example, a blockchain platform is deployed based on a blockchain framework, comprising: and deploying a blockchain platform through the hyper book fabric.
In one example, the method further comprises: and generating a corresponding intelligent contract and deploying the intelligent contract in the blockchain platform, wherein the intelligent contract comprises the encryption verification code, the random verification code and the hash verification code.
In one example, the smart contract is configured to decrypt, by using the private key, the encrypted verification code to obtain the verification code to be confirmed; comparing the hash value obtained after the verification code to be confirmed is hashed with the hash verification code; and when the hash value is consistent with the hash verification code, the electronic card coupon is issued to the user.
In one example, the electronic card coupon is a coupon, the method further comprising: determining a commodity link corresponding to the coupon, and writing the commodity link into the block chain platform through the coupon information; the electronic card coupon is a membership card, and the method further comprises the following steps: and determining a merchant official network link corresponding to the membership card, and writing the merchant official network link into the block chain platform through the card coupon information.
In one example, the number of the card information is plural, and the method further includes: sequencing the plurality of pieces of card information according to the commodity types corresponding to the card information and a preset corresponding relation; writing the card information carrying the encrypted verification code and the hash verification code into the block chain platform, including: and according to the sequencing result, sequentially writing the card information carrying the encryption verification code and the Hash verification code into the block chain platform.
In one example, the card information further includes: at least one of a corresponding merchandise link, a corresponding merchandise type, a usage requirement, a usage pattern, a lifetime, a value, and a time of issue.
In one example, writing user information of the user, a pickup time, to the blockchain platform includes: and writing the user information and the receiving time of the user into the block where the card and ticket information is located in the block chain platform.
On the other hand, the application also provides an electronic card issuing device based on the block chain, which comprises: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to: deploying a blockchain platform based on the blockchain framework, and deploying a card and ticket issuing platform and a user as nodes in the blockchain platform; receiving card and ticket information sent by the card and ticket issuing platform, wherein the card and ticket information comprises a card and ticket number and a random verification code; encrypting the random verification code by the public key of the user to obtain an encrypted verification code; hashing the random verification code to obtain a hash verification code; writing the card information carrying the encrypted verification code and the Hash verification code into the block chain platform; decrypting the encrypted verification code through the private key of the user to obtain a verification code to be confirmed; and if the hash value obtained after the verification code to be confirmed is hashed is consistent with the hash verification code, the electronic card is issued to the user, and the identity information and the receiving time of the user are written into the block chain platform.
In another aspect, the present application further provides a non-volatile computer storage medium for electronic card issuing based on block chain, which stores computer executable instructions, wherein the computer executable instructions are configured to: deploying a blockchain platform based on the blockchain framework, and deploying a card and ticket issuing platform and a user as nodes in the blockchain platform; receiving card and ticket information sent by the card and ticket issuing platform, wherein the card and ticket information comprises a card and ticket number and a random verification code; encrypting the random verification code by the public key of the user to obtain an encrypted verification code; hashing the random verification code to obtain a hash verification code; writing the card information carrying the encrypted verification code and the Hash verification code into the block chain platform; decrypting the encrypted verification code through the private key of the user to obtain a verification code to be confirmed; and if the hash value obtained after the verification code to be confirmed is hashed is consistent with the hash verification code, the electronic card is issued to the user, and the identity information and the receiving time of the user are written into the block chain platform.
The electronic card issuing method based on the block chain can bring the following beneficial effects:
the issuing process of the electronic card is stored in the block chain platform, and the data in the block chain platform is public and transparent, so that the user can trace the issuing of the electronic card through a corresponding way at any time. And because the blockchain platform is in distributed storage, data tampering of a single node cannot be effective, and the truthfulness and the credibility of the data on the blockchain platform are ensured. The system can trace the source through related approaches regardless of any node in the card and ticket issuing platform or the user, and once the user thinks that the issuing process of the electronic card and the ticket has problems, the user can confirm through data in the block chain platform at any time so as to maintain the rights and interests of the user.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic flow chart illustrating a block chain-based electronic card issuing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of an electronic card issuing apparatus based on a block chain in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present application provides a method for issuing an electronic card based on a block chain, including:
s101, deploying a blockchain platform based on the blockchain framework, and deploying the card and ticket issuing platform and the user in the blockchain platform by taking the card and ticket issuing platform and the user as nodes.
The Blockchain (Blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like, and is essentially a decentralized database.
A blockchain platform is first deployed based on the blockchain framework. The blockchain frame may be any blockchain frame capable of implementing the corresponding function of the embodiment of the present application, for example, bitcoin, etherhouse, Fabric, Corda, and the like. A blockchain platform may refer to a platform that stores a blockchain, e.g., may be a distributed system, etc. Of course, the blockchain platform may also directly represent the blockchain itself, and is not limited herein.
And then, the card issuing platform for issuing the electronic card and the user are taken as nodes and deployed in the block chain platform. The electronic card issued by the card issuing platform can be a coupon, that is, when the user purchases corresponding goods or services, the price of the purchase can be reduced through the coupon. The electronic card ticket may be in other forms such as a membership card and a deposit card, and is not limited herein.
S102, receiving the card information sent by the card issuing platform, wherein the card information comprises a card number and a random verification code.
After the regional cross-chain platform is deployed, if the card ticket issuing platform wants to issue the electronic card tickets, the card ticket information of the electronic card tickets which want to be issued is sent to the block chain platform. After receiving the card information, the blockchain platform can perform corresponding storage. The card information comprises a card number and a random verification code, and the random verification code is used for verification.
Further, the card information may further include other data, such as at least one of a corresponding item link, a corresponding item type, a usage requirement, a usage mode, a lifetime, a value, and a dispensing time. When the electronic card is a coupon, the electronic card corresponds to a corresponding commodity, and the card information may include a commodity link and a commodity type of the commodity. The usage requirement may be, for example, that the electronic card coupon is a coupon, and the consumer can use the coupon when the coupon is full. The usage pattern can be, for example, when the electronic card ticket is a membership card, when the platform is available, when the price is settled, when a shopping cart is added, or the like. The lifetime may be described in terms of a duration, an expiration time, etc. The value may be, for example, a price that can be reduced when the electronic card is a coupon, a price that can be reduced per purchase when the electronic card is a membership card, or the like. The issuing time is the time of issuing the electronic card.
S103, encrypting the random verification code through the public key of the user to obtain an encrypted verification code; and hashing the random verification code to obtain a hash verification code.
S104, writing the card information carrying the encryption verification code and the Hash verification code into the block chain platform.
In obtaining the card information, the blockchain platform may encrypt the random verification code included in the card information by the public key of the user to obtain an encrypted verification code. And then, hashing the random verification code to obtain a hashed verification code. Wherein the user prepares an object for the card issuing platform to issue the electronic card.
And after the encrypted verification code and the Hash verification code are obtained, writing the card information carrying the encrypted verification code and the Hash verification code into the block chain platform. Since the data in the blockchain platform is public, each node can acquire the data therein, and therefore, a user as a node can also acquire the encrypted verification code and the hashed verification code.
S105, decrypting the encrypted verification code through the private key of the user to obtain the verification code to be confirmed.
S106, if the hash value obtained after the verification code to be confirmed is hashed is consistent with the hash verification code, the electronic card is issued to the user, and the identity information and the receiving time of the user are written into the block chain platform.
After the user acquires the encrypted verification code and the hash verification code, the encrypted verification code can be decrypted through the private key of the user, so that a decrypted random verification code is obtained, and the decrypted random verification code is called as a verification code to be confirmed. Certainly, the private key of the user can be hosted by the blockchain platform, that is, the user informs the blockchain platform of the private key, and then the blockchain platform decrypts the private key of the user to obtain the verification code to be confirmed.
And then comparing the hash value of the verification code to be confirmed after hashing with the hash verification code. If the electronic card information is consistent with the user identity information, the electronic card information of the electronic card is not tampered, and the user identity information is not wrong, the electronic card can be issued to the user, and after the electronic card is issued, the user identity information and the picking time are written into the block chain platform. The issuing process of the electronic card may be the issuing process by binding the card number of the electronic card with the account of the user, which is not described herein again. The issuing process of the electronic card is stored in the block chain platform, and the data in the block chain platform is public and transparent, so that the user can trace the issuing of the electronic card through a corresponding way at any time. And because the blockchain platform is in distributed storage, data tampering of a single node cannot be effective, and the truthfulness and the credibility of the data on the blockchain platform are ensured. The system can trace the source through related approaches regardless of any node in the card and ticket issuing platform or the user, and once the user thinks that the issuing process of the electronic card and the ticket has problems, the user can confirm through data in the block chain platform at any time so as to maintain the rights and interests of the user.
Further, the user information and the pickup time of the user can be written into the block chain platform and the block where the card information is located. The user or other nodes can conveniently inquire the information corresponding to the electronic card, and corresponding information does not need to be searched from other blocks.
In one embodiment, the blockchain platform may be deployed through a hyper book fabric. Fabric is known as HyperLegendr Fabric and is a licensed blockchain architecture (licensed blockchain architecture). It was originally contributed to the Hyperridge project by IBM and Digital Asset. A Fabric network comprises Peer nodes (Peernodes) executing the chalnode contract, accessing ledger data, endorsing transactions and being called an interface of an application program. The commander nodes (Orderer nodes) are responsible for ensuring the consistency of this block chain and communicating endorsed transactions to peers in the network; and an MSP service that manages x.509 certificates primarily as Certificate authorities (Certificate authorities) for verifying membership and roles.
In one embodiment, the corresponding intelligent contracts may also be generated in advance and deployed in the blockchain platform. The intelligent contract comprises an encrypted verification code, a random verification code and a hash verification code. The intelligent contract is used for decrypting the encrypted verification code to obtain a verification code to be confirmed after receiving a private key of the user, then comparing a hash value of the verification code to be confirmed after hashing with the hash verification code, and if the hash value is consistent with the hash verification code, issuing the electronic card to the user. Since the intelligent contracts on the blockchain platform are public, each node can check whether the intelligent contracts are in accordance with the preset agreement or not and deploy the intelligent contracts on the own node. The user can inquire the intelligent contract through a corresponding way, so that the degree of automation of the transaction is improved, and the trust degree of the user is further increased. The intelligent contract can only be changed in an upgrading mode, each node needs to be synchronously deployed, once the intelligent contract is deployed, the intelligent contract can only be executed through a program, interference of human factors is avoided, and the reliability of data is enhanced.
In one embodiment, if the electronic card coupon is a coupon, a commodity link corresponding to the coupon can be further determined, and the commodity link is written into the block chain platform through the coupon information. For example, when the coupon is for a certain product of a certain e-commerce platform, a link for the product may be written into the blockchain platform. If the electronic card ticket is a membership card, the official network link of the merchant corresponding to the membership card can be written into the block chain platform through card ticket information. By writing the commodity link or the official network link of the merchant into the blockchain platform, the user can find the corresponding commodity or merchant more conveniently, and the electronic card ticket is used more conveniently.
In an embodiment, if the number of the card information is multiple, the multiple pieces of card information may be sorted according to the commodity types corresponding to the card information and the preset corresponding relationship, and then the card information carrying the encrypted verification code and the hashed verification code is written into the block chain platform in sequence according to the sorting result. Because different commodity types have different use time limits, for example, the use time limits of fresh and fresh fruits and vegetables are lower, the card coupon information corresponding to the part of commodity types is preferentially written into the block chain platform, so that a user can acquire the corresponding card coupons as soon as possible.
As shown in fig. 2, an embodiment of the present application further provides an electronic card issuing apparatus based on a block chain, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
deploying a blockchain platform based on the blockchain framework, and deploying a card and ticket issuing platform and a user as nodes in the blockchain platform;
receiving card and ticket information sent by the card and ticket issuing platform, wherein the card and ticket information comprises a card and ticket number and a random verification code;
encrypting the random verification code by the public key of the user to obtain an encrypted verification code; hashing the random verification code to obtain a hash verification code;
writing the card information carrying the encrypted verification code and the Hash verification code into the block chain platform;
decrypting the encrypted verification code through the private key of the user to obtain a verification code to be confirmed;
and if the hash value obtained after the verification code to be confirmed is hashed is consistent with the hash verification code, the electronic card is issued to the user, and the identity information and the receiving time of the user are written into the block chain platform.
The embodiment of the present application further provides a nonvolatile computer storage medium for electronic card issuing based on a block chain, in which computer executable instructions are stored, and the computer executable instructions are configured to:
deploying a blockchain platform based on the blockchain framework, and deploying a card and ticket issuing platform and a user as nodes in the blockchain platform;
receiving card and ticket information sent by the card and ticket issuing platform, wherein the card and ticket information comprises a card and ticket number and a random verification code;
encrypting the random verification code by the public key of the user to obtain an encrypted verification code; hashing the random verification code to obtain a hash verification code;
writing the card information carrying the encrypted verification code and the Hash verification code into the block chain platform;
decrypting the encrypted verification code through the private key of the user to obtain a verification code to be confirmed;
and if the hash value obtained after the verification code to be confirmed is hashed is consistent with the hash verification code, the electronic card is issued to the user, and the identity information and the receiving time of the user are written into the block chain platform.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur 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 scope of the claims of the present application.

Claims (10)

1. An electronic card issuing method based on a block chain is characterized by comprising the following steps:
deploying a blockchain platform based on the blockchain framework, and deploying a card and ticket issuing platform and a user as nodes in the blockchain platform;
receiving card and ticket information sent by the card and ticket issuing platform, wherein the card and ticket information comprises a card and ticket number and a random verification code;
encrypting the random verification code by the public key of the user to obtain an encrypted verification code; hashing the random verification code to obtain a hash verification code;
writing the card information carrying the encrypted verification code and the Hash verification code into the block chain platform;
decrypting the encrypted verification code through the private key of the user to obtain a verification code to be confirmed;
and if the hash value obtained after the verification code to be confirmed is hashed is consistent with the hash verification code, the electronic card is issued to the user, and the identity information and the receiving time of the user are written into the block chain platform.
2. The method of claim 1, wherein deploying a blockchain platform based on blockchain frameworks comprises:
and deploying a blockchain platform through the hyper book fabric.
3. The method of claim 1, further comprising:
and generating a corresponding intelligent contract and deploying the intelligent contract in the blockchain platform, wherein the intelligent contract comprises the encryption verification code, the random verification code and the hash verification code.
4. The method according to claim 3, wherein the smart contract is configured to decrypt the encrypted verification code with the private key to obtain the verification code to be confirmed; comparing the hash value obtained after the verification code to be confirmed is hashed with the hash verification code; and when the hash value is consistent with the hash verification code, the electronic card coupon is issued to the user.
5. The method of claim 1, wherein the electronic card coupon is a coupon, the method further comprising:
determining a commodity link corresponding to the coupon, and writing the commodity link into the block chain platform through the coupon information;
the electronic card coupon is a membership card, and the method further comprises the following steps:
and determining a merchant official network link corresponding to the membership card, and writing the merchant official network link into the block chain platform through the card coupon information.
6. The method of claim 1, wherein the number of the card information is plural, the method further comprising:
sequencing the plurality of pieces of card information according to the commodity types corresponding to the card information and a preset corresponding relation;
writing the card information carrying the encrypted verification code and the hash verification code into the block chain platform, including:
and according to the sequencing result, sequentially writing the card information carrying the encrypted verification code and the Hash verification code into the block chain platform.
7. The method of claim 1, wherein the coupon information further comprises: at least one of a corresponding merchandise link, a corresponding merchandise type, a usage requirement, a usage pattern, a lifetime, a value, and a time of issue.
8. The method of claim 1, wherein writing user information of the user, a pickup time, to the blockchain platform comprises:
and writing the user information and the receiving time of the user into the block where the card and ticket information is located in the block chain platform.
9. An electronic card issuing apparatus based on a block chain, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
deploying a blockchain platform based on the blockchain framework, and deploying a card and ticket issuing platform and a user as nodes in the blockchain platform;
receiving card and ticket information sent by the card and ticket issuing platform, wherein the card and ticket information comprises a card and ticket number and a random verification code;
encrypting the random verification code by the public key of the user to obtain an encrypted verification code; hashing the random verification code to obtain a hash verification code;
writing the card information carrying the encrypted verification code and the Hash verification code into the block chain platform;
decrypting the encrypted verification code through the private key of the user to obtain a verification code to be confirmed;
and if the hash value obtained after the verification code to be confirmed is hashed is consistent with the hash verification code, the electronic card is issued to the user, and the identity information and the receiving time of the user are written into the block chain platform.
10. A non-transitory computer storage medium for electronic card coupon distribution based on a block chain, storing computer-executable instructions configured to:
deploying a blockchain platform based on the blockchain framework, and deploying a card and ticket issuing platform and a user as nodes in the blockchain platform;
receiving card and ticket information sent by the card and ticket issuing platform, wherein the card and ticket information comprises a card and ticket number and a random verification code;
encrypting the random verification code by the public key of the user to obtain an encrypted verification code; hashing the random verification code to obtain a hash verification code;
writing the card information carrying the encrypted verification code and the Hash verification code into the block chain platform;
decrypting the encrypted verification code through the private key of the user to obtain a verification code to be confirmed;
and if the hash value obtained after the verification code to be confirmed is hashed is consistent with the hash verification code, the electronic card is issued to the user, and the identity information and the receiving time of the user are written into the block chain platform.
CN201911185065.7A 2019-11-27 2019-11-27 Block chain-based electronic card issuing method, device and medium Pending CN110930196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911185065.7A CN110930196A (en) 2019-11-27 2019-11-27 Block chain-based electronic card issuing method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911185065.7A CN110930196A (en) 2019-11-27 2019-11-27 Block chain-based electronic card issuing method, device and medium

Publications (1)

Publication Number Publication Date
CN110930196A true CN110930196A (en) 2020-03-27

Family

ID=69846660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911185065.7A Pending CN110930196A (en) 2019-11-27 2019-11-27 Block chain-based electronic card issuing method, device and medium

Country Status (1)

Country Link
CN (1) CN110930196A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111598609A (en) * 2020-04-08 2020-08-28 杭州宇链科技有限公司 Block chain-based consumption ticket issuing and managing method
CN112270636A (en) * 2020-11-25 2021-01-26 广东广宇科技发展有限公司 Block chain-based consignment logistics management method, device, terminal and storage medium
CN113239385A (en) * 2021-06-15 2021-08-10 京东科技控股股份有限公司 Information processing method, information platform node, electronic device and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111598609A (en) * 2020-04-08 2020-08-28 杭州宇链科技有限公司 Block chain-based consumption ticket issuing and managing method
CN112270636A (en) * 2020-11-25 2021-01-26 广东广宇科技发展有限公司 Block chain-based consignment logistics management method, device, terminal and storage medium
CN113239385A (en) * 2021-06-15 2021-08-10 京东科技控股股份有限公司 Information processing method, information platform node, electronic device and medium

Similar Documents

Publication Publication Date Title
Liu et al. A blockchain-based framework of cross-border e-commerce supply chain
US11847621B2 (en) Systems and methods for math-based currency escrow transactions
CN106570757B (en) Crowd funding method, device and system based on block chain
JP2022103306A (en) Method for splitting blockchain-registered digital asset and autonomous computing agent
US11900405B2 (en) Blockchain data
US20160358161A1 (en) Systems and methods for an online music marketplace
CN108370314A (en) Use the secure storage of data and the device of retrieval
CN110930196A (en) Block chain-based electronic card issuing method, device and medium
KR20220115571A (en) Account holder financing for customer verification process through coin payment, renewal of accredited investor verification, and fee monitoring
WO2006092539A2 (en) Making secure data for customer loyalty programmes
CN111161030A (en) Block chain-based dealer supply chain finance implementation method, equipment and medium
CN111008853A (en) Block chain-based fast-selling product tracing method, equipment and medium
JP2019509571A (en) Public information processing method and device, and information disclosure system
RU2635874C2 (en) Method of providing safe e-commerce transactions
JPH10289271A (en) Electronic coupon device and information processing system using it
CN111292097A (en) Supply chain tracing method, equipment and medium based on block chain
CN117240605B (en) Data transaction method, device, equipment and storage medium
Bhushan et al. Security magnification in supply chain management using blockchain technology
CN111062764A (en) Block chain-based electronic equity transaction method, equipment and medium
CN112036786A (en) Supply chain control method, device and medium based on block chain
CN111275455A (en) NFC anti-counterfeiting chip, commodity anti-counterfeiting tracing method and equipment based on block chain, and medium
US20240062169A1 (en) Nonfungible token path synthesis with social sharing
CN111131164A (en) Block chain-based digital identity implementation method, equipment and medium
CN112070567A (en) Quality control system based on block chain and control method thereof
CN115131037A (en) Method and device for detecting commodity fleeing goods

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20200818

Address after: Room 1-2301, Building 7, North District, Shandong Design and Creative Industry Park, No. 868 Tangye West Road, Licheng District, Jinan City, Shandong Province, 250102

Applicant after: SHANDONG INSPUR QUALINK TECHNOLOGY Co.,Ltd.

Address before: Room 3110, S01 building, Langchao building, No. 1036, Langchao Road, high tech Zone, Jinan City, Shandong Province 250101

Applicant before: Shandong Aicheng Network Information Technology Co.,Ltd.

TA01 Transfer of patent application right
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination