CN112927434A - Block chain and DID (digital information device) shared charging method and shared charging pile system - Google Patents

Block chain and DID (digital information device) shared charging method and shared charging pile system Download PDF

Info

Publication number
CN112927434A
CN112927434A CN202110011643.6A CN202110011643A CN112927434A CN 112927434 A CN112927434 A CN 112927434A CN 202110011643 A CN202110011643 A CN 202110011643A CN 112927434 A CN112927434 A CN 112927434A
Authority
CN
China
Prior art keywords
shared
information
block chain
subject
identification information
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.)
Granted
Application number
CN202110011643.6A
Other languages
Chinese (zh)
Other versions
CN112927434B (en
Inventor
梁强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Taidi Technology Co ltd
Original Assignee
Shanghai Taidi 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 Shanghai Taidi Technology Co ltd filed Critical Shanghai Taidi Technology Co ltd
Priority to CN202110011643.6A priority Critical patent/CN112927434B/en
Publication of CN112927434A publication Critical patent/CN112927434A/en
Application granted granted Critical
Publication of CN112927434B publication Critical patent/CN112927434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • G07F15/003Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for electricity
    • G07F15/005Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for electricity dispensed for the electrical charging of vehicles
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/70Energy storage systems for electromobility, e.g. batteries
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/7072Electromobility specific charging systems or methods for batteries, ultracapacitors, supercapacitors or double-layer capacitors
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02T90/10Technologies relating to charging of electric vehicles
    • Y02T90/12Electric charging stations

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Tourism & Hospitality (AREA)
  • Primary Health Care (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Water Supply & Treatment (AREA)
  • Computer Hardware Design (AREA)
  • Public Health (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a shared charging method and a shared charging pile system based on a block chain and DID (digital information device), wherein the method comprises the steps of obtaining unique identification information loaded through a shared port; judging whether the unique identification information is matched with prestored identification information stored in a block chain or not based on the block chain; if the judgment result is yes, generating a shared charging instruction; and the shared charging instruction is used for controlling the shared charging pile to output voltage so as to carry out shared charging for users. According to the sharing charging method and system based on the block chain and the DID, firstly, the unique identification information loaded through a sharing port is obtained; judging whether the unique identification information is matched with prestored identification information stored in the block chain or not based on the block chain; if yes, generating a shared charging instruction; the shared charging instruction is used for controlling the output voltage of the shared charging pile to share and charge for users, and therefore charging efficiency is improved on the premise that data safety is guaranteed.

Description

Block chain and DID (digital information device) shared charging method and shared charging pile system
Technical Field
The application relates to the technical field of charging piles, in particular to a block chain and DID-based shared charging method and a shared charging pile system.
Background
With the increasing demand for economic sustainability, the demand for environmental protection is increasing. Because the electric automobile industry has very important significance for energy conservation and emission reduction, tail gas pollution reduction and environmental protection, and further economic sustainable development, the electric automobiles and new energy automobiles are developed very rapidly in recent years.
According to related reports, the reserves of various electric vehicles in China are expected to reach more than 500 million by the end of 2020, but due to historical reasons such as city planning, infrastructure and the like, the quantity of the existing charging piles in China is far from being matched with the reserves of the electric vehicles, so that supply and demand are not met, and a lot of travel and traffic problems are caused.
At present, a plurality of operators provide shared charging pile platform services, but the problems of data safety and low efficiency exist in the shared charging piles which are operated centrally in the current market.
Disclosure of Invention
In view of the above, it is necessary to provide a block chain and DID-based shared charging method, which includes:
step S100: acquiring unique identification information loaded through a shared port;
step S200: judging whether the unique identification information is matched with prestored identification information stored in a block chain or not based on the block chain;
step S300: if the judgment result is yes, generating a shared charging instruction; and the shared charging instruction is used for controlling the shared charging pile to output voltage so as to carry out shared charging for users.
Specifically, before the step of determining whether the unique identifier matches a pre-stored identifier stored in a blockchain based on the blockchain, the method further includes:
step S210: acquiring basic information of a shared use subject; wherein, one use main body corresponds to one use main body basic information;
step S220: giving DID digital identity to the corresponding user according to the basic information of the user; wherein, one uses the basic information of the main body to correspond to one DID digital identity;
step S230: and respectively defining the DID digital identities as pre-stored identification information and storing the pre-stored identification information in the block chain.
Specifically, the step of obtaining the basic information of the shared use subject includes:
step S211: acquiring subject information input by a sharing use subject; the subject information includes a type to which the shared use subject belongs;
step S212: identifying whether a belonging type of a subject included in the subject information coincides with a shared use subject to which the subject information is input, based on a zero-knowledge proof technique;
step S213: if the shared use subject is judged to be the user subject, the basic information of the use subject is obtained according to the subject information input by the shared use subject.
Specifically, the step of identifying whether the type of the subject included in the subject information is consistent with the shared use subject to which the subject information is input based on the zero-knowledge proof technology specifically includes:
step S2121: acquiring the type of a subject contained in the subject information based on a zero-knowledge proof technology;
step S2122: identifying the type of the obtained main body corresponding to the hash value in the block chain based on a zero knowledge proof technology, and recording the type as an actual hash value;
step S2123: judging whether the actual hash value and a standard actual hash value set in the block chain based on the zero knowledge proof technology belong to the same hash value range in the zero knowledge proof technology;
step S215: if the main body information is judged to be the shared use main body, judging that the type of the main body contained in the main body information is consistent with the shared use main body input with the main body information; if not, the type of the subject included in the subject information is determined to be inconsistent with the shared use subject to which the subject information is input.
Specifically, the step of respectively defining the DID digital identities as pre-stored identification information and storing the pre-stored identification information in the block chain specifically includes:
step S215: locking the DID digital identity as a unique digital identity;
step S215: generating a DID identity document according to the DID digital identity locked as the unique digital identity; wherein one said DID identity document corresponds to one said DID digital identity;
step S215: defining DID digital identities contained in the DID identity document as the pre-stored identification information;
step S215: and chaining the pre-stored identification information hash and storing the pre-stored identification information hash into a block chain.
Specifically, the step of acquiring the unique identification information loaded through the shared port specifically includes:
step S110: acquiring an information loading starting instruction of a shared port;
step S120: identifying the type of the shared port according to the information loading starting instruction; the shared port comprises an office port, a shared charging pile operator port and a basic user port;
step S130: and recording the loaded information as the unique identification information according to the type of the shared port.
Specifically, after the step of identifying the type of the shared port according to the information loading start instruction, the method further includes:
step S121: performing hash chaining on the identification information loaded through the department port, the shared charging pile operator port and the basic user port;
step S122: and setting a multi-party consensus protocol according to the identification information loaded by the office port, the shared charging pile operator port and the basic user port of the Hash chaining, and achieving multi-party consensus.
Specifically, a block chain and DID-based shared charging device is also provided, the device comprising:
the information acquisition module is used for acquiring the unique identification information loaded through the shared port;
the information prestoring module is used for judging whether the unique identification information is matched with the prestored identification information stored in the block chain or not based on the block chain;
the first judgment module is used for generating a shared charging instruction if the judgment result is yes; and the shared charging instruction is used for controlling the shared charging pile to output voltage so as to carry out shared charging for users.
Specifically, the information pre-storing module includes:
a main body information acquisition module for acquiring basic information of a shared use main body; wherein, one use main body corresponds to one use main body basic information;
the digital identity endowing module is used for endowing a DID digital identity to the corresponding user principal according to the basic information of the user principal; wherein, one uses the basic information of the main body to correspond to one DID digital identity;
and the marking information storage module is used for respectively defining the DID digital identities as pre-stored marking information and storing the pre-stored marking information in the block chain.
Specifically, the system comprises a shared charging pile, wherein the shared charging pile is used for acquiring unique identification information loaded through a shared port; the system comprises a block chain, a unique identification information acquisition module and a block chain management module, wherein the block chain is used for storing the unique identification information; if the judgment result is yes, generating a shared charging instruction; and the shared charging instruction is used for controlling the shared charging pile to output voltage so as to carry out shared charging for users.
A computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above block chain and DID-based shared charging method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the above block chain and DID-based shared charging method.
Compared with the prior art, the invention has the following technical effects:
according to the shared charging method and system based on the block chain and the DID, firstly, the unique identification information loaded through the shared port is obtained; judging whether the unique identification information is matched with prestored identification information stored in the block chain or not based on the block chain; if yes, generating a shared charging instruction; the shared charging instruction is used for controlling the output voltage of the shared charging pile to share and charge for users, and therefore charging efficiency is improved on the premise that data safety is guaranteed.
Drawings
FIG. 1 is a flow diagram illustrating an embodiment of a block chain and DID based shared charging method;
FIG. 2 is a block diagram of a block chain and DID based shared charging device in one embodiment;
FIG. 3 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
Meanwhile, in order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, there is provided a block chain and DID based shared charging method, the method comprising the steps of:
step S100: acquiring unique identification information loaded through a shared port;
step S200: judging whether the unique identification information is matched with prestored identification information stored in a block chain or not based on the block chain;
the method has the advantages that the block chain technology is used for judging, the fusion technologies in multiple fields such as point-to-point communication, digital encryption, distributed accounts book and multi-party collaborative consensus algorithm are achieved, the characteristics that data cannot be tampered and data on a chain can be traced are achieved, the method can be well applied to the shared charging pile project, and the data safety problem is solved.
Step S300: if the judgment result is yes, generating a shared charging instruction; and the shared charging instruction is used for controlling the shared charging pile to output voltage so as to carry out shared charging for users.
The method comprises the steps of firstly, acquiring unique identification information loaded through a shared port; judging whether the unique identification information is matched with prestored identification information stored in the block chain or not based on the block chain; if yes, generating a shared charging instruction; the shared charging instruction is used for controlling the output voltage of the shared charging pile to share and charge for users, and therefore charging efficiency is improved on the premise that data safety is guaranteed.
In one embodiment, before the step of determining whether the unique identification information matches pre-stored identification information stored in a blockchain based on the blockchain, the method further includes:
step S210: acquiring basic information of a shared use subject; wherein, one use main body corresponds to one use main body basic information;
in the block chain, a user has the right to select to hide or disclose part of information in the uplink, and can select not to disclose identity information, such as a protected name, a mobile phone number and the like, so as to realize safety data.
Step S220: giving DID digital identity to the corresponding user according to the basic information of the user; wherein, one uses the basic information of the main body to correspond to one DID digital identity;
when different using agents are used, the method in step S220 provides a unique identifier for each agent, such as a government, a shared charging pile operator, a user, and other multi-party agents, under the identity, so that each agent has a unique identity ID, and can independently control own identity information, thereby better protecting privacy.
In addition, by adopting the DID technology, the user can be endowed with a unique identifier for identity locking without real-name authentication, so that the privacy protection capability of the user is further enhanced on the original basis of the block chain.
On the other hand, a main part can also have a plurality of DIDs, so to the user who possesses private charging pile resource, can use DID technique to make it divide at the dual identity of whole block chain sharing parking system, go on separately, avoid the complexity problem that the identity alternately brought.
Specifically, the type of individual can register a DID identity on a shared charging pile operating DAPP, so that the private charging pile resource information hash cochain is realized, and meanwhile, as a potential demander of other public charging piles or private charging piles, another DID identity can also be registered on the mobile service terminal, so that the charging demand hash cochain is realized, and another DID document corresponding to the charging demand hash cochain is generated.
Therefore, an alliance chain formed by a government supervision platform, a shared charging pile operation platform and users is used for work according to the number of the users in a block chain, the operation is efficient, and the problem of cross between the users and charging pile operators is not worried
Step S230: and respectively defining the DID digital identities as pre-stored identification information and storing the pre-stored identification information in the block chain.
In an embodiment, the step of obtaining the basic information of the shared use subject includes:
step S211: acquiring subject information input by a sharing use subject; the subject information includes a type to which the shared use subject belongs;
step S212: identifying whether a belonging type of a subject included in the subject information coincides with a shared use subject to which the subject information is input, based on a zero-knowledge proof technique;
the block chain is used as a public account book, once all data of the uplink are completely disclosed, privacy data such as personal identity information, high-security-level compliance data inspection, asset information and the like are not related, and zero knowledge proof has incomparable advantages in data privacy protection, so that the zero knowledge proof technology is used for identifying whether the type of a main body contained in the main body information is consistent with a shared main body for inputting the main body information, the zero knowledge proof is fully utilized to play a great role in data privacy protection on the chain, and data security is improved.
Step S213: if the shared use subject is judged to be the user subject, the basic information of the use subject is obtained according to the subject information input by the shared use subject.
In one embodiment, the step of identifying whether the type of the subject included in the subject information is consistent with the shared use subject that inputs the subject information based on the zero-knowledge proof technology specifically includes:
step S2121: acquiring the type of a subject contained in the subject information based on a zero-knowledge proof technology;
step S2122: identifying the type of the obtained main body corresponding to the hash value in the block chain based on a zero knowledge proof technology, and recording the type as an actual hash value;
step S2123: judging whether the actual hash value and a standard actual hash value set in the block chain based on the zero knowledge proof technology belong to the same hash value range in the zero knowledge proof technology;
step S215: if the main body information is judged to be the shared use main body, judging that the type of the main body contained in the main body information is consistent with the shared use main body input with the main body information; if not, the type of the subject included in the subject information is determined to be inconsistent with the shared use subject to which the subject information is input.
In one embodiment, the step of respectively defining the DID digital identities as pre-stored identification information and storing the pre-stored identification information in the block chain specifically includes:
step S215: locking the DID digital identity as a unique digital identity;
step S215: generating a DID identity document according to the DID digital identity locked as the unique digital identity; wherein one said DID identity document corresponds to one said DID digital identity;
step S215: defining DID digital identities contained in the DID identity document as the pre-stored identification information;
step S215: and chaining the pre-stored identification information hash and storing the pre-stored identification information hash into a block chain.
In an embodiment, the step of obtaining the unique identification information loaded via the shared port specifically includes:
step S110: acquiring an information loading starting instruction of a shared port;
step S120: identifying the type of the shared port according to the information loading starting instruction; the shared port comprises an office port, a shared charging pile operator port and a basic user port;
step S130: and recording the loaded information as the unique identification information according to the type of the shared port.
In an embodiment, after the step of identifying the type of the shared port according to the information load start instruction, the method further includes:
step S121: performing hash chaining on the identification information loaded through the department port, the shared charging pile operator port and the basic user port;
step S122: and setting a multi-party consensus protocol according to the identification information loaded by the office port, the shared charging pile operator port and the basic user port of the Hash chaining, and achieving multi-party consensus.
In the step, by utilizing the advantages of Hash chain linking and DID combination, and utilizing the characteristics of distributed type, independent control, cross-link multiplexing and the like of the DID, the DID is completely controlled by a DID main body, and is independent of any centralized registry, identity providing program or certificate issuing organization, an entity can independently complete the registration, analysis, updating or cancellation operation of the DID, and simultaneously is assisted by the DID standard of W3C, so that the multi-party consensus of identification information loaded by the ports of departments of the department, the shared charging pile operator port and the basic user port is realized, and the problems of cross complexity caused by single individual multiple identities and incompatibility of independent operation of a single system are solved.
In one embodiment, a block chain and DID based shared charging device is provided, as shown in fig. 2, the device comprising the following modules:
the information acquisition module is used for acquiring the unique identification information loaded through the shared port;
the information prestoring module is used for judging whether the unique identification information is matched with the prestored identification information stored in the block chain or not based on the block chain;
the first judgment module is used for generating a shared charging instruction if the judgment result is yes; and the shared charging instruction is used for controlling the shared charging pile to output voltage so as to carry out shared charging for users.
In one embodiment, the information pre-storing module comprises:
a main body information acquisition module for acquiring basic information of a shared use main body; wherein, one use main body corresponds to one use main body basic information;
the digital identity endowing module is used for endowing a DID digital identity to the corresponding user principal according to the basic information of the user principal; wherein, one uses the basic information of the main body to correspond to one DID digital identity;
and the marking information storage module is used for respectively defining the DID digital identities as pre-stored marking information and storing the pre-stored marking information in the block chain.
In one embodiment, the system comprises a shared charging pile, wherein the shared charging pile is used for acquiring unique identification information loaded through a shared port; the system comprises a block chain, a unique identification information acquisition module and a block chain management module, wherein the block chain is used for storing the unique identification information; if the judgment result is yes, generating a shared charging instruction; and the shared charging instruction is used for controlling the shared charging pile to output voltage so as to carry out shared charging for users.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the above method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as described above.
For specific limitations of the block chain and DID-based shared charging device, reference may be made to the above limitations of the block chain and DID-based shared charging method, and details thereof are not repeated herein. The modules in the block chain and DID-based shared charging apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a block chain and DID based shared charging method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: acquiring unique identification information loaded through a shared port; judging whether the unique identification information is matched with prestored identification information stored in a block chain or not based on the block chain; if the judgment result is yes, generating a shared charging instruction; and the shared charging instruction is used for controlling the shared charging pile to output voltage so as to carry out shared charging for users.
Then, obtaining basic information of a shared use subject; wherein, one use main body corresponds to one use main body basic information; giving DID digital identity to the corresponding user according to the basic information of the user; wherein, one uses the basic information of the main body to correspond to one DID digital identity; and respectively defining the DID digital identities as pre-stored identification information and storing the pre-stored identification information in the block chain.
Performing neutralization, and acquiring the subject information input by the shared use subject; the subject information includes a type to which the shared use subject belongs; identifying whether a belonging type of a subject included in the subject information coincides with a shared use subject to which the subject information is input, based on a zero-knowledge proof technique; if the shared use subject is judged to be the user subject, the basic information of the use subject is obtained according to the subject information input by the shared use subject.
Further, acquiring the type of the subject contained in the subject information based on a zero-knowledge proof technology; identifying the type of the obtained main body corresponding to the hash value in the block chain based on a zero knowledge proof technology, and recording the type as an actual hash value; judging whether the actual hash value and a standard actual hash value set in the block chain based on the zero knowledge proof technology belong to the same hash value range in the zero knowledge proof technology; if the main body information is judged to be the shared use main body, judging that the type of the main body contained in the main body information is consistent with the shared use main body input with the main body information; if not, the type of the subject included in the subject information is determined to be inconsistent with the shared use subject to which the subject information is input.
Then, locking the DID digital identity as a unique digital identity; generating a DID identity document according to the DID digital identity locked as the unique digital identity; wherein one said DID identity document corresponds to one said DID digital identity; defining DID digital identities contained in the DID identity document as the pre-stored identification information; and chaining the pre-stored identification information hash and storing the pre-stored identification information hash into a block chain.
Acquiring an information loading starting instruction of the shared port, and identifying the type of the shared port according to the information loading starting instruction; the shared port comprises an office port, a shared charging pile operator port and a basic user port; and recording the loaded information as the unique identification information according to the type of the shared port. After the step of identifying the type of the shared port according to the information loading start instruction, the method further comprises the following steps: performing hash chaining on the identification information loaded through the department port, the shared charging pile operator port and the basic user port; and setting a multi-party consensus protocol according to the identification information loaded by the office port, the shared charging pile operator port and the basic user port of the Hash chaining, and achieving multi-party consensus.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A shared charging method based on a block chain and DID (differential image detection), the method comprising:
step S100: acquiring unique identification information loaded through a shared port;
step S200: judging whether the unique identification information is matched with prestored identification information stored in a block chain or not based on the block chain;
step S300: if the judgment result is yes, generating a shared charging instruction; and the shared charging instruction is used for controlling the shared charging pile to output voltage so as to carry out shared charging for users.
2. The method of claim 1, wherein before the step of determining whether the unique id matches a pre-stored id stored in a blockchain, the method further comprises:
step S210: acquiring basic information of a shared use subject; wherein, one use main body corresponds to one use main body basic information;
step S220: giving DID digital identity to the corresponding user according to the basic information of the user; wherein, one uses the basic information of the main body to correspond to one DID digital identity;
step S230: and respectively defining the DID digital identities as pre-stored identification information and storing the pre-stored identification information in the block chain.
3. The block chain and DID-based shared charging method of claim 2, wherein the step of obtaining basic information of the shared user agent comprises:
step S211: acquiring subject information input by a sharing use subject; the subject information includes a type to which the shared use subject belongs;
step S212: identifying whether a belonging type of a subject included in the subject information coincides with a shared use subject to which the subject information is input, based on a zero-knowledge proof technique;
step S213: if the shared use subject is judged to be the user subject, the basic information of the use subject is obtained according to the subject information input by the shared use subject.
4. The block chain and DID-based shared charging method according to claim 3, wherein the step of identifying whether the type of the subject included in the subject information matches the shared usage subject that inputs the subject information based on the zero-knowledge proof technology specifically comprises:
step S2121: acquiring the type of a subject contained in the subject information based on a zero-knowledge proof technology;
step S2122: identifying the type of the obtained main body corresponding to the hash value in the block chain based on a zero knowledge proof technology, and recording the type as an actual hash value;
step S2123: judging whether the actual hash value and a standard actual hash value set in the block chain based on the zero knowledge proof technology belong to the same hash value range in the zero knowledge proof technology;
step S215: if the main body information is judged to be the shared use main body, judging that the type of the main body contained in the main body information is consistent with the shared use main body input with the main body information; if not, the type of the subject included in the subject information is determined to be inconsistent with the shared use subject to which the subject information is input.
5. The block chain and DID-based shared charging method according to claim 2, wherein the step of respectively defining the DID digital identities as pre-stored identification information and storing the pre-stored identification information in the block chain specifically comprises:
step S215: locking the DID digital identity as a unique digital identity;
step S215: generating a DID identity document according to the DID digital identity locked as the unique digital identity; wherein one said DID identity document corresponds to one said DID digital identity;
step S215: defining DID digital identities contained in the DID identity document as the pre-stored identification information;
step S215: and chaining the pre-stored identification information hash and storing the pre-stored identification information hash into a block chain.
6. A block chain and DID-based shared charging apparatus, the apparatus comprising:
the information acquisition module is used for acquiring the unique identification information loaded through the shared port;
the information prestoring module is used for judging whether the unique identification information is matched with the prestored identification information stored in the block chain or not based on the block chain;
the first judgment module is used for generating a shared charging instruction if the judgment result is yes; and the shared charging instruction is used for controlling the shared charging pile to output voltage so as to carry out shared charging for users.
7. The device of claim 6, wherein the information pre-storing module comprises:
a main body information acquisition module for acquiring basic information of a shared use main body; wherein, one use main body corresponds to one use main body basic information;
the digital identity endowing module is used for endowing a DID digital identity to the corresponding user principal according to the basic information of the user principal; wherein, one uses the basic information of the main body to correspond to one DID digital identity;
and the marking information storage module is used for respectively defining the DID digital identities as pre-stored marking information and storing the pre-stored marking information in the block chain.
8. The blockchain and DID based shared charging pile system according to claim 1, wherein the system comprises a shared charging pile, wherein the shared charging pile is configured to obtain unique identification information loaded through a shared port; the system comprises a block chain, a unique identification information acquisition module and a block chain management module, wherein the block chain is used for storing the unique identification information; if the judgment result is yes, generating a shared charging instruction; and the shared charging instruction is used for controlling the shared charging pile to output voltage so as to carry out shared charging for users.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202110011643.6A 2021-01-06 2021-01-06 Block chain and DID (digital information device) shared charging method and shared charging pile system Active CN112927434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110011643.6A CN112927434B (en) 2021-01-06 2021-01-06 Block chain and DID (digital information device) shared charging method and shared charging pile system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110011643.6A CN112927434B (en) 2021-01-06 2021-01-06 Block chain and DID (digital information device) shared charging method and shared charging pile system

Publications (2)

Publication Number Publication Date
CN112927434A true CN112927434A (en) 2021-06-08
CN112927434B CN112927434B (en) 2022-08-19

Family

ID=76162785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110011643.6A Active CN112927434B (en) 2021-01-06 2021-01-06 Block chain and DID (digital information device) shared charging method and shared charging pile system

Country Status (1)

Country Link
CN (1) CN112927434B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113592356A (en) * 2021-08-17 2021-11-02 区块动力(广州)科技有限公司 Intelligent planning method for shared charging pile based on block chain
CN113721765A (en) * 2021-08-26 2021-11-30 苏州浪潮智能科技有限公司 Method, device and equipment for controlling input/output port of equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130254838A1 (en) * 2009-03-25 2013-09-26 Ratinder Ahuja System and method for data mining and security policy management
CN108649635A (en) * 2018-05-19 2018-10-12 智车优行科技(北京)有限公司 The acquisition methods and system of battery information
CN109050271A (en) * 2018-06-20 2018-12-21 于淼 Charge request processing method, server and charge request processing system
CN110119598A (en) * 2019-05-17 2019-08-13 北京思源互联科技有限公司 A kind of digital license signs and issues method, verification method and its system
CN111213147A (en) * 2019-07-02 2020-05-29 阿里巴巴集团控股有限公司 System and method for block chain based cross entity authentication
CN111277577A (en) * 2020-01-14 2020-06-12 北京百度网讯科技有限公司 Digital identity verification method, device, equipment and storage medium
CN111475845A (en) * 2020-04-13 2020-07-31 中国工商银行股份有限公司 Unstructured data identity authorization access system and method
KR102179498B1 (en) * 2020-04-13 2020-11-17 주식회사 한국정보보호경영연구소 Method for providing smart group bankbook service based decentralized identifier and system thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130254838A1 (en) * 2009-03-25 2013-09-26 Ratinder Ahuja System and method for data mining and security policy management
CN108649635A (en) * 2018-05-19 2018-10-12 智车优行科技(北京)有限公司 The acquisition methods and system of battery information
CN109050271A (en) * 2018-06-20 2018-12-21 于淼 Charge request processing method, server and charge request processing system
CN110119598A (en) * 2019-05-17 2019-08-13 北京思源互联科技有限公司 A kind of digital license signs and issues method, verification method and its system
CN111213147A (en) * 2019-07-02 2020-05-29 阿里巴巴集团控股有限公司 System and method for block chain based cross entity authentication
CN111277577A (en) * 2020-01-14 2020-06-12 北京百度网讯科技有限公司 Digital identity verification method, device, equipment and storage medium
CN111475845A (en) * 2020-04-13 2020-07-31 中国工商银行股份有限公司 Unstructured data identity authorization access system and method
KR102179498B1 (en) * 2020-04-13 2020-11-17 주식회사 한국정보보호경영연구소 Method for providing smart group bankbook service based decentralized identifier and system thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨政: "基于模型驱动的数据清洗组件研究", 《云南电力技术》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113592356A (en) * 2021-08-17 2021-11-02 区块动力(广州)科技有限公司 Intelligent planning method for shared charging pile based on block chain
CN113592356B (en) * 2021-08-17 2023-10-17 区块动力(广州)科技有限公司 Block chain-based intelligent planning method for shared charging pile
CN113721765A (en) * 2021-08-26 2021-11-30 苏州浪潮智能科技有限公司 Method, device and equipment for controlling input/output port of equipment
CN113721765B (en) * 2021-08-26 2023-07-25 苏州浪潮智能科技有限公司 Control method, device and equipment for input/output port of equipment

Also Published As

Publication number Publication date
CN112927434B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
Dorri et al. Blockchain: A distributed solution to automotive security and privacy
Jabbar et al. Blockchain for the Internet of Vehicles: How to use blockchain to secure vehicle-to-everything (V2X) communication and payment?
JP7019717B2 (en) Ensuring the security of blockchain transactions based on undetermined data
CN112927434B (en) Block chain and DID (digital information device) shared charging method and shared charging pile system
CN108009878A (en) A kind of information processing method and its device
CN111341024A (en) Charging pile sharing method, device, equipment and storage medium based on block chain
CN106789875B (en) A kind of block chain service unit, block chain service system and its communication means
CN110535872A (en) The method and apparatus of request of data are handled in block chain network
JP2020523839A (en) System and method for avoiding or reducing crypto stranded resources in blockchain networks
JPH11355264A (en) Host system element for international cryptographic system
Arora et al. Block chain based security mechanism for internet of vehicles (IoV)
CN108616360A (en) User identity verification, register method and device
CN109067549A (en) Virtual key two-way authentication system and method
CN111277711B (en) Virtual contact number generation method and device, storage medium and computer equipment
CN112016075B (en) Travel information verification method based on block chain, electronic device and medium
CN111881483B (en) Resource account binding method, device, equipment and medium based on blockchain
CN110011796B (en) Certificate updating method and device, computer equipment and storage medium
CN109067548A (en) Virtual key share system and method
Gray et al. Using temporal logic to specify and verify cryptographic protocols
CN112446780A (en) Account management method and device, computer equipment and storage medium
CN114338666A (en) Method, device, equipment and medium for verifying Fabric block chain cross-chain transaction
CN112149077B (en) Supply chain billing method, system and computer equipment based on block chain technology
Wu et al. Cross-domain fine-grained data usage control service for industrial wireless sensor networks
Feltus Learning algorithm recommendation framework for IS and CPS security: Analysis of the RNN, LSTM, and GRU contributions
CN111985000A (en) Model service output method, device, equipment and storage medium

Legal Events

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