Method and system for preventing foreign currency transaction data from being tampered by applying block chain technology

Through blockchain technology and the cooperation between digital watches and servers, the convenience, security and reliability of payment in Chinese and foreign currency transactions in digital currency wallets have been solved, and the secure storage of transaction data and efficient monitoring of payment environments have been achieved.

CN119539803APending Publication Date: 2025-02-28BEIJING UNITED MONEY EXCHANGE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411503550.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The prior art is difficult to achieve convenient, secure and reliable foreign currency transaction payments on digital currency wallets, and there is a risk that transaction data will be tampered with.

Method used

Through blockchain technology, digital watches and server cooperation is used to verify payment requests, generate transaction blocks and confirm consensus to ensure the security of transaction data. The specific steps include: the digital watch receives payment requests, obtains personnel information in the surrounding environment, determines the activation of the second password based on personnel information, generates transaction blocks and broadcasts them to the accounting node, and stores them on the blockchain after obtaining consensus, and completes the deduction and transfer of digital currency.

Benefits of technology

It realizes safe and convenient foreign currency transaction payment on digital currency wallets, prevents transaction data from being tampered with, and enhances the security of the payment environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119539803A_ABST
    Figure CN119539803A_ABST
Patent Text Reader

Abstract

The invention relates to the field of block chains, in particular to a method and system for preventing foreign currency transaction data from being tampered by applying a block chain technology. The invention provides a method for preventing foreign currency transaction data from being tampered by applying a block chain technology, and the method comprises the steps: enabling a digital watch to receive a payment request which is transmitted by a collection end and comprises a to-be-paid account and a to-be-paid amount, enabling the payment request to be transmitted to a server, carrying out the confirmation of the safety of a surrounding environment, and selectively calling a second password module; the server receives the payment request, verifies the legality of the payment request, encrypts a transaction record including a collection account, the to-be-paid account, the to-be-paid amount and transaction time information to generate a transaction block if the payment request is verified to be legal, and broadcasts the transaction block to all accounting nodes, and if the transaction block obtains the consensus of all bookkeeping nodes, enabling each bookkeeping node to store the transaction block on a block chain under the to-be-paid account.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain, and in particular to a method and system for preventing foreign currency transaction data from being tampered with by using blockchain technology. Background Art

[0002] Currently, the digital currency exchange for foreign currency cash business has attracted much attention. Traditional currency exchange relies on financial institutions, with cumbersome processes, low efficiency, opaque exchange rates and high costs. Although digital currency has developed rapidly, it has limited channels for exchange with foreign currency cash, and there are security risks and regulatory difficulties. With the development of technology, the application of technologies such as blockchain and artificial intelligence has become a trend.

[0003] At the same time, with the rapid development of digital currencies corresponding to blockchain technology, using digital currencies corresponding to blockchain technology for payment on digital currency wallets may become one of the payment methods in the future.

[0004] Therefore, it is necessary to design a payment method that uses digital currency corresponding to blockchain technology on a digital currency wallet for payment, and this payment method is more convenient, safe and reliable. Summary of the invention

[0005] The present application provides a method and system for preventing foreign currency transaction data from being tampered with by applying blockchain technology, which can prevent transaction data from being tampered with while ensuring the security of the payment environment.

[0006] The embodiment of the present application provides a method for applying blockchain technology to prevent foreign currency transaction data from being tampered with, including:

[0007] S1, the digital watch receives a payment request including the account to be paid and the amount to be paid sent by the payment receiving end, sends the payment request to the service end, confirms the security of the surrounding environment, and selectively calls the second password module;

[0008] S2. The server receives the payment request and verifies the legitimacy of the payment request. If the verification is legitimate, the transaction record including the payment account, the account to be paid, the amount to be paid and the transaction time information is encrypted to generate a transaction block, and the transaction block is broadcast to all accounting nodes. If the transaction block obtains the consensus of all accounting nodes, step S3 is executed, and each accounting node stores the transaction block on the blockchain under the account to be paid;

