Disclosure of Invention
Aiming at the problems, the invention provides a charging pile service information processing method and system based on a block chain, and solves the problems that the identity of an electric vehicle user cannot be shared, charging and charging across operators are unreasonable, and transaction data is difficult to trace.
In order to achieve the purpose, the invention provides the following technical scheme:
an information processing method for charging pile services based on a block chain comprises the following steps:
generating an identity identifier and a public and private key pair of a charging pile service user through a charging pile service distributed identity registration mechanism;
storing the identity identifier and the public key in a charging pile distributed identity and transaction book through a block chain consensus mechanism;
based on a verification mechanism of the distributed identity identifiers, respectively obtaining a charging service credible authorization book of a charging pile operated by a charging pile operator and an identity credible authorization book of an electric automobile charging user from a target charging pile management department, wherein the target charging pile management department is the charging pile service management department with the highest authority;
when an electric vehicle charging user charges in different operators, the user and a charging pile of the corresponding operator are verified through an identity identifier of the user and a trusted authority verification mechanism, and if the user and the charging pile of the corresponding operator pass the verification, the charging pile is controlled to charge the electric vehicle, and charging information is generated;
and responding to the completion of the charging transaction, and storing transaction information in the charging pile distributed identity and transaction account book.
Optionally, the generating an identity identifier and a public-private key pair of a charging pile service user includes:
generating a fixed character string and a random character string;
combining the fixed character string and the random character string to obtain a distributed identity identifier;
generating a public-private key pair associated with the distributed identity identifier;
and storing the identity identifier and the public and private key pair in a built-in identity folder of a client corresponding to a charging pile service user.
Optionally, the storing the identity identifier and the public key in a charging pile distributed identity and transaction ledger through a consensus mechanism of a block chain includes:
signing the identity by using a private key to generate a distributed identity identifier signature;
in response to receiving a registration request containing the distributed identity identifier signature and the public key, extracting the public key and the distributed identity identifier signature in the registration request and verifying the public key and the distributed identity identifier signature;
and if the verification is passed, storing the identity identifier and the public key in a charging pile distributed identity and transaction book.
Optionally, the obtaining, by the verification mechanism based on the distributed identity identifier, a charging-service trusted authority of the charging pile operated by a charging-pile operator and an identity trusted authority of an electric vehicle charging user from a target charging-pile management department respectively includes:
responding to a request that a target charging pile management department receives a charging pile of an operator and sends an application for issuing an authorization book, and inquiring a public key of the charging pile in a distributed identity and a transaction account book;
verifying the signature information in the request by using the public key, and auditing the information in the request;
if the verification and the verification are passed, issuing a charging pile charging service credible authorization book for the charging pile;
responding to a request for applying for issuing an authorization form sent by an electric vehicle charging user and received by the target charging pile management department, and inquiring a public key of the electric vehicle charging user sending the request for issuing the authorization form in the distributed identity and transaction book;
verifying the signature information in the request by using the public key, and verifying the real-name information of the user;
and if the verification and the audit are passed, issuing an identity credible authorization book for the user.
Optionally, the verifying the charging pile of the user and the corresponding operator through the identity identifier of the user and a trusted authority verification mechanism includes:
in response to receiving a verification request of a user, extracting signature information of a user identity credible authorization book and a distributed identity identifier;
inquiring a public key of the user in a distributed identity and transaction book;
verifying the signature information by using the public key, and if the signature information passes the verification, inquiring the public key of a target charging pile management department in a distributed identity and transaction account book;
verifying the user identity credible authorization by using the public key, and determining that the user is a credible user if the verification is passed;
acquiring signature information in response to receiving a verification request of an operator charging pile;
verifying the signature information by using a public key in a distributed identity and transaction book, and inquiring to obtain the public key if the verification is passed;
and verifying the identity authorization of the charging pile by using the public key, and if the identity authorization passes the verification, determining that the charging pile is credible.
An information processing system of charging pile service based on block chain comprises:
the generating unit is used for generating an identity identifier and a public and private key pair of a charging pile service user through a charging pile service distributed identity registration mechanism;
the first storage unit is used for storing the identity identifier and the public key in a charging pile distributed identity and transaction account book through a block chain consensus mechanism;
the system comprises an acquisition unit and a charging management unit, wherein the acquisition unit is used for respectively acquiring a charging service credible authorization book of a charging pile operated by a charging pile operator and an identity credible authorization book of an electric vehicle charging user from a target charging pile management department based on a verification mechanism of a distributed identity identifier, and the target charging pile management department is the charging pile service management department with the highest authority;
the verification unit is used for responding to the fact that an electric automobile charging user carries out charging in different operators, verifying the user and a charging pile of the corresponding operator through an identity identifier of the user and a credible authorization certificate verification mechanism, and controlling the charging pile to charge the electric automobile and generate charging information if the user and the charging pile pass verification;
and the second storage unit is used for responding to the completion of the charging transaction and storing the transaction information in the charging pile distributed identity and the transaction account book.
Optionally, the generating unit includes:
a first generation subunit, configured to generate a fixed character string and a random character string;
the combination subunit is used for combining the fixed character string and the random character string to obtain a distributed identity identifier;
a second generation subunit configured to generate a public-private key pair associated with the distributed identity identifier;
and the first storage subunit is used for storing the identity identifier and the public and private key pair in a built-in identity folder of a client corresponding to the charging pile service user.
Optionally, the first holding unit comprises:
the signature subunit is used for signing the identity identifier by using a private key to generate a distributed identity identifier signature;
the first extraction subunit is used for responding to a received registration request containing the distributed identity identifier signature and the public key, extracting the public key and the distributed identity identifier signature in the registration request and verifying the public key and the distributed identity identifier signature;
and the second storage subunit is used for storing the identity identifier and the public key in a charging pile distributed identity and transaction ledger if the verification is passed.
Optionally, the obtaining unit includes:
the first inquiry subunit is used for responding to a request that a charging pile management department of an operator sends an application for issuing an authorization form, and inquiring a public key of the charging pile in a distributed identity and a transaction account book;
the first verification subunit is used for verifying the signature information in the request by using the public key and verifying the information in the request;
the first issuing subunit is used for issuing a charging pile charging service credible authorization book for the charging pile if the verification and the audit are passed;
the second inquiry subunit is used for responding to a request of applying for issuing an authorization statement sent by an electric vehicle charging user and received by the target charging pile management department, and inquiring a public key of the electric vehicle charging user sending the request of issuing the authorization statement in the distributed identity and the transaction account book;
the second verification subunit is used for verifying the signature information in the request by using the public key and verifying the real-name information of the user;
and the second issuing subunit is used for issuing an identity credible authorization book for the user if the verification and the audit are passed.
Optionally, the verification unit includes:
the second extraction subunit is used for responding to the received verification request of the user and extracting the credible authorization book of the user identity and the signature information of the distributed identity identifier;
the third inquiry subunit is used for inquiring the public key of the user in the distributed identity and transaction account book;
the third verification subunit is used for verifying the signature information by using the public key, and inquiring the public key of the target charging pile management department in the distributed identity and transaction account book if the signature information passes the verification;
the fourth verification subunit is used for verifying the user identity trusted certificate by using the public key, and if the user identity trusted certificate passes the verification, determining that the user is a trusted user;
the acquisition subunit is used for responding to a received verification request of the operator charging pile and acquiring signature information;
the fifth verification subunit is used for verifying the signature information by using the public key in the distributed identity and the transaction book, and inquiring to obtain the public key if the verification is passed;
and the sixth verification subunit is used for verifying the identity authorization of the charging pile by using the public key, and determining that the charging pile is credible if the verification is passed.
Compared with the prior art, the invention provides a charging pile business information processing method and system based on a block chain, wherein an identity identifier and a public and private key pair of a charging pile business user are generated through a charging pile business distributed identity registration mechanism; storing the identity identifier and the public key in a charging pile distributed identity and transaction book through a block chain consensus mechanism; based on a verification mechanism of the distributed identity identifiers, respectively obtaining a charging service credible authorization book of a charging pile operated by a charging pile operator and an identity credible authorization book of an electric vehicle charging user from a target charging pile management department, wherein the target charging pile is the management department with the highest authority; when the user who charges the electric automobile is charged in different operators, the user and the charging pile of the corresponding operator are verified through the identity identifier of the user and a credible authorization certificate verification mechanism, if the user and the charging pile pass the verification, the charging pile is controlled to charge the electric automobile, and charging information is generated; and responding to the completion of the charging transaction, and storing transaction information in the charging pile distributed identity and transaction account book. The problems that the user identity of the electric automobile cannot be shared, charging and charging across operators are unreasonable, and transaction data is difficult to trace are solved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the 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.
The terms "first" and "second," and the like in the description and claims of the present invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not set forth for a listed step or element but may include steps or elements not listed.
The embodiment of the invention provides an information processing method of a charging pile service based on a block chain, which is shown in fig. 1 and comprises the following steps:
s101, generating an identity identifier and a public and private key pair of a charging pile service user through a charging pile service distributed identity registration mechanism.
And S102, storing the identity identifier and the public key in a charging pile distributed identity and transaction book through a block chain consensus mechanism.
S103, based on a verification mechanism of the distributed identity identifiers, a charging business credible authorization book of the charging pile operated by a charging pile operator and an identity credible authorization book of an electric automobile charging user are respectively obtained from a target charging pile management department.
The target charging pile management department is a charging pile business management department with the highest authority.
S104, responding to the fact that an electric automobile charging user charges in different operators, verifying the user and a charging pile of the corresponding operator through the identity identifier of the user and a credible authorization certificate verification mechanism, controlling the charging pile to charge the electric automobile if the user and the charging pile pass verification, and generating charging information.
And S105, responding to the completion of the charging transaction, and storing transaction information in the charging pile distributed identity and transaction account book.
In the embodiment of the invention, the information processing of the charging pile service based on the block chain mainly comprises distributed identity authentication, authorization and traceability, so that the identity data of the charging pile service user and the transaction data are shared, the identity bidirectional verification of the charging pile and the charging user of the electric vehicle operated in the ecological circle is realized, the charging pile is charged fairly and justly, and the transaction information is traceable. The system mainly comprises a distributed identity and transaction book, an intelligent contract service node and a business client. The charging pile distributed identity and transaction account book is mainly used for storing identity information and transaction information of charging pile business users; the intelligent contract service node is mainly used for processing requests of identity information registration authentication, transaction information storage inquiry and the like from a service client; the service client mainly provides services such as identity information registration authentication, transaction information storage and query and the like for the user, and stores and manages the identity information of the user through a built-in identity folder. Firstly, business clients of charging pile business users generate respective distributed identity identifiers and public and private key pairs, the respective generated distributed identity identifiers and public keys are stored in a charging pile distributed identity and transaction book through a consensus mechanism of a block chain by an intelligent contract service node, and then the identity data of the charging pile business ecosystem users are safely stored and shared by combining with a distributed privacy protection mechanism. Secondly, based on the verification mechanism of the distributed identities of the charging piles and the registered distributed identity identifiers on the transaction account book, charging piles operated by charging pile operators and charging pile fair charging business credible authorization and identity credible authorization of electric vehicle charging users are respectively obtained from a target charging pile management department (the target charging pile management department is a charging pile business management department with the highest authority, such as a national network charging pile management department), and the reasonable charging based on pricing strategies and the safe credibility of the user identities are realized. And finally, when the electric vehicle charging user charges in different operators, the bidirectional verification with the charging pile is completed through the identity identifier of the charging pile service user and the credible authorization certificate verification mechanism, the charging pile is triggered to provide fair and fair charging service according to the pricing strategy of the fair and fair charging service credible authorization certificate, and the electric vehicle charging user performs payment transaction according to the charging result of the charging pile. After the transaction is completed, the charging pile and the electric vehicle charging user save the transaction information in the charging pile ecological circle distributed identity and the transaction account book through the intelligent contract service node, and the transaction information can be traced.
In the embodiment of the invention, a block chain network is established for a charging pile service system, and a service client is developed; and a charging pile business distributed identity registration mechanism, a charging pile fair charging business credible authorization issuing mechanism, an electric vehicle charging user identity credible authorization mechanism, an identity identifier of a charging pile business user and a credible authorization verification mechanism are designed aiming at the system, so that the safe sharing of the charging pile business user identity data and transaction data is ensured, the identity bidirectional verification of an internal operation charging pile and an electric vehicle charging user is realized, and the charging pile fair and fair charging and the transaction information traceability can be realized.
Referring to fig. 2, it shows an information processing system of a charging pile service based on a block chain according to an embodiment of the present invention, where the system mainly includes a charging pile distributed identity and transaction book, an intelligent contract service node, and a service client, where: the charging pile distributed identity and transaction account book is mainly used for storing identity information and transaction information of various users such as a charging pile business domestic network charging pile management department, each charging pile operator, a charging pile operated by the charging pile operator, an electric vehicle charging user and the like; the intelligent contract service node is mainly used for processing requests of identity information registration authentication, transaction information storage inquiry and the like from a service client; the service client mainly provides services such as identity information registration authentication, transaction information storage and query and the like for the user, and stores and manages the identity information of the user through a built-in identity folder.
Firstly, a service client of a charging pile service user generates respective distributed identity identifiers and public and private key pairs through a charging pile service distributed identity registration mechanism, and stores the generated distributed identity identifiers and public and private keys in an identity folder built in the service client; meanwhile, the generated distributed identity identifiers and public keys are stored in the charging pile distributed identity and transaction accounts through a consensus mechanism of a block chain through the intelligent contract service node, and the identity data of the charging pile service user is safely stored and shared in combination with a distributed privacy protection mechanism. Secondly, based on the verification mechanism of the distributed identities of the charging piles and the registered distributed identity identifiers on the transaction account book, the charging piles operated by operators obtain the charging pile fair charging service credible authorization form from a target charging pile management department through a charging pile fair charging service credible authorization form issuing mechanism, so that the safe credibility of the identities and the reasonable charging based on a fair pricing strategy are realized; the electric vehicle charging user obtains the identity credible authorization book from the target charging pile management department through the electric vehicle charging user identity credible authorization mechanism, and the safety credibility of the electric vehicle charging user identity is realized. And finally, when the electric vehicle charging user charges in different operators, the bidirectional verification with the charging pile is completed through the identity identifier of the charging pile service user and the credible authorization certificate verification mechanism, the charging pile is triggered to provide fair and fair charging service according to the pricing strategy of the fair and fair charging service credible authorization certificate, and the electric vehicle charging user performs payment transaction according to the charging result of the charging pile. After the transaction is completed, the charging pile and the electric vehicle charging user save the transaction information in the charging pile distributed identity and the transaction account book through the intelligent contract service node, and the transaction information can be traced.
In the embodiment of the present invention, the generating an identity and a public and private key pair of a charging pile service user includes: generating a fixed character string and a random character string; combining the fixed character string and the random character string to obtain a distributed identity identifier; generating a public-private key pair associated with the distributed identity identifier; and storing the identity identifier and the public and private key pair in a built-in identity folder of a client corresponding to a charging pile service user.
Specifically, referring to fig. 3, a flowchart of a distributed identity registration mechanism for a charging pile provided in an embodiment of the present invention is shown. Charging pile service users such as a target charging pile management department (taking a state network charging management department as an example), each charging pile operator, an operating charging pile, an electric vehicle charging user and the like generate respective distributed identity identifiers and public and private key pairs through a service client, and store the generated distributed identity identifiers and public and private keys in an identity folder built in the service client; meanwhile, the generated distributed identity identifiers and public keys are stored in the charging pile distributed identity and transaction accounts through a consensus mechanism of a block chain through the intelligent contract service node, and the identity data of the charging pile service user is safely stored and shared in combination with a distributed privacy protection mechanism.
Generating a distributed identity identifier and associated public-private key pair: a business client of a charging pile business user firstly generates a fixed character string and a random character string, then combines the generated fixed character string and the random character string to obtain a distributed identity identifier, and simultaneously generates a public and private key pair associated with the distributed identity identifier; if the distributed identity identifier and the corresponding public and private key pair are successfully generated, storing the generated distributed identity identifier and the generated public and private key pair in an identity folder built in a service client; otherwise, the registration fails and the registration process is exited.
Storing the distributed identity identifier and the corresponding public key in a charging pile distributed identity and transaction book: a service client of a charging pile service user firstly signs a distributed identity identifier by using a private key of the service client to generate a distributed identity identifier signature; a registration request containing the generated distributed identity identifier signature and its own public key is then sent to the intelligent contract service node. The intelligent contract service node receives the registration request, firstly extracts a public key and a distributed identity identifier signature in the registration request, and then verifies the extracted signature by using the extracted public key; if the verification passes, the intelligent contract service node stores the received distributed identity identifier and the public key in the charging pile distributed identity and transaction account book; otherwise, the registration fails and the registration process is exited.
In this embodiment of the present invention, the storing the identity identifier and the public key in a charging pile distributed identity and transaction ledger through a block chain consensus mechanism includes: signing the identity by using a private key to generate a distributed identity identifier signature; in response to receiving a registration request containing the distributed identity identifier signature and the public key, extracting the public key and the distributed identity identifier signature in the registration request and verifying the public key and the distributed identity identifier signature; and if the verification is passed, the identity identifier and the public key are stored in a charging pile distributed identity and transaction book.
Referring to fig. 4, which shows a schematic diagram of a process for issuing a charging pile justice charging service credible license according to an embodiment of the present invention, a target charging pile management department (taking a national network charging management department as an example) issues a charging pile justice charging service credible license to charging piles operated by various operators according to real information such as quality qualification certification and equipment information security certification of the charging piles and a fair and fair pricing policy, and the issued justice charging service credible license is bound with distributed identity identifiers of the charging piles, so that identity credibility and fair and charging of the charging piles operated by various operators are ensured. The data structure of the credible authorization book of the charging pile fair charging service consists of three parts, namely metadata, an attribute set and an internal target charging pile management department signature, wherein the metadata comprises information such as an authorization book name, an authorization book issuer, an issuing date and an expiration date; the attribute set comprises information such as manufacturers of the charging piles, quality qualification certification, equipment information safety certification, operators, pricing strategies, pricing amounts and the like; the signature of the internal target charging pile management department comprises signature information, a signature algorithm, signature time and the like. The method specifically comprises the following steps:
(1) the method comprises the steps that a business client of a charging pile operated by each operator sends a request for applying for issuing an authorization book to a business client of a target charging pile management department, wherein the request comprises quality qualification certification of the charging pile, information security certification waiting audit information of a manufacturer, the operator and equipment, and signature information of the charging pile waiting audit information and a distributed identity identifier by using a private key of the business client.
(2) A target charging pile management department business client receives the request for applying for issuing the authorization book, and firstly, a public key of a charging pile sending the request for issuing the authorization book in a charging pile distributed identity and a transaction account book is inquired through an intelligent contract service node; and if the verification and the verification are passed, the business client of the management department of the internal target charging pile creates a new charging pile justice charging business credible authorization book for the charging pile applying for issuing the authorization book according to the fair and justice pricing strategy and sends the new charging pile justice charging business credible authorization book to the charging pile business client applying for issuing the authorization book, and otherwise, the authorization book is refused to be issued.
(3) A charging pile business client side applying for issuing an authorization receives a charging pile justice charging business credible authorization, firstly, a distributed identity of a charging pile and a public key of a target charging pile management department on a transaction account book are inquired through an intelligent contract service node, the received charging pile justice charging business credible authorization is checked by utilizing the inquired public key, and if the check passes, the received charging pile justice charging business credible authorization is stored in an identity folder of the client side; and if not, re-applying the credible authorization book of the charging pile justice charging service to the target charging pile management department.
Referring to fig. 5, a flowchart of trusted authorization of charging user identity of an electric vehicle according to an embodiment of the present invention is shown. And the target charging pile management department (national network charging pile management department) issues an identity credible authorization book of the electric automobile charging user according to the real name information of the electric automobile charging user, and the issued identity credible authorization book corresponds to the distributed identity identifier of the electric automobile charging user, so that the identity credibility of the electric automobile charging user is ensured. The data structure of the credible electric vehicle charging user identity authorization book comprises three parts, namely metadata, an attribute set and an internal target charging pile management department signature, wherein the metadata comprises information such as an authorization book name, an authorization book issuer, an issuing date and a validity period; the attribute set comprises encrypted real name information of the inner electric vehicle charging user; the signature of the internal target charging pile management department comprises signature information, a signature algorithm, signature time and the like.
The method specifically comprises the following steps:
(1) and the electric vehicle charging user sends a request for applying for issuing an authorization to a business client of a target charging pile management department through the business client, wherein the real name information to be checked of the electric vehicle charging user in the request, and the information to be checked of the charging pile and the signature information of the distributed identity identifier are signed by using a private key of the electric vehicle charging user.
(2) The method comprises the steps that a target charging pile management department business client receives a request for applying for issuing an authorization book, and public keys of electric automobile charging users sending requests for issuing the authorization book in charging pile distributed identities and transaction accounts are inquired through an intelligent contract service node; and if the verification and the verification are passed, the target charging pile management department service client establishes an identity credible authorization book for the electric vehicle charging user who applies for issuing the authorization book and sends the authorization book to the service client of the electric vehicle charging user who applies for issuing the authorization book, otherwise, the authorization book is refused to be issued.
(3) The method comprises the steps that an electric vehicle charging user business client side applying for issuing an authorization receives an identity credible authorization issued by a target charging pile management department, firstly, a distributed identity of a charging pile and a public key of the target charging pile management department on a transaction account book are inquired through an intelligent contract service node, the inquired public key is used for checking a received identity credible authorization, and if the check passes, the received identity credible authorization is stored in an identity folder of the client side; and if not, re-applying the identity credible authorization to the target charging pile management department.
When the electric vehicle charging user carries out cross-operator charging, firstly, initiating bidirectional verification with a distributed identity identifier and a credible authorization book of a corresponding charging pile; if the two-way authentication is passed, the charging pile can be triggered to provide the charging service, and the identity identifier and the trusted authority authentication mechanism of the charging pile service user are shown in fig. 6. The method specifically comprises the following steps:
(1) the service client of the electric vehicle charging user firstly takes out the identity credible authorization book and the distributed identity identifier from the built-in identity folder; then, signing the extracted identity credible authorization book and the distributed identity identifier by using a private key of the user to generate signature information of the identity credible authorization book and the distributed identity identifier; and then sending a verification request containing the generated identity credible authorization book and the distributed identity identifier signature information to a charging pile business client providing charging service.
(2) A charging pile business client side providing charging service receives the verification request, firstly extracts a user identity credible authorization book and distributed identity identifier signature information from the received verification request, and inquires a public key of an electric automobile charging user sending the verification request in a charging pile distributed identity and transaction account book; then, verifying the extracted signature information by using the inquired public key, if the verification is passed, then extracting a user identity credible authorization book in the verification request, and inquiring the public key of a target charging pile management department (taking a state network charging pile management department as an example) in a charging pile distributed identity and transaction account book; then, verifying the authenticity of the extracted user identity credible authorization according to the inquired public key, if the verification is passed, confirming the electric automobile charging user sending the verification request as credible by the charging pile providing the charging service, and then verifying the distributed identity identifier of the charging pile providing the charging service and the charging pile justice charging service credible authorization by the electric automobile charging user; otherwise, the user is identified as an untrusted user, and the authentication process is interrupted.
(3) A charging pile business client side providing charging service takes out a charging pile fair charging business credible authorization and a distributed identity identifier from an identity folder; then, signing the taken charging pile fair charging service trusted authorization book and the taken distributed identity identifier by using a private key of the user to generate signature information of the charging pile fair charging service trusted authorization book and the distributed identity identifier; and then sending a verification request containing the generated charging pile justice charging service credible authorization book and distributed identity identifier signature information to a service client corresponding to the electric automobile user.
(4) The service client corresponding to the electric vehicle user receives the verification request, firstly extracts a charging pile fair charging service credible authorization book and distributed identity identifier signature information from the received verification request, and inquires a public key of the charging pile sending the verification request in a charging pile distributed identity and transaction account book; then, verifying the extracted signature information by using the inquired public key, if the verification is passed, then extracting a charging pile justice charging service credible authorization book in the verification request, and inquiring the public key of a target charging pile management department in a charging pile distributed identity and a transaction account book; then, verifying the authenticity of the extracted internal identity certificate according to the inquired public key, and if the verification is passed, confirming that the charging pile sending the verification request is credible by an electric vehicle user, and successfully performing bidirectional verification; otherwise, the charging pile is determined to be untrustworthy, and the verification process is interrupted.
According to the invention, a block link network is constructed by multiple nodes such as a plurality of charging pile operators, a target charging pile management department, electric vehicle charging users and the like, and the safe sharing of the identity data and transaction data of the charging piles operated by the charging pile operators and the electric vehicle charging users is ensured by means of a consensus mechanism and a distributed privacy protection mechanism; and single point fault attack and DDoS attack can be resisted, namely when a certain node is attacked, identity authentication and charging transaction of the whole system cannot be influenced. The charging pile fair charging service credible authorization book and the charging identity credible authorization book are issued to the charging pile and the electric vehicle charging user operated by each operator through the target charging pile management department respectively, and the identity identifier and the credible authorization book verification mechanism of the charging pile service user are used for realizing the bidirectional verification of the identity identifier and the credible authorization book of the charging pile and the electric vehicle charging user, so that the identity credibility of the charging pile and the electric vehicle charging user operated by each operator is ensured, and the charging pile fair charging of each operator can be ensured. After the transaction of the charging pile and the electric vehicle charging user is completed, the charging pile and the electric vehicle charging user can store transaction information in a distributed identity and a transaction account book of the charging pile through an intelligent contract service node, safe storage and sharing of the transaction information are guaranteed through a consensus mechanism and a distributed privacy protection mechanism, and the transaction information can be traced by the charging pile service user.
Referring to fig. 7, an embodiment of the present invention provides an information processing system for a charging pile service based on a block chain, including:
the generation unit 10 is configured to generate an identity identifier and a public and private key pair of a charging pile service user through a charging pile service distributed identity registration mechanism;
the first saving unit 20 is configured to save the identity identifier and the public key in a charging pile distributed identity and transaction book through a consensus mechanism of a block chain;
the acquisition unit 30 is configured to acquire a charging service trusted authority of a charging pile operated by a charging pile operator and an identity trusted authority of an electric vehicle charging user from a target charging pile management department, respectively, based on a verification mechanism of a distributed identity identifier, where the target charging pile management department is the charging pile service management department with the highest authority;
the verification unit 40 is used for verifying the user and a charging pile of a corresponding operator through an identity identifier of the user and a trusted authority verification mechanism when the user charges the electric vehicle in different operators, and controlling the charging pile to charge the electric vehicle and generate charging information if the user and the charging pile pass the verification;
and the second storage unit 50 is used for responding to the completion of the charging transaction and storing the transaction information in the charging pile distributed identity and the transaction book.
Optionally, the generating unit includes:
a first generation subunit, configured to generate a fixed character string and a random character string;
the combination subunit is used for combining the fixed character string and the random character string to obtain a distributed identity identifier;
a second generation subunit configured to generate a public-private key pair associated with the distributed identity identifier;
and the first storage subunit is used for storing the identity identifier and the public and private key pair in a built-in identity folder of a client corresponding to the charging pile service user.
Optionally, the first holding unit comprises:
the signature subunit is used for signing the identity identifier by using a private key to generate a distributed identity identifier signature;
the first extraction subunit is used for responding to a received registration request containing the distributed identity identifier signature and the public key, extracting the public key and the distributed identity identifier signature in the registration request and verifying the public key and the distributed identity identifier signature;
and the second storage subunit is used for storing the identity identifier and the public key in a charging pile distributed identity and transaction ledger if the verification is passed.
Optionally, the obtaining unit includes:
the first inquiry subunit is used for responding to a request that a charging pile management department of an operator sends an application for issuing an authorization form, and inquiring a public key of the charging pile in a distributed identity and a transaction account book;
the first verification subunit is used for verifying the signature information in the request by using the public key and verifying the information in the request;
the first issuing subunit is used for issuing a charging pile charging service credible authorization book for the charging pile if the verification and the audit are passed;
the second inquiry subunit is used for responding to a request of applying for issuing an authorization statement sent by an electric vehicle charging user and received by the target charging pile management department, and inquiring a public key of the electric vehicle charging user sending the request of issuing the authorization statement in the distributed identity and the transaction account book;
the second verification subunit is used for verifying the signature information in the request by using the public key and verifying the real-name information of the user;
and the second issuing subunit is used for issuing an identity credible authorization book for the user if the verification and the audit are passed.
Optionally, the verification unit includes:
the second extraction subunit is used for responding to a received verification request of the user and extracting the credible authorization book of the user identity and the signature information of the distributed identity identifier;
the third inquiry subunit is used for inquiring the public key of the user in the distributed identity and transaction account book;
the third verification subunit is used for verifying the signature information by using the public key, and inquiring the public key of the target charging pile management department in the distributed identity and transaction account book if the signature information passes the verification;
the fourth verification subunit is used for verifying the user identity trusted certificate by using the public key, and if the user identity trusted certificate passes the verification, determining that the user is a trusted user;
the acquisition subunit is used for responding to a received verification request of the operator charging pile and acquiring signature information;
the fifth verification subunit is used for verifying the signature information by using the public key in the distributed identity and the transaction book, and inquiring to obtain the public key if the verification is passed;
and the sixth verification subunit is used for verifying the identity authorization of the charging pile by using the public key, and determining that the charging pile is credible if the verification is passed.
The invention provides a charging pile business information processing system based on a block chain, which generates an identity identifier and a public and private key pair of a charging pile business user through a charging pile business distributed identity registration mechanism; storing the identity identifier and the public key in a charging pile distributed identity and transaction book through a block chain consensus mechanism; based on a verification mechanism of the distributed identity identifiers, respectively obtaining a charging service credible authorization book of a charging pile operated by a charging pile operator and an identity credible authorization book of an electric automobile charging user from a target charging pile management department, wherein the target charging pile management department is the charging pile service management department with the highest authority; when the user who charges the electric automobile is charged in different operators, the user and the charging pile of the corresponding operator are verified through the identity identifier of the user and a credible authorization certificate verification mechanism, if the user and the charging pile pass the verification, the charging pile is controlled to charge the electric automobile, and charging information is generated; and responding to the completion of the charging transaction, and storing transaction information in the charging pile distributed identity and transaction account book. The problems that the user identity of the electric automobile cannot be shared, charging and charging across operators are unreasonable, and transaction data is difficult to trace are solved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.