Personnel salary credit granting payment method based on block chain
By introducing blockchain technology and smart contracts into the wage payment system, the problems of low efficiency, poor transparency and high fund risk in the traditional wage payment model are solved, and efficient, transparent and secure wage payment and fund management are achieved.
Patent Information
- Application Number
- CN202510070581.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-05-13
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure CN119991132A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wage payment, and in particular to a blockchain-based employee wage credit payment method. Background Art
[0002] For part-time and temporary workers, early payment methods were all manual payment. Salary payment depended on bookkeeping and manual review between the employing unit and the human resources company. The process was lengthy and dependent on fixed working hours. For example, the employing unit required operations staff to count working hours, and payment could only be completed after financial staff reviewed it. The process was inefficient and difficult to meet the needs of non-part-time staff and employment needs.
[0003] The monitoring of the work completion status and working hours completion of part-time and temporary workers also requires manual operation. It is necessary to check one by one whether the work is up to standard before calculating the salary. The process is cumbersome and prone to errors. When the number of employees is large, the accounting workload is extremely large and the payment efficiency is reduced accordingly. At the same time, payment records are not transparent enough, and part-time and temporary workers often have multiple levels, making it difficult to form a sufficient trust basis between employers and workers.
[0004] In addition, many short-term employment scenarios require immediate payment of wages. The traditional model has process limitations and can only give the team leader a small amount of cash for on-site payment. However, this method has problems with tax compliance and is prone to risks such as misappropriation, delayed payment, and even absconding with the money by the team leader. These problems cause companies to bear additional financial risks when managing temporary workers and may lose competitiveness in the employment market. Therefore, how to improve wage payment efficiency while ensuring compliance has become a core problem that the traditional employee wage payment model urgently needs to solve. Summary of the invention
[0005] In view of the above existing problems, the present invention is proposed.
[0006] The present invention provides a blockchain-based employee salary credit payment method to solve the problems of traditional part-time and temporary worker salary payment schemes, such as low accounting efficiency, opaque payment, poor immediacy, difficult tax compliance and high capital risk.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0008] The embodiment of the present invention provides a blockchain-based employee salary credit payment method, which includes:
[0009] Step S1: The employer publishes the task requirements through the blockchain platform. The task requirement data is encrypted and written into the blockchain, and the corresponding smart contract is automatically generated;
[0010] Step S2: After arriving at the designated workplace, the employee completes the sign-in verification through the mobile terminal, including scanning the code to sign in, location verification, and identity information collection. During the work process, the employee updates his working hours and task progress in real time by signing in. The smart contract verifies the sign-in data in real time to determine whether the employee's location and working hours meet the task requirements.
[0011] In step S2, temporary workers or new employees who have not yet registered their real names can instantly generate identities through mobile terminals and dynamically associate them with blockchain task records;
[0012] Step S3: The smart contract triggers the salary payment rules according to the verification results of step S2 and automatically generates settlement details;
[0013] Step S4: After the task is completed, the project administrator initiates the daily settlement operation by selecting the list of employees who have signed in and passed the verification, confirming the payment amount and completing the payment operation. Batch payment is supported.
[0014] Step S5: Employees receive their wages directly through the bound blockchain wallet.
[0015] As a preferred solution of the blockchain-based employee salary credit payment method described in the present invention, wherein: in step S1, multiple project managers are assigned to each task, and an instant credit line is configured for each project manager when the task is released, and an agreed salary line is set for each employee. Each project manager is responsible for issuing daily wages according to the task completion status of the employees under his / her jurisdiction;
[0016] The task requirement data includes a list of employees, a work schedule and task objectives.
[0017] As a preferred solution of the blockchain-based employee salary credit payment method described in the present invention, the task requirement data is encrypted and written into the blockchain, and the steps of automatically generating the corresponding smart contract are as follows:
[0018] Define the task requirement data as D:
[0019] D={E,H,T},
[0020] Among them, D represents the overall task requirement data, E represents the employee list set, which contains the identifier of each employee participating in the task, H represents the work time plan set, which defines the planned work time of each employee, and T represents the task goal set, which specifically describes the goal and completion conditions of the task.
[0021] The task requirement data D is encrypted using the symmetric encryption algorithm AES to generate encrypted data. The encryption formula is expressed as:
[0022] D′=AES_Encrypt(D,k),
[0023] Where D′ represents the encrypted task requirement data, AES_Encrypt represents the encryption function based on the Advanced Encryption Standard AES, and k represents the symmetric key used in the encryption process;
[0024] Encrypted data D ′ Write to the blockchain and generate a new block. The writing process is:
[0025] B={prev_hash,D ′ ,timestamp},
[0026] Among them, B represents the newly generated block, prev_hash represents the hash value of the previous block, and D ′ Indicates the encrypted task data stored in the current new block, and timestamp indicates the timestamp when the new block is generated;
[0027] The smart contract generation algorithm is based on the preset template and task rule parsing logic. The generation process is as follows:
[0028] C=GenContract(D ′ , rules),
[0029] Among them, C represents the generated smart contract, GenContract represents the smart contract generation function, which is specifically the rule parsing and contract template replacement algorithm based on JSONSchema, and D ′ It represents the encrypted task requirement data, and rules represents the task rule set, including task objectives and salary payment rules;
[0030] The generation algorithm steps include:
[0031] Parsing task data D ′ And decrypt, the formula is:
[0032] D = AES_Decrypt (D ′ ,k), where AES_Decrypt is a symmetric decryption function,
[0033] According to D and rules, the rule binding logic is generated to generate a smart contract. The formula is:
[0034]
[0035] Among them, Template represents the smart contract template. Indicates the binding operation between the contract template and the data;
[0036] The steps of configuring an instant credit limit for each project manager and setting an agreed salary limit for each employee are:
[0037] The credit limit calculation formula for each project manager is:
[0038]
[0039] Where L represents the credit limit of the project manager, n represents the total number of employees, and h i represents the planned working hours of the i-th employee, w i represents the agreed salary amount of the i-th employee,
[0040] The credit limit is calculated by the on-chain logic and automatically allocated through smart contracts. The configured limit is dynamically bound in the smart contract, and the calculation logic is automatically triggered every time a task is updated.
[0041] Set salary quota for each employee based on task requirements:
[0042] W={w1,w2,…,w n},
[0043] Among them, W represents the salary amount set of all employees, w i It represents the agreed salary amount of the i-th employee, which is defined based on the task objectives and the employee's skill level.
[0044] As a preferred solution of the blockchain-based employee salary credit payment method described in the present invention, the employee updates his working hours and task progress in real time by signing in, and the smart contract verifies the sign-in data in real time as follows:
[0045] After arriving at the designated workplace, employees submit sign-in data through mobile terminals. The data is represented as follows:
[0046] S={s1,s2,s3},
[0047] Among them, S represents the check-in data set, s1 represents the scan code information, which is used to verify the correspondence of the task, s2 represents the location verification information, including GPS coordinates, and s3 represents the identity verification information, including the employee's blockchain identity identifier.
[0048] Perform sign-in verification, the verification function is:
[0049] V=Verify(S,D B ),
[0050] Among them, V represents the verification result, 1 represents verification success, 0 represents verification failure, Verify represents the verification function, and verifies the check-in data and the blockchain storage data. B Represents the task requirement data stored on the blockchain,
[0051] During the work process, the employee's check-in status is used to update the working hours and task progress in real time. The real-time working hours update function is:
[0052]
[0053] Among them, H t It represents the total working hours after real-time update, t0 represents the initial sign-in time, t represents the current time, P(x) represents the validity function of the real-time sign-in status, when the value is 1, the valid working hours are recorded, when the value is 0, the working hours are not counted,
[0054] The task progress update function is:
[0055] T p =F(H t ,T),
[0056] Among them, T p Indicates the current task completion progress, F indicates the task progress calculation function, H t represents real-time working hours, T represents the task target set;
[0057] The anonymous temporary worker or new employee can instantly generate an identity through a mobile terminal and dynamically associate it with the blockchain task record in the following steps:
[0058] For temporary workers or new employees who have not registered their real names, an identity identifier is generated instantly through a mobile terminal:
[0059] ID=Hash(name,device_ID,timestamp),
[0060] Where ID represents the generated employee identity identifier, Hash represents the hash function used to generate a unique identity, name represents the employee's name, device_ID represents the device identifier of the mobile terminal, and timestamp represents the timestamp when the identity is generated;
[0061] The generated identity identifier is dynamically linked to the blockchain task record in the following way:
[0062] Record={ID,Task_ID,timestamp},
[0063] Among them, Record represents a dynamically generated task record, ID represents an employee identity identifier, Task_ID represents a unique identifier of the corresponding task, and timestamp represents the timestamp of the associated record.
[0064] As a preferred solution of the blockchain-based employee salary credit payment method described in the present invention, the salary payment rule is:
[0065] If an employee fails to achieve the task target, the salary payment amount will be adjusted from the agreed salary amount according to the ratio set in the smart contract.
[0066] Update the project administrator’s credit limit in real time based on the adjusted payment amount;
[0067] In step S3, feedback data is automatically generated for employees who have not completed their task objectives.
[0068] As a preferred solution of the blockchain-based employee salary credit payment method described in the present invention, the step of triggering the salary payment rule and automatically generating the settlement details is:
[0069] According to the task completion status C T , calculate the employee's salary payment amount, the calculation formula is:
[0070]
[0071] Among them, C i represents the actual payment amount of the i-th employee, w i represents the agreed salary amount of the i-th employee, represents the task completion of the i-th employee, R represents the salary adjustment function, according to Adjust the payment ratio. If the mission target is not completed, If completed
[0072] The settlement details are as follows:
[0073] G={G1,G2,…,G n},
[0074] Among them, G represents the detailed set of salary payments for all employees. i represents the actual payment amount of the i-th employee;
[0075] The credit limit of the project administrator is updated in real time according to the payment details. The update formula is:
[0076]
[0077] Among them, L ′ represents the updated credit limit of the project manager, L represents the initial credit limit of the project manager, n represents the total number of employees, G i represents the payment amount of the i-th employee;
[0078] For employees who fail to complete their tasks, the smart contract automatically generates feedback data:
[0079]
[0080] Among them, F i represents the feedback data of the i-th employee, e i represents the unique identifier of the i-th employee, represents the task completion status of the i-th employee, G i represents the actual payment amount of the i-th employee, and timestamp represents the timestamp when the feedback data is generated.
[0081] The feedback data set is represented as:
[0082] F={F1,F2,…,F m},
[0083] Among them, F represents the feedback data set of employees who have not completed the task goals, and m represents the total number of employees who have not completed the task goals.
[0084] As a preferred solution of the blockchain-based employee salary credit payment method described in the present invention, all salary payment records in step S4 are synchronously packaged and uploaded to the blockchain with the tax declaration data.
[0085] As a preferred solution of the blockchain-based employee salary credit payment method described in the present invention, the step of synchronously packaging all salary payment records and tax declaration data and uploading them to the blockchain is:
[0086] After the task is completed, the project administrator makes batch payments based on the list of employees who have passed the verification. The payment data set is represented as follows:
[0087] P={p1,p2,…,p k},
[0088] Where P represents the batch payment data set, p i represents the payment confirmation record of the i-th employee, including the payment amount and payment time, k represents the number of employees who have passed the verification,
[0089] Payment confirmation record i The data structure is:
[0090] p i ={e i ,G i ,pay_time},
[0091] Among them, e i represents the unique identifier of the i-th employee, G i represents the payment amount of the i-th employee, and pay_time represents the timestamp of payment completion.
[0092] Salary payment records and tax declaration data are packaged synchronously and packaged as T:
[0093] T={P,tax_rules},
[0094] Among them, T represents the data set that is uploaded synchronously, P represents the batch payment data set, and tax_rules represents the tax rule set, which is used to calculate the individual tax paid by employees.
[0095] According to tax rules, the actual after-tax income of each employee is calculated as follows:
[0096] R i =G i -Tax(G i ),
[0097] Among them, R i represents the actual after-tax income of the i-th employee, G i represents the payment amount of the i-th employee, Tax represents the function for calculating individual tax according to tax rules,
[0098] The synchronized and packaged data is uploaded through the blockchain to generate a new block:
[0099] B ′ ={prev_hash,T,timestamp},
[0100] Among them, B ′ Represents a newly generated block, prev_hash represents the hash value of the previous block, T represents the data set that is uploaded synchronously, and timestamp represents the timestamp of block generation.
[0101] As a preferred solution of the blockchain-based employee salary credit payment method described in the present invention, in which: in step S5, the employee's task completion record is analyzed, and the employee can obtain additional credit line after accumulating records by completing tasks and reaching the preset standard.
[0102] As a preferred solution of the blockchain-based employee salary credit payment method described in the present invention, the step of analyzing the employee's task completion record, and the employee can obtain additional credit line after completing the task and accumulating the record and reaching the preset standard is as follows:
[0103] The smart contract accumulates the task completion score based on the employee's task completion record. The cumulative score calculation formula is:
[0104]
[0105] Among them, C irepresents the cumulative task completion score of the i-th employee, m represents the total number of tasks in which the i-th employee participates, and R j represents the scoring function of the jth task, giving a score based on the completion of the task goal, T ij Indicates the completion status of the i-th employee in the j-th task,
[0106] Scoring function R j The specific definition is:
[0107]
[0108] Among them, R j (T ij ) represents the score of the i-th employee in the j-th task, T ij represents the part of the task completed by the i-th employee, T j represents the total target amount of the jth task, S j represents the total score of the jth task;
[0109] When the employee accumulates the task completion score C i Achieve preset standard C threshold After that, you will get additional credit line, the calculation formula is:
[0110] L extra =f(C i -C threshold ),
[0111] Among them, L extra represents the additional credit limit of the employee, f represents the credit limit growth function, C i Indicates the employee's cumulative task completion score, C threshold Indicates the score threshold for credit line increase;
[0112] The additional credit limit is added to the original credit limit to generate a new credit limit. The superposition formula is:
[0113] L i =L0+L extra ,
[0114] Among them, L i represents the new credit limit of the i-th employee, L0 represents the employee’s original credit limit, and L extra Indicates the additional credit limit obtained due to task completion.
[0115] The beneficial effects of the present invention are as follows: the present invention automatically generates rule templates related to task requirements through smart contracts, combines the configuration of dynamic credit limits and agreed salary limits, and efficiently links task release with fund management. The immutability of blockchain ensures the security and transparency of task requirement data and payment rules, avoiding the lengthy process of manual accounting and approval. During task execution, employees complete sign-in verification and real-time working hours update through mobile terminals. Smart contracts automatically verify task completion status based on sign-in data and trigger salary payment rules, greatly reducing manual one-by-one verification operations. For temporary workers who are not real-name registered, an instant identity is generated based on a hash algorithm and is saved in the blockchain. Chain records solve the problem of difficult identity authentication in temporary worker management. In terms of payment rules, the salary amount is flexibly set according to the employee's task completion status to ensure payment fairness, and the project manager's credit limit is updated in real time through the adjusted payment amount to accurately control the flow of funds. The salary payment records and tax declaration data are simultaneously packaged and uploaded to the blockchain, which not only meets the tax compliance requirements, but also improves the transparency and traceability of the records, and enhances the trust between employers and workers. At the same time, based on the employee's task completion record, the employee's credit limit is automatically increased when the employee reaches the preset performance standard, forming a performance-based incentive mechanism and optimizing the intelligence level of task management. BRIEF DESCRIPTION OF THE DRAWINGS
[0116] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0117] Figure 1 This is a flowchart of the blockchain-based employee salary credit payment method of the present invention. DETAILED DESCRIPTION
[0118] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0119] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0120] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0121] Example 1, reference Figure 1 This embodiment provides a blockchain-based employee salary credit payment method, including:
[0122] Step S1: The employer publishes the task requirements through the blockchain platform. The task requirement data is encrypted and written into the blockchain, and the corresponding smart contract is automatically generated;
[0123] In step S1, multiple project managers are assigned to each task. When a task is released, an instant credit limit is configured for each project manager, and an agreed salary limit is set for each employee. Each project manager is responsible for issuing daily wages based on the task completion status of the employees under his / her jurisdiction.
[0124] The task requirement data includes employee list, work schedule and task objectives.
[0125] The task requirement data is encrypted and written into the blockchain, and the steps of automatically generating the corresponding smart contract are as follows:
[0126] Define the task requirement data as D:
[0127] D={E,H,T},
[0128] Among them, D represents the overall task requirement data, E represents the employee list set, which contains the identifier of each employee participating in the task, H represents the work time plan set, which defines the planned work time of each employee, and T represents the task goal set, which specifically describes the goal and completion conditions of the task.
[0129] The task requirement data D is encrypted using the symmetric encryption algorithm AES to generate encrypted data. The encryption formula is expressed as:
[0130] D ′ =AES_Encrypt(D,k),
[0131] Among them, D ′ represents the encrypted task requirement data, AES_Encrypt represents the encryption function based on the Advanced Encryption Standard AES, and k represents the symmetric key used in the encryption process;
[0132] Encrypted data D ′ Write to the blockchain and generate a new block. The writing process is:
[0133] B={prev_hash,D ′ ,timestamp},
[0134] Among them, B represents the newly generated block, prev_hash represents the hash value of the previous block, and D ′ Indicates the encrypted task data stored in the current new block, and timestamp indicates the timestamp when the new block is generated;
[0135] The smart contract generation algorithm is based on the preset template and task rule parsing logic. The generation process is as follows:
[0136] C=GenContract(D ′ , rules),
[0137] Among them, C represents the generated smart contract, GenContract represents the smart contract generation function, which is specifically the rule parsing and contract template replacement algorithm based on JSONSchema, and D ′ It represents the encrypted task requirement data, and rules represents the task rule set, including task objectives and salary payment rules;
[0138] The generation algorithm steps include:
[0139] Parsing task data D ′ And decrypt, the formula is:
[0140] D = AES_Decrypt (D ′ ,k), where AES_Decrypt is a symmetric decryption function,
[0141] According to D and rules, the rule binding logic is generated to generate a smart contract. The formula is:
[0142]
[0143] Among them, Template represents the smart contract template. Indicates the binding operation between the contract template and the data;
[0144] The steps of configuring an instant credit limit for each project manager and setting an agreed salary limit for each employee are:
[0145] The credit limit calculation formula for each project manager is:
[0146]
[0147] Where L represents the credit limit of the project manager, n represents the total number of employees, and h i represents the planned working hours of the i-th employee, w irepresents the agreed salary amount of the i-th employee,
[0148] The credit limit is calculated by the on-chain logic and automatically allocated through smart contracts. The configured limit is dynamically bound in the smart contract, and the calculation logic is automatically triggered every time a task is updated.
[0149] Set salary quota for each employee based on task requirements:
[0150] W={w1,w2,…,w n},
[0151] Among them, W represents the salary amount set of all employees, w i represents the agreed salary amount for the i-th employee, which is defined based on the task objectives and the employee's skill level;
[0152] Specifically, a specific AES algorithm is used for encryption to improve data security, task rules are parsed through JSONSchema and bound to contract templates to generate smart contracts, credit limits and salary quota configurations are directly linked to task requirements, and blockchain automation tasks are combined with fund management.
[0153] Step S2: After arriving at the designated workplace, the employee completes the sign-in verification through the mobile terminal, including scanning the code to sign in, location verification, and identity information collection. During the work process, the employee updates his working hours and task progress in real time by signing in. The smart contract verifies the sign-in data in real time to determine whether the employee's location and working hours meet the task requirements.
[0154] In step S2, temporary workers or new employees who have not yet registered their real names can instantly generate identities through mobile terminals and dynamically associate them with blockchain task records;
[0155] The employee updates his working hours and task progress in real time by signing in. The smart contract verifies the sign-in data in real time as follows:
[0156] After arriving at the designated workplace, employees submit sign-in data through mobile terminals. The data is represented as follows:
[0157] S={s1,s2,s3},
[0158] Among them, S represents the check-in data set, s1 represents the scan code information, which is used to verify the correspondence of the task, s2 represents the location verification information, including GPS coordinates, and s3 represents the identity verification information, including the employee's blockchain identity identifier.
[0159] Perform sign-in verification, the verification function is:
[0160] V=Verify(S,D B ),
[0161] Among them, V represents the verification result, 1 represents verification success, 0 represents verification failure, Verify represents the verification function, and verifies the check-in data and the blockchain storage data. B Represents the task requirement data stored on the blockchain,
[0162] During the work process, the employee's check-in status is used to update the working hours and task progress in real time. The real-time working hours update function is:
[0163]
[0164] Among them, H t It represents the total working hours after real-time update, t0 represents the initial sign-in time, t represents the current time, P(x) represents the validity function of the real-time sign-in status, when the value is 1, the valid working hours are recorded, when the value is 0, the working hours are not counted,
[0165] The task progress update function is:
[0166] T p =F(H t ,T),
[0167] Among them, T p Indicates the current task completion progress, F indicates the task progress calculation function, H t represents real-time working hours, T represents the task target set;
[0168] The anonymous temporary worker or new employee can instantly generate an identity through a mobile terminal and dynamically associate it with the blockchain task record in the following steps:
[0169] For temporary workers or new employees who have not registered their real names, an identity identifier is generated instantly through a mobile terminal:
[0170] ID=Hash(name,device_ID,timestamp),
[0171] Where ID represents the generated employee identity identifier, Hash represents the hash function used to generate a unique identity, name represents the employee's name, device_ID represents the device identifier of the mobile terminal, and timestamp represents the timestamp when the identity is generated;
[0172] The generated identity identifier is dynamically linked to the blockchain task record in the following way:
[0173] Record={ID,Task_ID,timestamp},
[0174] Among them, Record represents the dynamically generated task record, ID represents the employee identity identifier, Task_ID represents the unique identifier of the corresponding task, and timestamp represents the timestamp of the associated record;
[0175] Specifically, in step S2, check-in verification is performed, and data is stored in the blockchain to ensure data authenticity; the integral function is used to update working hours in real time, and the task progress is updated in combination with the real-time working hours and task goals, providing an instant feedback mechanism for the task completion status; in addition, a unique identifier is generated for the identity of the unverified employee through a hash algorithm, and dynamically associated with the blockchain record, effectively solving the identity authentication problem in temporary worker management;
[0176] Step S3: The smart contract triggers the salary payment rules according to the verification results of step S2 and automatically generates settlement details;
[0177] The salary payment rules are as follows:
[0178] If an employee fails to achieve the task target, the salary payment amount will be adjusted from the agreed salary amount according to the ratio set in the smart contract.
[0179] Update the project administrator’s credit limit in real time based on the adjusted payment amount;
[0180] In step S3, feedback data is automatically generated for employees who have not completed their task objectives;
[0181] The steps of triggering the salary payment rule and automatically generating the settlement details are:
[0182] According to the task completion status C T , calculate the employee's salary payment amount, the calculation formula is:
[0183]
[0184] Among them, G i represents the actual payment amount of the i-th employee, w i represents the agreed salary amount of the i-th employee, represents the task completion of the i-th employee, R represents the salary adjustment function, according to Adjust the payment ratio. If the mission target is not completed, If completed
[0185] The settlement details are as follows:
[0186] G={G1,G2,…,G n},
[0187] Among them, G represents the detailed set of salary payments for all employees.i represents the actual payment amount of the i-th employee;
[0188] The credit limit of the project administrator is updated in real time according to the payment details. The update formula is:
[0189]
[0190] Among them, L ′ represents the updated credit limit of the project manager, L represents the initial credit limit of the project manager, n represents the total number of employees, G i represents the payment amount of the i-th employee;
[0191] For employees who fail to complete their tasks, the smart contract automatically generates feedback data:
[0192]
[0193] Among them, F i represents the feedback data of the i-th employee, e i represents the unique identifier of the i-th employee, represents the task completion status of the i-th employee, G i represents the actual payment amount of the i-th employee, and timestamp represents the timestamp when the feedback data is generated.
[0194] The feedback data set is represented as:
[0195] F={F1,F2,…,F m},
[0196] Among them, F represents the feedback data set of employees who have not completed the task target, and m represents the total number of employees who have not completed the task target;
[0197] Specifically, the smart contract is automatically executed in step S3, and the payment amount is flexibly adjusted based on the employee's task completion status to ensure fairness; at the same time, the credit limit directly reflects the flow of funds after the task is completed, and the task completion status is combined with the actual payment amount and timestamp to provide a comprehensive record.
[0198] Step S4: After the task is completed, the project administrator initiates the daily settlement operation by selecting the list of employees who have signed in and passed the verification, confirming the payment amount and completing the payment operation. Batch payment is supported.
[0199] All wage payment records and tax declaration data in step S4 are uploaded to the blockchain synchronously.
[0200] The steps of synchronizing and uploading all wage payment records and tax declaration data to the blockchain are:
[0201] After the task is completed, the project administrator makes batch payments based on the list of employees who have passed the verification. The payment data set is represented as follows:
[0202] P={p1,p2,…,p k},
[0203] Where P represents the batch payment data set, p i represents the payment confirmation record of the i-th employee, including the payment amount and payment time, k represents the number of employees who have passed the verification,
[0204] Payment confirmation record i The data structure is:
[0205] p i ={e i ,G i ,pay_time},
[0206] Among them, e i represents the unique identifier of the i-th employee, G i represents the payment amount of the i-th employee, and pay_time represents the timestamp of payment completion.
[0207] Salary payment records and tax declaration data are packaged synchronously and packaged as T:
[0208] T={P,tax_rules},
[0209] Among them, T represents the data set that is uploaded synchronously, P represents the batch payment data set, and tax_rules represents the tax rule set, which is used to calculate the individual tax paid by employees.
[0210] According to tax rules, the actual after-tax income of each employee is calculated as follows:
[0211] R i =G i -Tax(G i ),
[0212] Among them, R i represents the actual after-tax income of the i-th employee, G i represents the payment amount of the i-th employee, Tax represents the function for calculating individual tax according to tax rules,
[0213] The synchronized and packaged data is uploaded through the blockchain to generate a new block:
[0214] B ′ ={prev_hash,T,timestamp},
[0215] Among them, B ′Indicates a newly generated block, prev_hash indicates the hash value of the previous block, T indicates the data set uploaded synchronously, and timestamp indicates the timestamp of block generation;
[0216] Specifically, payment records and tax declaration data are simultaneously packaged and uploaded to the blockchain to ensure data transparency and immutability while meeting tax compliance requirements; dynamic calculation of actual after-tax income ensures payment accuracy and can provide employees with clear payment details.
[0217] Step S5, employees receive their wages directly through the bound blockchain wallet;
[0218] In step S5, the employee's task completion records are analyzed, and the employee can obtain additional credit line after completing the task and accumulating the records and reaching the preset standard;
[0219] The steps of analyzing the employee's task completion records, and obtaining additional credit lines after the employee accumulates records by completing tasks and reaches the preset standard are as follows:
[0220] The smart contract accumulates the task completion score based on the employee's task completion record. The cumulative score calculation formula is:
[0221]
[0222] Among them, C i represents the cumulative task completion score of the i-th employee, m represents the total number of tasks in which the i-th employee participates, and R j represents the scoring function of the jth task, giving a score based on the completion of the task goal, T ij Indicates the completion status of the i-th employee in the j-th task,
[0223] Scoring function R j The specific definition is:
[0224]
[0225] Among them, R j (T ij ) represents the score of the i-th employee in the j-th task, T ij represents the part of the task completed by the i-th employee, T j represents the total target amount of the jth task, S j represents the total score of the jth task;
[0226] When the employee accumulates the task completion score C i Achieve preset standard C threshold After that, you will get additional credit line, the calculation formula is:
[0227] Lextra =f(C i -C threshold ),
[0228] Among them, L extra represents the additional credit limit of the employee, f represents the credit limit growth function, C i Indicates the employee's cumulative task completion score, C threshold Indicates the score threshold for credit line increase;
[0229] The additional credit limit is added to the original credit limit to generate a new credit limit. The superposition formula is:
[0230] L i =L0+L extra ,
[0231] Among them, L i represents the new credit limit of the i-th employee, L0 represents the employee’s original credit limit, and L extra It indicates the additional credit limit obtained due to task completion;
[0232] Specifically, in this step, the employee task completion status is analyzed, the employee's work performance is evaluated, and the task contribution is reflected in the form of points. The accumulation of points is combined with the increase in credit line to establish a performance-based incentive mechanism; the calculation result of the new credit line is executed through a smart contract to improve the overall intelligence level of task management.
[0233] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A blockchain-based employee salary credit payment method, characterized by: include, Step S1: The employer publishes the task requirements through the blockchain platform. The task requirement data is encrypted and written into the blockchain, and the corresponding smart contract is automatically generated; Step S2: After arriving at the designated workplace, the employee completes the sign-in verification through the mobile terminal, including scanning the code to sign in, location verification, and identity information collection. During the work process, the employee updates his working hours and task progress in real time by signing in. The smart contract verifies the sign-in data in real time to determine whether the employee's location and working hours meet the task requirements. In step S2, temporary workers or new employees who have not yet registered their real names can instantly generate identities through mobile terminals and dynamically associate them with blockchain task records; Step S3: The smart contract triggers the salary payment rules according to the verification results of step S2 and automatically generates settlement details; Step S4: After the task is completed, the project administrator initiates the daily settlement operation by selecting the list of employees who have signed in and passed the verification, confirming the payment amount and completing the payment operation. Batch payment is supported. Step S5: Employees receive their wages directly through the bound blockchain wallet.
2. A blockchain-based employee salary credit payment method as claimed in claim 1, characterized in that: In step S1, multiple project managers are assigned to each task. When a task is released, an instant credit limit is configured for each project manager, and an agreed salary limit is set for each employee. Each project manager is responsible for issuing daily wages based on the task completion status of the employees under his / her jurisdiction. The task requirement data includes a list of employees, a work schedule and task objectives.
3. A blockchain-based employee salary credit payment method as claimed in claim 2, characterized in that: The task requirement data is encrypted and written into the blockchain, and the steps of automatically generating the corresponding smart contract are as follows: Define the task requirement data as D: D={E,H,T}, Among them, D represents the overall task requirement data, E represents the employee list set, which contains the identifier of each employee participating in the task, H represents the work time plan set, which defines the planned work time of each employee, and T represents the task goal set, which specifically describes the goal and completion conditions of the task. The task requirement data D is encrypted using the symmetric encryption algorithm AES to generate encrypted data. The encryption formula is expressed as: D′=AES_Encrypt(D,k), Where D′ represents the encrypted task requirement data, AES_Encrypt represents the encryption function based on the Advanced Encryption Standard AES, and k represents the symmetric key used in the encryption process; The encrypted data D′ is written into the blockchain and a new block is generated. The writing process is as follows: B={prev_hash,D′,timestamp}, Where B represents the generated new block, prev_hash represents the hash value of the previous block, D′ represents the encrypted task data stored in the current new block, and timestamp represents the timestamp when the new block is generated; The smart contract generation algorithm is based on the preset template and task rule parsing logic. The generation process is as follows: C=GenContract(D′,rules), Among them, C represents the generated smart contract, GenContract represents the smart contract generation function, which is specifically the rule parsing and contract template replacement algorithm based on JSONSchema, D′ represents the encrypted task requirement data, and rules represents the task rule set, including task objectives and salary payment rules; The generation algorithm steps include: Parse the task data D′ and decrypt it. The formula is: D = AES_Decrypt (D', k), where AES_Decrypt is a symmetric decryption function, According to D and rules, the rule binding logic is generated to generate a smart contract. The formula is: Among them, Template represents the smart contract template. Indicates the binding operation between the contract template and the data; The steps of configuring an instant credit limit for each project manager and setting an agreed salary limit for each employee are: The credit limit calculation formula for each project manager is: Where L represents the credit limit of the project manager, n represents the total number of employees, and h i represents the planned working hours of the i-th employee, w i represents the agreed salary amount of the i-th employee, The credit limit is calculated by the on-chain logic and automatically allocated through smart contracts. The configured limit is dynamically bound in the smart contract, and the calculation logic is automatically triggered every time a task is updated. Set salary quota for each employee based on task requirements: In={in1,in2,…,in n }, Among them, W represents the salary amount set of all employees, w i It represents the agreed salary amount of the i-th employee, which is defined based on the task objectives and the employee's skill level.
4. A blockchain-based employee salary credit payment method as claimed in claim 3, characterized in that: The employee updates his working hours and task progress in real time by signing in. The smart contract verifies the sign-in data in real time as follows: After arriving at the designated workplace, employees submit sign-in data through mobile terminals. The data is represented as follows: S={s1,s2,s3}, Among them, S represents the check-in data set, s1 represents the scan code information, which is used to verify the correspondence of the task, s2 represents the location verification information, including GPS coordinates, and s3 represents the identity verification information, including the employee's blockchain identity identifier. Perform sign-in verification, the verification function is: V=Verify(S,D B ), Among them, V represents the verification result, 1 represents verification success, 0 represents verification failure, Verify represents the verification function, and verifies the check-in data and the blockchain storage data. B Represents the task requirement data stored on the blockchain, During the work process, the employee's check-in status is used to update the working hours and task progress in real time. The real-time working hours update function is: Among them, H t It represents the total working hours after real-time update, t0 represents the initial sign-in time, t represents the current time, P(x) represents the validity function of the real-time sign-in status, when the value is 1, the valid working hours are recorded, when the value is 0, the working hours are not counted, The task progress update function is: T p =F(H t ,T), Among them, T p Indicates the current task completion progress, F indicates the task progress calculation function, H t represents real-time working hours, T represents the task target set; The anonymous temporary worker or new employee can instantly generate an identity through a mobile terminal and dynamically associate it with the blockchain task record in the following steps: For temporary workers or new employees who have not registered their real names, an identity identifier is generated instantly through a mobile terminal: ID=Hash(name,device_ID,timestamp), Where ID represents the generated employee identity identifier, Hash represents the hash function used to generate a unique identity, name represents the employee's name, device_ID represents the device identifier of the mobile terminal, and timestamp represents the timestamp when the identity is generated; The generated identity identifier is dynamically linked to the blockchain task record in the following way: Record={ID,Task_ID,timestamp}, Among them, Record represents a dynamically generated task record, ID represents an employee identity identifier, Task_ID represents a unique identifier of the corresponding task, and timestamp represents the timestamp of the associated record.
5. A blockchain-based employee salary credit payment method as claimed in claim 4, characterized in that: The salary payment rules are: If an employee fails to achieve the task target, the salary payment amount will be adjusted from the agreed salary amount according to the ratio set in the smart contract. Update the project administrator’s credit limit in real time based on the adjusted payment amount; In step S3, feedback data is automatically generated for employees who have not completed their task objectives.
6. A blockchain-based employee salary credit payment method as claimed in claim 5, characterized in that: The steps of triggering the salary payment rule and automatically generating the settlement details are: According to the task completion status C T , calculate the employee's salary payment amount, the calculation formula is: Among them, C i represents the actual payment amount of the i-th employee, w i represents the agreed salary amount of the i-th employee, represents the task completion of the i-th employee, R represents the salary adjustment function, according to Adjust the payment ratio. If the mission target is not completed, If completed The settlement details are as follows: G={G1,G2,…,G n }, Among them, G represents the detailed set of salary payments for all employees. i represents the actual payment amount of the i-th employee; The credit limit of the project administrator is updated in real time according to the payment details. The update formula is: Where L′ represents the updated credit limit of the project manager, L represents the initial credit limit of the project manager, n represents the total number of employees, G i represents the payment amount of the i-th employee; For employees who fail to complete their tasks, the smart contract automatically generates feedback data: Among them, F i represents the feedback data of the i-th employee, e i represents the unique identifier of the i-th employee, represents the task completion status of the i-th employee, G i represents the actual payment amount of the i-th employee, and timestamp represents the timestamp when the feedback data is generated. The feedback data set is represented as: F={F1,F2,…,F m }, Among them, F represents the feedback data set of employees who have not completed the task goals, and m represents the total number of employees who have not completed the task goals.
7. A blockchain-based employee salary credit payment method as claimed in claim 6, characterized in that: All wage payment records in step S4 are packaged and uploaded to the blockchain synchronously with the tax declaration data.
8. A blockchain-based employee salary credit payment method as claimed in claim 7, characterized in that: The steps of synchronizing and uploading all wage payment records and tax declaration data to the blockchain are: After the task is completed, the project administrator makes batch payments based on the list of employees who have passed the verification. The payment data set is represented as follows: P={p1,p2,…,p k }, Where P represents the batch payment data set, p i represents the payment confirmation record of the i-th employee, including the payment amount and payment time, k represents the number of employees who have passed the verification, Payment confirmation record i The data structure is: p i ={e i ,G i ,pay_time}, Among them, e i represents the unique identifier of the i-th employee, G i represents the payment amount of the i-th employee, and pay_time represents the timestamp of payment completion. Salary payment records and tax declaration data are packaged synchronously and packaged as T: T={P,tax_rules}, Among them, T represents the data set that is uploaded synchronously, P represents the batch payment data set, and tax_rules represents the tax rule set, which is used to calculate the individual tax paid by employees. According to tax rules, the actual after-tax income of each employee is calculated as follows: R i =G i -Tax(G i ), Among them, R i represents the actual after-tax income of the i-th employee, G i represents the payment amount of the i-th employee, Tax represents the function for calculating individual tax according to tax rules, The synchronized and packaged data is uploaded through the blockchain to generate a new block: B′={prev_hash,T,timestamp}, Among them, B′ represents the newly generated block, prev_hash represents the hash value of the previous block, T represents the data set uploaded synchronously, and timestamp represents the timestamp of block generation.
9. A blockchain-based employee salary credit payment method as claimed in claim 8, characterized in that: In step S5, the task completion records of the employees are analyzed, and the employees can obtain additional credit lines after accumulating records by completing tasks and reaching preset standards.
10. A blockchain-based employee salary credit payment method as claimed in claim 9, characterized in that: The steps of analyzing the employee's task completion records, and obtaining additional credit lines after the employee accumulates records by completing tasks and reaches the preset standard are as follows: The smart contract accumulates the task completion score based on the employee's task completion record. The cumulative score calculation formula is: Among them, C i represents the cumulative task completion score of the i-th employee, m represents the total number of tasks in which the i-th employee participates, and R j represents the scoring function of the jth task, giving a score based on the completion of the task goal, T ij Indicates the completion status of the i-th employee in the j-th task, Scoring function R j The specific definition is: Among them, R j (T ij ) represents the score of the i-th employee in the j-th task, T ij represents the part of the task completed by the i-th employee, T j represents the total target amount of the jth task, S j represents the total score of the jth task; When the employee accumulates the task completion score C i Achieve preset standard C threshold After that, you will get additional credit line, the calculation formula is: L extra =f(C i -C threshold ), Among them, L extra represents the additional credit limit of the employee, f represents the credit limit growth function, C i Indicates the employee's cumulative task completion score, C threshold Indicates the score threshold for credit line increase; The additional credit limit is added to the original credit limit to generate a new credit limit. The superposition formula is: L i =L0+L extra , Among them, L i represents the new credit limit of the i-th employee, L0 represents the employee’s original credit limit, and L extra Indicates the additional credit limit obtained due to task completion.
Citation Information
Patent Citations
An employee salary management system based on a block chain
CN109685450A
Crowdsourcing database construction method and device based on blockchain and natural language processing
CN111930717A
Salary bonus payment system based on blockchain technology and central bank digital currency
CN112651700A
Block chain-based multi-level risk control system and management and control method
CN114626934A