[0009] S3. The server deducts the amount of digital currency equal to the amount to be paid from the account to be paid, transfers the deducted amount of digital currency to the payment account corresponding to the payment terminal, and generates and sends a payment success message;

[0010] S4. The digital watch receives and displays the payment success information.

[0011] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in an embodiment of the present application, it is characterized in that the security of the surrounding environment is confirmed and the second password module is selectively called, including, when the digital watch receives a payment request including an account to be paid and an amount to be paid sent by a payment terminal, obtaining personnel information of the surrounding environment, and determining to enable a second password different from the payment password based on the number of repetitions of the personnel information;

[0012] In the next step, the transaction records of the personnel information, the payment account, the account to be paid, the amount to be paid and the transaction time information are encrypted to generate a transaction block.

[0013] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in an embodiment of the present application, when the digital watch receives a payment request including an account to be paid and an amount to be paid sent by a payment terminal, the personnel information of the surrounding environment is obtained, and based on the number of repetitions of the personnel information, a second password input module different from the payment password is determined to be enabled, including:

[0014] The personnel image information is obtained through the Internet of Things system or the camera device, and the personnel image information is recorded as a serial number 1-n, the previous personnel information in the blockchain accounting node is retrieved, the serial number is updated, and the serial number is compared with the predetermined serial number to determine whether the number of repetitions of the personnel information is greater than the predetermined value. If it is greater than the predetermined value, it is determined that the person is a trusted person, and the second password input module is not called. A new serial number is generated, the serial number is hashed, and after processing, it is incorporated into the accounting node for storage.

[0015] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in the embodiment of the present application, step S2 specifically includes the following steps:

[0016] S21, the digital watch generates a password selection interface including numbers 0-9, obtains N repeatable numbers selected by the user on the password selection interface, and determines whether the N numbers selected by the user are the same as the N numbers of the user payment password corresponding to the account to be paid. If so, execute step S22;

[0017] S22. The server receives the payment request and sends a payment password request to all accounting nodes according to the account to be paid and the N-digit number selected by the user, so as to obtain the user payment password returned by all accounting nodes after voting;

[0018] S23, the digital watch generates a password grid, fills the selected N-digit numbers in the first N squares on the password grid in order of size, receives an operation instruction from the user to press a number in the square to move it toward an empty square in the password grid to adjust the position of each number until receiving a password confirmation request from the user, wherein the password grid includes at least N+1 adjacent squares;

[0019] S24, the digital watch receives the password confirmation request of the user, arranges the numbers in the first N squares in the real-time password grid in order to obtain a password digital sequence, and sends a password verification request including the password digital sequence to the server;

[0020] S25. The server receives the password verification request and determines whether the password digital sequence is consistent with the user payment password. If so, the legitimacy verification of the payment request is passed, and the transaction record including the receiving account, the account to be paid, the amount to be paid and the transaction time information is encrypted to generate a transaction block;

[0021] S26. The server broadcasts the transaction block to all accounting nodes. If the transaction block obtains the consensus of all accounting nodes, step S3 is executed, and each accounting node stores the transaction block on the blockchain under the account to be paid.

[0022] S3. The server deducts the amount of digital currency equal to the amount to be paid from the account to be paid, transfers the deducted amount of digital currency to the payment account corresponding to the payment terminal, and generates and sends a payment success message;

[0023] S4. The digital watch receives and displays the payment success information.

[0024] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in an embodiment of the present application, the step S22 specifically includes the steps of: the server receives the payment request, and sends a payment password request to all accounting nodes according to the account to be paid, so as to obtain the user payment password and the user password movement behavior model returned by all accounting nodes after voting;

[0025] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in the embodiment of the present application, step S23 specifically includes the following steps:

[0026] The digital watch generates a password grid, fills the selected N-digit numbers in the first N squares on the password grid in order of size, receives an operation instruction from a user to press a number in the square to move it toward an empty square in the password grid to adjust the position of each number until receiving a password confirmation request from the user, wherein the password grid includes at least N+1 adjacent squares;

[0027] The digital watch records in real time the movement time of the user after entering the password grid and the user operation behavior of the user moving the numbers in the grid, wherein the user operation behavior includes the order in which the user moves the numbers;

