Family service practitioner credit information management system based on block chain
By designing a blockchain-based credit information management system in the domestic service industry, using multi-node networks and algorithms to ensure the authenticity and tamper-proofness of credit information, the problem of credit loss is solved and the operation of blockchain on the mobile phone is improved. Efficiency enhances market order and consumer trust.
Patent Information
- Application Number
- CN202410975024.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-12-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The lack of credit in the domestic service industry is serious, and existing technology is difficult to effectively manage the credit information of domestic service practitioners. The lightweight blockchain technology cannot meet the needs of mobile phones, affecting market order and consumer trust.
A credit information management system for housekeeping practitioners based on blockchain was designed. Through a blockchain network composed of housekeeping store nodes, housekeeping practitioner nodes and consumer nodes, the algorithm is used to generate candidate nodes to ensure the authenticity of credit information and Tamper-proof and improve the operating efficiency of blockchain through the separation of content information storage and verification.
It realizes the authenticity and reliability of credit information of domestic practitioners and improves the efficiency of blockchain operation on mobile devices, and enhances consumers' trust in domestic services and the stability of market order.
Smart Images

Figure CN119067766A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of domestic services, and in particular to a credit information management system for domestic service practitioners based on blockchain. Background Art
[0002] According to the survey, the lack of credit in my country's domestic service industry has become a key factor restricting the healthy development of the domestic service industry. Some domestic service workers concealed real information, some domestic service companies made false propaganda, and cases of damaging consumer interests occurred frequently. These phenomena seriously disrupted the order of the domestic service market and had an adverse impact on the healthy development of the domestic service industry. Therefore, it is urgent to establish a complete and authentic credit information management system for domestic service practitioners so that consumers can be informed and services can be queried.
[0003] Although the "Housekeeping Credit Check" applet supports housekeeping companies in establishing credit records for housekeeping workers, conducts professional background information verification and checks, and can provide consumers with free credit information query services for housekeeping companies and housekeeping workers, this work not only relies on the subjective initiative of housekeeping service agencies and housekeeping workers, but the current coverage of promotion and use is not enough, and the effect of implementation is not ideal. At the same time, most housekeeping credit platforms lack effective participation of consumers in the construction process, and the authenticity of service evaluation has not been completely resolved.
[0004] Currently, mainstream blockchain operations rely on node computers with abundant computing resources. Lightweight blockchain technology that runs directly on mobile phones is still relatively scarce and cannot meet the needs of mobile phones to participate in blockchain construction.
[0005] Therefore, the present invention provides a credit information management system for domestic workers based on blockchain to solve the above-mentioned related technical problems. Summary of the invention
[0006] The purpose of the present invention is to provide a credit information management system for domestic workers based on blockchain. The blockchain described in the present invention is composed of three categories: domestic store nodes, domestic worker nodes, and consumer nodes. The domestic store nodes are responsible for reviewing the authenticity of information and supervising the generation of blockchains. The domestic worker nodes and consumer nodes actively generate blockchain content. The domestic store nodes generate candidate nodes according to the algorithm. Domestic workers upload or update personal information, update order information, upload certificate information, etc. Consumer nodes upload business order scores, evaluation information, etc., and will actively broadcast to the blockchain to apply to become an accounting node. The candidate nodes vote to elect accounting nodes to generate blockchains to ensure that the credit information of domestic workers is authentic, reliable, and tamper-proof. At the same time, in order to smoothly run the blockchain on mobile devices, the volume of the block is compressed by separating the content information storage from the verification, and the operation efficiency of the blockchain is improved.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] The present invention provides a credit information management system for domestic service practitioners based on blockchain, including a user authentication unit, a blockchain role management unit, an A-type node unit, a B-type node unit, a data processing unit, a block generation unit, a key management unit, a data conversion unit, and an information query unit, wherein:
[0009] The user authentication unit is used to complete the registration, information verification of domestic service practitioners and consumer accounts, and issue the B-type role identity code during login. When a domestic service practitioner node or a consumer node logs in to the system, the user authentication unit generates a random B-type role identity code, which is sent to the login node flag bit and broadcasts information to the blockchain role management unit.
[0010] The blockchain role management unit is used to complete the on-chain verification of domestic service store nodes, domestic service practitioner nodes and consumer nodes, and after verifying through the received role identity code, add the domestic service store node to the A-type node unit, and add the domestic service practitioner node and the consumer node to the B-type node unit.
[0011] The A-type node unit is used to generate candidate nodes or A-type bookkeeping nodes. The A-type nodes include N domestic service store nodes, and the initial domestic service store nodes are not less than 4. The A-type nodes calculate their own weight value chance(x) and compare it with the set value K. When the number of A-type nodes that meet the condition of chance(x) < K satisfies [0.2*N, 0.5*N], the candidate nodes are elected and broadcast to the whole network, otherwise, candidate nodes are reselected. The life cycle of the candidate nodes is determined by the number N of A-type nodes. When there is no application from B-type bookkeeping nodes in the entire blockchain, the candidate nodes select A-type bookkeeping nodes from the non-candidate nodes in the A-type nodes and continuously complete the generation of the blockchain.
[0012] Preferably, the self-weight value chance(x) satisfies the relational expression:
[0013] chance t (x) = find 1,2 ((1 - chance t-1 (x)) * rand (0,1) (decimal).f ID (x) / rand (0,100) (prime))
[0014] chance0(x) = * rand (0,1) (decimal)
[0015] where t is the time series, f ID() To obtain a class A node number, find 1,2 () is used to obtain the first two digits of the decimal part of a value, rand() is used to obtain a random value, chance0(x) is the initial weight value of the A-type node x, decimal is a decimal, and prime is a prime number.
[0016] Preferably, the set value K is determined by all the A-type nodes rand (0,1) The k-means cluster center value with the largest (decimal) value is determined.
[0017] Preferably, the Class A accounting node is responsible for completing the generation and uploading of non-business blocks. Only when there is no Class B accounting node application in the blockchain, the candidate node broadcasts to the Class A non-candidate node. At this time, the Class A non-candidate node issues a Class A accounting node application. The Class A accounting node is executed by the non-candidate node to calculate the work value worker(x) and broadcast it to the candidate node. The candidate node selects the node with the maximum value according to the size of the node work value, and the calculated work value worker(x) satisfies the relationship:
[0018] worker(x) = find last (AES 256 (f ID (x)+rand (0,1) (decimaxl)))
[0019] Among them, AES 256 () is to calculate the 256-bit key value through the AES algorithm, find last () is to find the ASCII code value of the last character of a string.
[0020] The Class B node unit is used to generate Class B accounting nodes under the supervision of candidate nodes. Class B nodes are composed of housekeeping business worker nodes and consumer nodes. When housekeeping practitioners upload or update their personal information, update order information, or consumers rate or comment on the business orders of housekeeping practitioners, the housekeeping practitioners or consumers actively submit Class B accounting node applications through mobile phone programs. When multiple Class B nodes submit Class B accounting node applications, the candidate nodes determine the order of Class B accounting nodes according to timestamps. When the current Class B accounting node is working, other Class B accounting nodes enter the Class B accounting node buffer pool according to timestamp order.
[0021] The data storage processing unit is used to process information about housekeeping service personnel in the Class B accounting nodes, including information uploaded and updated by housekeeping service personnel and information such as scores and comments given by consumers to service orders of housekeeping service personnel.
[0022] Preferably, the method for the data storage processing unit to process the information content of the Class B accounting node is:
[0023] The information content is hashed to generate a Merkle directed acyclic graph (Merkle DAG). The data storage processing unit passes the Merkle DAG and the home worker data header to the Class B accounting node and the key management unit respectively, and passes the information content, Merkle DAG and the home worker data header to the data storage center.
[0024] The data storage center is a storage matrix, which includes at least 3 storage devices, which complete data synchronization and backup with each other, and are responsible for receiving and storing block content and home worker data headers. The data storage center maps the MerkleDAG tree structure through the directory code book, divides the data content into 256kb sizes, and uses the first 8 bits of the hash value of each file block of the Merkle DAG as the directory name, and the last 38 bits of the hash value of each file block of the Merkle DAG as the file name, and stores them in a dispersed manner according to the file directory tree mapped by the Merkle DAG.
[0025] The directory code book is used to generate a tree directory structure consistent with Merkle DAG, which is used to disperse the storage of block content information. There is only one tree directory on a single storage device. After the current block content is stored, the directory code book is updated unidirectionally from the data storage center to the data conversion unit.
[0026] The blockchain generation unit is used to guide the current accounting node to generate blocks and update the blockchain.
[0027] Preferably, the block content of the Class A accounting node includes the hash value of the previous block, the data header and Merkle DAG of the housekeeping practitioners in the previous block, the timestamp, and the current Class A accounting node information; the block content processed by the Class B accounting node includes the hash value of the previous block, the data header and Merkle DAG of the housekeeping practitioners transmitted by the data storage processing unit, the timestamp, and the current Class B accounting node information, generates the current block information, and broadcasts the updated blockchain.
[0028] The key management unit is used to send the received Merkle DAG as the storage key to the corresponding data bit of the housekeeping worker's account according to the housekeeping worker's data header, and the housekeeping worker determines the key sending authority.
[0029] The data conversion unit is used to combine the received Merkle DAG with the directory code book, propose the information content of the corresponding housekeeping practitioner, and send it to the information query unit.
[0030] The information inquiry unit is used to provide consumers with credit information inquiry services for domestic workers.
[0031] Preferably, when a consumer inputs information about a domestic worker, the information query unit can only query the basic public information of the domestic worker. When detailed information needs to be queried, a query application can be sent to the domestic worker. After confirmation by the domestic worker in the system, the storage key is pushed to the consumer access interface. The information query unit verifies the authenticity of the storage key through the blockchain. After confirmation, the storage key and the domestic worker information provided by the consumer are used to extract content data from the data conversion unit. After successful extraction, all records of the domestic worker are returned to the consumer, including evaluations of other consumers on their services. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments of the present invention or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 A flowchart of a method for implementing a credit information management system for domestic workers based on blockchain provided by the present invention;
[0034] Figure 2 A schematic diagram of the functional modules of a blockchain-based credit information management system for domestic workers provided by the present invention. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention; it is obvious that the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] In the description of the present invention, unless otherwise clearly defined, terms such as blockchain, block, hash, Merkle DAG, and accounting should be understood in a broad sense, and technicians in the technical field can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific content of the technical solution.
[0037] The solution of the present application is further described below in conjunction with the accompanying drawings.
[0038] See also Figure 1, which shows a flow chart of a method for implementing a credit information management system for domestic workers based on blockchain provided by an embodiment of the present invention, which includes process processing units such as a user authentication unit, a blockchain role management unit, a class A node unit, a class B node unit, a data processing unit, a block generation unit, a key management unit, a data conversion unit, and an information query unit.
[0039] Those skilled in the art will understand that Figure 1 The credit information management system for domestic workers shown divides the node roles into three types according to the implementation process of the domestic service business, namely, domestic service store nodes, domestic service practitioner nodes, and consumer nodes, and divides them into two categories according to the blockchain generation process, namely, Class A nodes and Class B nodes. Class A nodes are composed of domestic service store nodes, and Class B nodes are composed of domestic service practitioner nodes and consumer nodes. Class A nodes are operated through computer programs, and Class B nodes work through mobile phone programs.
[0040] In this embodiment, the credit information management system for domestic workers requires at least three participants: a domestic service company, domestic workers, and consumers. The domestic service company is responsible for building the credit information management system for domestic workers, verifying the authenticity of information, and providing credit information query services for domestic workers. Domestic workers are responsible for uploading personal information, generating and updating order information, providing corresponding certificate information, etc. Consumers score and evaluate domestic worker service orders.
[0041] Among them, Class A nodes give priority to electing candidate nodes to be responsible for information review and supervision of blockchain generation. Class B nodes generate Class B accounting nodes under the supervision of candidate nodes. When there is no Class B accounting node application in the blockchain, Class A non-candidate nodes are responsible for electing Class A accounting nodes to continue the continuous operation of the blockchain. It can be understood that when domestic workers and consumers do not submit information, the blockchain needs to continuously generate new blocks to ensure the continuous operation of the blockchain and enhance the blockchain's anti-tampering capabilities.
[0042] In this embodiment, at least four housekeeping store nodes are required as creation nodes. The housekeeping stores apply for login to the user authentication unit through a computer program and an assigned account number, password, and 32-bit Class A role identity code.
[0043] In this embodiment, domestic workers and consumers need to apply for account registration to the user authentication unit through a mobile phone program. When logging in after the account registration is completed, the user authentication unit sends a Class B role identity code to the mobile phone program of the domestic worker and consumer, and sends the account message and Class B role identity code to the blockchain role management unit. The Class B role identity code consists of 8 random characters.
[0044] The blockchain role management unit is responsible for verifying the role identity code of the node applying for on-chain access and broadcasting it to the entire blockchain.
[0045] Among them, after the genesis node is successfully linked to the chain, the first genesis node generates a genesis block according to the timestamp. The content of the genesis node includes a hash value calculated from a random number, a timestamp, and genesis node information. After the genesis block is generated, the genesis node initializes the entire blockchain. The housekeeping store nodes that are not genesis nodes are added to the Class A node unit after being linked to the chain, and the housekeeping practitioners and consumers are added to the Class B node unit after being linked to the chain.
[0046] In this embodiment, the A-type node unit gives priority to generating candidate nodes. The candidate nodes are responsible for electing accounting nodes, supervising the generation of blocks and the update of blockchains. The candidate nodes are generated by the A-type nodes by calculating their own weight value chance(x) and comparing it with the set value K. When the number of nodes that meet the condition of chance(x)<K satisfies [0.2*N, 0.5*N], the candidate node is elected and broadcasted to the whole network. Otherwise, the candidate node is re-selected. The life cycle of the candidate node is T N Determined by the number of type A nodes N.
[0047] The weight value chance(x) of type A node satisfies the relationship:
[0048] chance t (x) = find 1,2 ((1-chance t-1 (x))*rand (0,1) (decimal).f ID (x) / radn (0,100) (prime)
[0049] chance0(x)=*rand (0,1) (decimal)
[0050] Among them, t is the time series, f ID () To obtain a class A node number, find 1,2 () is used to obtain the first two digits of the decimal part of a value, rand() is used to obtain a random value, chance0(x) is the initial weight value of the A-type node x, decimal is a decimal, and prime is a prime number.
[0051] The value of the set value K is determined by all the A-type nodes rand (0,1) The k-means cluster center value with the largest (decimal) value is determined.
[0052] Candidate node life cycle T N , represents the number of blocks generated by the current candidate node supervision, satisfying the relationship:
[0053] T N =N*k
[0054] Where N is the number of type A nodes, k is a constant, and the default value is 2.
[0055] It can be understood that the generation of Class A candidate nodes is through the combination of the current random weight value and the weight value of the previous link of the node, to avoid the phenomenon that the candidate node is held by a certain node for a long time. At the same time, the life cycle of the candidate node T N It can reasonably control the survival range of the current candidate nodes, prevent a certain housekeeping store node from being breached and affecting the operation of the entire blockchain, and improve the security of the entire system.
[0056] In this embodiment, after the candidate node is generated, it will be broadcast to the entire blockchain and begin to accept Class B accounting node applications. Class B nodes are composed of housekeeping business worker nodes and consumer nodes. When housekeeping practitioners upload or update their personal information, update order information, or consumers rate or comment on the business orders of housekeeping practitioners, the housekeeping practitioners or consumers will actively submit Class B accounting node applications. When multiple Class B nodes submit Class B accounting node applications, the candidate nodes determine the order of Class B accounting nodes according to timestamps. When the current Class B accounting node is working, other Class B accounting nodes enter the Class B accounting node buffer pool in timestamp order. When there is no Class B accounting node application in the entire blockchain, the candidate node selects a Class A accounting node from the non-candidate node in the Class A node to continuously complete the generation of the blockchain.
[0057] Class A accounting nodes are responsible for completing the generation and uploading of non-business blocks. Class A accounting nodes are non-candidate nodes that calculate the work value worker(x) and broadcast it to candidate nodes. Candidate nodes select the node with the largest value according to the size of the node work value.
[0058] The calculated work value worker(x) satisfies the relationship:
[0059] worker(x) = find last (AES 256 (f ID (x)+rand (0,1) (decimal)))
[0060] Among them, AES 256 () is to calculate the 256-bit key value through the AES algorithm, find last () is to find the ASCII code value of the last character of a string.
[0061] In this embodiment, type A accounting nodes and type B accounting nodes correspond to different block generation paths.
[0062] Among them, after the Class A accounting node is elected, it generates new block content and broadcasts the updated blockchain under the guidance of the blockchain generation unit. The block content generated by the Class A accounting node includes the hash value of the previous block, the data header and Merkle DAG of the housekeeping practitioners in the previous block, the timestamp, and the current Class A accounting node information.
[0063] Among them, after the Class B accounting node is elected, the node information content is sent to the data storage processing unit. The data storage processing unit generates a Merkle directed acyclic graph (Merkle DAG) through hash calculation of the information content, and passes the Merkle DAG and the home worker data header to the Class B accounting node and the key management unit respectively, and passes the block content, Merkle DAG and the home worker data header to the data storage center.
[0064] The data storage center is a storage matrix, which includes at least 3 storage devices, which complete data synchronization and backup with each other, and are responsible for receiving and storing block content and home worker data headers. The data storage center maps the MerkleDAG tree structure through the directory code book, divides the data content into 256kb sizes, and uses the first 8 bits of the hash value of each file block of the Merkle DAG as the directory name, and the last 38 bits of the hash value of each file block of the Merkle DAG as the file name, and stores them in a dispersed manner according to the file directory tree mapped by the Merkle DAG.
[0065] The directory code book is used to generate a tree directory structure consistent with Merkle DAG, which is used to disperse the storage of block content information. There is only one tree directory on a single storage device. After the current block content is stored, the directory code book is updated unidirectionally from the data storage center to the data conversion unit.
[0066] The block content generated by the Class B accounting node includes the hash value of the previous block, the home worker data header and Merkle DAG passed by the data storage and processing unit, the timestamp, and the current Class B accounting node information. After the block is generated, the blockchain is broadcast and updated under the guidance of the blockchain generation unit.
[0067] In this embodiment, the key management unit is used to send the received Merkle DAG as the storage key to the corresponding data bit of each housekeeping worker account according to the housekeeping worker data header, and the housekeeping worker decides the key sending authority. It can be understood that the key access method is used to prevent information leakage and improve the security of the system.
[0068] In this embodiment, the data conversion unit is used to combine the received Merkle DAG and the directory code book, extract the information content of the corresponding housekeeping practitioner, and send it to the information query unit.
[0069] In this embodiment, when a consumer needs to query the credit information of a domestic worker, he / she can input the domestic worker's information through the information query unit entrance of the mobile phone program. The public query of the information query unit can only query the basic information of the domestic worker. When detailed information is needed, the consumer can send a query application to the domestic worker in the mobile phone program. After the domestic worker confirms in the system, the storage key is pushed to the consumer access interface. The information query unit verifies the authenticity of the storage key through the blockchain. After confirmation, the storage key and the domestic worker information provided by the consumer are used to extract content data from the data conversion unit. After successful extraction, all records of the domestic worker are returned to the consumer, including other consumers' evaluation content of their services.
[0070] See also Figure 2 , which shows a functional module diagram of a credit information management system for domestic workers based on blockchain.
[0071] like Figure 1-Figure 2 As shown, for better understanding, this embodiment provides a method flow and functional module correspondence of a credit information management system for domestic workers based on blockchain.
[0072] Among them, the user authentication server and the role management server correspond to the user authentication unit and the blockchain management unit.
[0073] Among them, the type A node pool corresponds to the type A node unit.
[0074] Among them, the type B node pool corresponds to the type B node unit.
[0075] Among them, the data processing server and the data storage service center correspond to the data storage processing unit.
[0076] Among them, Class A accounting nodes, Class B accounting nodes, and blockchains correspond to blockchain generation units.
[0077] Among them, the key server corresponds to the key management unit.
[0078] Among them, the data backup server corresponds to the data conversion unit.
[0079] Among them, the data query server corresponds to the information query unit.
[0080] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made based on the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can better understand and use the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A blockchain-based credit information management system for domestic workers, characterized in that: include: The user authentication unit is used to complete the registration of household workers and consumer accounts, information verification and issuance of Class B role identity codes when logging in; The blockchain role management unit is used to complete the on-chain verification of housekeeping store nodes, housekeeping practitioner nodes and consumer nodes; The class A node unit is used to generate candidate nodes and class A accounting nodes; The class B node unit is used to generate a class B accounting node under the supervision of the candidate node; The data storage and processing unit is used to process the credit information content about the housekeeping clerk in the Class B accounting node; The key management unit is used to send the received Merkle DAG as a storage key to the corresponding data bit of the housekeeping practitioner's account, and the housekeeping practitioner determines the key sending authority; The data conversion unit is used to combine the received Merkle DAG with the directory code book to propose the information content of the corresponding housekeeping practitioner; The information inquiry unit is used to provide consumers with credit information inquiry services for domestic workers.
2. According to claim 1, a blockchain-based credit information management system for domestic workers is characterized by: Three participating entities are required: housekeeping service companies, housekeeping practitioners, and consumers. Housekeeping service companies are responsible for building a credit information management system for housekeeping practitioners, verifying the authenticity of information, and providing credit information query services for housekeeping practitioners. Housekeeping practitioners are responsible for uploading personal information, generating order information, providing corresponding certificate materials, etc. Consumers score and evaluate housekeeping practitioner service orders.
3. According to claim 1, a blockchain-based credit information management system for domestic workers is characterized by: The user authentication unit divides nodes into three types according to the implementation process of housekeeping services, namely housekeeping store nodes, housekeeping practitioner nodes, and consumer nodes. According to the blockchain generation process, they are divided into two categories, namely Class A nodes and Class B nodes. Class A nodes are composed of housekeeping store nodes, and Class B nodes are composed of housekeeping practitioner nodes and consumer nodes.
4. A blockchain-based credit information management system for domestic workers according to claims 1 and 3, characterized in that: Housekeeping workers and consumers need to apply for account registration to the user authentication unit through a mobile phone application. When the account registration is completed, the user authentication unit sends a Class B role identity code to the mobile phone application of the housekeeping worker and consumer, and sends the account information and Class B role identity code to the blockchain role management unit.
5. According to claim 1, a blockchain-based credit information management system for domestic workers is characterized by: Class A node units give priority to generating candidate nodes. Candidate nodes are responsible for electing accounting nodes, supervising the generation of blocks and the update of blockchains. Candidate nodes are generated by Class A nodes by calculating their own weight value chance(x) and comparing it with the set value K. When the number of nodes that meet the condition of chance(x)<K satisfies [0.2*N,0.5*N], the candidate node is elected and broadcast to the entire network. Otherwise, the candidate node is re-selected. The life cycle of the candidate node is T N Determined by the number of type A nodes N. The weight value chance(x) of type A node satisfies the relationship: chance t (x)=find 1,2 ((1-chance t-1 (x))*rand (0,1) (decimal)·f ID (x) / rand (0,100) (prime)) chance0(x)=*rand (0,1) (decimal) In the formula, t is the time series, f ID () To obtain a class A node number, find 1,2 () is used to obtain the first two digits of the decimal part of a value, rand() is used to obtain a random value, chance0(x) is the initial weight value of the A-type node x, decimal is a decimal, and prime is a prime number.
6. A blockchain-based credit information management system for domestic workers according to claim 1 or 5, characterized in that: After the candidate node is generated, it will be broadcast to the entire blockchain and begin to accept Class B node accounting applications. Class B nodes are composed of housekeeping staff nodes and consumer nodes. When housekeeping practitioners upload or update their personal information, update order information, or consumers rate or comment on housekeeping practitioners' service orders, the housekeeping practitioners or consumers will actively submit Class B accounting node applications through mobile phone programs. When multiple Class B nodes submit Class B accounting node applications, the candidate nodes will determine the order of Class B accounting nodes according to timestamps. When the current Class B accounting node is working, other Class B accounting nodes will enter the Class B accounting node buffer pool in timestamp order. When there is no Class B accounting node application in the entire blockchain, the candidate node will select a Class A accounting node from the non-candidate node in the Class A node to continuously complete the generation of the blockchain.
7. A blockchain-based credit information management system for domestic workers according to claim 1 or 6, characterized in that: Class A accounting nodes are responsible for completing the generation and uploading of non-business blocks. Class A accounting nodes are executed by non-candidate nodes to calculate the work value worker(x) and broadcast it to candidate nodes. Candidate nodes select the node with the largest value according to the size of the node work value. The calculated work value worker(x) satisfies the relationship: worker(x)=find last (AES 256 (f ID (x)+rand (0,1) (decimal))) In the formula, AES 256 () is to calculate the 256-bit key value through the AES algorithm, find last () is to find the ASCII code value of the last character of a string.
8. A blockchain-based credit information management system for domestic workers according to claim 1 or 6, characterized in that: After the Class B accounting node is elected, the node information content is sent to the data storage processing unit. The data storage processing unit generates a Merkle directed acyclic graph (Merkle DAG) through hash calculation of the information content, and passes the Merkle DAG and the home worker data header to the Class B accounting node and the key management unit respectively, and passes the block content, Merkle DAG and the home worker data header to the data storage center. The data storage center is a storage matrix, which includes at least 3 storage devices, which complete data synchronization and backup with each other, and are responsible for receiving and storing block content and home worker data headers. The data storage center maps the Merkle DAG tree structure through the directory code book, divides the data content into 256kb sizes, and uses the first 8 bits of the hash value of each file block of the Merkle DAG as the directory name, and the last 38 bits of the hash value of each file block of the Merkle DAG as the file name, and stores them in a dispersed manner according to the file directory tree mapped by the Merkle DAG. The directory code book is used to generate a tree directory structure consistent with Merkle DAG, which is used to disperse the storage of block content information. There is only one tree directory on a single storage device. After the current block content is stored, the directory code book is updated unidirectionally from the data storage center to the data conversion unit.
9. A blockchain-based credit information management system for domestic workers according to claim 1, characterized in that: The data conversion unit is used to combine the received Merkle DAG with the directory code book, extract the information content of the corresponding housekeeping practitioner, and send it to the information query unit.
10. A blockchain-based credit information management system for domestic workers according to claim 1, characterized in that: Consumers can send query requests to domestic workers in the mobile app. After the domestic workers confirm in the system, the storage key will be pushed to the consumer query interface. The information query unit verifies the authenticity of the storage key through the blockchain. After confirmation, the storage key and the domestic worker information provided by the consumer are used to extract content data from the data conversion unit. After successful extraction, all records of the domestic worker are returned to the consumer, including other consumers' evaluations of their services.
