An anti-fraud collaboration system based on blockchain
Through the anti-fraud collaboration system based on the blockchain, using the token issuance center and asymmetric encryption algorithm, it solves the problems of traditional database systems that are difficult to achieve identity authentication and data tamper-proofing, and provides a safe and trustworthy letter delivery platform. Ensure the safety and reliability of account freezing and unfreezing operations.
Patent Information
- Application Number
- CN202410598081.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-05-15
AI Technical Summary
In scenarios where accounts need to be frozen, it is difficult for traditional database systems to achieve identity authentication and data tamper-proofing, resulting in the possibility of funds being transferred again.
Adopt a blockchain-based anti-fraud collaboration system, collaborate through user nodes and bank nodes in the blockchain system, and use the token issuance center and asymmetric encryption algorithms to achieve identity authentication and token authentication to ensure the security of correspondence Tamper resistance of delivery and data.
It provides a trustworthy letter delivery platform for both parties, ensuring that the recipient and sender can perform digital authentication, the letter cannot be tampered with, and the recipient can trace the source and authenticate the letter.
Smart Images

Figure CN118195768B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to an anti-fraud collaboration system based on blockchain. Background Art
[0002] In the scenario where an account needs to be frozen, in order to freeze the relevant accounts, it is necessary to analyze the relevant bank accounts, send a letter with a seal and fax it to each bank, and request to freeze the target account. During this period, funds are easily transferred again. Traditional database systems are difficult to implement identity authentication and data tamper-proof functions, and can only be done in the form of paper letters with seals. Summary of the invention
[0003] In order to solve the above problems, the present invention proposes an anti-fraud collaboration system based on blockchain.
[0004] The specific plan is as follows:
[0005] A blockchain-based anti-fraud collaboration system, comprising: a blockchain system and a token issuance center;
[0006] The blockchain system includes two types of network nodes: user nodes and bank nodes; the blockchain system includes two types of blocks: collaboration letter blocks and feedback letter blocks; the content of the block header of each block includes a token; the content of the block body of each block includes a list of public keys of the letter recipient, the public key of the letter sender, and the letter content;
[0007] The token issuance center is used to receive token application requests and determine whether the token of the corresponding block has been issued based on the block unique code of the block to be inserted carried in the token application request. If yes, the token issuance is rejected and a notification of application failure is returned to the request sender; otherwise, a token of the corresponding block is generated and returned to the request sender;
[0008] After receiving the bank account information to be frozen or unfrozen, the user node sends a token application request corresponding to the collaboration letter block to the token issuance center; when the user node receives the token corresponding to the returned collaboration letter block, it generates a collaboration letter block and inserts it into the local blockchain, and synchronizes it with other nodes in the blockchain system;
[0009] After receiving the synchronization information, other nodes perform identity authentication and token authentication. If both authentications pass, the synchronization operation is performed;
[0010] Based on the synchronized cooperation letter block, the bank node determines whether the bank system corresponding to the node needs to cooperate. If necessary, it issues a freeze or unfreeze instruction to the corresponding bank system.
[0011] When the bank node receives the freezing or thawing completion notification returned by the bank system, it sends a token application request corresponding to the feedback letter block to the token issuance center; after obtaining the token corresponding to the feedback letter block, it generates a feedback letter block and inserts it into the local blockchain, and synchronizes it with other nodes in the blockchain system;
[0012] After receiving the synchronization information, other nodes perform identity authentication and token authentication. If both authentications pass, the synchronization operation is performed;
[0013] The user node determines whether a feedback operation needs to be performed based on the feedback letter block obtained synchronously. If necessary, the user node will provide feedback based on the feedback letter information extracted from the feedback letter block.
[0014] Furthermore, the collaboration letter block and the feedback letter block correspond to different letter contents, wherein the letter content corresponding to the collaboration letter block includes: letter type, case unique code, bank account list and an indication of whether the bank account needs to be unfrozen or frozen; the letter content corresponding to the feedback letter block includes: letter type, case unique code, bank account list, and the bank account list includes an indication of whether each bank account therein has been successfully frozen or unfrozen.
[0015] Furthermore, the token issuing center generates a token based on the public key of the request sender carried in the token application request and the block unique code of the block to be inserted.
[0016] Furthermore, an asymmetric encryption algorithm is used in the identity authentication process, and each node includes its own separate private key and public key, wherein the private key is stored by the node alone, and the public key is shared by all nodes in the blockchain network; in identity authentication, the corresponding node of the letter sender encrypts the content of the collaboration letter block or feedback letter block to be inserted by its private key before inserting it; after the corresponding node of the letter receiver receives the synchronization information, it uses the public key of the letter sender stored therein to decrypt the content of the collaboration letter block or feedback letter block, and successful decryption indicates that the identity authentication has passed.
[0017] Furthermore, token authentication adopts an asymmetric encryption algorithm, the token issuance center stores a private key for token authentication, and each node stores a public key for token authentication; in token authentication, the token issuance center encrypts the token content with the private key for token authentication stored therein to obtain the token; after the corresponding node of the letter sender receives the token, it adds it to the collaboration letter block or feedback letter block to be inserted; after the corresponding node of the letter receiver receives the synchronization information, it uses the public key used for token authentication to decrypt the token in the collaboration letter block or feedback letter block, and determines whether the public key of the token holder obtained by decryption is consistent with the public key of the letter sender, and the block unique code does not exist in the block. If both conditions are met, the token authentication is determined to be successful.
[0018] Furthermore, the block header of each block also includes the hash value of the previous block header, the hash value of the current block body and a timestamp.
[0019] Furthermore, when a node determines whether the corresponding bank system needs to cooperate and whether a feedback operation needs to be performed, it is based on the list of public keys of the recipients of the letter in the block.
[0020] The present invention adopts the above technical solution and has the following beneficial effects:
[0021] (1) Provide a mutually trustworthy letter delivery platform.
[0022] (2) Both the recipient and the sender can perform digital authentication.
[0023] (3) It is impossible to tamper with the letter, and the recipient can trace the letter and verify its authenticity. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 Shown is a schematic diagram of the structure of the system in an embodiment of the present invention.
[0025] Figure 2 The figure shows a schematic diagram of the data structure of the blockchain in this embodiment.
[0026] Figure 3 Shown is a flow chart of the system execution in this embodiment. DETAILED DESCRIPTION
[0027] To further illustrate various embodiments, the present invention provides drawings. These drawings are part of the disclosure of the present invention, which are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in this field should be able to understand other possible implementations and advantages of the present invention.
[0028] The present invention will now be further described with reference to the accompanying drawings and specific implementation methods.
[0029] Embodiment 1:
[0030] The embodiment of the present invention provides an anti-fraud collaboration system based on blockchain, such as Figure 1 As shown, it includes a blockchain system and a token issuance center.
[0031] The blockchain system used in this embodiment is the same as the network architecture of the traditional Bitcoin blockchain system, and both use a decentralized network architecture. Different from the traditional Bitcoin blockchain system, the blockchain used in this embodiment cancels the proof-of-work mechanism and instead uses a token center to confirm the right to record accounts. You need to apply for a token from the token issuance center before you have the right to insert a new block. Similar to the traditional Bitcoin blockchain system, the blockchain used in this embodiment also uses certificates for identity authentication, and each node identity has a public key and private key certificate to match its identity.
[0032] There are two types of network nodes in the blockchain network of this embodiment, namely user nodes and bank nodes. Each node maintains a blockchain (called a local blockchain). In the case of full synchronization, the contents of the local blockchains of all nodes are consistent.
[0033] User nodes are located in each authorized case management unit and are responsible for inserting collaboration letter blocks into the blockchain to request the bank to collaborate.
[0034] The bank node is located in each bank unit with the authority to freeze accounts. It is responsible for receiving the cooperation letter block and freezing or unfreezing the bank account. After the freezing or unfreezing is completed, the feedback letter block is inserted into the blockchain to feedback the freezing or unfreezing results to the user node.
[0035] like Figure 2 As shown, the blockchain used in this embodiment is similar to the data structure of the traditional blockchain, and is also a chain structure formed by linking blocks one by one. Among them, the block is composed of a block header and a block body. The function of the block header is to verify the accuracy of the data and prevent the block information from being tampered with. The block header contains: 1. The hash value of the previous block header; 2. The timestamp; 3. The token; 4. The hash value of the current block body. Since the token mechanism is adopted in this embodiment, the block header used in this embodiment cancels the difficulty and Nonce answer fields compared with the block header of the traditional blockchain, and adds a token field.
[0036] The principle of anti-tampering is that the block header contains the hash value of the previous block's block header, and the hash value of the previous block's block header contains the hash value of its own block body. If the content of any block is tampered with, the hash values of subsequent blocks will not correspond.
[0037] The function of the block body is to store data. In this embodiment, the block body includes: 1. A list of public keys of the recipient of the letter; 2. A public key of the sender of the letter; 3. The content of the letter. The corresponding letter content is different for different block types. Since the block types include collaboration letter blocks and feedback letter blocks, the letter content also includes two types of collaboration letter information and feedback letter information. Among them, the collaboration letter information includes the letter type (collaboration letter or feedback letter), the case unique code, the bank account list, and the identification of whether the bank account needs to be unfrozen or frozen. The feedback letter information includes: letter type, case unique code, bank account list, and the bank account list contains an identification of whether each bank account has been successfully frozen or unfrozen. The bank account list can also include information such as account number, bank of account, account holder, frozen or unfrozen amount, etc., which is not limited here. Technical personnel in this field can set the content of the bank account list according to their needs.
[0038] The specific data structure used in this embodiment is as follows:
[0039] / / Bank account list
[0040] interface bankCardInfo{
[0041] number: String,
[0042] bank: String,
[0043] name: String,
[0044] state: Boolean,
[0045] money: Number
[0046] }.
[0047] / / Blockchain
[0048] let Blockchain = [
[0049] / / Block
[0050] {
[0051] / / Block header
[0052] header: {
[0053] prevHash: String,
[0054] timeStamp: Number,
[0055] token: String,
[0056] bodyHash: String
[0057] },
[0058] / / Block body
[0059] body: {
[0060] receivers: Array <string>,
[0061] sender: String,
[0062] / / Letter content
[0063] content: {
[0064] type: String,
[0065] caseNumber: Array <bankcardinfo>,
[0066] state: Boolean,
[0067] }
[0068] }
[0069] }
[0070] ].
[0071] The token issuance center is used to receive token application requests and determine whether the token of the corresponding block has been issued based on the unique block code of the block to be inserted carried in the token application request. If so, the token issuance is rejected and a notification of application failure is returned to the request sender; otherwise, it means that the request sender has the accounting right of the block, and a token for the corresponding block is generated and returned to the request sender.
[0072] If a node in the blockchain network wants to insert a block into the blockchain, it needs to first send a token application request to the token issuing center, which includes the public key of the request sender and the block unique code (ID) of the block to be inserted. The token issuing center generates a token based on the public key of the request sender and the block unique code of the block to be inserted carried in the token application request.
[0073] In this embodiment, each block uses the serial number of the block in the blockchain as a unique code, for example, the unique code of the first block is 0, the unique code of the 12th block is 11, and so on.
[0074] like Figure 3 As shown, based on the above system, the embodiment adopts the following steps to achieve anti-fraud collaboration between the case management unit and the bank.
[0075] S1: After receiving the bank account information to be frozen or unfrozen, the user node sends a token application request corresponding to the collaboration letter block to the token issuance center; when the user node receives the token corresponding to the returned collaboration letter block, it generates a collaboration letter block and inserts it into the local blockchain, and synchronizes it with other nodes in the blockchain system.
[0076] S2: After receiving the synchronization information, other nodes perform identity authentication and token authentication. If both authentications pass, the synchronization operation is performed.
[0077] S3: Based on the synchronized cooperation letter block, the bank node determines whether the cooperation of the bank system corresponding to the node is required. If necessary, it issues a freeze or unfreeze instruction to the corresponding bank system.
[0078] S4: When the bank node receives the freezing or thawing completion notification returned by the bank system, it sends a token application request corresponding to the feedback letter block to the token issuance center; after obtaining the token corresponding to the feedback letter block, it generates a feedback letter block and inserts it into the local blockchain, and synchronizes it with other nodes in the blockchain system.
[0079] S5: After receiving the synchronization information, other nodes perform identity authentication and token authentication. If both authentications pass, the synchronization operation is performed.
[0080] S6: The user node determines whether a feedback operation needs to be performed based on the feedback letter block obtained synchronously. If necessary, the user node provides feedback based on the feedback letter information extracted from the feedback letter block.
[0081] During the execution of the above steps, the user node and the bank node are connected to the corresponding external system respectively, such as the anti-fraud system deployed in the case management unit for system connection, and the bank account information (such as bank card number) to be frozen or unfrozen is received from the anti-fraud system in step S1; and the feedback letter information is fed back to the anti-fraud system in step S6. The bank node connects to the bank system, sends the bank account information to the bank system, and realizes unfreezing or freezing through the bank system.
[0082] The above authentication process includes identity authentication and token authentication, both of which use asymmetric encryption algorithms (using but not limited to the SM2 algorithm). The basic principle of the asymmetric encryption algorithm is that the public key and the private key are a pair, and the content encrypted by the public key can only be decrypted by the private key, and the content encrypted by the private key can only be decrypted by the public key. Each node corresponds to a separate set of public and private keys for identity authentication, and its private key is stored in the corresponding node, and the public key is shared by all nodes. The token issuance center also corresponds to a set of public and private keys for token authentication, and its private key is stored in the token issuance center, and the public key is also shared by all nodes.
[0083] The traditional way of identity authentication for letters is to stamp paper documents with official seals. In the information age, another way of identity authentication is digital certificates, which realize identity authentication through digital encryption technology. In the identity authentication adopted in this embodiment, the corresponding node of the letter sender encrypts the content of the collaboration letter block or feedback letter block to be inserted by its private key before inserting it. After receiving the synchronization information, the corresponding node of the letter receiver uses the public key of the letter sender stored therein to decrypt the content of the collaboration letter block or feedback letter block. Successful decryption indicates that the identity authentication has passed. Through the above-mentioned identity authentication method, it can be proved that the letter is indeed sent by the sender of the letter and the content has not been illegally tampered with in the middle.
[0084] In token authentication, the token issuing center obtains the token after encrypting the token content with the private key stored for token authentication. After the corresponding node of the letter sender receives the token, it adds it to the collaboration letter block or feedback letter block to be inserted; after the corresponding node of the letter receiver receives the synchronization information, it uses the public key used for token authentication to decrypt the token in the collaboration letter block or feedback letter block, and determines whether the public key of the token holder obtained by decryption is consistent with the public key of the letter sender, and the block unique code does not exist in the block. If both conditions are met, the token authentication is determined to be passed. The above token authentication method can solve the problem of accounting rights conflict and token forgery.
[0085] After the bank node performs the synchronization operation, it needs to determine whether the corresponding bank system needs to cooperate. In this embodiment, the judgment is made based on the list of public keys of the letter recipients in the block. If the public key corresponding to the node is in the list of public keys of the letter recipients, it is determined that the corresponding bank system needs to cooperate. The way in which the user node determines whether the feedback operation needs to be performed is also based on the list of public keys of the letter recipients in the block, which is the same as the above judgment method and will not be repeated here.
[0086] In addition, since the corresponding processing operations of the banking system often take a long time, and new blocks may be added to the blockchain during this period, when the node receives the processing results of the returned bank account, it is impossible to quickly find the corresponding block. In order to solve this technical problem, the index of the block is constructed in this embodiment so that the block can be associated with the case number and the bank card number more quickly to speed up the search. The index is updated at the same time as the blockchain is updated. The index structure used in this embodiment is as follows: the case number and the block unique code association index and the bank card number and the block unique code association index. When the case number is known, all related block unique codes can be quickly found according to the above index, and the content in the block can be quickly found according to the block unique code.
[0087] The data structure of the case number and block unique code association index is as follows
[0088] let indexes = {
[0089] 'Case Number': 'Block unique code'
[0090] }.
[0091] The key code to get the block according to the case number is as follows:
[0092] function getBlockInfo(idcard){
[0093] let blockId = indexes[caseId]; / / Get the unique code of the block in the index based on the ID number
[0094] let blockInfo = blockchain[blockId]; / / Get the block in the blockchain based on the block's unique code
[0095] return blockInfo;
[0096] }.
[0097] The data structure of the bank card number and the block unique code association index and the method of obtaining information are similar and will not be repeated here.
[0098] Although the present invention has been specifically shown and described in conjunction with the preferred embodiments, it should be understood by those skilled in the art that various changes may be made to the present invention in form and details without departing from the spirit and scope of the present invention as defined by the appended claims, all of which are within the scope of protection of the present invention.< / bankcardinfo> < / string>
Claims
1. A blockchain-based anti-fraud collaboration system, characterized in that: include: Blockchain system and token issuance center; The blockchain system includes two types of network nodes: user nodes and bank nodes; The blockchain system includes two types of blocks: collaboration letter blocks and feedback letter blocks; the content of the block header of each block includes a token; the content of the block body of each block includes a list of public keys of the letter recipient, the public key of the letter sender, and the letter content; The token issuance center is used to receive token application requests and determine whether the token of the corresponding block has been issued based on the block unique code of the block to be inserted carried in the token application request. If yes, the token issuance is rejected and a notification of application failure is returned to the request sender; Otherwise, generate a token for the corresponding block and return it to the request sender; After receiving the bank account information to be frozen or unfrozen, the user node sends a token application request corresponding to the collaboration letter block to the token issuance center; When the user node receives the token corresponding to the returned collaboration letter block, it generates a collaboration letter block and inserts it into the local blockchain, and synchronizes it with other nodes in the blockchain system; After receiving the synchronization information, other nodes perform identity authentication and token authentication. If both authentications pass, the synchronization operation is performed; Based on the synchronized cooperation letter block, the bank node determines whether the bank system corresponding to the node needs to cooperate. If necessary, it issues a freeze or unfreeze instruction to the corresponding bank system. When the bank node receives the freezing or thawing completion notification returned by the bank system, it sends a token application request corresponding to the feedback letter block to the token issuance center; after obtaining the token corresponding to the feedback letter block, it generates a feedback letter block and inserts it into the local blockchain, and synchronizes it with other nodes in the blockchain system; After receiving the synchronization information, other nodes perform identity authentication and token authentication. If both authentications pass, the synchronization operation is performed; The user node determines whether a feedback operation needs to be performed based on the feedback letter block obtained synchronously. If necessary, the user node will provide feedback based on the feedback letter information extracted from the feedback letter block.
2. The blockchain-based anti-fraud collaboration system according to claim 1 is characterized by: The collaboration letter block and the feedback letter block correspond to different letter contents. The letter content corresponding to the collaboration letter block includes: letter type, case unique code, bank account list and an indication of whether the bank account needs to be unfrozen or frozen; the letter content corresponding to the feedback letter block includes: letter type, case unique code, bank account list, and the bank account list includes an indication of whether each bank account therein has been successfully frozen or unfrozen.
3. The blockchain-based anti-fraud collaboration system according to claim 1 is characterized in that: The token issuance center generates a token based on the public key of the request sender carried in the token application request and the block unique code of the block to be inserted.
4. The blockchain-based anti-fraud collaboration system according to claim 1 is characterized in that: An asymmetric encryption algorithm is used in the identity authentication process. Each node includes its own private key and public key, where the private key is stored by the node alone and the public key is shared by all nodes in the blockchain network. In identity authentication, the corresponding node of the letter sender encrypts the content of the collaboration letter block or feedback letter block to be inserted with its private key before inserting it. After receiving the synchronization information, the corresponding node of the letter receiver uses the public key of the letter sender stored in it to decrypt the content of the collaboration letter block or feedback letter block. Successful decryption indicates that the identity authentication has passed.
5. The blockchain-based anti-fraud collaboration system according to claim 1 is characterized in that: Token authentication uses an asymmetric encryption algorithm. The token issuance center stores the private key used for token authentication, and each node stores the public key used for token authentication. In token authentication, the token issuing center encrypts the token content using the private key stored for token authentication to obtain the token; After receiving the token, the corresponding node of the letter sender adds it to the collaboration letter block or feedback letter block to be inserted; After the corresponding node of the letter recipient receives the synchronization information, it uses the public key used for token authentication to decrypt the token in the collaboration letter block or the feedback letter block, and determines whether the public key of the token holder obtained by decryption is consistent with the public key of the letter sender, and the block unique code does not exist in the block. If both conditions are met, the token authentication is determined to be successful.
6. The blockchain-based anti-fraud collaboration system according to claim 1 is characterized in that: The block header of each block also includes the hash value of the previous block header, the hash value of the current block body, and a timestamp.
7. The blockchain-based anti-fraud collaboration system according to claim 1 is characterized in that: When a node determines whether it needs to cooperate with the corresponding bank system and whether it needs to perform a feedback operation, it makes the judgment based on the public key list of the letter recipient in the block.
Citation Information
Patent Citations
Authentication method and authentication system among mobile devices
CN104951937A
Method and system for enhanced login credential security via blockchain
CN110445612A
Consensus method applied to miner nodes in block chain system and block chain system
CN110705973A
Letter transmission method based on block chain and related equipment
CN111309812A
Block chain node accounting method, device and equipment and storage medium
CN111371556A