[0028] The step S24 specifically includes the following steps:

[0029] The digital watch receives the password confirmation request from the user or after the movement duration exceeds the preset movement threshold, arranges the numbers in the first N squares in the real-time password grid in order to obtain a password digital sequence, and sends the password verification request including the password digital sequence and the user operation behavior to the server;

[0030] The step S25 specifically includes the following steps:

[0031] The server receives the password verification request and determines whether the password digital sequence is consistent with the user's payment password. If so, the user's operation behavior is placed in the user password movement behavior model to determine whether the user's movement sequence of numbers conforms to the movement pattern of numbers in the account to be paid. If so, the legitimacy of the payment request is verified, and the transaction record including the receiving account, the account to be paid, the amount to be paid and the transaction time information is encrypted to generate a transaction block.

[0032] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in an embodiment of the present application, in the step S21, if the N-digit number selected by the user is different from the N-digit number of the user payment password corresponding to the account to be paid, a payment password digital error message is generated and displayed at the blank space of the password selection interface, and the new N-digit repeatable number selected by the user on the password selection interface is received again, and it is continued to be determined whether the new N-digit number selected by the user is the same as the N-digit number of the user payment password corresponding to the account to be paid, until the N-digit number selected by the user is the same as the N-digit number of the user payment password corresponding to the account to be paid or the number of times the payment password digital error message is generated exceeds the preset number of digital errors. If the number of times the payment password digital error message is generated exceeds the preset number of digital errors, the number selected by the user on the password selection interface is no longer received within the preset digital input interval;

[0033] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in an embodiment of the present application, in step S25, if the password digital sequence is inconsistent with the user payment password, the server generates and returns a payment password sequence error instruction, and re-receives a new password verification request, and continues to determine whether the new password digital sequence is consistent with the user payment password, until the new password digital sequence is consistent with the user payment password or the number of times the payment password sequence error instruction is generated exceeds the preset number of digital sequence times. If the number of times the payment password sequence error instruction is generated exceeds the preset number of digital sequence times, a password lock instruction is sent to control the digital watch to prohibit the user from moving the numbers in the square on the password grid within the preset digital movement interval.

[0034] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in an embodiment of the present application, the step S2 specifically includes the steps of: the digital watch generates a password selection interface including numbers 0-9, obtains the payment password to be verified selected by the user on the password selection interface, determines whether the payment password to be verified is the same as the user payment password corresponding to the account to be paid, and if they are the same, sends the payment password to be verified to the server;

[0035] The server receives the payment request and the payment password to be verified, and sends a payment password request to all accounting nodes according to the account to be paid and the payment password to be verified selected by the user, so as to obtain the user payment password and the user preset operation rule returned by all accounting nodes after voting;

[0036] The server processes the payment password to be verified according to the user's preset operation rules to obtain the final verification payment password, and determines whether the final verification payment password is consistent with the user's payment password. If so, the legitimacy verification of the payment request is passed, and the transaction record including the payment account, the account to be paid, the amount to be paid and the transaction time information is encrypted to generate a transaction block, and the transaction block is broadcast to all accounting nodes. If the transaction block obtains the consensus of all accounting nodes, step S3 is executed, and each accounting node stores the transaction block on the blockchain under the account to be paid. The user-preset operation rules include uniform left shift of all numbers, uniform right shift of all numbers, and the unit digit of the result obtained after addition, subtraction, multiplication or division of each digit within ten.

[0037] The present application also provides a system for preventing foreign currency transaction data from being tampered with by using blockchain technology, including: a digital watch and a server, wherein the digital watch includes a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor, and the server includes a second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor, and the first processor implements any of the above steps when executing the first computer program.

[0038] The present application provides a method for preventing foreign currency transaction data from being tampered with by applying blockchain technology. After receiving the payment request from the payment terminal, the digital watch verifies the legitimacy of the payment request through the service terminal, and stores the transaction block formed by the transaction record on the blockchain under the account to be paid after consensus confirmation, and then completes the deduction and transfer of digital currency, thereby realizing the payment using the digital currency corresponding to the blockchain technology on the digital currency wallet. Since the transaction record is stored on the blockchain, the transaction record is prevented from being tampered with, thereby ensuring the security of the transaction data. At the same time, due to the security environment monitoring mode, the confidentiality effect during payment is more perfect.

