Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article explores ERC7750, a proposal for establishing companies and managing employment agreements through smart contracts.
The following explanation translates, summarizes, and expands on the proposal linked below.
I have also written about a range of other EIPs.
Overview
ERC7750 proposes a Decentralized Employment System (DES) on Ethereum. The DES supports the creation and management of companies, records employment histories using unique employee tokens, and facilitates the formation and fulfillment of employment agreements. It also proposes automating salary payments through escrow and providing a moderation system for dispute resolution. Companies and employees can review each other to help establish trust.
The goal is to use the transparency and immutability of the blockchain to improve trust and accountability throughout the employment lifecycle, from establishing a company and hiring employees to fulfilling and terminating employment agreements.
The system comes into play after a company has completed its employee selection process but before the final employment agreement is signed. Employees hold a Soulbound Token (SBT) that records their employment history, which companies can examine before finalizing the agreement. A soulbound token is a non-transferable NFT intended to provide a tamper-resistant record of an employee's past employment so that employers can make informed hiring decisions. This token-based approach is designed to improve the reliability and transparency of recruitment.
Motivation
Traditional employment systems tend to be centralized and opaque, making it difficult to establish trust. The DES seeks to address these problems through blockchain technology, bringing transparency and trust to the employment process. The proposal outlines the following mechanisms for creating a fair and trustworthy employment ecosystem.
Preventing Record Tampering and False Employment Claims
Recording employment history onchain is intended to prevent tampering and false claims about past employment. Many companies currently make hiring decisions based on resumes and career histories, which can be altered, leaving employers unable to fully trust applicants' past achievements. In the DES, employment histories are recorded through SBTs, allowing past employment to be verified.
Decentralizing Company Formation and Management
The proposal introduces a decentralized way to establish and manage companies. Conventional company registration and incorporation require review by government agencies or other central authorities, which takes time and costs money. The DES proposes conducting the formation process onchain and managing company information and representatives' identities through smart contracts to make the process faster and more transparent.
Reducing the Risk of Contract Breaches
Automating the formation and fulfillment of employment agreements through smart contracts reduces the risk of breaches. With traditional employment agreements, a breach may require costly and time-consuming legal proceedings, such as litigation. The DES encodes contractual terms in smart contracts and releases salaries only when agreed conditions are satisfied, encouraging compliance with employment agreements.
Dispute Resolution
The DES incorporates a moderation system for handling disputes in a decentralized manner. Traditional labor disputes often favor employers, and employees may not receive appropriate compensation. The DES envisages impartial review by an onchain decentralized autonomous organization (DAO) to help ensure that employment agreements are handled fairly.
Mutual Reviews Between Companies and Employees
Companies and employees can review each other to improve trust. In traditional employment relationships, employers often evaluate employees unilaterally. The DES introduces a mechanism through which employees can also evaluate their employers, making the relationship more equitable. Recording reviews onchain makes them tamper-resistant and is intended to support a healthy employment market.
Specification
pragma solidity ^0.8.0;
/// @title Decentralized Employment System Interface
interface IDecentralizedEmploymentSystem {
// Events
event CompanyRegistered(uint companyId, address owner, string name, string industry);
event EmployeeTokenMinted(uint tokenId, address employee);
event ContractCreated(uint contractId, uint companyId, uint employeeTokenId, uint salary, uint duration);
event ContractExecuted(uint contractId);
event SalaryDeposited(uint contractId, uint amount);
event SalaryReleased(uint contractId, address employee);
event DisputeRaised(uint contractId, address raisedBy);
event DisputeResolved(uint contractId, bool decisionForEmployee);
event ContractTerminated(uint contractId, string reason);
event ReviewSubmitted(uint contractId, uint rating, string comments);
// Company Management
function registerCompany(string calldata name, string calldata industry) external returns (uint companyId);
function getCompany(uint companyId) external view returns (string memory name, string memory industry, address owner, uint[] memory employeeIds);
// Employee Management
function mintEmployeeToken(address employee, string calldata metadataURI) external returns (uint tokenId);
function getEmploymentHistory(uint employeeTokenId) external view returns (uint[] memory contractIds);
// Labor Contracts
function createContract(uint companyId, uint employeeTokenId, uint salary, uint duration, string calldata responsibilities, string calldata terminationConditions) external returns (uint contractId);
function executeContract(uint contractId) external;
// Payment System
function depositSalary(uint contractId) external payable;
function releaseSalary(uint contractId) external;
// Dispute Resolution
function raiseDispute(uint contractId) external;
function resolveDispute(uint contractId, bool decisionForEmployee) external;
// Contract Termination
function terminateContract(uint contractId, string calldata reason) external;
// Review System
function submitReview(uint contractId, uint rating, string calldata comments) external;
function getReviews(uint contractId) external view returns (Review[] memory);
// Structures
struct Review {
uint rating;
string comments;
address reviewer;
}
}registerCompany
function registerCompany(string calldata name, string calldata industry) external returns (uint companyId);Overview
Registers a new company on the blockchain.
Details
Registers the company and assigns it a unique companyId.
The registered company is associated with the caller's address, which is recognized as its owner.
Basic company information, including its name and industry, is stored after registration.
Parameters
name- The company's name.
industry- The industry in which the company operates.
Return value
companyId- The unique identifier of the registered company.
getCompany
function getCompany(uint companyId) external view returns (string memory name, string memory industry, address owner, uint[] memory employeeIds);Overview
Retrieves information about a registered company.
Details
Returns the details associated with the specified companyId, including the company's name, industry, owner address, and list of employee token IDs.
Parameters
companyId- The unique identifier of the company to retrieve.
Return values
name- The company's name.
industry- The company's industry.
owner- The company's owner address.
employeeIds- The token IDs of employees associated with the company.
mintEmployeeToken
function mintEmployeeToken(address employee, string calldata metadataURI) external returns (uint tokenId);Overview
Mints a soulbound token (SBT) representing an employee's employment history.
Details
Issues a soulbound token with a unique tokenId to an employee.
The token contains information about the employee's career history and is associated with a metadataURI pointing to offchain metadata.
The token is non-transferable and is intended to protect the employee's history against tampering.
Parameters
employee- The address of the employee receiving the token.
metadataURI- A URI referencing the employee's career information.
Return value
tokenId- The unique identifier of the minted token.
getEmploymentHistory
function getEmploymentHistory(uint employeeTokenId) external view returns (uint[] memory contractIds);Overview
Retrieves the employment history associated with an employee token.
Details
Given an employee's employeeTokenId, returns a list of contractIds for past agreements involving that employee.
Parameters
employeeTokenId- The token ID of the employee whose employment history is being retrieved.
Return value
contractIds- A list of past employment agreement IDs.
createContract
function createContract(uint companyId, uint employeeTokenId, uint salary, uint duration, string calldata responsibilities, string calldata terminationConditions) external returns (uint contractId);Overview
Creates a new employment agreement.
Details
A company uses this function to enter into a new agreement with an employee.
It creates an agreement containing details such as salary, duration, responsibilities, and termination conditions, and assigns it a unique contractId.
Parameters
companyId- The ID of the company creating the agreement.
employeeTokenId- The token ID of the employee covered by the agreement.
salary- The salary payable under the agreement.
duration- The duration of the agreement in months.
responsibilities- A description of the employee's responsibilities.
terminationConditions- The conditions for terminating the agreement.
Return value
contractId- The unique identifier of the newly created agreement.
executeContract
function executeContract(uint contractId) external;Overview
Activates a previously created agreement.
Details
Once the company and employee agree on the terms, calling this function formally activates the agreement.
Parameters
contractId- The unique identifier of the agreement to activate.
depositSalary
function depositSalary(uint contractId) external payable;Overview
Allows a company to deposit salary funds into escrow.
Details
The company deposits the salary specified in the agreement into escrow.
Parameters
contractId- The ID of the agreement for which salary funds are being deposited.
releaseSalary
function releaseSalary(uint contractId) external;Overview
Pays the employee from escrow.
Details
Transfers the salary held in escrow to the employee in accordance with the terms of the agreement.
Parameters
contractId- The ID of the agreement for which the salary is being paid.
raiseDispute
function raiseDispute(uint contractId) external;Overview
Raises a dispute concerning an agreement.
Details
Either the company or the employee can use this function to contest the fulfillment of an agreement.
The dispute is recorded, and an arbitrator is assigned.
The moderator is responsible for investigating the dispute and making an impartial decision.
Parameters
contractId- The unique identifier of the agreement in dispute.
resolveDispute
function resolveDispute(uint contractId, bool decisionForEmployee) external;Overview
Resolves an existing dispute.
Details
The moderator examines the dispute and uses decisionForEmployee to indicate whether the decision favors the employee or the company.
If the decision favors the employee, salary funds held in escrow may be released to the employee.
If it favors the company, funds may instead be returned to the company.
Parameters
contractId- The unique identifier of the agreement whose dispute is being resolved.
decisionForEmployeetrueindicates a decision in favor of the employee;falseindicates a decision in favor of the company.
terminateContract
function terminateContract(uint contractId, string calldata reason) external;Overview
Terminates an agreement.
Details
A company can terminate an agreement when the specified termination conditions are met.
Once the agreement ends, subsequent salary payments stop and the parties are notified.
The reason for termination is supplied in reason and recorded.
Parameters
contractId- The unique identifier of the agreement to terminate.
reason- The reason for termination (for example, failure to fulfill duties or dismissal due to the company's financial situation).
submitReview
function submitReview(uint contractId, uint rating, string calldata comments) external;Overview
Submits a review after an agreement ends.
Details
Once an agreement has been completed or terminated, both the company and the employee can review each other.
The review includes a rating and comments and is made public to help inform future employment decisions.
Parameters
contractId- The ID of the agreement being reviewed.
rating- A numerical rating (for example, a score from 1 to 5).
comments- Specific feedback (for example, "Met all deadlines and did excellent work").
getReviews
function getReviews(uint contractId) external view returns (Review[] memory);Overview
Retrieves reviews for a particular agreement.
Details
Allows users to view evaluations of past agreements.
Companies and employees can use the function to consult other agreement histories.
Parameters
contractId- The ID of the agreement whose reviews are being retrieved.
Return value
Review[]- A list of reviews for the agreement.
- Each
Reviewcontains arating(numerical score),comments(feedback), andreviewer(the reviewer's address).
Employment History
Employment histories are recorded in association with a Soulbound Token (SBT) issued to each employee. Once minted, an SBT cannot be transferred to another person and records the IDs of all past agreements involving that employee. The data is stored onchain, where resistance to third-party tampering is intended to provide a permanent record of employment.
Before hiring a new employee, a company can call getEmploymentHistory to examine the applicant's employment history.
The function returns the agreement IDs linked to the relevant SBT, allowing the employer to examine previous work experience and performance before making a hiring decision.
The immutability of the recorded history is intended to prevent false employment claims and create a more transparent environment for both employers and employees.
Salary Payment System
A company manages salary payments by depositing the specified amount into the smart contract's escrow in accordance with the agreement.
This process uses depositSalary, and the funds remain held until the contractual conditions are satisfied.
To reduce the risk of nonpayment, a company may be required to deposit the salary for the entire agreement period in advance.
Salary payments are made automatically when the specified conditions are met or manually by calling releaseSalary.
The mechanism is intended to ensure timely payments and compensate employees for their work.
Moderation and Dispute Resolution
If disagreements or problems arise between a company and employee concerning the fulfillment of an agreement, either party can raise a dispute by calling raiseDispute.
The dispute is recorded onchain, and a moderator (arbitrator) is automatically assigned.
The moderator examines the evidence and contractual terms and makes an impartial decision to resolve the issue.
To settle the dispute, the moderator calls resolveDispute.
If the decision favors the employee, the salary held in escrow is paid to the employee.
If the company's claim is upheld, some or all of the escrowed funds may be returned to the company.
This approach is intended to allow disputes to be resolved fairly for both parties.
Dismissing Employees
When a company ends an agreement with an employee, it calls terminateContract in accordance with predefined conditions.
The agreement is marked as terminated, and subsequent salary payments stop.
If the employee considers the termination unilateral or unjustified, they can contest it through the dispute resolution process. The moderator examines the contractual terms and evidence, and if the dismissal is found to be unfair, the employee may receive appropriate compensation. The aim is to prevent employers from imposing unfair dismissals unilaterally and to promote a fair working environment.
Review System
After an agreement has been completed or terminated, both the company and employee can review each other using submitReview.
The evaluation includes a rating (numerical score) and comments (written feedback), which are recorded onchain.
These evaluations contribute to a reputation score representing each participant's trustworthiness. Employers can consult past employee reviews to help identify trustworthy candidates. Employees can likewise examine a company's employment history to choose a suitable workplace. The mechanism is intended to improve trust across the ecosystem and encourage responsible behavior.
Rationale
Employee Tokenization
Using Soulbound Tokens (SBTs) to identify employees allows each employee's identity to be managed uniquely onchain. A soulbound token cannot be transferred to another person once issued, and it is intended to help establish the credibility of the employee's professional history.
This design aims to prevent tampering with employment records and lets prospective employers verify an applicant's past work experience.
For example, if an employee has worked at several companies, their employment history is recorded onchain, and a prospective employer can examine it by calling getEmploymentHistory.
Traditional resumes and career histories can be forged or exaggerated. Tamper-resistant records linked to soulbound tokens are intended to support more reliable hiring decisions.
Salary Escrow System
The proposal introduces an escrow system to make salary payments more secure and dependable.
A company calls depositSalary to deposit the salary for the agreement period into a smart contract in advance.
Once fulfillment of the employee's obligations has been confirmed, releaseSalary is called and the funds held in escrow are paid to the employee.
This mechanism helps protect employees against the risk of working without receiving payment.
It also allows a company to withhold payment if the employee fails to perform their duties as agreed, supporting a fair exchange.
For example, if an employee abandons their responsibilities, the employer can call raiseDispute to seek to suspend salary payments.
Using escrow in this way is intended to make salary payments transparent and consistent with the employment agreement.
Moderation and Dispute Resolution
It is difficult to handle every aspect of employment through smart contracts alone, and complex problems may require human judgment. The proposal therefore introduces moderators (arbitrators) who can make impartial decisions when labor disputes arise.
When a company or employee calls raiseDispute, the dispute is recorded onchain and a designated moderator takes responsibility for resolving it.
The moderator examines the contractual terms and submitted evidence, then calls resolveDispute to settle the matter.
For example, if an employee alleges nonpayment of wages, the moderator examines the employment agreement and the work performed before determining whether payment should be made.
The goal is to resolve disputes fairly without either the employer or the employee being disadvantaged unilaterally.
Public Employment History
Making employment histories publicly accessible makes it easier for companies to verify applicants' previous work and make informed hiring decisions. For example, if an employee has an excellent track record, employers can examine that information onchain to identify trustworthy candidates.
Public employment histories can also serve as evidence when a company dismisses an employee unfairly or fails to pay wages. Other job seekers can consult information about employers that previously mistreated employees, discouraging misconduct and promoting a fair working environment.
Review System
After an employment agreement ends, both the company and employee can use submitReview to evaluate the other party.
The review includes a rating (numerical score) and comments (detailed feedback), which are recorded onchain and made public in a tamper-resistant form.
Companies can consult employee evaluations from previous agreements to identify trustworthy candidates. Employees can similarly select companies with a history of providing good working conditions, helping improve the health of the labor market. For example, if a company has repeatedly failed to pay employees, it may accumulate poor reviews, allowing job seekers to recognize the risk in advance.
Security
Contract Integrity
Employment agreements are designed to resist modification or tampering once created and activated. The smart contract records the terms agreed upon by the company and employee onchain, where those terms are intended to remain immutable. This provides transparency and prevents unilateral changes to the terms after the agreement is made. For example, the design aims to prevent an employer from reducing the agreed salary after signing or an employee from claiming that their duties were changed.
When creating an agreement, the parties must specify its terms in detail, including the employment period, salary, responsibilities, and dismissal conditions. After activation, the fulfillment of the agreement is also recorded onchain so it can be examined later.
Security of Funds
Salaries are managed through the smart contract's escrow system.
When a company enters into an employment agreement, it must deposit the funds required for the salary into the smart contract.
The funds are transferred through depositSalary and locked until the contractual conditions are satisfied.
The intended design releases payment to the employee through releaseSalary only when the contractual obligations have been fulfilled.
The mechanism aims to prevent companies from making employees work without paying them and employees from receiving salaries without fulfilling the agreement.
Because fund movements are controlled by the smart contract, the design is also intended to prevent unauthorized third-party withdrawals.
For example, even if a company calls terminateContract to terminate an agreement, the terms and the outcome of any dispute resolution determine whether the salary is payable.
This is intended to protect the rights of both parties.
Moderator Trustworthiness
A decentralized and transparent mechanism is proposed for selecting and overseeing the moderators involved in dispute resolution. Moderators must make impartial decisions when disputes occur, so oversight is required to prevent unfair decisions favoring particular companies or employees. The design envisages selecting moderators through DAO voting to promote impartial and fair decisions.
It also proposes reducing a moderator's reputation score if they engage in misconduct or make unfair decisions. If a moderator's score falls below a specified threshold, their qualification is revoked and a replacement is selected. For example, if a moderator repeatedly favors a particular company, other participants can report that behavior and vote on whether to remove the moderator. These mechanisms are intended to encourage impartial decisions and maintain trustworthy dispute resolution.
Review System Security
The mutual review system requires safeguards against fraudulent evaluations.
The design therefore restricts reviews to parties who actually completed an agreement.
Specifically, only the company or employee associated with the agreement may call submitReview, as identified by the contractId, preventing unrelated third parties from posting false reviews.
The design also limits repeated reviews for the same agreement to prevent excessive manipulation of ratings.
For example, the original explanation proposes limiting reviews for each contractId to one to prevent repeated negative ratings on the same agreement or inflated ratings from fake accounts.
The calculation of reputation scores also considers past reviews and evaluations, with a mechanism intended to reduce the impact of extreme scores on the average. For example, even if a malicious review temporarily reduces a participant's score, its impact may diminish over time. The goal is to maintain a fair and trustworthy review system.
Token Security
The Soulbound Tokens (SBTs) used to manage employment histories are non-transferable once minted. This is intended to prevent other people from appropriating an employee's employment history and to maintain accurate records for each individual employee. For example, whereas ordinary NFTs can be transferred, the SBT is intended to remain with the employee to prevent another person from presenting a false career history.
Data associated with the SBT is managed offchain and accessed through metadataURI.
This approach is intended to manage large volumes of employment history data securely without compromising blockchain scalability.
To protect data from tampering, the design proposes using offchain storage such as IPFS or Arweave to support persistence and tamper resistance.
References
James Savechives (@jamesavechives) james.walstonn@gmail.com, "ERC-7750: Decentralized Employment System [DRAFT]," Ethereum Improvement Proposals, no. 7750, August 2024. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7750.
Conclusion
This article covered ERC7750, a proposal for establishing companies and managing employment agreements through smart contracts. I hope it helped clarify the proposal.
If you have questions, feel free to reach out via Twitter DM.
I also publish on other platforms, which you can explore below.



