CN109347632A - Block chain ID generation and use method, device, electronic equipment and storage medium - Google Patents

Block chain ID generation and use method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109347632A
CN109347632A CN201811237645.1A CN201811237645A CN109347632A CN 109347632 A CN109347632 A CN 109347632A CN 201811237645 A CN201811237645 A CN 201811237645A CN 109347632 A CN109347632 A CN 109347632A
Authority
CN
China
Prior art keywords
private key
block chain
public
key pair
public private
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811237645.1A
Other languages
Chinese (zh)
Other versions
CN109347632B (en
Inventor
张康宗
聂亦鹤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201811237645.1A priority Critical patent/CN109347632B/en
Publication of CN109347632A publication Critical patent/CN109347632A/en
Application granted granted Critical
Publication of CN109347632B publication Critical patent/CN109347632B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0866Generation of secret information including derivation or calculation of cryptographic keys or passwords involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/30Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention provides a block chain ID generation method, a block chain ID generation device, electronic equipment and a storage medium. In the invention, a plurality of groups of public and private key pairs are generated based on a preset layered deterministic algorithm, then a target public and private key pair is selected from the plurality of groups of public and private key pairs, and finally a block chain ID of a user is generated in a mode of coding a public key in the target public and private key pair, so that the block chain ID is used as an identifier of the user in a block chain to represent the user.

Description

A kind of block chain ID is generated and application method, device, electronic equipment and storage medium
Technical field
The present invention relates to block chain technical fields, more particularly to a kind of block chain ID generation and application method, device, electricity Sub- equipment and storage medium.
Background technique
With the development of technology, more and more users managed using digital wallet digital cash (such as bit coin and Lay spy's coin etc.).Wherein, digital wallet is the wallet based on block chain technology, and user can create multiple void based on digital wallet Quasi- wallet, and based on virtual wallet realization user to the domination function of the assets of itself, such as: it transfers accounts, pay, collect money.
Block chain technology is decentralization, wherein decentralization is a kind of structure, and each node has in this configuration There is the feature of high degree of autonomy, can freely be connected each other between node, form new connection unit.Any one node all may As interim center, but do not have enforceable center control function.Influence between node and node can pass through network And form nonlinear causal relationship.
Since block chain technology is decentralization, so that can trade between each user, but it can not be known Which user the user to trade is, therefore, needs a kind of mode that can characterize each user in block chain at present.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of block chain ID generation method, device, electronic equipment and storage Medium, using block chain ID as mark of the user in block chain to characterize user.Specific technical solution is as follows:
The embodiment of the invention provides a kind of block chain ID generation methods, which comprises
The block chain ID request to create that user issues is received, based on default layering deterministic algorithm, generates the public and private key of multiple groups It is right, wherein one group of public private key pair includes a public key and a private key;
From the multiple groups public private key pair, selection target public private key pair;
Public key in the target public private key pair is encoded, the block chain ID of the user is generated.
It is optionally, described based on default the step of being layered deterministic algorithm, generating multiple groups public private key pair, comprising:
Obtain random number;
Based on the main private key of the generating random number;
Based on the main private key and multiple generation coordinates measurement multiple groups public private key pairs, wherein different generation paths is corresponding Generate different public private key pairs.
Optionally, described from the multiple groups public private key pair, the step of selection target public private key pair, comprising:
From the multiple groups public private key pair, obtains target and generate public private key pair corresponding to path as the public and private key of target It is right.
Optionally, after the step of generating the block chain ID of the user, the method also includes:
By each public key in remaining public private key pair in the multiple groups public private key pair, in addition to the target public private key pair Wallet address as the user;
Establish and store the corresponding relationship of the block chain ID Yu the wallet address.
The embodiment of the invention also provides the application methods of block chain ID a kind of, which comprises
Receive information to be certified and block chain ID, wherein the block chain ID is asked according to the block chain ID of user creation It asks, is obtained after being encoded to the public key of the target public private key pair in the multiple groups public private key pair of generation;
Corresponding Target Public Key is obtained according to the block chain ID;
The information to be certified is authenticated using the corresponding Target Public Key of the block chain ID;
If authenticating successfully, the information to be certified is determined to use the corresponding target private key of the block chain ID to be added Information after close, using the block chain ID as the identity information of the information to be certified.
The embodiment of the invention also provides a kind of block chain ID generating means, described device includes:
First receiving module is calculated for receiving the block chain ID request to create of user's sending based on default layering certainty Method generates multiple groups public private key pair, wherein one group of public private key pair includes a public key and a private key;
Selecting module is used for the selection target public private key pair from the multiple groups public private key pair;
Generation module generates the block chain of the user for encoding to the public key in the target public private key pair ID。
Optionally, first receiving module, comprising:
Submodule is obtained, for obtaining random number;
Main private key generates submodule, for being based on the main private key of the generating random number;
Public private key pair generates submodule, for being based on the main private key and multiple generation coordinates measurement multiple groups public private key pairs, Wherein, the different paths that generates corresponds to the different public private key pair of generation.
Optionally, the selecting module, is specifically used for:
From the multiple groups public private key pair, obtains target and generate public private key pair corresponding to path as the public and private key of target It is right.
Optionally, described device further include:
Wallet address determination module, it is for after the step of generating the block chain ID of the user, the multiple groups are public Private key pair, the wallet of each public key in remaining public private key pair in addition to the target public private key pair as the user Location;
Module is established, for establishing and storing the corresponding relationship of the block chain ID and the wallet address.
The embodiment of the invention also provides the use device of block chain ID a kind of, described device includes:
Second receiving module, for receiving information to be certified and block chain ID, wherein the block chain ID is according to user Block chain ID request to create, obtained after being encoded to the public key of the target public private key pair in the multiple groups public private key pair of generation 's;
Module is obtained, for obtaining corresponding Target Public Key according to the block chain ID;
Authentication module, for being authenticated using the corresponding Target Public Key of the block chain ID to the information to be certified; If authenticating successfully, the information to be certified is determined to use the corresponding target private key of the block chain ID to carry out encrypted letter Breath.
The embodiment of the invention also provides a kind of electronic equipment, including processor and memory, wherein
Memory, for storing computer program;
Processor when for executing the computer program stored on memory, realizes any of the above-described block chain ID's generates or uses method.
The embodiment of the invention also provides a kind of computer readable storage medium, the computer readable storage medium memory Contain computer program, the computer program realized when being executed by processor any of the above-described block chain ID generation or Application method.
In the embodiment of the present invention, the block chain ID request to create that user issues is received, is layered deterministic algorithm based on default, Generating multiple groups public private key pair, wherein one group of public private key pair includes a public key and a private key, from multiple groups public private key pair, choosing Target public private key pair is selected, the public key in target public private key pair is encoded, generates the block chain ID of user.It is first in the present invention Multiple groups public private key pair, then from multiple groups public private key pair, the public and private key of selection target are first generated based on default layering deterministic algorithm It is right, finally by the mode encoded to the public key in target public private key pair, the block chain ID of user is generated, as a result, will Block chain ID is as mark of the user in block chain to characterize user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the first flow diagram of block chain ID generation method provided in an embodiment of the present invention;
Fig. 2 is provided in an embodiment of the present invention based on default layering deterministic algorithm, generates the process of multiple groups public private key pair Schematic diagram;
Fig. 3 is second of flow diagram of block chain ID generation method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of block chain ID application method provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of block chain ID generating means provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of block chain ID use device provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
A kind of block chain ID generation method is provided for the embodiments of the invention first below to be introduced.
A kind of block chain ID generation method provided in an embodiment of the present invention can be applied to any one electricity in block chain Sub- equipment, such as server, computer, mobile terminal.
As shown in Figure 1, a kind of block chain ID generation method provided in an embodiment of the present invention, this method may include:
S101: receiving the block chain ID request to create that user issues, and based on default layering deterministic algorithm, it is public to generate multiple groups Private key pair, wherein one group of public private key pair includes a public key and a private key.
When user wants to obtain the block chain ID of itself, block chain ID request to create can be issued, wherein user issues area The mode of block chain ID request to create can be with are as follows: the block chain ID clicked in virtual wallet creates button.
After the block chain ID request to create for receiving user's sending, know that user wants creation block chain ID, at this point, can To generate multiple groups public private key pair based on default layering deterministic algorithm, wherein one group of public private key pair includes a public key and one Private key.
Referring to fig. 2, above-mentioned based on default layering deterministic algorithm, multiple groups public private key pair is generated, may include:
S1011: random number is obtained.
In default layering deterministic algorithm, need to generate main private key, that is, root private key using a random number, this Generating any one private key with any one bit coin wallet does not have any difference.
Random number can be generated using default Generating Random Number in the embodiment of the present invention, and obtain the random number.
S1012: it is based on the main private key of generating random number.
After obtaining random number, the main private key of the generating random number can be based on, wherein be based on the main private key of the generating random number Mode can be with are as follows: according to BIP32 agreement, be based on the main private key of the generating random number, wherein BIP is bit coin improved protocol Bitcoin Improvement Proposals。
S1013: main private key and multiple generation coordinates measurement multiple groups public private key pairs are based on, wherein different generation paths pair Different public private key pairs should be generated.
It, can be according to multiple and different generation coordinates measurement multiple groups public private key pairs, wherein Mei Gesheng after generating main private key Different public private key pairs is generated at path is corresponding, different generation paths can be determined based on currency type, for example, can be set as Each currency type corresponds to a generation path.
Such as: the public and private key of bit coin corresponding bit coin generates path, and ether mill corresponds to the public and private key in ether mill and generates path.
Illustratively, the method for determination for generating path can be with are as follows: according to BIP44 agreement, sets one for each currency type Unduplicated path, this unduplicated path are exactly the generation path of the public and private key of the currency type.
As a result, based on default layering deterministic algorithm, multiple groups public private key pair is generated.
S102: from multiple groups public private key pair, selection target public private key pair.
Since the block chain ID to be generated is unique identification of the user in block chain, the block of each user Therefore chain ID only one in order to generate the block chain ID of user, after generating multiple groups public private key pair, needs public and private from multiple groups Key centering, selection target public private key pair, that is, from multiple groups public private key pair, select one group of public private key pair.
In a kind of implementation, it can obtain target from multiple groups public private key pair and generate public private key pair corresponding to path As target public private key pair.
Wherein, target generates path and can be using randomly selected a certain generation path.Using random fashion from multiple groups In public private key pair, the benefit of selection target public private key pair is selected target public private key pair without regularity, it is more difficult to it is cracked, It ensure that the safety of target public private key pair.
Alternatively, target, which generates path, is also possible to some path according to default rule, selected.
Alternatively, in another implementation, can also directly from multiple groups public private key pair selection target public private key pair, than Such as, a certain public private key pair can be randomly selected, or according to default rule, select a certain public private key pair.
S103: encoding the public key in target public private key pair, generates the block chain ID of user.
In order to generate block chain ID, after having selected target public private key pair, can to the public key in target public private key pair into Row coding, generates the block chain ID of user, and the private key in the public and private key of target is also corresponding with the block chain ID of generation, that is, It says, can be verified mutually between the two using the private key in the public and private key of target as the private key of block chain ID.Wherein, to mesh The coding mode that public key in mark public private key pair is encoded can be any one coding mode, herein and without limitation.
In the embodiment of the present invention, the block chain ID request to create that user issues is received, is layered deterministic algorithm based on default, Generating multiple groups public private key pair, wherein one group of public private key pair includes a public key and a private key, from multiple groups public private key pair, choosing Target public private key pair is selected, the public key in target public private key pair is encoded, generates the block chain ID of user.It is first in the present invention Multiple groups public private key pair, then from multiple groups public private key pair, the public and private key of selection target are first generated based on default layering deterministic algorithm It is right, finally by the mode encoded to the public key in target public private key pair, the block chain ID of user is generated, as a result, will Block chain ID is as mark of the user in block chain to characterize user.
On the basis of method shown in Fig. 1, after step s 103, referring to Fig. 3, a kind of area provided in an embodiment of the present invention Block chain ID generation method can also include:
S106: by multiple groups public private key pair, each public key in the remaining public private key pair in addition to target public private key pair is made For the wallet address of user.
Since a user may possess multiple virtual wallets, each virtual wallet is corresponding with wallet address, each user It is to be traded based on respective wallet address, therefore, in order to make user be corresponding with corresponding money after creating virtual wallet Packet address, can be by each public key conduct in multiple groups public private key pair, in the remaining public private key pair in addition to target public private key pair The wallet address of user.
It is of course also possible to using the public key in target public private key pair, that is, block chain ID public key as the wallet address of user.
S107: establishing and the corresponding relationship of memory block chain ID and wallet address.
Since each wallet address generated is that same user is possessed, for convenience manage virtual wallet, also for Convenience is transferred accounts, and is alsoed for that other users is made to know which user each virtual wallet belongs to, is needed to establish block chain ID Storage is needed to be established after establishing the corresponding relationship of block chain ID and wallet address with the corresponding relationship of wallet address Corresponding relationship.
Assuming that the block chain ID of user M is A, the public and private key of residue in multiple groups public private key pair, in addition to target public private key pair Each public key of centering is respectively as follows: B, C and D, then incites somebody to action: the wallet address of B, C and D as user M;
The block chain ID of the user M established and the corresponding relationship of wallet address can be as shown in the table:
As a result, by by each public affairs in remaining public private key pair in multiple groups public private key pair, in addition to target public private key pair The mode of simultaneously memory block chain ID and the corresponding relationship of wallet address are established, by the area of user in wallet address of the key as user Block chain ID is associated with wallet address, it is determined that each wallet address attribution is conducive to other users in which user Know which user each virtual wallet belongs to.
It is appreciated that user can trade in block chain with other users, can also in block chain with it is other The transmitting of user's progress information.
In general, recipient is after receiving information, can not awareness information be which user generates, also can not just judge with Which user its user for carrying out information exchange is, and the block chain ID generation method that provides according to embodiments of the present invention it is found that Block chain ID is corresponding with target public private key pair, and each public private key pair has its corresponding generation path, that is to say, that area Block chain ID can indicate the generation side of information.
In other words, if recipient can know the block chain ID of received information, it can also know and be connect The information received is based on this from which user, the embodiment of the invention also provides the application method of block chain ID a kind of, Authentication can be carried out to the generation side of information.
It referring to fig. 4, is a kind of flow diagram of the application method of block chain ID provided in an embodiment of the present invention, this method Include:
S401: information to be certified and block chain ID are received.
Wherein, information to be certified is block chain ID corresponding target private key of the generation side using generation side, to sent The information that information obtains after being encrypted makes for example, the abstract of information to be sent is calculated using hash function for generation side Abstract with the corresponding private key of block chain ID to sent information is encrypted to obtain the side's of generation signature, by letter to be sent Breath, generation side's signature are used as information to be certified, and send information to be certified and block chain ID.
Block chain ID is the block chain ID request to create according to a certain user, to the target in the multiple groups public private key pair of generation What the public key of public private key pair obtained after being encoded.
It is appreciated that if information to be certified is that the corresponding user of block chain ID generates, information to be certified is also It is the information of the corresponding target private key encryption of block chain ID, if information to be certified is not block chain ID, corresponding user is generated , then, information to be certified is not the information of the corresponding target private key encryption of block chain ID.
S402: corresponding Target Public Key is obtained according to block chain ID.
After getting block chain ID, corresponding Target Public Key can be obtained according to block chain ID.
For example, the corresponding relationship between each block chain ID and Target Public Key can be obtained in advance, in this way, obtaining To after block chain ID, block can be searched in the corresponding relationship between acquired each block chain ID and Target Public Key Chain ID obtains corresponding Target Public Key.
Alternatively, can also obtain in advance generate block chain ID when coding mode, in this way, get block chain ID it Afterwards, corresponding decoding process can be determined according to the coding mode obtained in advance, block chain ID is decoded, block is obtained Chain ID obtains corresponding Target Public Key.
S403: authentication information is treated using the corresponding Target Public Key of block chain ID and is authenticated.
After getting corresponding Target Public Key, Target Public Key can be used treats authentication information and authenticated, for example, It can use Target Public Key generation side's signature is decrypted, obtain certification abstract, generation side is calculated using hash function The abstract of information to be sent determines if the abstract of generation side's information to be sent is consistent with the certification abstract that decryption obtains Target Public Key can be authenticated successfully with successful decryption information to be certified.
S404: if authenticating successfully, information to be certified is determined to use the corresponding target private key of block chain ID to be encrypted Information afterwards, using block chain ID as the identity information of the information to be certified.
If Target Public Key can successfully be decrypted the information to be certified received, information to be certified is also It is the information of the corresponding target private key encryption of block chain ID, in other words, the generation side of information to be certified is ID pairs of the block chain The user answered.If decryption failure, it was demonstrated that information to be certified is not the information after the corresponding target private key encryption of block chain ID, That is, information to be certified is not from the corresponding user of block chain ID.
Achieve the purpose that authentication information is treated based on block chain ID carries out authentication as a result,.
As seen from the above, the present invention implements the application method of the block chain ID provided, and the area of itself is used by generation side The corresponding private key encryption of block chain ID, and encrypted information to be certified is sent to recipient, and make recipient using being received The block chain ID arrived determines the corresponding Target Public Key of block chain ID received, treats authentication information using Target Public Key and carries out The mode of decryption, the generation side for treating authentication information carry out authentication, determine whether the generation side of information to be certified is reception The corresponding user of block chain ID arrived.
Meanwhile in the related technology, if it is desired to which the identity for determining the generation side of information to be certified needs to treat authentication information It is decrypted, the information after decryption is parsed, therefrom extract the identity information of the generation side of information to be certified, and it is of the invention In embodiment, by the above-mentioned means, by the decryption for treating authentication information can treat the identity of the generation side of authentication information into Row certification, simplifies authentication procedures.
It generates and fills the embodiment of the invention also provides a kind of block chain ID referring to Fig. 5 relative to above method embodiment It sets, the apparatus may include:
First receiving module 501, for receiving the block chain ID request to create of user's sending, based on default layering certainty Algorithm generates multiple groups public private key pair, wherein one group of public private key pair includes a public key and a private key;
Selecting module 502 is used for the selection target public private key pair from the multiple groups public private key pair;
Generation module 503 generates the block of the user for encoding to the public key in the target public private key pair Chain ID.
In the embodiment of the present invention, the block chain ID request to create that user issues is received, is layered deterministic algorithm based on default, Generating multiple groups public private key pair, wherein one group of public private key pair includes a public key and a private key, from multiple groups public private key pair, choosing Target public private key pair is selected, the public key in target public private key pair is encoded, generates the block chain ID of user.It is first in the present invention Multiple groups public private key pair, then from multiple groups public private key pair, the public and private key of selection target are first generated based on default layering deterministic algorithm It is right, finally by the mode encoded to the public key in target public private key pair, the block chain ID of user is generated, as a result, will Block chain ID is as mark of the user in block chain to characterize user.
In a kind of implementation of the invention, first receiving module 501 may include:
Submodule is obtained, for obtaining random number;
Main private key generates submodule, for being based on the main private key of the generating random number;
Public private key pair generates submodule, for being based on the main private key and multiple generation coordinates measurement multiple groups public private key pairs, Wherein, the different paths that generates corresponds to the different public private key pair of generation.
In a kind of implementation of the invention, the selecting module 502 can be specifically used for:
Using random fashion, from the multiple groups public private key pair, obtains target and generate the work of public private key pair corresponding to path For target public private key pair.
In a kind of implementation of the invention, described device can also include:
Wallet address determination module, it is for after the step of generating the block chain ID of the user, the multiple groups are public Private key pair, the wallet of each public key in remaining public private key pair in addition to the target public private key pair as the user Location;
Module is established, for establishing and storing the corresponding relationship of the block chain ID and the wallet address.
As shown in fig. 6, the embodiment of the invention also provides the use device of block chain ID a kind of, described device includes:
Second receiving module 601, for receiving information to be certified and block chain ID, wherein the block chain ID is basis The block chain ID request to create of user, after being encoded to the public key of the target public private key pair in the multiple groups public private key pair of generation It arrives;
Module 602 is obtained, corresponding Target Public Key is obtained according to the block chain ID;
Authentication module 603, for being recognized using the corresponding Target Public Key of the block chain ID the information to be certified Card;If authenticating successfully, after determining the information to be certified to use the corresponding target private key of the block chain ID to be encrypted Information, using block chain ID as the identity information of the information to be certified.
The embodiment of the invention also provides a kind of electronic equipment, as shown in fig. 7, comprises processor 701 and memory 702,
Memory 702, for storing computer program;
Processor 701 when for executing the computer program stored on memory 702, realizes the generation side block chain ID Method, this method may include steps of:
The block chain ID request to create that user issues is received, based on default layering deterministic algorithm, generates the public and private key of multiple groups It is right, wherein one group of public private key pair includes a public key and a private key;
From the multiple groups public private key pair, selection target public private key pair;
Public key in the target public private key pair is encoded, the block chain ID of the user is generated.
Alternatively, realizing the application method of block chain ID, this method be may include steps of:
Receive information to be certified and block chain ID, wherein the block chain ID is asked according to the block chain ID of user creation It asks, is obtained after being encoded to the public key of the target public private key pair in the multiple groups public private key pair of generation;
Corresponding Target Public Key is obtained according to the block chain ID;
The information to be certified is authenticated using the corresponding Target Public Key of the block chain ID;
If authenticating successfully, the information to be certified is determined to use the corresponding target private key of the block chain ID to be added Information after close, using the block chain ID as the identity information of the information to be certified.
In the embodiment of the present invention, electronic equipment receives the block chain ID request to create that user issues, true based on default layering Deterministic algorithm generates multiple groups public private key pair, wherein one group of public private key pair includes a public key and a private key, public and private from multiple groups Key centering, selection target public private key pair encode the public key in target public private key pair, generate the block chain ID of user.This In invention, it is primarily based on default layering deterministic algorithm and generates multiple groups public private key pair, then from multiple groups public private key pair, select mesh It marks public private key pair and generates the block chain ID of user finally by the mode encoded to the public key in target public private key pair, As a result, using block chain ID as mark of the user in block chain to characterize user.
It is described based on default layering deterministic algorithm in a kind of implementation of the invention, generate multiple groups public private key pair The step of, may include:
Obtain random number;
Based on the main private key of the generating random number;
Based on the main private key and multiple generation coordinates measurement multiple groups public private key pairs, wherein different generation paths is corresponding Generate different public private key pairs.
It is described from the multiple groups public private key pair in a kind of implementation of the invention, selection target public private key pair Step may include:
From the multiple groups public private key pair, obtains target and generate public private key pair corresponding to path as the public and private key of target It is right.
In a kind of implementation of the invention, after the step of generating the block chain ID of the user, the method Can also include:
By each public key in remaining public private key pair in the multiple groups public private key pair, in addition to the target public private key pair Wallet address as the user;
Establish and store the corresponding relationship of the block chain ID Yu the wallet address.
The memory that above-mentioned electronic equipment is mentioned may include random access memory (Random Access Memory, It RAM), also may include nonvolatile memory (Non-Volatile Memory, NVM), for example, at least a disk storage Device.Optionally, memory can also be that at least one is located remotely from the storage device of aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
The embodiment of the present invention also provides a kind of computer readable storage medium, storage in the computer readable storage medium There is computer program, realizes that block chain ID generation method, this method may include when the computer program is executed by processor Following steps:
The block chain ID request to create that user issues is received, based on default layering deterministic algorithm, generates the public and private key of multiple groups It is right, wherein one group of public private key pair includes a public key and a private key;
From the multiple groups public private key pair, selection target public private key pair;
Public key in the target public private key pair is encoded, the block chain ID of the user is generated;
Alternatively, realizing the application method of block chain ID, this method be may include steps of:
Receive information to be certified and block chain ID, wherein the block chain ID is asked according to the block chain ID of user creation It asks, is obtained after being encoded to the public key of the target public private key pair in the multiple groups public private key pair of generation;
Corresponding Target Public Key is obtained according to the block chain ID;
The information to be certified is authenticated using the corresponding Target Public Key of the block chain ID;
If authenticating successfully, the information to be certified is determined to use the corresponding target private key of the block chain ID to be added Information after close, using the block chain ID as the identity information of the information to be certified.
The block chain ID creation that user issues is received in the embodiment of the present invention, when computer program is executed by processor to ask It asks, based on default layering deterministic algorithm, generates multiple groups public private key pair, wherein one group of public private key pair includes a public key and one A private key, from multiple groups public private key pair, selection target public private key pair encodes the public key in target public private key pair, generates The block chain ID of user.In the present invention, it is primarily based on default layering deterministic algorithm and generates multiple groups public private key pair, then from multiple groups In public private key pair, selection target public private key pair is generated finally by the mode encoded to the public key in target public private key pair The block chain ID of user, as a result, using block chain ID as mark of the user in block chain to characterize user.
It is described based on default layering deterministic algorithm in a kind of implementation of the invention, generate multiple groups public private key pair The step of, may include:
Obtain random number;
Based on the main private key of the generating random number;
Based on the main private key and multiple generation coordinates measurement multiple groups public private key pairs, wherein different generation paths is corresponding Generate different public private key pairs.
It is described from the multiple groups public private key pair in a kind of implementation of the invention, selection target public private key pair Step may include:
From the multiple groups public private key pair, obtains target and generate public private key pair corresponding to path as the public and private key of target It is right.
In a kind of implementation of the invention, after the step of generating the block chain ID of the user, the method Can also include:
By each public key in remaining public private key pair in the multiple groups public private key pair, in addition to the target public private key pair Wallet address as the user;
Establish and store the corresponding relationship of the block chain ID Yu the wallet address.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, electronic equipment embodiment, storage medium embodiment, since it is substantially similar to the method embodiment, so description Fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of block chain ID generation method, which is characterized in that the described method includes:
The block chain ID request to create that user issues is received, based on default layering deterministic algorithm, generates multiple groups public private key pair, In, one group of public private key pair includes a public key and a private key;
From the multiple groups public private key pair, selection target public private key pair;
Public key in the target public private key pair is encoded, the block chain ID of the user is generated.
2. the method according to claim 1, wherein described based on default layering deterministic algorithm, generation multiple groups The step of public private key pair, comprising:
Obtain random number;
Based on the main private key of the generating random number;
Based on the main private key and multiple generation coordinates measurement multiple groups public private key pairs, wherein different generation paths is corresponding to be generated Different public private key pairs.
3. selection target is public the method according to claim 1, wherein described from the multiple groups public private key pair The step of private key pair, comprising:
From the multiple groups public private key pair, obtains target and generate public private key pair corresponding to path as target public private key pair.
4. the method according to claim 1, wherein after the step of generating the block chain ID of the user, The method also includes:
By each public key conduct in the multiple groups public private key pair, in the remaining public private key pair in addition to the target public private key pair The wallet address of the user;
Establish and store the corresponding relationship of the block chain ID Yu the wallet address.
5. a kind of application method of block chain ID, which is characterized in that the described method includes:
Receive information to be certified and block chain ID, wherein the block chain ID is the block chain ID request to create according to user, right What the public key of the target public private key pair in the multiple groups public private key pair of generation obtained after being encoded;
Corresponding Target Public Key is obtained according to the block chain ID;
The information to be certified is authenticated using the corresponding Target Public Key of the block chain ID;
If authenticating successfully, after determining the information to be certified to use the corresponding target private key of the block chain ID to be encrypted Information, using the block chain ID as the identity information of the information to be certified.
6. a kind of block chain ID generating means, which is characterized in that described device includes:
First receiving module, it is raw based on default layering deterministic algorithm for receiving the block chain ID request to create of user's sending At multiple groups public private key pair, wherein one group of public private key pair includes a public key and a private key;
Selecting module is used for the selection target public private key pair from the multiple groups public private key pair;
Generation module generates the block chain ID of the user for encoding to the public key in the target public private key pair.
7. device according to claim 6, which is characterized in that first receiving module, comprising:
Submodule is obtained, for obtaining random number;
Main private key generates submodule, for being based on the main private key of the generating random number;
Public private key pair generates submodule, for being based on the main private key and multiple generation coordinates measurement multiple groups public private key pairs, wherein Different generates the different public private key pair of the corresponding generation in path.
8. a kind of use device of block chain ID, which is characterized in that described device includes:
Second receiving module, for receiving information to be certified and block chain ID, wherein the block chain ID is the area according to user Block chain ID request to create, obtains after encoding to the public key of the target public private key pair in the multiple groups public private key pair of generation;
Module is obtained, for obtaining corresponding Target Public Key according to the block chain ID;
Authentication module, for being authenticated using the corresponding Target Public Key of the block chain ID to the information to be certified;If recognizing It demonstrate,proves successfully, then determines the information to be certified to use the corresponding target private key of the block chain ID to carry out encrypted information.
9. a kind of electronic equipment, which is characterized in that including processor and memory, wherein
Memory, for storing computer program;
Processor when for executing the computer program stored on memory, realizes that claim 1-4 or claim 5 appoint Method and step described in one.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 1-4 or claim 5 any method step when the computer program is executed by processor Suddenly.
CN201811237645.1A 2018-10-23 2018-10-23 Block chain ID generation and use method, device, electronic equipment and storage medium Expired - Fee Related CN109347632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811237645.1A CN109347632B (en) 2018-10-23 2018-10-23 Block chain ID generation and use method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811237645.1A CN109347632B (en) 2018-10-23 2018-10-23 Block chain ID generation and use method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109347632A true CN109347632A (en) 2019-02-15
CN109347632B CN109347632B (en) 2022-02-25

Family

ID=65311215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811237645.1A Expired - Fee Related CN109347632B (en) 2018-10-23 2018-10-23 Block chain ID generation and use method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109347632B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743185A (en) * 2019-03-19 2019-05-10 全链通有限公司 Group communication method, block chain node and medium based on domain name block chain
CN110705985A (en) * 2019-10-21 2020-01-17 北京海益同展信息科技有限公司 Method and apparatus for storing information
CN111556124A (en) * 2020-04-14 2020-08-18 深圳市启迪网络科技有限公司 Safe block chain wallet service system
US10791122B2 (en) 2019-07-04 2020-09-29 Alibaba Group Holding Limited Blockchain user account data
WO2021000578A1 (en) * 2019-07-04 2021-01-07 创新先进技术有限公司 Method, device and apparatus for creating user in chained-block account book
CN112887160A (en) * 2021-04-29 2021-06-01 杭州链城数字科技有限公司 Block chain all-in-one machine, multi-node deployment method and device thereof, and storage medium
US11387978B2 (en) * 2019-09-23 2022-07-12 Live Nation Entertainment, Inc. Systems and methods for securing access rights to resources using cryptography and the blockchain

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104821880A (en) * 2015-05-05 2015-08-05 九江学院 Certificate-free generalized proxy signcryption method
US20160098730A1 (en) * 2014-10-01 2016-04-07 The Filing Cabinet, LLC System and Method for Block-Chain Verification of Goods
CN105959307A (en) * 2016-06-30 2016-09-21 中国科学院计算技术研究所 Existence certification and authentication service method and system based on block chain technology
WO2016179334A1 (en) * 2015-05-05 2016-11-10 ShoCard, Inc. Identity management service using a block chain
CN106790253A (en) * 2017-01-25 2017-05-31 中钞信用卡产业发展有限公司北京智能卡技术研究院 Authentication method and device based on block chain
CN106788985A (en) * 2016-11-25 2017-05-31 中国电子科技集团公司第三十研究所 The stealthy address implementation method that a kind of third party can supervise
CN107222312A (en) * 2017-06-20 2017-09-29 无锡井通网络科技有限公司 Assets digitizing solution based on block chain technology
CN107276754A (en) * 2017-07-10 2017-10-20 北京云知科技有限公司 A kind of method and device that private key is largely generated based on block chain
CN107341676A (en) * 2017-07-17 2017-11-10 深圳天净喔溯源科技有限公司 False proof mark and the method for tracing to the source
WO2018183307A1 (en) * 2017-03-31 2018-10-04 Madisetti Vijay Method and system for identity and access management for blockchain interoperability

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160098730A1 (en) * 2014-10-01 2016-04-07 The Filing Cabinet, LLC System and Method for Block-Chain Verification of Goods
CN104821880A (en) * 2015-05-05 2015-08-05 九江学院 Certificate-free generalized proxy signcryption method
WO2016179334A1 (en) * 2015-05-05 2016-11-10 ShoCard, Inc. Identity management service using a block chain
CN105959307A (en) * 2016-06-30 2016-09-21 中国科学院计算技术研究所 Existence certification and authentication service method and system based on block chain technology
CN106788985A (en) * 2016-11-25 2017-05-31 中国电子科技集团公司第三十研究所 The stealthy address implementation method that a kind of third party can supervise
CN106790253A (en) * 2017-01-25 2017-05-31 中钞信用卡产业发展有限公司北京智能卡技术研究院 Authentication method and device based on block chain
WO2018183307A1 (en) * 2017-03-31 2018-10-04 Madisetti Vijay Method and system for identity and access management for blockchain interoperability
CN107222312A (en) * 2017-06-20 2017-09-29 无锡井通网络科技有限公司 Assets digitizing solution based on block chain technology
CN107276754A (en) * 2017-07-10 2017-10-20 北京云知科技有限公司 A kind of method and device that private key is largely generated based on block chain
CN107341676A (en) * 2017-07-17 2017-11-10 深圳天净喔溯源科技有限公司 False proof mark and the method for tracing to the source

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YIFEI HU,YAN XIONG: "KeyChain:Blockchain-based Key Distribution", 《2018 4TH INTERNATIONAL CONFERENCE ON BIG DATA COMPUTING AND COMMUNICATIONS》 *
张衍斌: "区块链引领电子商务新变革", 《当代经济管理》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743185A (en) * 2019-03-19 2019-05-10 全链通有限公司 Group communication method, block chain node and medium based on domain name block chain
CN109743185B (en) * 2019-03-19 2020-12-01 全链通有限公司 Group communication method based on domain name block chain, block chain link point and medium
US10791122B2 (en) 2019-07-04 2020-09-29 Alibaba Group Holding Limited Blockchain user account data
WO2021000578A1 (en) * 2019-07-04 2021-01-07 创新先进技术有限公司 Method, device and apparatus for creating user in chained-block account book
US11387978B2 (en) * 2019-09-23 2022-07-12 Live Nation Entertainment, Inc. Systems and methods for securing access rights to resources using cryptography and the blockchain
CN110705985A (en) * 2019-10-21 2020-01-17 北京海益同展信息科技有限公司 Method and apparatus for storing information
CN111556124A (en) * 2020-04-14 2020-08-18 深圳市启迪网络科技有限公司 Safe block chain wallet service system
CN112887160A (en) * 2021-04-29 2021-06-01 杭州链城数字科技有限公司 Block chain all-in-one machine, multi-node deployment method and device thereof, and storage medium
CN112887160B (en) * 2021-04-29 2021-07-30 杭州链城数字科技有限公司 Block chain all-in-one machine, multi-node deployment method and device thereof, and storage medium

Also Published As

Publication number Publication date
CN109347632B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN109347632A (en) Block chain ID generation and use method, device, electronic equipment and storage medium
CN100438461C (en) Method and apparatus for authenticating and veritying user and computer over network
RU2710897C2 (en) Methods for safe generation of cryptograms
CN104270338B (en) Method and its system that a kind of electronic identity registration and certification are logged in
US7308574B2 (en) Method and system for key certification
TWI497336B (en) Data security devices and computer program
CN109064151A (en) Transfer method, device, electronic equipment and storage medium
US20100051686A1 (en) System and method for authenticating a transaction using a one-time pass code (OTPK)
US20210111883A1 (en) Quantum tokens
CN105827620B (en) A kind of data transmission system and its method
CN105099673A (en) Authorization method, authorization requesting method and devices
CN110599342B (en) Block chain-based identity information authorization method and device
CN102239714B (en) The safety communicating method of mobile financial business and device thereof based on application layer
CN106713327A (en) Authentication method and system of verification code security reinforcement
CN106464498A (en) Method for the authentication of a first electronic entity by a second electronic entity, and electronic entity implementing such a method
CN111656732A (en) Device for storing a digital key for signing transactions on a blockchain
CN109961276A (en) Digital cash wallet, method of commerce, transaction system and computer storage medium
CN113141340B (en) Multi-node authentication method and device
MX2012011105A (en) Certificate authority.
CN106027250A (en) Identity card information safety transmission method and system
JP2003150553A (en) Authentication method using plurality of accounts and device and processing program
CN108696508A (en) System and method based on CN39 code authentication resident identification card numbers
CN107248997B (en) Authentication method based on intelligent card under multi-server environment
CN100459495C (en) Password dynamic enciphering inputmethod of public emipering mode
CN103139210A (en) Method of safety authentication

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220225

CF01 Termination of patent right due to non-payment of annual fee