[0039] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 This is a flow chart of a method for applying blockchain technology to prevent foreign currency transaction data from being tampered with, as provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0044] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0045] It should be understood that, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same items or similar items with substantially the same functions and effects. For example, the first groove and the second groove are only used to distinguish different grooves, and their order is not limited. Those skilled in the art can understand that the words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not necessarily limit them to be different.

[0046] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0047] With the rapid development of digital currencies corresponding to blockchain technology, using digital currencies corresponding to blockchain technology for payment on digital currency wallets may become one of the payment methods in the future.

[0048] Therefore, it is necessary to design a payment method that uses digital currency corresponding to blockchain technology on a digital currency wallet for payment, and this payment method is more convenient, safe and reliable.

[0049] refer to Figure 1 , the embodiment of the present application provides a method for applying blockchain technology to prevent foreign currency transaction data from being tampered with, including:

[0050] S1, the digital watch receives a payment request including the account to be paid and the amount to be paid sent by the payment receiving end, sends the payment request to the service end, confirms the security of the surrounding environment, and selectively calls the second password module;

[0051] S2. The server receives the payment request and verifies the legitimacy of the payment request. If the verification is legitimate, the transaction record including the payment account, the account to be paid, the amount to be paid and the transaction time information is encrypted to generate a transaction block, and the transaction block is broadcast to all accounting nodes. If the transaction block obtains the consensus of all accounting nodes, step S3 is executed, and each accounting node stores the transaction block on the blockchain under the account to be paid;

[0052] S3. The server deducts the amount of digital currency equal to the amount to be paid from the account to be paid, transfers the deducted amount of digital currency to the payment account corresponding to the payment terminal, and generates and sends a payment success message;

[0053] S4. The digital watch receives and displays the payment success information.

[0054] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in an embodiment of the present application, it is characterized in that the security of the surrounding environment is confirmed and the second password module is selectively called, including, when the digital watch receives a payment request including an account to be paid and an amount to be paid sent by a payment terminal, obtaining personnel information of the surrounding environment, and determining to enable a second password different from the payment password based on the number of repetitions of the personnel information;

[0055] In the next step, the transaction records of the personnel information, the payment account, the account to be paid, the amount to be paid and the transaction time information are encrypted to generate a transaction block.

[0056] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in an embodiment of the present application, when the digital watch receives a payment request including an account to be paid and an amount to be paid sent by a payment terminal, the personnel information of the surrounding environment is obtained, and based on the number of repetitions of the personnel information, a second password input module different from the payment password is determined to be enabled, including:

[0057] The personnel image information is obtained through the Internet of Things system or the camera device, and the personnel image information is recorded as a serial number 1-n, the previous personnel information in the blockchain accounting node is retrieved, the serial number is updated, and the serial number is compared with the predetermined serial number to determine whether the number of repetitions of the personnel information is greater than the predetermined value. If it is greater than the predetermined value, it is determined that the person is a trusted person, and the second password input module is not called. A new serial number is generated, the serial number is hashed, and after processing, it is incorporated into the accounting node for storage.

[0058] First, establish a corresponding relationship H between the key K of the element and the storage location 0 of the element, so that D = Hk), and H becomes the hash function. When creating a hash table, the element with the key k is directly stored in the unit with the address H(k). When searching for the element with the key k in the future, the storage location of the element is calculated using the hash number, and then the element is accessed by the key. The key values ​​stored in the hash are unique.

[0059] Hash collision: When the keyword set is very large, elements with different keyword values ​​may be mapped to the same address in the hash table, i.e., k1i=k2, H(k1)==Hk2). This phenomenon is called a collision. In this case, k1 and K2 are synonyms. In fact, collisions are inevitable. Since the set of keywords that may conflict is much larger than the actual length of the hash table, the inevitability of collisions can be reduced by improving the performance of the hash, i.e., reducing the possibility of collisions.

