Disclosure of Invention
The invention aims to provide a method and a system for verifying the accuracy of a digital asset address, which aim to solve the problems that in the existing digital asset transfer process, due to the characteristics that the asset address is complex and difficult to remember and is easy to make an error, and due to the characteristics that the asset address cannot be verified and the transfer process cannot be cancelled, once the asset is transferred to an incorrect receiver due to error copying and pasting, the asset cannot be retrieved and the asset is easy to lose.
In a first aspect, an embodiment of the present invention provides a method for checking accuracy of a digital asset address, where the method includes: acquiring a receiving address input by a user; the receiving address is a digital asset address for receiving digital assets;
acquiring the original balance of the receiving address according to the receiving address; the original balance is the real balance of the receiving address;
acquiring the pre-judgment balance of the receiving address input by the user; the pre-judgment balance is the balance of the receiving address predicted by the sender;
judging whether the receiving address is input correctly or not according to the matching relation between the original balance and the pre-judged balance;
and if the original balance is matched with the pre-judged balance, the received address is correctly input.
With reference to the first aspect, in a first possible implementation manner, the method further includes:
if the original balance and the predetermined balance are not matched, the received address input is incorrect.
With reference to the first aspect, in a second possible implementation manner, the acquiring a receiving address input by a user specifically includes:
and acquiring a receiving address input by a user through a receiving address bar of the client.
With reference to the first aspect, in a third possible implementation manner, if the original balance and the predetermined balance are matched, the receiving an address input is correct, specifically including:
if the original balance is matched with the pre-judged balance, acquiring the original transaction times; the original transaction times are the real transaction times of the receiving address;
acquiring the times of pre-judgment transactions of the receiving address input by a user;
judging whether the receiving address is input correctly or not according to the matching relation between the original transaction times and the pre-judged transaction times;
and if the original transaction times are matched with the pre-judged transaction times, the input of the receiving address is correct.
With reference to the first aspect, in a fourth possible implementation manner, if the original balance and the predetermined balance are matched, the receiving an address input is correct, specifically including:
if the original balance is matched with the pre-judged balance, acquiring the original first transaction time; the original transaction times are the real first transaction time of the receiving address;
acquiring the pre-judged first transaction time of the receiving address input by the user;
judging whether the receiving address is input correctly or not according to the matching relation between the original first transaction time and the pre-judged first transaction time;
and if the original first transaction time is matched with the pre-judged first transaction time, the received address is correctly input.
With reference to the first aspect, in a fifth possible implementation manner, the method further includes:
transferring money to the receiving address.
In a second aspect of the embodiments of the present disclosure, a system for checking accuracy of a digital asset address is provided, where the system includes a receiving address obtaining module, configured to obtain a receiving address input by a user; the receiving address is a digital asset address for receiving digital assets;
an original balance obtaining module, configured to obtain an original balance of the receiving address according to the receiving address; the original balance is the real balance of the receiving address;
the pre-judgment balance acquisition module is used for acquiring the pre-judgment balance of the receiving address input by the user; the pre-judgment balance is the balance of the receiving address predicted by the sender;
a matching relation judging module, configured to judge whether the receiving address is correctly input according to a matching relation between the original balance and the pre-judged balance;
and if the original balance is matched with the pre-judged balance, the received address is correctly input.
With reference to the second aspect, in a sixth possible implementation manner, the matching relationship determining module is further configured to, if the original balance and the predetermined balance are not matched, input the receiving address incorrectly.
With reference to the second aspect, in a seventh possible implementation manner, the receiving address obtaining module is configured to obtain a receiving address input by a user, and specifically includes: and acquiring a receiving address input by a user through a receiving address bar of the client.
With reference to the second aspect, in an eighth possible implementation manner, the matching relationship determining module is configured to, if the original balance and the pre-determined balance are matched, determine that the received address input is correct, and specifically include:
if the original balance is matched with the pre-judged balance, acquiring the original transaction times; the original transaction times are the real transaction times of the receiving address;
acquiring the times of pre-judgment transactions of the receiving address input by a user;
judging whether the receiving address is input correctly or not according to the matching relation between the original transaction times and the pre-judged transaction times;
and if the original transaction times are matched with the pre-judged transaction times, the input of the receiving address is correct.
With reference to the second aspect, in a ninth possible implementation manner, the matching relationship determining module is configured to, if the original balance and the pre-determined balance are matched, determine that the received address input is correct, and specifically include:
if the original balance is matched with the pre-judged balance, acquiring the original first transaction time; the original transaction times are the real first transaction time of the receiving address;
acquiring the pre-judged first transaction time of the receiving address input by the user;
judging whether the receiving address is input correctly or not according to the matching relation between the original first transaction time and the pre-judged first transaction time;
and if the original first transaction time is matched with the pre-judged first transaction time, the received address is correctly input.
With reference to the second aspect, in a tenth possible implementation manner, the system further includes: and the transfer module is used for transferring the account to the receiving address.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: acquiring the original balance of the receiving address according to the receiving address; the original balance is the real balance of the receiving address; acquiring a pre-judgment balance of a receiving address input by a user; pre-judging the balance to be the balance of the receiving address predicted by the sender; judging whether the received address is input correctly or not according to the matching relation between the original balance and the pre-judged balance; if the original balance and the pre-determined balance match, the received address input is correct. Compared with the prior art, the method and the device have the advantages that the transparent characteristic of the block chain is utilized, the balance of the receiving address known by the user is matched and compared with the real balance of the receiving address in the transfer process, so that the receiving address is verified, the condition that the assets are transferred to wrong receivers due to copying and pasting errors is avoided, and asset loss is avoided.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flow chart of a method for checking the accuracy of a digital asset address according to the present invention is shown, and the method includes the following steps:
step 101, acquiring a receiving address input by a user; the receiving address is a digital asset address for receiving digital assets; the method for acquiring the receiving address input by the user specifically comprises the following steps: and acquiring a receiving address input by a user through a receiving address bar of the client.
For example, the transfer page of the client shown in FIG. 2 is a schematic diagram, the illustrated transfer page including a receive address bar. The user inputs a receiving address in a receiving address bar of the client: 14zV5ZCqYmgyCzoVEhRVsP7SpUDVsCBz5 g. The address may be an address obtained by the user from another area by copy and paste.
102, acquiring the original balance of the receiving address according to the receiving address; the original balance is the real balance of the receiving address; after the user pastes the receiving address in the receiving address bar, the client sending device detects that the receiving address bar has the address data input. And the client sending equipment rapidly retrieves the original balance of the receiving address, namely the real balance, from the data on the block chain which is disclosed by the corresponding digital asset through a block chain read-write program of the back-end server. After retrieving the real balance of the receiving address, the real balance may be stored in a cache of the client sending device for subsequent verification.
103, acquiring a pre-judgment balance of the receiving address input by the user; the pre-judgment balance is the balance of the receiving address predicted by the sender; for example, after the user inputs the receiving address in the receiving address bar, the user clicks the check button shown in fig. 2, and the client pops up a balance check dialog box on the transfer page, as shown in the schematic diagram of the balance check dialog box shown in fig. 3. The user may enter a predetermined balance in the balance check dialog. The pre-determined balance is a balance which is pre-known by the sender, can be a balance which is pre-informed by the receiver, and can also be a balance which is searched by the sender through a block chain.
104, judging whether the receiving address is input correctly according to the matching relation between the original balance and the pre-judged balance;
and 105, if the original balance is matched with the pre-judged balance, the received address is correctly input.
As shown in the schematic diagram of the balance check dialog box shown in fig. 3, after the user inputs the pre-determined balance of 3.75 in the balance check dialog box, the user can click a determination button in the balance check dialog box, that is, send a matching instruction to the system, so as to determine the matching relationship between the original balance and the pre-determined balance. And judging whether the receiving address input by the user is correct or not, namely whether the receiving address is the address which the user wants to transfer or not according to the matching relation between the original balance and the pre-judged balance.
Specifically, if the original balance and the predetermined balance are matched, it may be determined that the receiving address is correctly input, that is, the input receiving address is the address where the user wants to transfer money. If the original balance and the pre-judged balance do not match, it may be determined that the recipient address is input incorrectly, i.e., the input recipient address is not the address where the user wants to transfer money.
Further, if it is determined that the input of the reception address is correct, a check result prompt dialog box as shown in fig. 4 may pop up in the transfer page, a prompt of "check passed, sending …" may be displayed in the check result prompt dialog box, and the transfer may be made to the reception address. And if the received address is determined to be wrong, displaying a prompt for verification failure in a verification result prompt dialog box, and simultaneously not transferring to the received address, thereby preventing the transfer to the wrong received address and avoiding the loss of assets.
As an optional embodiment, if the original balance and the predetermined balance match, the receiving the address input is correct, specifically including: if the original balance is matched with the pre-judged balance, acquiring the original transaction times; the original transaction times are the real transaction times of the receiving address;
acquiring the times of pre-judgment transactions of the receiving address input by a user;
judging whether the receiving address is input correctly or not according to the matching relation between the original transaction times and the pre-judged transaction times;
and if the original transaction times are matched with the pre-judged transaction times, the input of the receiving address is correct.
In the practical application process of the embodiment of the application, there may be a case where the received address is wrong, but the original balance and the pre-determined balance are matched. As an optional embodiment, after the original balance and the pre-determined balance are determined to be matched, whether the received address input is correct or not may be determined by continuing the determination of the matching relationship between the original transaction frequency and the pre-determined transaction frequency, so as to perform secondary received address verification.
After the original balance and the pre-determined balance are matched, as shown in a schematic diagram of a transaction frequency determination dialog box shown in fig. 5, the transaction frequency determination dialog box is popped out from the transfer page, and meanwhile, the client sending device quickly retrieves the original transaction frequency of the receiving address from the data on the block chain disclosed by the corresponding digital asset through a block chain read-write program of the back-end server. The user may then enter the pre-determined transaction times in a transaction times determination dialog. If the original transaction times are matched with the pre-judged transaction times, the received address input is correct. If the number of the original transactions is not matched with the number of the pre-judged transactions, the error of the receiving address input by the user is indicated.
Here, the user can judge whether the received address is input correctly not only by the matching relationship between the original transaction times and the pre-judged transaction times, but also by the matching relationship between the original first transaction time and the pre-judged first transaction time. For example, the third verification of the receiving address can be performed by judging the matching relationship between the original first transaction time and the pre-judged first transaction time. As shown in the schematic diagram of the first transaction time determination dialog box shown in fig. 6, the user inputs the predicted first transaction time in the first transaction time determination dialog box, acquires the original first transaction time of the receiving address from the blockchain, and if the two times are matched, it indicates that the receiving address is correctly input.
The user can also judge whether the receiving address is input correctly or not according to the matching relation between the original last transaction time and the pre-judged last transaction time. For example, the four-time verification of the receiving address can be carried out by judging the matching relationship between the original last transaction time and the pre-judged last transaction time, so that the condition that the receiving address is wrong and the balance, the transaction times and the first transaction time are the same is avoided, the accuracy of receiving address input is ensured to the maximum extent, and the asset loss is also avoided to the maximum extent. As shown in the schematic diagram of the last transaction time determination dialog box shown in fig. 7, the user inputs the predicted last transaction time in the last transaction time determination dialog box, obtains the original last transaction time of the receiving address from the blockchain, and if the two are matched, it indicates that the receiving address is correctly input.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: acquiring the original balance of the receiving address according to the receiving address; the original balance is the real balance of the receiving address; acquiring a pre-judgment balance of a receiving address input by a user; pre-judging the balance to be the balance of the receiving address predicted by the sender; judging whether the received address is input correctly or not according to the matching relation between the original balance and the pre-judged balance; if the original balance and the pre-determined balance match, the received address input is correct. Compared with the prior art, the method and the device have the advantages that the transparent characteristic of the block chain is utilized, the balance of the receiving address known by the user is matched and compared with the real balance of the receiving address in the transfer process, so that the receiving address is verified, the condition that the assets are transferred to wrong receivers due to copying and pasting errors is avoided, and asset loss is avoided.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
In addition, as an implementation of the foregoing embodiments, an embodiment of the present disclosure further provides a digital asset address accuracy verification system, where the system is located in a terminal, and as shown in fig. 8, the structural framework schematic diagram of the digital asset address accuracy verification system includes:
a receiving address obtaining module 10, configured to obtain a receiving address input by a user; the receiving address is a digital asset address for receiving digital assets;
an original balance obtaining module 20, configured to obtain an original balance of the receiving address according to the receiving address; the original balance is the real balance of the receiving address;
a pre-judgment balance obtaining module 30, configured to obtain a pre-judgment balance of the receiving address input by the user; the pre-judgment balance is the balance of the receiving address predicted by the sender;
a matching relation judging module 40, configured to judge whether the receiving address is correctly input according to a matching relation between the original balance and the pre-judged balance;
and if the original balance is matched with the pre-judged balance, the received address is correctly input.
Further, the matching relationship determining module 40 is further configured to, if the original balance and the predetermined balance are not matched, input the receiving address incorrectly.
Further, the receiving address obtaining module 10 is configured to obtain a receiving address input by a user, and specifically includes: and acquiring a receiving address input by a user through a receiving address bar of the client.
Further, the matching relationship determining module 40 is configured to, if the original balance matches the pre-determined balance, determine that the received address input is correct, and specifically include:
if the original balance is matched with the pre-judged balance, acquiring the original transaction times; the original transaction times are the real transaction times of the receiving address;
acquiring the times of pre-judgment transactions of the receiving address input by a user;
judging whether the receiving address is input correctly or not according to the matching relation between the original transaction times and the pre-judged transaction times;
and if the original transaction times are matched with the pre-judged transaction times, the input of the receiving address is correct.
Further, the matching relationship determining module 40 is configured to, if the original balance matches the pre-determined balance, determine that the received address input is correct, and specifically include:
if the original balance is matched with the pre-judged balance, acquiring the original first transaction time; the original transaction times are the real first transaction time of the receiving address;
acquiring the pre-judged first transaction time of the receiving address input by the user;
judging whether the receiving address is input correctly or not according to the matching relation between the original first transaction time and the pre-judged first transaction time;
and if the original first transaction time is matched with the pre-judged first transaction time, the received address is correctly input.
Further, the system further comprises: a transfer module 50 for transferring money to the receiving address.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.