Token balance management system and program
The token balance management system efficiently manages security token balances by updating only relevant accounts and detecting discrepancies, addressing inefficiencies and inconsistencies in existing blockchain systems.
Patent Information
- Application Number
- JP2023144042
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-09-05
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2043-09-05
AI Technical Summary
The existing methods for managing balance data of security tokens on a blockchain system are inefficient and time-consuming, especially when dealing with a large number of token stocks and investor accounts, leading to delayed business operations and potential inconsistencies in balance data.
A token balance management system that utilizes a computer to manage balance data by associating security tokens with account information, acquiring the latest block number from the blockchain system, extracting transfer data, and updating balance data only for accounts involved in transfers, while incorporating discrepancy error detection and reconstruction mechanisms to ensure data accuracy.
The system efficiently updates balance data for all accounts, detects abnormalities, and corrects inconsistencies, reducing the time required for balance updates and ensuring data integrity.
Smart Images

Figure 0007560629000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a token balance management system and program configured by a computer that manages balance data of security tokens that can be transferred using blockchain, and can be used, for example, by financial institutions such as securities companies when managing the balances of security tokens held by their customers. [Background technology]
[0002] In recent years, security tokens (digitized securities) issued and managed on a blockchain system have become popular. In a blockchain system, the concept equivalent to a bank account is called an account, and the balance of XX tokens (including △△ coins, etc.) issued on the blockchain system is managed for each token and for each account.
[0003] The balance data recorded in the blockchain can only be obtained one at a time through the nodes that make up the blockchain system. For example, if investor A has a balance of token X and token Y in his account, he cannot send a single inquiry request to the node to obtain both balances, and must make two inquiries, one for token X and one for token Y. The same applies to the accounts of investors B, C, D, etc.
[0004] In traditional token trading by individuals, the only thing they needed to know was the balance of the tokens they held, so the number of inquiries was limited, there were no concerns about performance, and there was no room for demands for efficiency.
[0005] On the other hand, in the case of security tokens (securities issued using blockchain), the securities company holds the accounts and tokens held by all investors (all of the company's customers), so both the number of tokens and the number of accounts become huge. Therefore, when it is necessary to obtain the balance of all tokens held by all customers from the blockchain system, such as when creating a balance ledger, it is necessary to make an inquiry to the node for each customer's account and for each token one by one.
[0006] As a technology related to token transactions using a blockchain system or smart contract, for example, a dividend payment system is known that enables payments to each investor in an amount according to the number of tokens owned by the investor through the control of a smart contract (see Patent Document 1).
[0007] In addition, the applicant has also developed a technology that obtains transaction data from a blockchain system by polling and synchronizes the distributed ledger of the constituent nodes of a P2P (peer-to-peer) network with the database of a system connected to a network other than P2P (see Patent Document 2). [Prior art documents] [Patent documents]
[0008] [Patent Document 1] JP 2022-138078 A [Patent Document 2] Patent No. 6629908 Publication Summary of the Invention [Problem to be solved by the invention]
[0009] As mentioned above, if the conventional method of inquiring about the balance of owned tokens, which was done on an individual basis, is applied to a securities company system (=wallet) that also manages the balances of security tokens on the blockchain system outside the blockchain system, both the number of tokens and the number of investor accounts will become enormous. In such a situation, it would be very time-consuming to obtain the total balance for each token and for each account one by one.
[0010] Furthermore, if it takes a long time to obtain the balance, a waiting time will occur before the balance of each token for each account can be displayed on the screen as a balance list, output to a report file, or printed, causing business operations to slow down.
[0011] Therefore, there is a need for an efficient method for obtaining balance data for security tokens that is different from conventional methods for inquiring about token balances.
[0012] An object of the present invention is to provide a token balance management system and a program that can efficiently acquire balance data of security tokens. [Means for solving the problem]
[0013] The present invention provides a token balance management system configured by a computer that manages balance data of security tokens that can be transferred using a blockchain, A token balance database that stores, outside the blockchain system, balance data of each security token for each account in association with account information that identifies each account; latest block number acquisition means for acquiring the block number of the latest block from the nodes constituting the blockchain system via a communication line each time the balance data of each account stored in the token balance database is updated; a block number storage means for storing the block number acquired by the latest block number acquisition means; a transfer data acquisition means for acquiring, from the node via a communication line, transfer data contained in each block from the block number next to the previous block number acquired at the time of the previous balance update stored in the block number storage means to the current block number acquired at the time of the current balance update by the latest block number acquisition means; a balance data acquisition means for extracting account information of each of the transfer source and transfer destination accounts of the security tokens to be updated from the transfer data acquired by the transfer data acquisition means, and acquiring balance data of the security tokens for each of the transfer source and transfer destination accounts from the node via a communication line using the extracted account information; a balance update means for updating the balance data of the target security token for only each of the transfer source and transfer destination accounts stored in the token balance database using the balance data acquired by the balance data acquisition means; an output means for outputting a balance list using the latest balance data of each security token for each account stored in the token balance database; The present invention is characterized by comprising:
[0014] Here, the "security token subject to balance update" in the "balance data acquisition means" means a security token that was included in the transfer data acquired from the blockchain system and was subject to balance update. Therefore, it does not mean a security token that is predefined in this system as a target for balance update. However, a security token that is not handled by a financial institution that installs and operates a token balance management system is not a security token subject to balance update in the first place, so it is a security token that is included in the transfer data among security tokens handled by the financial institution. Note that even if the financial institution handles only one security token, this is not excluded from the present invention and the effect of the present invention can be enjoyed. In this case, the term "each security token" in the claims and description of this application refers to that one and only security token.
[0015] In addition, the "balance list" in the "output means" includes a balance list for each account (a list of balances of all security tokens held by any one investor), a balance list for each security token (a list of account balances of all investors holding any one security token), and a balance list that combines these (a list in which each row lists the investor's name, etc. corresponding to the account information, the token name, etc. corresponding to the token ID, and the balance amount).
[0016] Furthermore, the "token balance database" may be composed of a table in which each row contains account information (address or its alternative), token ID, and balance data, or a table (each row contains account information and balance data) may be provided for each security token.
[0017] In such a token balance management system of the present invention, before updating the balance, the transfer data acquisition means acquires transfer data from the blockchain system via the node, and from the transfer data, the balance data acquisition means extracts account information for each of the source and destination accounts of the security token subject to the balance update, and using the extracted information, acquires only the balance data of the target security token for each of the source and destination accounts involved in the transfer from the blockchain system via the node, and the balance update means updates the balance data of the target security token only for each of the source and destination accounts stored in the token balance database.
[0018] As a result, balance data for accounts and security tokens that were not involved in the transfer between the time of the previous balance update and the time of the current balance update is not obtained from the blockchain system, and no balance updates are performed, making it possible to efficiently update balance data for all security tokens for all accounts, thereby achieving the above-mentioned objective.
[0019] <Configuration with mismatch error notification means>
[0020] In addition, in the token balance management system mentioned above, (1) Extracting the transfer quantity of the target security token from the transfer source account to the transfer destination account from the transfer data acquired by the transfer data acquisition means, and determining whether or not the calculated pre-transfer balance data obtained by adding the transfer quantity to the balance data of the target security token for the transfer source account acquired by the balance data acquisition means matches the balance data of the target security token for the transfer source account immediately before the update stored in the token balance database, and determining whether or not the calculated pre-transfer balance data obtained by subtracting the transfer quantity from the balance data of the target security token for the transfer destination account acquired by the balance data acquisition means matches the balance data of the target security token for the transfer destination account immediately before the update stored in the token balance database, and executing a pre-transfer balance-based comparison process that notifies a mismatch error indicating a mismatch if at least one of the transfer source or transfer destination does not match, or (2) A mismatch error notification means is provided which performs a post-transfer balance based comparison process which extracts the transfer quantity of the target security token from the transfer source account to the transfer destination account from the transfer data acquired by the transfer data acquisition means, determines whether or not the calculated post-transfer balance data obtained by subtracting the transfer quantity from the balance data of the target security token for the transfer source account immediately before the update stored in the token balance database matches the balance data of the target security token for the transfer source account acquired by the balance data acquisition means, and determines whether or not the calculated post-transfer balance data obtained by adding the transfer quantity to the balance data of the target security token for the transfer destination account immediately before the update stored in the token balance database matches the balance data of the target security token for the transfer destination account acquired by the balance data acquisition means, and if there is a mismatch in at least one of the transfer source or the transfer destination, which performs a mismatch error notification process which notifies the user of a mismatch; The balance update method is After processing by the mismatch error notification means, the balance data acquired by the balance data acquisition means may be used to update the balance data of the target security token only for each of the transfer source and transfer destination accounts stored in the token balance database.
[0021] When configured in this manner with a mismatch error notification means, it becomes possible to detect abnormalities such as unexpected updates to the token balance database, making it possible to detect, for example, data tampering due to fraudulent activities and system errors.
[0022] <Configuration with reconstruction means>
[0023] Furthermore, in the case where the above-mentioned mismatch error notification means is provided, a past balance storage means for storing updated balance data for each security token for each account at the time of the previous balance update, together with a block number obtained at each balance update up to the previous time or together with information indicating the block number and the time of each balance update up to the previous time, in association with account information identifying each account; a reconstruction means for receiving an instruction to reconstruct the token balance database from a person in charge of the financial institution that handles the target security token after the mismatch error is notified by the mismatch error notification means, This reconstruction method is a reconstruction start time receiving means for receiving an instruction input of a reconstruction start time by a person in charge by selecting and designating an arbitrary block number among the block numbers acquired at each past balance update or an arbitrary balance update time among the past balance update times; a transfer data reacquisition means for acquiring, from the node via a communication line, transfer data contained in each block from the block number next to the block number accepted by the reconstruction start time acceptance means, or from the block number next to the block number corresponding to the accepted past balance update time, to the block number acquired at the current balance acquisition time related to the notification of the mismatch error, or to the block number reacquired from the node via a communication line by the latest block number acquisition means; a balance data reacquisition means for extracting account information of each of the transfer source and transfer destination accounts of the security tokens that are the subject of balance re-update from the transfer data acquired by the transfer data reacquisition means, and acquiring balance data of the target security tokens for each of the transfer source and transfer destination accounts from the node via a communication line using the extracted account information; It is desirable that the system further includes a balance re-update means which uses the balance data acquired by the balance data re-acquisition means to update the balance data of the target security token only for each of the transfer source and transfer destination accounts, for the balance data of each account after the update at the previous balance update point prior to the previous one stored in the past balance storage means, for the balance data of each account at the balance update point corresponding to the block number selected and specified by the instruction input by the person in charge received by the reconstruction start time acceptance means or the selected and specified balance update point, and stores the balance data in the token balance database.
[0024] In the case of a configuration including the reconstruction means, when a malfunction or inconsistency occurs in the token balance database, other than the balance data of the account that caused the mismatch error to be notified by the mismatch error notification means, the malfunction or inconsistency can be corrected. That is, even if the mismatch error notification means notifies the mismatch error, the balance update means eventually updates the balance data of the target security token for each of the transfer source and transfer destination accounts stored in the token balance database using the balance data acquired from the blockchain system by the balance data acquisition means, so that the balance data of those accounts becomes correct after the update. However, for other accounts that were not updated there (accounts other than the transfer source and transfer destination accounts, i.e., accounts that were not involved in the transfer between the time of the previous balance update and the time of the current balance update), it is unclear whether the balance data is correct or not. Therefore, if a person in charge of the financial institution has doubts about the correctness of the balance data, the reconstruction means can reconstruct the token balance database by going back to the time of the previous balance update.
[0025] In addition, the financial institution's staff can input instructions for the start point of reconstruction by selecting and specifying any block number among the block numbers obtained at each past balance update, or any balance update point among the past balance update points. Therefore, since it is only necessary to go back to the point where redoing is required, there is no need to go back to the initial state where all accounts are empty (balance is zero) and reconstruct the token balance database, which makes it possible to shorten the time required for reconstruction.
[0026] <Configuration with Means for Re-Notifying Mismatch Error>
[0027] In the case where the above-mentioned reconstruction means is provided, The reconstruction means is configured to include a mismatch error re-notification means, This mismatch error re-notification means includes: (1) Extract the transfer quantity of the target security token from the transfer source account to the transfer destination account from the transfer data reacquired by the transfer data reacquisition means, and determine whether or not the calculated pre-transfer balance data obtained by adding the transfer quantity to the balance data of the target security token for the transfer source account acquired by the balance data reacquisition means matches the updated balance data of the target security token for the transfer source account stored in the past balance storage means, and determine whether or not the calculated pre-transfer balance data obtained by subtracting the transfer quantity from the balance data of the target security token for the transfer destination account acquired by the balance data reacquisition means matches the updated balance data of the target security token for the transfer destination account stored in the past balance storage means, and if at least one of the transfer source and transfer destination does not match, execute a pre-transfer balance based comparison process that re-notifies a mismatch error indicating a mismatch, or (2) Extracting the transfer quantity of the target security token from the transfer source account to the transfer destination account from the transfer data reacquired by the transfer data reacquisition means, determining whether or not the calculated post-transfer balance data obtained by subtracting the transfer quantity from the updated balance data for the transfer source account at the start of reconstruction of the target security token stored in the past balance storage means matches the balance data of the target security token for the transfer source account acquired by the balance data reacquisition means, and determining whether or not the calculated post-transfer balance data obtained by adding the transfer quantity to the updated balance data for the transfer destination account at the start of reconstruction of the target security token stored in the past balance storage means matches the balance data of the target security token for the transfer destination account acquired by the balance data reacquisition means, and performing a post-transfer balance based comparison process that re-notifies a mismatch error indicating a mismatch if at least one of the transfer source or transfer destination does not match, Furthermore, when the mismatch error is notified again, it is desirable to configure the means for receiving the reconstruction start point to send a command to execute processing for receiving an instruction input for a new reconstruction start point.
[0028] In a configuration equipped with a mismatch error re-notification means in this manner, even if a financial institution's staff member inputs instructions for the start point of reconstruction and performs processing by the reconstruction means, it is possible that the result will be that a mismatch error is re-notified. In such a case, it is possible to accept input of instructions for a new reconstruction start point (usually a point earlier than the reconstruction start point initially input) and redo the processing by the reconstruction means.
[0029] That is, when a financial institution's staff member first inputs an instruction for the reconstruction start time, he or she often identifies the cause and time of the mismatch error (for example, the time when unauthorized access was confirmed or the time when a system error was confirmed) and selects and designates a time before the identified time to execute processing by the reconstruction means. However, there are cases where such identification work is not performed and the reconstruction means executes processing by inputting an appropriate past time for the time being, or where the cause of the mismatch error exists at a time even earlier than the identified time, in which case the mismatch error may be notified again, and in such cases, it is possible to change the reconstruction start time and restart the reconstruction of the token balance database.
[0030] <Configuration in which latest block number acquisition means executes abnormality notification process>
[0031] In addition, in the token balance management system mentioned above, The latest block number can be obtained by Each time the latest block number is obtained, the latest block number obtained can be compared with the previous block number obtained at the time of the previous balance update stored in the block number storage means to determine whether the number has increased, and if the number has not increased, an abnormality notification process can be executed to notify that there may be an abnormality in the blockchain system including the node.
[0032] If the latest block number acquisition means is configured to execute an abnormality notification process in this manner, a notification will be sent that there may be an abnormality in the blockchain system including the node. This enables financial institution personnel to quickly grasp, for example, when a malfunction occurs in a node installed by their company, and to quickly deal with the problem.
[0033] <Configuration with notification means>
[0034] Furthermore, in the token balance management system described above, The configuration may also include a notification means for notifying a person in the company that a transfer has occurred from an account managed by another financial institution when the balance data acquisition means determines that the account information of the transfer source account extracted from the transfer data is account information of an account that does not exist in the token balance database.
[0035] If the configuration is equipped with a notification means in this manner, it will be possible to know when a token has been transferred from another company to your company. Therefore, for example, when a transfer occurs due to inheritance or when a transfer occurs due to a change in securities company from another company to your company, it will be possible to notify the person in charge at the financial institution (your company) so that no necessary procedures are missed.
[0036] <Program invention>
[0037] The program of the present invention is for causing a computer to function as the above-mentioned token balance management system.
[0038] The above-mentioned program or a part of it can be recorded on a recording medium such as a magneto-optical disk (MO), a compact disk (CD), a digital versatile disk (DVD), a flexible disk (FD), a magnetic tape, a read-only memory (ROM), an electrically erasable and programmable read-only memory (EEPROM), a flash memory, a random access memory (RAM), a hard disk drive (HDD), a solid-state drive (SSD), a flash disk, etc., and can be stored or distributed, and can be transmitted using a transmission medium such as a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a wired network such as the Internet, an intranet, an extranet, a wireless communication network, or a combination of these, and can also be carried on a carrier wave. Furthermore, the above-mentioned program may be a part of another program, or may be recorded on a recording medium together with a separate program. Effect of the Invention
[0039] As described above, according to the present invention, when updating the balance in the token balance database, transfer data is obtained from the blockchain system, and information on the accounts and security tokens involved in the transfer is extracted from the transfer data. The extracted information is then used to obtain only the balance data of the target security tokens for each account involved in the transfer from the blockchain system, thereby having the effect of efficiently obtaining balance data of security tokens. [Brief description of the drawings]
[0040] [Figure 1] FIG. 1 is an overall configuration diagram of a token balance management system according to an embodiment of the present invention. [Diagram 2] FIG. 13 is an explanatory diagram showing the relationship between the latest block number and transfer data obtained at each balance update time in the embodiment. [Diagram 3]13A to 13C are diagrams illustrating examples of transfer data acquired in the embodiment, updates to token balances, and updates to block numbers. [Figure 4] FIG. 2 is a diagram illustrating the configuration of the distributed ledger storage means of the embodiment. [Diagram 5] FIG. 13 is a diagram showing the configuration of the state route calculation data storage area in the distributed ledger storage means of the embodiment. [Figure 6] FIG. 11 is a flowchart showing a flow of updating a balance each time in the embodiment. [Figure 7] FIG. 11 is a flowchart showing the flow of rebuilding the token balance database according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0041] An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows the overall configuration of a token balance management system 10 of this embodiment. FIG. 2 is an explanatory diagram showing the relationship between the latest block number and transfer data acquired at each balance update, and FIG. 3 is an exemplary diagram of the acquired transfer data, token balance update, and block number update. FIG. 4 shows the configuration of a distributed ledger storage means 60, and FIG. 5 shows the configuration of a state route calculation data storage area 62 in the distributed ledger storage means 60. FIG. 6 shows a flow chart of each balance update, and FIG. 7 shows a flow chart of the reconstruction of the token balance database 41.
[0042] <Overall configuration of token balance management system 10>
[0043] 1, a token balance management system 10 includes a financial institution server 20 installed and operated by a financial institution such as a securities company, and a node 50 connected to the financial institution server 20 via a communication line 1. Also, a staff terminal 70 operated by a staff member of the financial institution (its own company) and a customer terminal 71 operated by a customer (investor) of the financial institution (its own company) are connected to the financial institution server 20 via a network 2 other than P2P (peer-to-peer).
[0044] Node 50 is a node installed by the financial institution (its own company) and is connected to multiple nodes 80 installed by other financial institutions (other companies) such as securities companies via a P2P network 3, and a blockchain system 90 is formed by the company's own node 50 and the multiple nodes 80 of other companies.
[0045] Here, the communication line 1 is, for example, an internal network such as a LAN or an intranet, but may also be an external network that passes through an external network. Also, instead of a network, it may be a dedicated line. Furthermore, if the financial institution server 20 and the node 50 are integrated and constructed in the same computer, this communication line 1 is not necessary, but in terms of the interpretation of "communication line" in the claims, it may be considered to be a bus within the computer.
[0046] Network 2 is not a P2P network (the computers within network 2 are not connected P2P), but is an external network primarily composed of the Internet, or it may be a combination of the Internet with an internal network such as a LAN or an intranet, and it may be either wired or wireless, or even a combination of wired and wireless; in short, it is sufficient if it is capable of transmitting information at a certain degree of speed between multiple points (regardless of distance).
[0047] Network 3 is a P2P network for forming a distributed ledger (for configuring a blockchain system 90), and the participant nodes 50, 80 in the distributed ledger are connected by P2P. Specifically, network 3 is a virtual network (including an intranet built on the Internet using a VPN (Virtual Private Network)) formed using a public network such as the Internet or various service networks provided by telecommunications carriers. Therefore, network 3 may physically use the same communication lines as network 2 (other than P2P).
[0048] The financial institution server 20 is composed of one or more computers and is equipped with a processing means 20A that executes various processes including security token balance management, and a token balance database 41, a block number storage means 42, and a past balance storage means 43 connected to this processing means 20A.
[0049] The processing means 20A includes latest block number acquisition means 21, transfer data acquisition means 22, balance data acquisition means 23, balance update means 24, block number update means 25, output means 26, mismatch error notification means 27, reconstruction means 28, notification means 29, and transaction management means 30. The reason why the transaction management means 30 is drawn with a dotted line is because it does not perform the process of security token balance management and is not a component of the token balance management system 10.
[0050] The reconstruction means 28 includes a reconstruction start time receiving means 28A, a transfer data reacquisition means 28B, a balance data reacquisition means 28C, a balance re-update means 28D, and a mismatch error re-notification means 28E.
[0051] Here, each of the means 21 to 30 included in the processing means 20A is realized by a central processing unit (CPU) provided inside the financial institution server 20, one or more programs that define the operation procedures of this CPU, and a working memory such as a main memory, a cache memory, etc. Each of these means 21 to 30 will be described in detail later.
[0052] For example, non-volatile memories such as a hard disk drive (HDD) or a solid state drive (SSD) can be used as the token balance database 41, the block number storage means 42, and the past balance storage means 43. The token balance database 41, the block number storage means 42, and the past balance storage means 43 will be described in detail later.
[0053] The node 50 is composed of one or more computers, and includes a processing means 50A that executes various processes related to security token transactions and balance management, and a distributed ledger storage means 60 connected to this processing means 50A.
[0054] The processing means 50A is configured to include a block number acquisition request response means 51, a transfer data acquisition request response means 52, a balance data acquisition request response means 53, and a transaction recording means 54. The transaction recording means 54 is depicted with a dotted line because it does not perform processing for managing the balance of security tokens and is not a component of the token balance management system 10.
[0055] Here, each of the means 51 to 54 included in the processing means 50A is realized by a central processing unit (CPU) provided inside the node 50, one or more programs that define the operation procedure of this CPU, and a working memory such as a main memory, a cache memory, etc. Each of these means 51 to 54 will be described in detail later.
[0056] The functions of the processing means 50A include basic functions possessed by a blockchain and functions realized by a smart contract. However, there is no need to distinguish between these functions, since none of these functions are specially provided for the present invention, but are common to the company's own node 50 and multiple nodes 80 of other companies.
[0057] For example, a non-volatile memory such as a hard disk drive (HDD) or a solid state drive (SSD) can be used as the distributed ledger storage means 60. Details of this distributed ledger storage means 60 will be described later.
[0058] The staff terminal 70 and the customer terminal 71 are configured by computers. Furthermore, these terminals 70 and 71 may be, for example, mobile devices such as smartphones and tablet terminals.
[0059] The node 80 is configured with one or more computers, and has the same configuration and functions as the node 50 .
[0060] <Configuration of financial institution server 20 / processing means 20A / latest block number acquisition means 21>
[0061] The latest block number acquisition means 21 executes a process of acquiring a block number of the latest block from the node 50 constituting the blockchain system 90 via the communication line 1 each time the balance data of each security token for each account stored in the token balance database 41 is updated (e.g., every business day, every week, every month, etc.). More specifically, the latest block number acquisition means 21 transmits a block number acquisition request signal to the node 50 via the communication line 1, and then receives the block number of the latest block transmitted from the node 50 via the communication line 1.
[0062] In this embodiment, since the block number of the latest block is overwritten and saved in the block number storage means 42, the block number acquired by the latest block number acquisition means 21 is not immediately overwritten and saved in the block number storage means 42, but is stored in the main memory and later saved in the block number storage means 42 by the block number update means 25. This is because the block number saved at the time of the previous balance update is stored in the block number storage means 42, and the transfer data acquisition means 22 reads and uses this.
[0063] Furthermore, each time the latest block number is acquired, the latest block number acquisition means 21 compares the acquired latest block number with the previous block number acquired at the time of the previous balance update stored in the block number storage means 42 to determine whether the number has increased, and if not, executes an abnormality notification process to notify that an abnormality may have occurred in the blockchain system 90 including the node 50. This abnormality notification is made to the person in charge terminal 70.
[0064] <Configuration of financial institution server 20 / processing means 20A / transfer data acquisition means 22: FIG. 2>
[0065] The transfer data acquisition means 22 executes a process of reading the previous block number obtained at the time of the previous balance update stored in the block number storage means 42, and acquiring the transfer data contained in each block 61 (see FIG. 4) from the next block number (a number incremented by 1) of the read block number to the current block number obtained by the latest block number acquisition means 21 at the time of the current balance update from the node 50 via the communication line 1. More specifically, the transfer data acquisition means 22 transmits a transfer data acquisition request signal (including the block number next to the previous block number and the current block number) to the node 50 via the communication line 1, and then receives the transfer data transmitted from the node 50 via the communication line 1.
[0066] Specifically, for example, as shown in FIG. 2, it is assumed that the block number of the latest block currently acquired by the latest block number acquisition means 21 at the current balance acquisition time T(n) is 114. Also, it is assumed that the block number of the latest block previously acquired by the latest block number acquisition means 21 at the previous balance acquisition time T(n-1) is 110. At this time, the transfer data acquisition means 22 sets all the transfer data included in the block 61 (see FIG. 4) between the block number next to the previous block number (=110) = 111 and the current block number = 114 as the transfer data to be acquired at the current balance update time T(n). It is to be noted that the transfer data to be acquired at the previous balance update time T(n-1) is all the transfer data included in the block 61 between the block number next to the block number before the previous (=104) = 105 and the previous block number = 110.
[0067] As shown in Figure 4, the transfer data includes the token ID, the account information (address) of each account of the transfer source and transfer destination, and the transfer amount.
[0068] <Configuration of financial institution server 20 / processing means 20A / balance data acquisition means 23>
[0069] The balance data acquisition means 23 executes a process of extracting account information (address) of each of the transfer source and transfer destination accounts of the security token (specified by a token ID) whose balance is to be updated from the transfer data (see FIG. 4) acquired by the transfer data acquisition means 22, and acquiring balance data of the target security token for each of the transfer source and transfer destination accounts from the node 50 via the communication line 1 using the extracted account information (address) and token ID. More specifically, the balance data acquisition means 23 transmits a balance data acquisition request signal (including the account information (address) of each of the transfer source and transfer destination accounts and the token ID of the security token whose balance is to be updated) to the node 50 via the communication line 1, and then receives the balance data transmitted from the node 50 via the communication line 1.
[0070] <Configuration of financial institution server 20 / processing means 20A / balance update means 24: FIG. 3>
[0071] The balance update means 24 executes a process of updating the balance data of the target security token only for each of the transfer source and transfer destination accounts stored in the token balance database 41, using the balance data acquired by the balance data acquisition means 23.
[0072] At this time, after processing by the mismatch error notification means 27, the balance update means 24 uses the balance data acquired by the balance data acquisition means 23 to update the balance data of the target security token only for each of the transfer source and transfer destination accounts stored in the token balance database 41.
[0073] Specifically, for example, as shown in FIG. 3, the transfer data acquired by the transfer data acquisition means 22 may be “token X, from account B to C, transfer amount = 5”, “token X, from account C to D, transfer amount = 10”, and “token Y, from account A to F, transfer amount = 2000”.
[0074] At this time, the balance data acquisition means 23 determines that accounts B, C, and D are accounts involved in the transfer of token X, and acquires the balance data of token X for accounts B, C, and D, respectively, as 5, 15, and 40. Therefore, the balance update means 24 uses these balance data to update the balance data of token X for accounts B, C, and D. The balance data of token X for the other accounts A, E, F, G, H, I, and J is not updated.
[0075] Furthermore, the balance data acquisition means 23 determines that accounts A and F are accounts involved in the transfer of token Y, and acquires the balance data of token Y for accounts A and F, 8000 and 2000, respectively. Therefore, the balance update means 24 uses these balance data to update the balance data of token Y for accounts A and F. The balance data of token Y for the other accounts B, C, D, E, G, H, I, and J is not updated.
[0076] For token X, the balance data for account B is updated from the previous quantity = 10 to a transferred quantity = 5, resulting in a quantity after this update = 10-5 = 5. The balance data for account C is updated from the previous quantity = 20 to a transferred quantity = 5, and is also updated to a transferred quantity = 10, resulting in a quantity after this update = 20+5-10 = 15. The balance data for account D is updated from the previous quantity = 30 to a transferred quantity = 10, resulting in a quantity after this update = 30+10 = 40.
[0077] For token Y, the balance data for account A is reduced by the transferred amount of 2000 from the previous amount of 10000, resulting in the updated amount of 10000-2000=8000. The balance data for account F is increased by the transferred amount of 2000 from the previous amount of 0, resulting in the updated amount of 0+2000=2000.
[0078] The balance update of the token balance database 41 is performed using balance data obtained from the blockchain system 90, so the balance is not updated with the quantity obtained by such calculation, but confirmation by such calculation is performed by the inconsistency error notification means 27.
[0079] <Configuration of financial institution server 20 / processing means 20A / block number updating means 25: FIG. 3>
[0080] The block number update means 25 executes a process of overwriting and saving the block number of the latest block acquired by the latest block number acquisition means 21 at each balance update time point after each balance update of the token balance database 41 in the block number storage means 42. By this overwriting and saving process, the block number stored in the block number storage means 42 is updated from the block number acquired at the previous balance acquisition time point T(n-1) to the block number acquired at the current balance acquisition time point T(n). For example, as shown in Fig. 2, if the block number of T(n-1) = 110 and the block number of T(n) = 114, the block number stored in the block number storage means 42 is updated from 110 to 114 as shown in Fig. 3.
[0081] <Configuration of financial institution server 20 / processing means 20A / output means 26>
[0082] The output means 26 executes a process of outputting a balance list using the latest balance data (i.e., continuously updated balance data) of each security token for each account stored in the token balance database 41. This output process includes a process of displaying the balance list on the screen of the staff terminal 70 or the customer terminal 71 in response to an output request from these terminals, a process of outputting the balance list as a report file (e.g., a PDF file), a process of printing the balance list as a paper report on a printer, and a process of transmitting the balance list data to another computer.
[0083] The output balance list includes a balance list for each account (a list of balances of all security tokens held by any one investor (customer)). Balance list data is created using balance data of all security tokens linked to the same account information. For example, in the case of an output request from a customer at the customer terminal 71, balance list data of all security tokens held by the customer is created using balance data of all security tokens linked to the account information of the customer who made the output request. In the case of a financial institution's staff requesting output of a balance list for a specific customer from the staff terminal 70, balance list data of all security tokens held by the specific customer is created using balance data of all security tokens linked to the account information of the specific customer. In addition, in the case of creating a report file to be sent individually to all customers from a financial institution such as a securities company, or a paper report to be sent individually to all customers, balance list data of all security tokens held by each customer is created for each customer using balance data of all security tokens linked to the account information of each customer.
[0084] The output balance list also includes a balance list for each security token (a list of the account balances of all investors (customers) who hold any one security token). When an output request is made from the staff terminal 70, balance list data for all customers who hold the security token is created using balance data linked to the account information of all customers for the security token to be output.
[0085] Furthermore, the output balance list includes a balance list that combines the above-mentioned balance list for each account and the balance list for each security token. For example, if the token balance database 41 contains a table in which account information, token ID, and balance data are arranged in each row, when a financial institution's staff member makes an output request from the staff member terminal 70, balance list data is created in which the investor (customer) name etc. corresponding to the account information, the token name etc. corresponding to the token ID, and the balance amount are arranged in each row.
[0086] <Configuration of Financial Institution Server 20 / Processing Means 20A / Mismatch Error Notification Means 27>
[0087] The mismatch error notification means 27 extracts the transfer amount of the target security token from the transfer source account to the transfer destination account from the transfer data acquired by the transfer data acquisition means 22, and adjusts the difference in the balance amount between the transfer source and transfer destination balance data acquired from the node 50 of the blockchain system 90 by the balance data acquisition means 23 and the transfer source and transfer destination balance data stored in the token balance database 41 (which may not be in a correct state) using the extracted transfer amount (a difference in the balance amount that should naturally occur if the balance data stored in the token balance database 41 is in a correct state), and then determines whether the balance amounts of both are consistent, and if at least one of the transfer source or transfer destination does not match, executes a process of notifying a mismatch error indicating a mismatch. This mismatch error notification is made to the person in charge terminal 70.
[0088] In this case, the mismatch error notification means 27 can execute (1) a pre-transfer balance comparison process that compares the balances of both the accounts based on the balance amounts before the transfer, and (2) a post-transfer balance comparison process that compares the balance amounts after the transfer. Note that the configuration may be such that only one of the processes can be performed.
[0089] (1) The pre-transfer balance comparison process is as follows. First, the mismatch error notification means 27 extracts the transfer amount of the target security token from the transfer source account to the transfer destination account from the transfer data acquired by the transfer data acquisition means 22. Next, the mismatch error notification means 27 judges whether or not the calculated pre-transfer balance data (state restored to before the transfer) obtained by adding the transfer amount to the balance data of the target security token for the transfer source account acquired by the balance data acquisition means 23 (which is in a state where the transfer has been performed and the transfer amount has already been subtracted) matches the balance data of the target security token for the transfer source account immediately before the update stored in the token balance database 41. In addition, the mismatch error notification means 27 judges whether or not the calculated pre-transfer balance data (state restored to before the transfer) obtained by subtracting the transfer amount from the balance data of the target security token for the transfer destination account acquired by the balance data acquisition means 23 (which is in a state where the transfer has been performed and the transfer amount has already been added) matches the balance data of the target security token for the transfer destination account immediately before the update stored in the token balance database 41. Then, when there is a mismatch in at least one of the transfer source and the transfer destination, the mismatch error notification means 27 notifies a mismatch error indicating a mismatch.
[0090] (2) The post-transfer balance comparison process is as follows: First, the mismatch error notification means 27 extracts the transfer amount of the target security token from the transfer source account to the transfer destination account from the transfer data acquired by the transfer data acquisition means 22. Next, the mismatch error notification means 27 judges whether or not the calculated post-transfer balance data (hypothesized post-transfer state) obtained by subtracting the transfer amount from the balance data of the target security token for the transfer source account immediately before the update stored in the token balance database 41 (the state before the transfer where the transfer amount has not yet been subtracted) matches the balance data of the target security token for the transfer source account acquired by the balance data acquisition means 23 (the state in which the transfer has been performed and the transfer amount has already been subtracted). Furthermore, the mismatch error notification means 27 judges whether or not the calculated post-transfer balance data (hypothetical post-transfer state) obtained by adding the transfer amount to the balance data of the target security token for the transfer destination account immediately before the update (the state before the transfer where the transfer amount has not yet been added) stored in the token balance database 41 matches with the balance data of the target security token for the transfer destination account acquired by the balance data acquisition means 23 (the state in which the transfer has been performed and the transfer amount has already been added).The mismatch error notification means 27 then notifies a mismatch error indicating a mismatch when at least one of the transfer source or transfer destination does not match.
[0091] In addition, if the same account is the source of multiple transfer transactions or the destination of multiple transfer transactions, the transfer quantities in those multiple transfer transactions are added together and treated as one transfer quantity, and the above processing is performed. If the same account is the source of at least one transfer transaction and the destination of at least one transfer transaction, the transfer quantities in those multiple transactions are offset, and if the amount going out of the account is greater as a result of the offset, the account is treated as the source, and if the amount coming into the account is greater, the account is treated as the destination, and the above processing is performed using the offset transfer quantity. Note that if the transfer quantity becomes zero as a result of the offset, the account may be treated as either the source or the destination.
[0092] <Configuration of financial institution server 20 / processing means 20A / reconstruction means 28: Figs. 2 and 7>
[0093] The reconstruction means 28 accepts an instruction to reconstruct the token balance database 41 from the financial institution's staff terminal 70 after the mismatch error is notified by the mismatch error notification means 27, and executes a reconstruction process of the token balance database 41 using the block numbers obtained at each balance update time up to the previous time stored in the past balance storage means 43 and the balance data at those times.
[0094] The reconstruction start point receiving means 28A executes a process to receive instructions input by a financial institution's staff member regarding the reconstruction start point by selecting and specifying an arbitrary block number from among the block numbers obtained during past balance updates (each time before the last time) or by selecting and specifying an arbitrary balance update point from among the past balance update points (each time before the last time).
[0095] The transfer data reacquisition means 28B executes a process of acquiring, from the node 50, via the communication line 1, transfer data contained in each block 61 (see FIG. 4) from the block number next to the block number accepted by the reconstruction start time acceptance means 28A, or from the block number next to the block number corresponding to the accepted past balance update time, to the block number acquired at the current balance acquisition time related to the notification of the mismatch error, or to the block number reacquired from the node 50 via the communication line 1 by the latest block number acquisition means 21. This transfer data reacquisition means 28B executes a process similar to that of the transfer data acquisition means 22, except that the block numbers (from which number to which number) for specifying the transfer data to be acquired are different.
[0096] Specifically, for example, as shown in FIG. 2, if a financial institution employee selects and designates the balance update time T(n-2) before last as the reconstruction start time by the reconstruction start time receiving means 28A upon receiving a mismatch error notification from the mismatch error notification means 27, the block number 105 next to the block number (=104) corresponding to this T(n-2) becomes the start point of the block numbers that are the target of reacquisition of transfer data by the transfer data reacquisition means 28B. On the other hand, the employee can select the end point of the block numbers that are the target of reacquisition of transfer data from either (α) the block number 114 acquired at the current balance update time T(n) related to the mismatch error notification, or (β) the block number reacquired from the node 50 by the latest block number acquisition means 21 via the communication line 1 (block number 115 shown by the dotted line in the example of FIG. 2). Therefore, the block numbers that are the target of reacquisition of transfer data are 105 to 114 when (α) is selected, and 105 to 115 when (β) is selected.
[0097] As described above, the case where the financial institution's staff member selects and specifies the balance update time T(n-2) before last as the reconstruction start time using the reconstruction start time receiving means 28A is, for example, as follows. Assume that, for token Z, among accounts A, B, C, D, E, F, G, H, I, and J, only transfer transactions from A to B and from C to D occurred between the previous balance update time T(n-1) and the current balance update time T(n), and in this case, the mismatch error notification means 27 processes the current balance update time T(n) to find that the balance of B does not match, while the balances of A, C, and D match. Therefore, a mismatch error is notified.
[0098] After that, the balance data of accounts A, B, C, and D in the token balance database 41 is updated by the balance update means 24, but since it is updated using the balance data obtained from the blockchain system 90, it is in a correct state. Next, upon receiving the inconsistency error notification from the inconsistency error notification means 27, the financial institution's staff investigated the balance data of accounts other than A, B, C, and D, i.e., accounts E, F, G, H, H, I, and J, because it was unclear whether the balance data was in a correct state. As a result of the investigation, since no trace of unauthorized access or system error was found between T(n-1) and T(n), it was thought that the cause of the inconsistency in the balance data of at least account B occurred in a time period prior to T(n-1). And, it was thought that the reason why there was no inconsistency error notification at the previous balance update time T(n-1) was because there was no transfer transaction involving B between T(n-2) and T(n-1), the inconsistency error notification means 27 did not perform processing. The person in charge then investigates further back and finds traces of unauthorized access or system errors between T(n-2) and T(n-1), and decides to redo the update of the balance data in the token balance database 41 from T(n-2). When reconstructing from T(n-2), the financial institution's person in charge may also use document data in a PDF file or a paper document to check whether the updated balance data in T(n-2) is correct. In such a case, the person in charge can select and specify T(n-2) as the start point of reconstruction.
[0099] The balance data reacquisition means 28C extracts account information of each of the transfer source and transfer destination accounts of the security token that is the target of the balance re-update from the transfer data acquired by the transfer data reacquisition means 28B, and executes a process of reacquiring balance data of the target security token for each of the transfer source and transfer destination accounts from the node 50 via the communication line 1 using the extracted account information. This balance data reacquisition means 28C executes a process similar to that of the balance data acquisition means 23.
[0100] The balance re-update means 28D uses the balance data acquired by the balance data re-acquisition means 28C to update the balance data of the target security tokens only for each of the transfer source and transfer destination accounts, for the balance data of each security token of each account after the update at the time of the balance update corresponding to the block number selected and specified by the instruction input by the financial institution's staff received by the reconstruction start time receiving means 28A, among the balance data of each security token of each account after the update at the time of past balance updates (each time before the last time) stored in the past balance storage means 43, and executes a process of storing all of the balance data of the updated accounts and the balance data of the not updated accounts in the token balance database 41.
[0101] The mismatch error re-notification means 28E extracts the transfer amount of the target security token from the transfer source account to the transfer destination account from the transfer data reacquired by the transfer data reacquisition means 28B, and adjusts the difference in the balance amount between the transfer source and transfer destination balance data acquired from the node 50 of the blockchain system 90 by the balance data reacquisition means 28C and the transfer source and transfer destination balance data after the update at the start of reconstruction stored in the past balance storage means 43 (which may not be in the correct state) using the extracted transfer amount (if the balance data after the update at the start of reconstruction stored in the past balance storage means 43 is in the correct state, the difference in the balance amount that should naturally occur), and then determines whether the balance amounts of both are consistent, and if at least one of the transfer source or transfer destination does not match, executes a process of re-notifying a mismatch error indicating a mismatch. This mismatch error re-notification is performed on the person in charge terminal 70. This mismatch error re-notification means 28E performs the same processing as the mismatch error notification means 27, except that it uses the updated balance data at the start of reconstruction stored in the past balance storage means 43 instead of the balance data immediately before the update stored in the token balance database 41.
[0102] In this case, the mismatch error re-notification means 28E can execute (1) a pre-transfer balance based comparison process that compares the balances of both the accounts based on the balance amounts before the transfer, and (2) a post-transfer balance based comparison process that compares the balance amounts after the transfer. Note that the configuration may be such that only one of the processes can be performed.
[0103] (1) The pre-transfer balance comparison process is as follows. First, the mismatch error re-notification means 28E extracts the transfer quantity of the target security token from the transfer source account to the transfer destination account from the transfer data reacquired by the transfer data reacquisition means 28B. Next, the mismatch error re-notification means 28E judges whether the calculated pre-transfer balance data (reverted to the state before the transfer) obtained by adding the transfer quantity to the balance data of the target security token for the transfer source account acquired by the balance data reacquisition means 28C (which is in a state where the transfer has been performed and the transfer quantity has already been subtracted) matches the updated balance data at the start of reconstruction of the target security token for the transfer source account stored in the past balance storage means 43. Furthermore, the mismatch error re-notification means 28E judges whether or not the calculated pre-transfer balance data (state restored to before the transfer) obtained by subtracting the transfer quantity from the balance data of the target security token for the transfer destination account acquired by the balance data reacquisition means 28C (which is in a state in which the transfer has been performed and the transfer quantity has already been added) matches the updated balance data at the start of reconstruction of the target security token for the transfer destination account stored in the past balance storage means 43. Then, if there is a mismatch in at least one of the transfer source or transfer destination, the mismatch error re-notification means 28E re-notifies a mismatch error indicating a mismatch.
[0104] (2) The post-transfer balance comparison process is as follows. First, the mismatch error re-notification means 28E extracts the transfer quantity of the target security token from the transfer source account to the transfer destination account from the transfer data reacquired by the transfer data reacquisition means 28B. Next, the mismatch error re-notification means 28E determines whether the calculated post-transfer balance data (hypothetical post-transfer state) obtained by subtracting the transfer quantity from the updated balance data (state before the transfer where the transfer quantity has not yet been subtracted) at the start of reconstruction of the target security token for the transfer source account stored in the past balance storage means 43 matches the balance data of the target security token for the transfer source account acquired by the balance data reacquisition means 28C. Furthermore, the mismatch error re-notification means 28E judges whether or not the calculated post-transfer balance data (hypothetical post-transfer state) obtained by adding the transfer amount to the updated balance data (state before the transfer where the transfer amount has not yet been added) of the target security token for the transfer destination account stored in the past balance storage means 43 at the time of starting reconstruction of the target security token matches the balance data of the target security token for the transfer destination account acquired by the balance data reacquisition means 28C (state in which the transfer has been performed and the transfer amount has already been added).The mismatch error re-notification means 28E then re-notifies a mismatch error indicating a mismatch when at least one of the transfer source or transfer destination does not match.
[0105] Furthermore, when the mismatch error re-notification means 28E re-notifies a mismatch error by performing (1) a pre-transfer balance-based comparison process or (2) a post-transfer balance-based comparison process, it sends a command to the reconstruction start point receiving means 28A to execute a process to receive instruction input for a new reconstruction start point.
[0106] <Configuration of financial institution server 20 / processing means 20A / notification means 29>
[0107] The notification means 29 executes a process of notifying the person in charge of the company that a transfer has occurred from an account managed by another financial institution when the balance data acquisition means 23 determines that the account information of the transfer source account extracted from the transfer data is account information of an account that does not exist in the token balance database 41. This notification is sent to the person in charge terminal 70.
[0108] <Configuration of financial institution server 20 / processing means 20A / transaction management means 30>
[0109] The transaction management means 30 executes a process of creating transaction data (here, transfer data) and transmitting a transaction record request signal together with the created transaction data (transfer data) to the node 50 via the communication line 1. Note that this transaction management means 30 is not a component of the token balance management system 10, and is therefore indicated by a dotted line.
[0110] <Configuration of financial institution server 20 / token balance database 41>
[0111] The token balance database 41 may be configured as a table including, in each row, account information (address or its substitute information), token ID, and balance data, or a table (including, in each row, account information and balance data) may be provided for each security token. In the latter case, a table for token X, a table for token Y, a table for token Z, and so on are provided, as shown in the example of FIG. 3.
[0112] The private key corresponding to the account information (address), the customer's name, address, telephone number, email address, and the account number of the general securities account are stored in a separately provided customer information storage means (not shown). The accounts include accounts with financial institutions (the company's own and other companies') such as securities companies. The name of the token corresponding to the token ID is also stored in a separately provided token information storage means (not shown).
[0113] <Configuration of financial institution server 20 / block number storage means 42>
[0114] The block number storage means 42 stores the block number of the latest block acquired by the latest block number acquisition means 21 at each balance update time. In this embodiment, the acquired block number is overwritten and saved each time, as shown in Fig. 3. Note that this overwriting and saving of the block number (update process) is executed by the block number update means 25 after updating the balance in the token balance database 41 (see step S9 in Fig. 6).
[0115] <Configuration of financial institution server 20 / past balance storage means 43>
[0116] As shown in FIG. 7, the past balance storage means 43 stores the updated balance data for each security token for each account at the previous balance update points T(n-1), T(n-2), T(n-3), ... together with the block numbers obtained at each of the balance update points T(n-1), T(n-2), T(n-3), ... up to the previous time, or together with this block number and information indicating each of the balance update points T(n-1), T(n-2), T(n-3), ... up to the previous time (year / month / day, hour / minute / second, week number, etc.), in association with account information identifying each account (address or alternative information thereof).
[0117] This past balance storage means 43 may be a database like the token balance database 41, or may be a file (e.g., a CSV file) since the updated balance data from each balance update prior to the previous one is not updated but is stored as is for a long period of time.
[0118] Also, a table including account information (address or alternative information), token ID, and balance data in each row may be provided for each balance update time point, or a corresponding file (CSV file, etc.) may be created, or a table (including account information and balance data in each row) may be provided for each security token, or a corresponding file (CSV file, etc.) may be created. In the example of Fig. 7, the past balance storage means 43 stores an index section that associates information indicating the past balance update time point, a block number obtained at the past balance update time point, and a storage location (file path) of balance data immediately after the update at the past balance update time point of each token for each account, and multiple files, and account information (address or alternative information), token ID, and balance data are written in association with each other in each file.
[0119] Furthermore, a table may be provided in which each row contains information indicating the block number or balance update time, account information (address or alternative information), token ID, and balance data, or a corresponding file (e.g., a CSV file) may be created to provide a table or file (e.g., a CSV file) that summarizes each update up to the previous time.
[0120] <Configuration of node 50 / processing means 50A / block number acquisition request response means 51: FIG. 4>
[0121] The block number acquisition request response means 51 receives a block number acquisition request signal transmitted by the latest block number acquisition means 21 of the financial institution server 20 via the communication line 1, acquires the block number of the latest block 61 among the multiple blocks 61 (see FIG. 4) stored in the distributed ledger storage means 60, and executes a process of transmitting the acquired block number to the latest block number acquisition means 21 of the financial institution server 20 via the communication line 1. This function is a basic function of a blockchain.
[0122] <Configuration of node 50 / processing means 50A / transfer data acquisition request response means 52: FIG. 4>
[0123] The transfer data acquisition request response means 52 receives a transfer data acquisition request signal (including the block number next to the previous block number acquired at the time of the previous balance update and the current block number acquired at the time of the current balance update) transmitted by the transfer data acquisition means 22 of the financial institution server 20 via the communication line 1, acquires all transfer data contained in the block 61 (block 61 between the block number next to the previous block number and the current block number) specified in the transfer data acquisition request signal among the multiple blocks 61 (see FIG. 4) stored in the distributed ledger storage means 60, and executes a process of transmitting all the acquired transfer data to the transfer data acquisition means 22 of the financial institution server 20 via the communication line 1. This function is a basic function of blockchain.
[0124] <Configuration of node 50 / processing means 50A / balance data acquisition request response means 53: Fig. 4, Fig. 5>
[0125] The balance data acquisition request response means 53 receives a balance data acquisition request signal (including account information (address) of each account of the transfer source and transfer destination, and the token ID of the security token subject to balance update) transmitted by the balance data acquisition means 23 of the financial institution server 20 via the communication line 1, acquires the balance data related to the acquisition request stored in the state route calculation data storage area 62 (see Figures 4 and 5) in the distributed ledger storage means 60, and executes a process of transmitting the acquired balance data to the balance data acquisition means 23 of the financial institution server 20 via the communication line 1. This function is realized by a smart contract (see Figure 5).
[0126] <Configuration of node 50 / processing means 50A / transaction recording means 54>
[0127] The transaction recording means 54 receives a transaction record request signal and transaction data (here, transfer data) transmitted by the transaction management means 30 of the financial institution server 20 via the communication line 1, generates a block 61 (see FIG. 4) including the received transaction data (transfer data), approves the generated block 61 within the P2P network 3, and adds it to the distributed ledger storage means 60. This function is a basic function of blockchain.
[0128] In addition, the transaction recording means 54 updates the balance data of the target security token for each of the transfer source and transfer destination accounts stored in the state route calculation data storage area 62 (see FIG. 4 and FIG. 5) using the token ID, the account information of each of the transfer source and transfer destination accounts, and the transfer amount included in the received transfer data. This function is realized by a smart contract. Regarding the account information of the transfer source account (information for identifying the account), there are two cases: the address of the transfer source account is calculated from a signature (the signature functions as account information) using the private key of the transfer source account attached to the transaction data (here, the transfer data) (the owner of the transfer source account himself signs and becomes the sender), and the address of the transfer source account is included in the transaction data (here, the transfer data) as account information (the owner of an account other than the transfer source and transfer destination accounts, as a third party to whom the authority of transfer is delegated, signs using the private key of the third party's account and becomes the sender).
[0129] Since the transaction recording means 54 is not a component of the token balance management system 10, it is indicated by a dotted line.
[0130] <Configuration of node 50 / distributed ledger storage means 60: Fig. 4, Fig. 5>
[0131] 4, the distributed ledger storage means 60 stores a plurality of blocks 61 shared by each node 50, 80 in the P2P network 3, and also includes a state route calculation data storage area 62. This state route calculation data storage area 62 is a storage area outside the blocks, and each node 50, 80 in the P2P network 3 uses the same smart contract and has the same functions, so each node 50, 80 includes the same state route calculation data storage area 62.
[0132] A block header and a block body are provided in the block 61. The block header includes chain formation information (in this embodiment, the hash value of the previous block), a state root, a block number, a timestamp, etc. The block body includes a transaction list, and the transaction list includes at least one transfer data.
[0133] In addition to the state root calculation data storage area 62, the storage areas outside the blocks also include a transaction tree (Transactions Trie) as a storage area for data used to calculate the transaction root (transactionsRoot: not shown) included in the block header in block 61, and a receipt tree (Receipts Trie) as a storage area for data used to calculate the receipt root (receiptsRoot: not shown) included in the block header in block 61. However, since these tree-structured storage areas are not necessary for explaining the functions of the present invention, they are not shown in Figure 4.
[0134] In FIG. 5, the state root calculation data storage area 62 is composed of a world state tree (World State Trie) for calculating the state root (stateRoot) in block 61, and the root hash value (root hash) of the top part of this tree-structured world state tree is stored in the state root (stateRoot).
[0135] The lowest level data in the world state tree is the account state, and starting from the lowest level account state, the hash values of two pieces of data are stacked up to calculate the root hash value at the top of the tree structure.
[0136] Each account state at the bottom of the world state tree is also a storage area for multiple data, and at the bottom level, there is a mixture of account states for regular accounts (investor accounts A, B, C, ...) and account states for smart contracts for security tokens (tokens X, Y, Z, ...). Therefore, both regular accounts A, B, C, ... and smart contracts for tokens X, Y, Z, ... have their own data storage areas, and both are managed as "accounts" in the same tree structure. The latter accounts are sometimes distinguished by being called "contract accounts".
[0137] The account state of a smart contract for a security token (in the enlarged example of Figure 5, the smart contract for token Y) is composed of a nonce, a balance, a storage root, and a code hash. The storage root stores the root hash value of the account storage tree. The code hash stores the hash value of the program of the smart contract for token Y.
[0138] The data at the bottom level of the account storage tree is the balance data for each account A, B, C, D, ... of the security token (token Y in the enlarged example of Figure 5). Starting from the balance data for each account A, B, C, D, ... at the bottom level, the root hash value at the top of the tree structure is calculated by stacking up the hash values of two pieces of data.
[0139] On the other hand, the Account State of a normal account (Account C in the enlarged example of Figure 5) is also composed of a nonce, balance, storageRoot, and codeHash. However, normal accounts that are not contract accounts do not have smart contracts or data associated with them, so the data for the two items, storageRoot and codeHash, are empty.
[0140] <Flow of the balance update process by the token balance management system 10: FIG. 6>
[0141] In this embodiment, the token balance management system 10 updates the balance data in the token balance database 41 as follows.
[0142] First, before updating the balance every time (for example, every business day, every week, every month, etc.), an empty token balance database 41 is prepared. That is, for all security tokens handled by a financial institution such as a securities company (your company), accounts of all investors (your company's customers) and accounts of financial institutions such as securities companies (your company and other companies) are prepared, and the balance data associated with the account information of each of these accounts is set to zero.
[0143] Even after the start of each balance update, if a new customer is registered, their account will be prepared and kept empty (balance data = zero).In addition, for investors who are expected to receive a transfer of tokens to our company due to inheritance or switching from another company to our company, such as a securities company, an account will be prepared in advance and kept empty (balance data = zero) before the transfer.
[0144] Then, the balance is updated every time. For example, when updating the balance of the token balance database 41 at the end of business hours each day, buying and selling (transfer of security tokens) is performed between the accounts of investors (customers of the company) and financial institutions such as securities companies during the day, and a block 61 (see FIG. 4) including the transfer data is recorded in the distributed ledger storage means 60 of the node 50 constituting the blockchain system 90 (it is also recorded in other nodes 80). Therefore, after business hours end, the process for updating the balance of the token balance database 41 shown below is executed. The recording of the block 61 including the transfer data is executed by the transaction management means 30 of the financial institution server 20 and the transaction recording means 54 of the node 50.
[0145] First, the transfer data acquisition means 22 reads the block number acquired at the time of the previous balance update stored in the block number storage means 42 (step S1).
[0146] Next, latest block number acquisition means 21 acquires the latest block number from node 50 via communication line 1 (step S2). The process on the node 50 side is executed by block number acquisition request response means 51.
[0147] Next, the transfer data acquisition means 22 acquires all transfer data contained in each block 61 from the block number next to the block number at the time of the previous balance update read in step S1 to the latest block number acquired by the latest block number acquisition means 21 in step S2 from the node 50 via the communication line 1 (step S3). The process on the node 50 side is executed by the transfer data acquisition request response means 52.
[0148] Then, the balance data acquisition means 23 extracts the account information (address) and token ID of each of the transfer source and transfer destination accounts from the transfer data acquired in step S3, and acquires balance data of the target security token for only each of the transfer source and transfer destination accounts from the node 50 using the extracted account information and token ID (step S4). The processing on the node 50 side is executed by the balance data acquisition request response means 53.
[0149] Furthermore, the mismatch error notification means 27 adjusts the difference in balance quantities between the source and destination balance data obtained from node 50 of the blockchain system 90 by the balance data acquisition means 23 in step S4 and the source and destination balance data stored in the token balance database 41 using the transfer quantity extracted from the transfer data, and then determines whether the two balance quantities match (step S5), and if there is a mismatch (step S6), a mismatch error is notified (step S7).
[0150] Thereafter, in either case where a mismatch error is not notified or where it is notified, the balance update means 24 uses the balance data of the target security token for each account obtained in step S4 to update the balance data of only those accounts in the token balance database 41 (step S8).
[0151] Next, the block number update means 25 saves the block number acquired in step S2 at the time of the current balance update (step S9). That is, the block number stored in the block number storage means 42 is updated by overwriting.
[0152] Then, upon receiving the mismatch error notification by the mismatch error notification means 27 in step S6, the financial institution staff member decides whether or not to reconstruct the token balance database 41 (step S10), and if reconstruction is to be performed, executes processing by the reconstruction means 28 (see Figure 7 for detailed flow) (step S11).
[0153] Then, upon receiving an output request from the staff terminal 70 or the customer terminal 71, the output means 26 outputs a form using the balance data of each security token for each account stored in the token balance database 41 (step S12).
[0154] <Flow of the reconstruction process of the token balance database 41 by the reconstruction means 28: FIG. 7>
[0155] 7, first, the reconstruction start time receiving means 28A receives an instruction input of a reconstruction start time from a financial institution's staff member (step S1101). That is, a selection and designation of an arbitrary block number among the block numbers acquired at each past balance update, or an arbitrary balance update time among each past balance update time, is received.
[0156] Next, the transfer data re-acquisition means 28B re-acquires all transfer data contained in each block 61 from the block number next to the block number specified and input in step S1101, or from the block number next to the block number corresponding to the past balance update point specified and input in step S1101, up to the block number acquired in step S2 of Figure 6 (at the current balance acquisition point T(n) related to the notification of the mismatch error), or up to the block number re-acquired from node 50 by the latest block number acquisition means 21 (step S1102).
[0157] Next, the balance data re-acquisition means 28C extracts the account information and token ID of each account at the source and destination of the transfer from the transfer data re-acquired in step S1102, and uses the extracted account information and token ID to re-acquire balance data of the target security token for only each account at the source and destination of the transfer from node 50 via communication line 1 (step S1103).
[0158] Then, the mismatch error re-notification means 28E adjusts the difference in balance quantities between the source and destination balance data obtained from node 50 of the blockchain system 90 by the balance data re-acquisition means 28C in step S1103 and the updated source and destination balance data at the start of reconstruction stored in the past balance storage means 43, using the transfer quantity extracted from the transfer data, and then determines whether the two balance quantities match (step S1104).If there is a mismatch (step S1105), it re-notifies the mismatch error (step S1106), and returns to the processing by the reconstruction start time receiving means 28A in the above-mentioned step S1101.
[0159] On the other hand, if no mismatch is found in step S1105 above, the balance re-update means 28D uses the balance data of the target security token for each account obtained in step S1103 to update the balance data of each security token for each account stored in the past balance storage means 43, and stores all of the balance data of the updated accounts and the balance data of the not-updated accounts in the token balance database 41 (step S1107).
[0160] Next, in the above-mentioned step S1102, if the block number is reacquired by latest block number acquisition means 21, the reacquired block number is stored by block number update means 25 (step S1108). That is, the block number stored in block number storage means 42 is updated by overwriting.
[0161] <Effects of this embodiment>
[0162] According to this embodiment, the following effects are obtained: That is, in the token balance management system 10, before updating the balance, the transfer data acquisition means 22 acquires transfer data from the block chain system 90 via the node 50, and the balance data acquisition means 23 extracts account information of each of the transfer source and transfer destination accounts of the security token subject to the balance update from the transfer data, and the balance data of the target security token of each of the transfer source and transfer destination accounts involved in the transfer is acquired from the block chain system 90 via the node 50 using the extracted information, and the balance update means 24 updates the balance data of the target security token only for each of the transfer source and transfer destination accounts stored in the token balance database 41.
[0163] Therefore, balance data for accounts and security tokens that were not involved in the transfer between the time of the previous balance update and the time of the current balance update is not obtained from the blockchain system 90, and no balance updates are performed, so that the balance data for all security tokens for all accounts can be updated efficiently.
[0164] In addition, since the token balance management system 10 is equipped with a mismatch error notification means 27, it can detect abnormalities such as unexpected updates to the token balance database 41, and can detect, for example, data tampering due to fraudulent activities and system errors.
[0165] Furthermore, since the token balance management system 10 includes the reconstruction means 28, when a malfunction or inconsistency occurs in the token balance database 41 other than the balance data of the account that caused the mismatch error to be notified by the mismatch error notification means 27, the malfunction or inconsistency can be corrected. That is, even if the mismatch error notification means 27 notifies the mismatch error, the balance update means 24 eventually uses the balance data acquired from the blockchain system 90 by the balance data acquisition means 23 to update the balance data of the target security token for each of the transfer source and transfer destination accounts stored in the token balance database 41, so that the balance data of those accounts will be correct after the update. However, for other accounts that were not updated there (accounts other than the transfer source and transfer destination accounts, i.e., accounts that were not involved in the transfer between the time of the previous balance update and the time of the current balance update), it is unclear whether the balance data is correct or not. Therefore, if a person in charge of the financial institution has doubts about the correctness of the balance data, the reconstruction means 28 can go back to the time of the past balance update and reconstruct the token balance database 41.
[0166] Also, the financial institution staff can input an instruction for the reconstruction start time by selecting and specifying any block number among the block numbers acquired at each past balance update or any balance update time among the past balance update times, using the reconstruction start time receiving means 28A. Therefore, since it is only necessary to go back to the time when redoing is required, there is no need to go back to the initial state where all accounts are empty (balance is zero) and reconstruct the token balance database 41, and therefore the time required for reconstruction can be shortened.
[0167] Furthermore, since the reconstruction means 28 includes a mismatch error re-notification means 28E, it is possible for the processing by the reconstruction means 28 to be redone. That is, even if the person in charge at the financial institution once inputs an instruction for the reconstruction start time and performs processing by the reconstruction means 28, it is possible that the result will be that the mismatch error is re-notified, and in such a case, the reconstruction start time reception means 28A receives an instruction input for a new reconstruction start time (usually a time earlier than the reconstruction start time initially input), and the processing by the reconstruction means 28 can be redone.
[0168] More specifically, when a financial institution's staff member first inputs an instruction for the reconstruction start time, he or she often identifies the cause and time of the mismatch error (for example, the time when unauthorized access was confirmed or the time when a system error was confirmed) and selects and designates a time before the identified time to execute processing by the reconstruction means 28. However, there are cases where such identification work is not performed and a suitable past time is input for the time being to execute processing by the reconstruction means 28, or the cause of the mismatch error exists at a time even earlier than the identified time, in which case the mismatch error may be notified again, and in such cases, the reconstruction start time may be changed and reconstruction of the token balance database 41 may be restarted.
[0169] Furthermore, the latest block number acquisition means 21 is configured to execute an abnormality notification process, and can therefore notify the user that an abnormality may have occurred in the blockchain system 90 including the node 50. This allows a financial institution's personnel to quickly grasp, for example, when a problem occurs in the node 50 installed by the financial institution, and to quickly deal with the problem.
[0170] Furthermore, since the token balance management system 10 is equipped with a notification means 29, for example, when a transfer occurs due to inheritance or when a securities company is transferred from another company to our company, it can notify the person in charge at the financial institution (our company) so that no necessary procedures are missed.
[0171] <Transformation Form>
[0172] The present invention is not limited to the above-described embodiment, and modifications within the scope of the present invention are included in the present invention.
[0173] For example, the token balance management system 10 of the embodiment includes the reconstruction means 28, but the reconstruction means 28 may be omitted. However, it is preferable to provide the reconstruction means 28 in order to quickly respond to an unexpected abnormality occurring in the token balance database 41. [Industrial Applicability]
[0174] As described above, the token balance management system and program of the present invention are suitable for use by financial institutions such as securities companies when managing the balances of security tokens held by their customers. [Explanation of symbols]
[0175] 1. Communication lines 10 Token Balance Management System 21 How to obtain the latest block number 22 Means of obtaining transfer data 23. Means of obtaining balance data 24 Balance Update Method 26 Output Method 27 Mismatch Error Notification Means 28 Reconstruction means 28A Reconstruction start time acceptance method 28B Means of reacquiring transferred data 28C Balance data reacquisition method 28D Balance Re-update Method 28E Means for re-notifying mismatch error 29 Means of Notification 41 Token Balance Database 42 Block number storage means 43 Past balance storage means 50 nodes 90 Blockchain System
Claims
1. A token balance management system configured by a computer that manages balance data of a security token that can be transferred using a blockchain, A token balance database that stores, outside the blockchain system, balance data of each security token for each account in association with account information that identifies each account; latest block number acquisition means for acquiring a block number of the latest block from a node constituting the block chain system via a communication line each time the balance data of each account stored in the token balance database is updated; a block number storage means for storing the block number acquired by the latest block number acquisition means; a transfer data acquisition means for acquiring, from said node via a communication line, transfer data contained in each block from the block number next to the previous block number acquired at the time of the previous balance update stored in said block number storage means to the current block number acquired at the time of the current balance update by said latest block number acquisition means; a balance data acquisition means for extracting, from the transfer data acquired by the transfer data acquisition means, account information of each account of the transfer source and transfer destination of a target security token that is a security token that is included in the transfer data and is therefore subject to balance updating, and acquiring balance data of the target security token for each account of the transfer source and transfer destination from the node via a communication line using the extracted account information; a balance update means for updating the balance data of the target security token for only each of the transfer source and transfer destination accounts stored in the token balance database using the balance data acquired by the balance data acquisition means; an output means for outputting a balance list using the latest balance data of each security token for each account including the account whose balance has been updated, which is stored in the token balance database; A token balance management system comprising:
2. (1) Extracting the transfer quantity of the target security token from the transfer source account to the transfer destination account from the transfer data acquired by the transfer data acquisition means, and determining whether or not the calculated pre-transfer balance data obtained by adding the transfer quantity to the balance data of the target security token for the transfer source account acquired by the balance data acquisition means matches the balance data of the target security token for the transfer source account immediately before the update stored in the token balance database, and determining whether or not the calculated pre-transfer balance data obtained by subtracting the transfer quantity from the balance data of the target security token for the transfer destination account acquired by the balance data acquisition means matches the balance data of the target security token for the transfer destination account immediately before the update stored in the token balance database, and executing a pre-transfer balance based comparison process that notifies a mismatch error indicating a mismatch if at least one of the transfer source or the transfer destination does not match, or (2) A mismatch error notification means is provided for performing a post-transfer balance based comparison process that extracts a transfer quantity of the target security token from the transfer source account to the transfer destination account from the transfer data acquired by the transfer data acquisition means, and determines whether or not the calculated post-transfer balance data obtained by subtracting the transfer quantity from the balance data of the target security token for the transfer source account stored in the token balance database immediately before the update of the target security token, and the balance data of the target security token for the transfer source account acquired by the balance data acquisition means matches the calculated post-transfer balance data obtained by adding the transfer quantity to the balance data of the target security token for the transfer destination account stored in the token balance database immediately before the update of the target security token, and the balance data of the target security token for the transfer destination account acquired by the balance data acquisition means matches if the balance data do not match at least in the transfer source or the transfer destination, The balance updating means includes: After the processing by the mismatch error notification means, the balance data acquired by the balance data acquisition means is used to update the balance data of the target security token for only each account of the transfer source and the transfer destination stored in the token balance database. The token balance management system according to claim 1 .
3. a past balance storage means for storing updated balance data for each security token for each account at the time of the previous balance update, together with a block number obtained at each balance update up to the previous time or together with information indicating the block number and the time of each balance update up to the previous time, in association with account information identifying each account; a reconstruction means for receiving an instruction to reconstruct the token balance database from a person in charge of a financial institution that handles the target security token after the mismatch error is notified by the mismatch error notification means, This reconstruction method is a reconstruction start time receiving means for receiving an instruction input of a reconstruction start time by the person in charge by selecting and designating an arbitrary block number among the block numbers acquired at each past balance update or an arbitrary balance update time among the past balance update times; a transfer data reacquisition means for acquiring, from said node via a communication line, transfer data contained in each block from the block number next to the block number accepted by said reconstruction start time acceptance means, or from the block number next to the block number corresponding to the accepted past balance update time, to the block number acquired at the current balance acquisition time related to the notification of said mismatch error, or to the block number reacquired from said node via a communication line by said latest block number acquisition means; a balance data reacquisition means for extracting account information of each of the transfer source and transfer destination accounts of the security token that is the target of the balance re-update from the transfer data acquired by the transfer data reacquisition means, and acquiring balance data of the target security token for each of the transfer source and transfer destination accounts from the node via a communication line using the extracted account information; and a balance re-updating means for updating the balance data of the target security token only for each of the transfer source and transfer destination accounts using the balance data acquired by the balance data reacquisition means, for the balance data of each account after the update at the past balance update point before the previous time stored in the past balance storage means, for the balance data of each account at the balance update point corresponding to the block number selected and designated by the instruction input by the person in charge accepted by the reconstruction start time acceptance means or the selected and designated balance update point, and storing the balance data in the token balance database. The token balance management system according to claim 2 .
4. The reconstruction means is configured to include a mismatch error re-notification means, This mismatch error re-notification means includes: (1) Extracting the transfer quantity of the target security token from the transfer source account to the transfer destination account from the transfer data reacquired by the transfer data reacquisition means, and judging whether or not the calculated pre-transfer balance data obtained by adding the transfer quantity to the balance data of the target security token for the transfer source account acquired by the balance data reacquisition means matches the updated balance data of the target security token at the start of the reconstruction for the transfer source account stored in the past balance storage means, and judging whether or not the calculated pre-transfer balance data obtained by subtracting the transfer quantity from the balance data of the target security token for the transfer destination account acquired by the balance data reacquisition means matches the updated balance data of the target security token for the transfer destination account at the start of the reconstruction for the target security token stored in the past balance storage means, and executing a pre-transfer balance based comparison process that re-notifies a mismatch error indicating a mismatch if at least one of the transfer source or the transfer destination does not match, or (2) Extracting the transfer quantity of the target security token from the transfer source account to the transfer destination account from the transfer data reacquired by the transfer data reacquisition means, determining whether or not the calculated post-transfer balance data obtained by subtracting the transfer quantity from the updated balance data of the target security token at the start of reconstruction for the transfer source account stored in the past balance storage means matches the balance data of the target security token for the transfer source account acquired by the balance data reacquisition means, and determining whether or not the calculated post-transfer balance data obtained by adding the transfer quantity to the updated balance data of the target security token at the start of reconstruction for the transfer destination account stored in the past balance storage means matches the balance data of the target security token for the transfer destination account acquired by the balance data reacquisition means, and executing a post-transfer balance based comparison process that re-notifies a mismatch error indicating a mismatch if at least one of the transfer source or the transfer destination does not match, Furthermore, when the mismatch error is notified again, a command is sent to the reconstruction start point receiving means to execute a process of receiving an instruction input of a new reconstruction start point. The token balance management system according to claim 3 .
5. The latest block number acquisition means Each time the latest block number is acquired, the acquired latest block number is compared with the previous block number acquired at the time of the previous balance update stored in the block number storage means to determine whether the number has increased or not, and if the number has not increased, an abnormality notification process is executed to notify that an abnormality may have occurred in the blockchain system including the node. The token balance management system according to claim 1 .
6. and a notification means for notifying a person in charge of the company that a transfer has been made from an account managed by another financial institution when the balance data acquisition means determines that the account information of the transfer source account extracted from the transfer data is account information of an account that does not exist in the token balance database. The token balance management system according to claim 1 .
7. A program for causing a computer to function as the token balance management system according to any one of claims 1 to 6.
Citation Information
Patent Citations
Financial commodity purchase system, financial commodity purchase method, transaction server, and computer program
JP2022068758A
Dividend payment system, block chain system, payment control system, dividend paying method, and computer program
JP2022138078A
Transaction recording systems and programs
JP6629908B2
JPP6629908B