[0060] The method to resolve conflicts, open addressing method is also called re-hashing method: when the initial hash address of the keyword key, such as p0 = H (key), conflicts (that is, the address has a key value), based on p0, another address p1 is generated. If p1 still conflicts, another hash address p2 is generated based on p0... until a non-conflicting address pi is found, and the key value is stored in it. That is, hi = (h0 + di)% mm is the table length, and m is the incremental sequence

[0061] (1) Linear Probing Rehashing

[0062] di=1,2,3,4,...,m-1

[0063] (2) Secondary Detection and Rehashing

[0064] di=12,-1'2,2^2,-2"2,...,k"2,-k'2 (k<=m / 2).

[0065] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in the embodiment of the present application, step S2 specifically includes the following steps:

[0066] S21, the digital watch generates a password selection interface including numbers 0-9, obtains N repeatable numbers selected by the user on the password selection interface, and determines whether the N numbers selected by the user are the same as the N numbers of the user payment password corresponding to the account to be paid. If so, execute step S22;

[0067] S22. The server receives the payment request and sends a payment password request to all accounting nodes according to the account to be paid and the N-digit number selected by the user, so as to obtain the user payment password returned by all accounting nodes after voting;

[0068] S23, the digital watch generates a password grid, fills the selected N-digit numbers in the first N squares on the password grid in order of size, receives an operation instruction from the user to press a number in the square to move it toward an empty square in the password grid to adjust the position of each number until receiving a password confirmation request from the user, wherein the password grid includes at least N+1 adjacent squares;

[0069] S24, the digital watch receives the password confirmation request of the user, arranges the numbers in the first N squares in the real-time password grid in order to obtain a password digital sequence, and sends a password verification request including the password digital sequence to the server;

[0070] S25. The server receives the password verification request and determines whether the password digital sequence is consistent with the user payment password. If so, the legitimacy verification of the payment request is passed, and the transaction record including the receiving account, the account to be paid, the amount to be paid and the transaction time information is encrypted to generate a transaction block;

[0071] S26. The server broadcasts the transaction block to all accounting nodes. If the transaction block obtains the consensus of all accounting nodes, step S3 is executed, and each accounting node stores the transaction block on the blockchain under the account to be paid.

[0072] S3. The server deducts the amount of digital currency equal to the amount to be paid from the account to be paid, transfers the deducted amount of digital currency to the payment account corresponding to the payment terminal, and generates and sends a payment success message;

[0073] S4. The digital watch receives and displays the payment success information.

[0074] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in an embodiment of the present application, the step S22 specifically includes the steps of: the server receives the payment request, and sends a payment password request to all accounting nodes according to the account to be paid, so as to obtain the user payment password and the user password movement behavior model returned by all accounting nodes after voting;

[0075] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in the embodiment of the present application, step S23 specifically includes the following steps:

[0076] The digital watch generates a password grid, fills the selected N-digit numbers in the first N squares on the password grid in order of size, receives an operation instruction from a user to press a number in the square to move it toward an empty square in the password grid to adjust the position of each number until receiving a password confirmation request from the user, wherein the password grid includes at least N+1 adjacent squares;

[0077] The digital watch records in real time the movement time of the user after entering the password grid and the user operation behavior of the user moving the numbers in the grid, wherein the user operation behavior includes the order in which the user moves the numbers;

[0078] The step S24 specifically includes the following steps:

[0079] The digital watch receives the password confirmation request from the user or after the movement duration exceeds the preset movement threshold, arranges the numbers in the first N squares in the real-time password grid in order to obtain a password digital sequence, and sends the password verification request including the password digital sequence and the user operation behavior to the server;

[0080] The step S25 specifically includes the following steps:

[0081] The server receives the password verification request and determines whether the password digital sequence is consistent with the user's payment password. If so, the user's operation behavior is placed in the user password movement behavior model to determine whether the user's movement sequence of numbers conforms to the movement pattern of numbers in the account to be paid. If so, the legitimacy of the payment request is verified, and the transaction record including the receiving account, the account to be paid, the amount to be paid and the transaction time information is encrypted to generate a transaction block.

