CN112927434B - 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 PDFInfo
- Publication number
- CN112927434B CN112927434B CN202110011643.6A CN202110011643A CN112927434B CN 112927434 B CN112927434 B CN 112927434B CN 202110011643 A CN202110011643 A CN 202110011643A CN 112927434 B CN112927434 B CN 112927434B
- Authority
- CN
- China
- Prior art keywords
- shared
- information
- block chain
- identification information
- subject
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F15/00—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
- G07F15/003—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for electricity
- G07F15/005—Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for electricity dispensed for the electrical charging of vehicles
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic 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/0643—Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/60—Other road transportation technologies with climate change mitigation effect
- Y02T10/70—Energy storage systems for electromobility, e.g. batteries
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/60—Other road transportation technologies with climate change mitigation effect
- Y02T10/7072—Electromobility specific charging systems or methods for batteries, ultracapacitors, supercapacitors or double-layer capacitors
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T90/00—Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02T90/10—Technologies relating to charging of electric vehicles
- Y02T90/12—Electric charging stations
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Economics (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Strategic Management (AREA)
- Water Supply & Treatment (AREA)
- Power Engineering (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (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
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 a shared charging pile platform service, but for a shared charging pile which is operated in a centralized manner in the current market, a plurality of problems including data safety and low efficiency exist.
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: endowing a DID digital identity to the corresponding user main body according to the basic information of the user main body; 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 zero knowledge proof technology, and recording as an actual hash value;
step S2123: judging whether the actual hash value and a standard actual hash value set based on a zero knowledge proof technology in the block chain 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, judging that the type of the subject contained in the subject information is inconsistent with the shared use subject input with the subject information.
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 DID identity document corresponds to one DID digital identity;
step S215: defining DID digital identities contained in the DID identity documents 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 chain-linking 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.
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 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 executed by a processor, implements the steps of the above-mentioned 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 charging 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 of the internal structure of a computer device in one 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 apparent and understandable, the technical solutions in the embodiments of the present invention are described below clearly and completely with reference to the accompanying drawings in the embodiments of the present invention. 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 is characterized in that judgment is carried out through a block chain technology, 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 problem of data safety is solved.
Step S300: if 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 subject corresponds to one use subject basic information;
in the block chain, the user has the right to hide or disclose part of the information in the uplink, and can choose not to disclose the identity information, such as protecting the name, the mobile phone number and the like, so as to realize the safety data.
Step S220: endowing a DID digital identity to the corresponding user main body according to the basic information of the user main body; wherein, a use subject basic information corresponds to a DID digital identity;
when different using agents are used, the method in step S220 provides a unique identifier for each agent, such as multiple agents including governments, shared charging pile operators, users, and the like, 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 its dual identity at whole block chain sharing parking system cut apart, 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 on the chain are disclosed, private 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.
Step S213: if the shared use subject is judged to be the basic information of the use 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 zero knowledge proof technology, and recording as an actual hash value;
step S2123: judging whether the actual hash value and a standard actual hash value set based on a zero knowledge proof technology in the block chain 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, judging that the type of the subject contained in the subject information is inconsistent with the shared use subject input with the subject information.
In an 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, a use subject basic information corresponds to a DID digital identity;
and the marking information storage module is used for respectively defining the DID digital identities as pre-stored identification information and storing the pre-stored identification 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 block chain is used for judging whether the unique identification information is matched with prestored identification information stored in the block chain or not; 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 comprises a processor, a memory, a network interface, a display screen and an input device which are connected through 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 a 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 based on a zero knowledge proof technology in the block chain 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 documents 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 can include non-volatile and/or volatile memory. 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).
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure 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, and these are all 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 (9)
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 yes, generating a shared charging instruction; the shared charging instruction is used for controlling the shared charging pile to output voltage so as to carry out shared charging on users;
wherein, the step S100: acquiring the unique identification information loaded through the shared port, specifically including:
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: recording the loaded information as the unique identification information according to the type of the shared port;
wherein, the step S120: after the step of identifying the type of the shared port according to the information loading starting instruction, the method further comprises the following steps:
step S121: performing hash chain-linking on the identification information loaded through the department port, the shared charging pile operator port and the basic user port;
step S122: setting a multi-party consensus protocol according to the identification information loaded by the office department port, the shared charging pile operator port and the basic user port of the Hash chaining, and achieving multi-party consensus;
step S200: before the step of determining whether the unique identification information matches pre-stored identification information stored in a block chain based on the block chain, 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: respectively defining the DID digital identities as pre-stored identification information and storing the pre-stored identification information in the block chain;
or, one shared use main body has a plurality of DIDs, and when one shared use main body has a plurality of DIDs, for the user who has private charging pile resources, the DID technology can be used to divide the dual identities of the whole block chain shared parking system, and the operations are performed respectively, so that the complexity problem caused by identity crossing is avoided.
2. The block chain and DID-based shared charging method of claim 1, 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 that inputs the subject information based on a zero-knowledge proof technique;
step S213: if the shared use subject is judged to be the basic information of the use subject, the basic information of the use subject is obtained according to the subject information input by the shared use subject.
3. The block chain and DID-based shared charging method according to claim 2, 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.
4. The block chain and DID-based shared charging method according to claim 1, 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 DID identity document corresponds to one 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.
5. A block chain and DID based shared charging apparatus based on the block chain and DID based shared charging method of any one of claims 1-4, 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; the shared charging instruction is used for controlling the output voltage of the shared charging pile to carry out shared charging on users.
6. The DID-based shared charging device of claim 5, 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 subject corresponds to one use subject basic information;
the digital identity endowing module is used for endowing a 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 the marking information storage module is used for respectively defining the DID digital identities as pre-stored identification information and storing the pre-stored identification information in the block chain.
7. The shared charging device based on blockchain and DID according to claim 6, wherein a system includes a shared charging pile, wherein the shared charging pile is used to obtain the unique identification information loaded through a shared port; the block chain is used for judging whether the unique identification information is matched with prestored identification information stored in the block chain or not; if the judgment result is yes, generating a shared charging instruction; the shared charging instruction is used for controlling the output voltage of the shared charging pile to carry out shared charging on users.
8. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program performs the steps of the method according to any of claims 1 to 4.
9. 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 4.
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 CN112927434A (en) | 2021-06-08 |
CN112927434B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113592356B (en) * | 2021-08-17 | 2023-10-17 | 区块动力(广州)科技有限公司 | Block chain-based intelligent planning method for shared charging pile |
CN113721765B (en) * | 2021-08-26 | 2023-07-25 | 苏州浪潮智能科技有限公司 | Method, device and device for controlling input and output ports of equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111213147A (en) * | 2019-07-02 | 2020-05-29 | 阿里巴巴集团控股有限公司 | System and method for block chain based cross entity authentication |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8447722B1 (en) * | 2009-03-25 | 2013-05-21 | Mcafee, Inc. | 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 |
CN109050271B (en) * | 2018-06-20 | 2021-11-16 | 于淼 | Charging request processing method, server and charging 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 |
CN111277577B (en) * | 2020-01-14 | 2022-06-07 | 北京百度网讯科技有限公司 | Digital identity verification method, apparatus, device and storage medium |
CN111475845B (en) * | 2020-04-13 | 2023-09-22 | 中国工商银行股份有限公司 | Unstructured data identity authorized 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 |
-
2021
- 2021-01-06 CN CN202110011643.6A patent/CN112927434B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111213147A (en) * | 2019-07-02 | 2020-05-29 | 阿里巴巴集团控股有限公司 | System and method for block chain based cross entity authentication |
Non-Patent Citations (1)
Title |
---|
基于模型驱动的数据清洗组件研究;杨政;《云南电力技术》;20171215(第06期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112927434A (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Jabbar et al. | Blockchain for the Internet of Vehicles: How to use blockchain to secure vehicle-to-everything (V2X) communication and payment? | |
Dorri et al. | Blockchain: A distributed solution to automotive security and privacy | |
CN111341024A (en) | Charging pile sharing method, device, equipment and storage medium based on block chain | |
JP7019717B2 (en) | Ensuring the security of blockchain transactions based on undetermined data | |
CN111027086B (en) | Private data protection method and system | |
CN108009878A (en) | A kind of information processing method and its device | |
CN112927434B (en) | Block chain and DID (digital information device) shared charging method and shared charging pile system | |
US20190303463A1 (en) | Vehicle incident documentation for blockchain | |
Arora et al. | Block chain based security mechanism for internet of vehicles (IoV) | |
CN111881483B (en) | Resource account binding method, device, equipment and medium based on blockchain | |
JPH11355264A (en) | Host system element for international cryptographic system | |
Abbade et al. | Blockchain applied to vehicular odometers | |
CN112561706A (en) | Charging pile service information processing method and system based on block chain | |
CN107086996A (en) | Device and method for security authentication of Internet of Vehicles | |
CN109067549A (en) | Virtual key two-way authentication system and method | |
CN110992178A (en) | Verification method and device for block chain node, computer equipment and storage medium | |
CN112466013B (en) | Digital key management method, device, system and storage medium | |
CN112446780A (en) | Account management method and device, computer equipment and storage medium | |
CN113709695A (en) | Vehicle use authorization method and system | |
CN112422516B (en) | Trusted connection method and device based on power edge calculation and computer equipment | |
Gaba et al. | B-VANET: A blockchain-based vehicular ad-hoc network for data validation | |
Baskaran | Hybrid energy efficient deep learning and redactable consortium blockchain-based secure framework for smart parking in smart cities | |
Sultana et al. | Blockchain-enabled federated learning approach for vehicular networks | |
CN112734420A (en) | Token management method, device, server and storage medium based on big data platform | |
CN117595996A (en) | Electronic signature processing method and device, electronic 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 |