Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
Example one
Referring to fig. 1, a schematic diagram of steps of a blockchain address registration method provided in an embodiment of the present application is shown, where the blockchain address registration method is applied in a blockchain address registration server, where the blockchain address may include a blockchain account address including a wallet address, a contract address, and the like. These blockchain addresses may include the following steps when registering:
step 11: alias information input by a user is received.
The alias information may be alias information input by the user through a keyboard or alias information selected from a preset list. The alias information can be a character string with any length formed by arranging one or more of character types such as numbers, letters, special characters and the like; for example, the alias information is: 11khkad 1. The image may be a picture, a two-dimensional code, audio, or video, and the like, which is not limited in the present application.
Step 12: receiving address information of a blockchain account when the alias information is determined not to be mapped by account information of other users and not to be registered by the user with a blockchain address.
In this step, it is first determined that the received alias information is valid, i.e., the alias information has not been mapped by account information of other users and has not been registered by the user with a blockchain address. In other words, if the received alias information is already registered by the account of another user or the alias information is already registered by the user at another blockchain address, the alias information is invalid and subsequent blockchain address registration cannot be performed.
Step 13: and customizing and editing the alias information.
Alternatively, the step 13 may be specifically executed as:
adding an identifier in the alias information, wherein the identifier is used for marking the block chain address registration server; for example, a blockchain address registrar number or ID is added to the alias information.
And/or;
encrypting the alias information and the address information; for example, the alias information and the address information are encrypted using an existing symmetric encryption algorithm or an asymmetric encryption algorithm.
Step 14: and writing the customized and edited alias information and the address information into the block based on an encryption algorithm, and broadcasting the alias information and the address information into the block chain network.
Specifically, a hash algorithm may be adopted to encrypt and write the alias information and the address information into the block, and broadcast the alias information and the address information to the blockchain network; alternatively, the hash value obtained by the encryption process in step 13, the customized and edited alias information, and the address information may be written into the block together by using a hash algorithm, and broadcast to the blockchain network.
Optionally, writing the customized and edited alias information and the address information into the block based on an encryption algorithm, which specifically includes:
writing the customized and edited alias information and the address information into a Cell space of the block based on a Hash algorithm, wherein the Cell space is used for recording the storage state of the information written into the block.
The Cell space belongs to a state mechanism, and when the Cell space is set to an occupied state after data is written, the current data is valid, and when the Cell space is set to a historical state, the data recorded in the Cell space is invalid. In other words, although the data in the Cell space is not rewritable, the memory state thereof may be changed.
Optionally, the current timestamp is written when the customized edited alias information and the address information are written to the block based on the encryption algorithm. The block-out interval is generally 10 seconds, and alias information, address information, and the like written by different blockchain registrars can be received in the same block. In the application, the time stamp is introduced while the blocks are written, so that the condition that the same alias information is written into a plurality of block chain registration servers in one block can be prevented, and the time stamp is irreversible.
Step 15: and storing the block information of the block, and binding the block information with the alias information and the address information to complete the registration of the block chain address.
Wherein the tile information may include: block height, block ID, block hash value, etc.
It should be understood that, in the present application, the block information of the block is bound with the corresponding alias information and address information, and stored in the database of the blockchain address registration server. For example, it may be: account A: alias 1-address 1-chunk ID 1-chunk Hash1 timestamp 1; alias 2-address 2-chunk ID 2-chunk Hash 2-timestamp 2.
Convenient address recording can be realized through the block chain address registration service, the data chaining is realized, the authenticity of the data recording is met, the record can be searched through the block chain browser for inquiring the block information, the transmission process of the address information is simplified, and the authenticity and the reliability of the data are ensured; authenticity, non-tampering and verifiability of alias information and address information are realized through a reference block chain technology; convenient alias information and address information mapping query is provided through an API interface.
Optionally, in this embodiment of the present specification, before receiving alias information input by a user, the method may further include an alias registration process, where the specific steps are shown in fig. 2:
step 21: and after the user logs in the blockchain address registration server, acquiring the account information of the user.
Step 22: and receiving alias information input by the user.
Step 23: judging whether the alias information is in an alias database; if yes, go to step 24; otherwise, jump to step 25.
Step 24: the user is prompted to re-enter additional alias information.
Step 25: storing the alias information in the alias database, wherein the alias information is in a many-to-one mapping relationship with the account information of the user.
Thus, the alias database can be used to determine whether an alias entered by the user has been registered at the time of alias registration.
Optionally, after the registration of the blockchain address is completed, the method further includes a process of using the registered blockchain address to perform an application, and specifically, the steps shown in fig. 3a may be specifically included:
step 31: receiving alias information input by the user;
step 32: inquiring the block information bound with the alias information;
step 33: verifying whether alias information written in a block corresponding to the block information is the same as input alias information based on the block information;
step 34: when the verification is the same, acquiring address information corresponding to the alias information from a block corresponding to the block information;
step 35: and performing block chain application operation according to the address information.
Optionally, after step 34 is executed and before step 35 is executed, the method described with reference to fig. 3b further includes:
step 36: acquiring address information corresponding to the alias information from the local;
step 37: the address information obtained from the local is verified against the address information obtained from the block.
Optionally, in an embodiment of the present specification, the method further includes a step of changing the registered blockchain address; specifically, reference may be made to fig. 4:
step 41: receiving alias information input by the user;
step 42: searching block information bound with the alias information based on the alias information;
step 43: setting the storage state of the Cell space of the block corresponding to the block information as a historical state;
step 44: receiving other alias information input by a user;
step 45: when determining that the other alias information is not mapped by account information of other users and is not registered by the user with the blockchain address, inputting address information of the blockchain account;
step 46: customizing and editing the other alias information;
step 47: writing the other customized and edited alias information and the address information into the block based on an encryption algorithm, and broadcasting the alias information and the address information into a block chain network;
and 48: and storing the block information of the block, and binding the block information with the other alias information and the address information to complete the registration of the block chain address.
Therefore, the storage state of the Cell space in the block network can be changed, the mapping of the alias and the address can be changed, and the alias and the address can be commonly identified to the whole block chain network.
The technical solution referred to in the present specification is described in detail below by specific examples.
- -alias registration
First, the user can open and log on a web page of a blockchain address registration server (hereinafter, referred to as a server, and also referred to as a server).
Second, the user enters an alias registration page.
The user then enters alias information, clicks on confirmation, and successfully registers the alias, for example: blockchain.
And then, the service provider locks the account information of the user corresponding to the alias information in the database.
Finally, the facilitator indicates to the outside that the alias is registered.
-blockchain address registration
First, the user enters an alias mapping page.
Second, an alias is selected, for example: blockchain, begin mapping.
Third, the dialog box enters wallet address information, e.g., 0x11khkad12221k3j1lk2j33, confirming the mapping.
Fourthly, the service provider receives the request of mapping confirmation and carries out customized editing on the data.
The fifth step adds a facilitator number (mykj) in front of the alias, for example: mykj _ blockchain.
And sixthly, carrying out an encryption algorithm on the edited alias information and the address information to obtain a Hash value.
And seventhly, writing the alias information, the address information and the Hash into a Cell space and broadcasting the alias information, the address information and the Hash into a channel block network.
And eighthly, the service provider database records the block height, the block ID and the block Hash and binds the block height, the block ID and the block Hash with the account information of the user.
- -transfer application
Step 1, logging in wallet software, opening an address calling tool, such as: and opening a transfer page.
And step 2, clicking a receiving address column to select the name of the service provider.
It should be understood that the problem of selecting a facilitator, mainly the uniqueness of the alias, is that in the database of the facilitator, there may be several facilitators sharing data, performing deduplication together; the problem of the same alias of a plurality of registrars is solved, so that a service provider is selected before the alias is input, and thus, a plurality of repeated problems can not occur when the alias is input.
And 3, inputting an alias blockchain into the alias column, wherein the wallet requests an API (application program interface) of a corresponding service provider in real time and carries alias information.
And 4, the service provider receives the API query request, calls the database to query alias information and queries block information bound by the alias.
And 5, verifying whether the alias information stored in the block is the same as that in the database or not, and if so, acquiring the address information stored in the block.
And 6, searching address information from the local database by the service provider, and feeding the address information back to the wallet for verification.
And 7, the wallet automatically fills address information in an address field below the alias field.
And 8, clicking to confirm the transaction, and carrying out block chain technology application by the wallet according to the address information in the address bar to realize the function of transferring accounts.
-changing blockchain address registration
First, the user enters an alias mapping page.
Second, an alias is selected and the mapping is unmapped.
The facilitator then changes the storage state of the Cell space on the blockchain to invalid.
After that, the change of the block chain address registration can be realized according to the steps from the first step to the eighth step in the block chain address registration process. At this time, the latest Cell space data in the block network has been changed and is commonly known throughout the network by inquiry.
The block chain address registration service forms a character record with a fixed format through the mapping relation between the alias and the address, uploads the final character record to a block chain network, provides an inquiry interface of alias mapping, and inquires data from a block chain by the data, thereby ensuring the authenticity of the inquired data, and the distributed block chain link points provide the convenience and reliability of inquiry and improve the efficiency of address information in the application of the block chain technology. Moreover, the block chain address alias registration service can realize that visual alias information corresponds to complex address information, can provide a self-defined naming rule aiming at the convenience of memory, and can self-define the complex address information corresponding to personalized character string information through alias registration; through a block chain technology, alias information and address information are packaged and uploaded, written into a space of a block chain for storage, and synchronized to a block chain network to realize the common identification of the whole network; registering all block information of a service provider synchronous block chain network, and providing complete block inquiry; the address information corresponding to the alias information recorded in the block is quickly and conveniently queried through a query interface provided by the registration service; the mapping of the address information can be automatically recognized by directly inputting partial characters of the alias through a query interface provided by the registration service by using the index information.
Example two
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present specification. Referring to fig. 5, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the shared resource access control device on the logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
receiving alias information input by a user;
when determining that the alias information is not mapped by account information of other users and is not registered by the user with a blockchain address, receiving address information of a blockchain account;
customizing and editing the alias information;
writing the customized and edited alias information and the address information into a block based on an encryption algorithm, and broadcasting the alias information and the address information into a block chain network;
and storing the block information of the block, and binding the block information with the alias information and the address information to complete the registration of the block chain address.
The methods disclosed above in the embodiments of fig. 1-4 of the present specification may be implemented in or by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present specification may be embodied directly in a hardware decoding processor, or in a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method of fig. 1 and implement the functions of the block chain address registration apparatus in the embodiments shown in fig. 1 to 4, which are not described herein again in this specification.
Of course, besides the software implementation, the electronic device of the embodiment of the present disclosure does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
EXAMPLE III
Embodiments of the present specification also propose a computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a portable electronic device comprising a plurality of application programs, are capable of causing the portable electronic device to perform the method of the embodiment shown in fig. 1, and in particular for performing the method of:
receiving alias information input by a user;
when determining that the alias information is not mapped by account information of other users and is not registered by the user with a blockchain address, receiving address information of a blockchain account;
customizing and editing the alias information;
writing the customized and edited alias information and the address information into a block based on an encryption algorithm, and broadcasting the alias information and the address information into a block chain network;
and storing the block information of the block, and binding the block information with the alias information and the address information to complete the registration of the block chain address.
Example four
Fig. 6 is a schematic structural diagram of an apparatus 600 for assisting a user to become a target class user according to an embodiment of the present disclosure. Referring to fig. 6, in a software implementation, an apparatus 600 for assisting a user to become a target class user may include:
a first receiving module 61, which receives alias information input by a user;
a second receiving module 62, configured to receive address information of a blockchain account when it is determined that the alias information is not mapped by account information of other users and is not registered by the user with a blockchain address;
a customized editing module 63, which performs customized editing on the alias information;
a chaining module 64 for writing the customized and edited alias information and the address information into a block based on an encryption algorithm and broadcasting the alias information and the address information into a block chain network;
the storage module 65 stores the block information of the block, and binds the block information with the alias information and the address information to complete the registration of the block chain address.
Optionally, as an embodiment, the method further includes:
the acquisition module acquires the account information of the user after the user logs in the blockchain address registration server;
the third receiving module is used for receiving alias information input by the user;
the judging module is used for judging whether the alias information is in an alias database or not;
if yes, prompting the user to input other alias information again;
otherwise, the storage module stores the alias information in the alias database, wherein the alias information and the account information of the user are in a many-to-one mapping relationship.
Optionally, as an embodiment, after the registration of the blockchain address is completed, the method further includes:
the fourth receiving module is used for receiving alias information input by the user;
the query module is used for querying the block information bound with the alias information;
the verification module verifies whether the alias information written in the block corresponding to the block information is the same as the input alias information or not based on the block information;
the acquisition module acquires the address information corresponding to the alias information from the block corresponding to the block information when the verification is the same;
and the processing module is used for carrying out block chain application operation according to the address information.
Optionally, the obtaining module is further configured to obtain, from the local, address information corresponding to the alias information;
the verification module is further configured to verify the address information obtained from the local and the address information obtained from the block.
Optionally, as an embodiment, the uplink module is specifically configured to write the customized and edited alias information and the address information into a Cell space of the block based on a hash algorithm, where the Cell space is used to record a storage state of the information written into the block.
Optionally, the fourth receiving module is further configured to receive alias information input by the user;
the searching module is used for searching the block information bound with the alias information based on the alias information;
further comprising: and the setting module is used for setting the storage state of the Cell space of the block corresponding to the block information as history.
Optionally, the customized editing module is specifically configured to:
adding an identifier in the alias information, wherein the identifier is used for marking the block chain address registration server;
and/or;
and encrypting the alias information and the address information.
Optionally, the uplink module writes the current timestamp when writing the customized and edited alias information and the address information into the block based on the encryption algorithm.
It should be understood that the block chain address registration apparatus in this embodiment of the present disclosure may also perform the method performed by the block chain address registration apparatus (or device) in fig. 1 to 4, and implement the functions of the block chain address registration apparatus (or device) in the embodiments shown in fig. 1 to 4, which are not described herein again.
In short, the above description is only a preferred embodiment of the present disclosure, and is not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present specification shall be included in the protection scope of the present specification.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.