[0082] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in an embodiment of the present application, in the step S21, if the N-digit number selected by the user is different from the N-digit number of the user payment password corresponding to the account to be paid, a payment password digital error message is generated and displayed at the blank space of the password selection interface, and the new N-digit repeatable number selected by the user on the password selection interface is received again, and it is continued to be determined whether the new N-digit number selected by the user is the same as the N-digit number of the user payment password corresponding to the account to be paid, until the N-digit number selected by the user is the same as the N-digit number of the user payment password corresponding to the account to be paid or the number of times the payment password digital error message is generated exceeds the preset number of digital errors. If the number of times the payment password digital error message is generated exceeds the preset number of digital errors, the number selected by the user on the password selection interface is no longer received within the preset digital input interval;

[0083] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in an embodiment of the present application, in step S25, if the password digital sequence is inconsistent with the user payment password, the server generates and returns a payment password sequence error instruction, and re-receives a new password verification request, and continues to determine whether the new password digital sequence is consistent with the user payment password, until the new password digital sequence is consistent with the user payment password or the number of times the payment password sequence error instruction is generated exceeds the preset number of digital sequence times. If the number of times the payment password sequence error instruction is generated exceeds the preset number of digital sequence times, a password lock instruction is sent to control the digital watch to prohibit the user from moving the numbers in the square on the password grid within the preset digital movement interval.

[0084] In the method for preventing foreign currency transaction data from being tampered with by applying blockchain technology provided in an embodiment of the present application, the step S2 specifically includes the steps of: the digital watch generates a password selection interface including numbers 0-9, obtains the payment password to be verified selected by the user on the password selection interface, determines whether the payment password to be verified is the same as the user payment password corresponding to the account to be paid, and if they are the same, sends the payment password to be verified to the server;

[0085] The server receives the payment request and the payment password to be verified, and sends a payment password request to all accounting nodes according to the account to be paid and the payment password to be verified selected by the user, so as to obtain the user payment password and the user preset operation rule returned by all accounting nodes after voting;

[0086] The server processes the payment password to be verified according to the user's preset operation rules to obtain the final verification payment password, and determines whether the final verification payment password is consistent with the user's payment password. If so, the legitimacy verification of the payment request is passed, and the transaction record including the payment account, the account to be paid, the amount to be paid and the transaction time information is encrypted to generate a transaction block, and the transaction block is broadcast to all accounting nodes. If the transaction block obtains the consensus of all accounting nodes, step S3 is executed, and each accounting node stores the transaction block on the blockchain under the account to be paid. The user-preset operation rules include uniform left shift of all numbers, uniform right shift of all numbers, and the unit digit of the result obtained after addition, subtraction, multiplication or division of each digit within ten.

[0087] The present application also provides a system for preventing foreign currency transaction data from being tampered with by using blockchain technology, including: a digital watch and a server, wherein the digital watch includes a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor, and the server includes a second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor, wherein the first processor implements any of the above steps when executing the first computer program.

[0088] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for preventing foreign currency transaction data from being tampered with by using blockchain technology, characterized in that: include: S1, the digital watch receives a payment request including the account to be paid and the amount to be paid sent by the payment receiving end, sends the payment request to the service end, confirms the security of the surrounding environment, and selectively calls the second password module; S2. The server receives the payment request and verifies the legitimacy of the payment request. If the verification is legitimate, the transaction record including the payment account, the account to be paid, the amount to be paid and the transaction time information is encrypted to generate a transaction block, and the transaction block is broadcast to all accounting nodes. If the transaction block obtains the consensus of all accounting nodes, step S3 is executed, and each accounting node stores the transaction block on the blockchain under the account to be paid; S3. The server deducts the amount of digital currency equal to the amount to be paid from the account to be paid, transfers the deducted amount of digital currency to the payment account corresponding to the payment terminal, and generates and sends a payment success message; S4. The digital watch receives and displays the payment success information.

2. The method for preventing foreign currency transaction data from being tampered with by using blockchain technology according to claim 1 is characterized in that: The confirming of the security of the surrounding environment and selectively calling the second password module includes, when the digital watch receives a payment request including an account to be paid and an amount to be paid sent by the payment terminal, obtaining the information of people in the surrounding environment, and determining to enable a second password different from the payment password based on the number of repetitions of the people information; In the next step, the transaction records of the personnel information, the payment account, the account to be paid, the amount to be paid and the transaction time information are encrypted to generate a transaction block.

3. The method for preventing foreign currency transaction data from being tampered with by applying blockchain technology according to claim 2 is characterized in that: When the digital watch receives a payment request including an account to be paid and an amount to be paid sent by a payment terminal, obtaining information about people in the surrounding environment, and determining to enable a second password input module different from the payment password based on the number of repetitions of the personal information, includes: The personnel image information is obtained through the Internet of Things system or the camera device, and the personnel image information is recorded as a serial number 1-n, the previous personnel information in the blockchain accounting node is retrieved, the serial number is updated, and the serial number is compared with the predetermined serial number to determine whether the number of repetitions of the personnel information is greater than the predetermined value. If it is greater than the predetermined value, it is determined that the person is a trusted person, and the second password input module is not called. A new serial number is generated, the serial number is hashed, and after processing, it is incorporated into the accounting node for storage.

4. The method for preventing foreign currency transaction data from being tampered with by using blockchain technology according to claim 1, characterized in that: The step S2 specifically includes the following steps: S21, the digital watch generates a password selection interface including numbers 0-9, obtains N repeatable numbers selected by the user on the password selection interface, and determines whether the N numbers selected by the user are the same as the N numbers of the user payment password corresponding to the account to be paid. If so, execute step S22; S22. The server receives the payment request and sends a payment password request to all accounting nodes according to the account to be paid and the N-digit number selected by the user, so as to obtain the user payment password returned by all accounting nodes after voting; S23, the digital watch generates a password grid, fills the selected N-digit numbers in the first N squares on the password grid in order of size, receives an operation instruction from the user to press a number in the square to move it toward an empty square in the password grid to adjust the position of each number until receiving a password confirmation request from the user, wherein the password grid includes at least N+1 adjacent squares; S24, the digital watch receives the password confirmation request of the user, arranges the numbers in the first N squares in the real-time password grid in order to obtain a password digital sequence, and sends a password verification request including the password digital sequence to the server; S25. The server receives the password verification request and determines whether the password digital sequence is consistent with the user payment password. If so, the legitimacy verification of the payment request is passed, and the transaction record including the receiving account, the account to be paid, the amount to be paid and the transaction time information is encrypted to generate a transaction block; S26. The server broadcasts the transaction block to all accounting nodes. If the transaction block obtains the consensus of all accounting nodes, step S3 is executed, and each accounting node stores the transaction block on the blockchain under the account to be paid. S3. The server deducts the amount of digital currency equal to the amount to be paid from the account to be paid, transfers the deducted amount of digital currency to the payment account corresponding to the payment terminal, and generates and sends a payment success message; S4. The digital watch receives and displays the payment success information.

5. The method for preventing foreign currency transaction data from being tampered with by using blockchain technology according to claim 4 is characterized in that: The step S22 specifically includes the steps of: the server receives the payment request, and sends a payment password request to all accounting nodes according to the account to be paid, so as to obtain the user payment password and user password movement behavior model returned by all accounting nodes after voting.

6. The method for preventing foreign currency transaction data from being tampered with by using blockchain technology according to claim 5 is characterized in that: The step S23 specifically includes the following steps: The digital watch generates a password grid, fills the selected N-digit numbers in the first N squares on the password grid in order of size, receives an operation instruction from a user to press a number in the square to move it toward an empty square in the password grid to adjust the position of each number until receiving a password confirmation request from the user, wherein the password grid includes at least N+1 adjacent squares; The digital watch records in real time the movement time of the user after entering the password grid and the user operation behavior of the user moving the numbers in the grid, wherein the user operation behavior includes the order in which the user moves the numbers; The step S24 specifically includes the following steps: The digital watch receives the password confirmation request from the user or after the movement duration exceeds the preset movement threshold, arranges the numbers in the first N squares in the real-time password grid in order to obtain a password digital sequence, and sends the password verification request including the password digital sequence and the user operation behavior to the server; The step S25 specifically includes the following steps: The server receives the password verification request and determines whether the password digital sequence is consistent with the user's payment password. If so, the user's operation behavior is placed in the user password movement behavior model to determine whether the user's movement sequence of numbers conforms to the movement pattern of numbers in the account to be paid. If so, the legitimacy of the payment request is verified, and the transaction record including the receiving account, the account to be paid, the amount to be paid and the transaction time information is encrypted to generate a transaction block.

7. The method for preventing foreign currency transaction data from being tampered with by using blockchain technology according to claim 6 is characterized in that: In the step S21, if the N-digit number selected by the user is different from the N-digit number of the user payment password corresponding to the account to be paid, a payment password digital error message is generated and displayed in the blank space of the password selection interface, and the new N-digit repeatable number selected by the user on the password selection interface is received again, and it is continued to be determined whether the new N-digit number selected by the user is the same as the N-digit number of the user payment password corresponding to the account to be paid, until the N-digit number selected by the user is the same as the N-digit number of the user payment password corresponding to the account to be paid or the number of times the payment password digital error message is generated exceeds the preset number of digital errors. If the number of times the payment password digital error message is generated exceeds the preset number of digital errors, the number selected by the user on the password selection interface will no longer be received within the preset number input interval.

8. The method for preventing foreign currency transaction data from being tampered with by using blockchain technology according to claim 7 is characterized in that: In the step S25, if the password digital sequence is inconsistent with the user payment password, the server generates and returns a payment password sequence error instruction, and re-receives a new password verification request, and continues to determine whether the new password digital sequence is consistent with the user payment password, until the new password digital sequence is consistent with the user payment password or the number of times the payment password sequence error instruction is generated exceeds the preset number of digital sequence times. If the number of times the payment password sequence error instruction is generated exceeds the preset number of digital sequence times, a password lock instruction is sent to control the digital watch to prohibit the user from moving the numbers in the grid on the password grid within the preset digital movement interval.

9. The method for preventing foreign currency transaction data from being tampered with by using blockchain technology according to claim 8, characterized in that: The step S2 specifically includes the steps of: the digital watch generates a password selection interface including numbers 0-9, obtains the payment password to be verified selected by the user on the password selection interface, determines whether the payment password to be verified is the same as the user payment password corresponding to the account to be paid, and if they are the same, sends the payment password to be verified to the server; The server receives the payment request and the payment password to be verified, and sends a payment password request to all accounting nodes according to the account to be paid and the payment password to be verified selected by the user, so as to obtain the user payment password and the user preset operation rule returned by all accounting nodes after voting; The server processes the payment password to be verified according to the user's preset operation rules to obtain the final verification payment password, and determines whether the final verification payment password is consistent with the user's payment password. If so, the legitimacy verification of the payment request is passed, and the transaction record including the payment account, the account to be paid, the amount to be paid and the transaction time information is encrypted to generate a transaction block, and the transaction block is broadcast to all accounting nodes. If the transaction block obtains the consensus of all accounting nodes, step S3 is executed, and each accounting node stores the transaction block on the blockchain under the account to be paid. The user-preset operation rules include uniform left shift of all numbers, uniform right shift of all numbers, and the unit digit of the result obtained after addition, subtraction, multiplication or division of each digit within ten.

10. A system for preventing foreign currency transaction data from being tampered with using blockchain technology, characterized in that: include: A digital watch and a server, wherein the digital watch comprises a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor, wherein the server comprises a second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor, wherein the first processor implements the steps described in any one of claims 1 to 9 when executing the first computer program.

Citation Information

Patent Citations

  • Mobile payment platform based on social relations and LBS

    CN105931031A

  • Payment verification method and system

    CN107705128A

  • Payment method based on blockchain digital currency and digital watch payment system

    CN111325538A

  • Payment method based on smart watch, and smart watch

    CN111754221A

  • Processing method and device for realizing secure transfer based on block chain

    CN115392893A