Next Article in Journal
Validation and Discussion of Severity Evaluation and Disease Classification Using Tremor Video
Next Article in Special Issue
An Improved Multi-Authority Attribute Access Control Scheme Base on Blockchain and Elliptic Curve for Efficient and Secure Data Sharing
Previous Article in Journal
Radar-Assisted Multiple Base Station Cooperative mmWave Beam Tracking
Previous Article in Special Issue
Blockchain Data Scalability and Retrieval Scheme Based on On-Chain Storage Medium for Internet of Things Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Managing Expatriate Employment Contracts with Blockchain

by
Yazeed Alabdulkarim
1,*,
Abdulmajeed Alameer
2,
Mohammed Almukaynizi
1,
Nasser Allheeib
1,
Fahad Alkadyan
1 and
Abdulaziz Almaslukh
1
1
Department of Information Systems, College of Computer and Information Sciences, King Saud University, P.O. Box 51178, Riyadh 11543, Saudi Arabia
2
Department of Computer Science, College of Computer and Information Sciences, King Saud University, P.O. Box 51178, Riyadh 11543, Saudi Arabia
*
Author to whom correspondence should be addressed.
Electronics 2023, 12(7), 1673; https://doi.org/10.3390/electronics12071673
Submission received: 27 February 2023 / Revised: 22 March 2023 / Accepted: 28 March 2023 / Published: 1 April 2023
(This article belongs to the Special Issue Recent Advances in Blockchain Technology and Its Applications)

Abstract

:
Expatriates, or migrant workers, are employees who work outside their home country and reside in a foreign country for the purpose of work. They are often subject to job fraud, employment contract violations, and poor working conditions. These calamities are mainly due to language barriers, limited legal protection, and feeling inferior in their host countries. Many reports have indicated that minimum working and living standards for expatriates are not as adequately enforced as those for domestic employees. These issues may be elevated with the presence of an employment contract framework, which would enable better enforcement and wider visibility for both workers and employers. Thus, we propose a blockchain-powered framework to represent expatriate employment contracts as digital assets managed by smart contracts. It enables employers to create contracts to which employees agree in a decentralized, tamper-proof, transparent, and traceable manner. This framework facilitates auditability, tracking, and enhanced visibility of expatriate employment contracts and job history verification for both workers and employers. We provide a prototype implementation using the Hyperledger Fabric platform and analyze the framework qualitatively from scalability, efficiency, security, and privacy perspectives.

1. Introduction

An expatriate employment contract is a legally enforceable agreement between an employer in one country and a worker who is not a citizen or a permanent resident of that country. Most expatriates do not intend to settle permanently in the country where they are employed. However, some workers extend their stay in the host country and become migrant workers. Expatriate employment contracts spell out each party’s roles and responsibilities and their respective obligations regarding pay and perks. In 2019, individuals leaving their home nations temporarily or permanently for employment accounted for approximately 69 percent of the world’s international migrant population aged 15 and over [1].
The increase in cross-border employment has largely benefited the global economy. On the one hand, seeking to work abroad is often driven by the need to improve the social conditions of individuals and their families and the limitation of the local demand for labor [2]. On the other hand, employers often seek to hire workers from other countries to fulfill the demand for skilled workers, often at a lower cost than their local counterparts [3]. Furthermore, crossing borders to engage in a working relationship may indirectly benefit the sending and receiving countries by balancing job shortages in the sending countries and fulfilling working demands in the receiving countries.
Despite the many benefits to all mentioned parties, expatriates may go through poor experiences with their employers. Many reports have indicated that expatriate workers’ minimum working and living standards are not as adequately enforced as they are for domestic employees [4,5,6]. Additionally, expatriate workers have long been victims of job fraud and verbal or physical abuse from their employers. They are often assigned more dangerous jobs than their local counterparts (see [2] for a survey). On the other hand, the recruitment process of expatriate workers is often costlier to the employers and associated with many uncertainties related to verification of previous work experience and qualifications [7,8]. These issues may be elevated with the presence of a contract framework that enables better enforcement and wider viability of both workers’ and employers’ history.
Researchers have proposed various contracting solutions to address the issues associated with hiring and managing freelancing and part-time contracts. Many of the proposed solutions have leveraged blockchain technology to automate and document the processes associated with contracting relationships [9,10,11]. However, the existing attempts are mainly focused on freelancing and part-time contracts. To the best of our knowledge, this is the first proposal to address issues associated with full-time expatriate employment contracts—a type of contract that is very distinct in nature and experience for both employees and employers. Our goal in this paper is to leverage blockchain technology to provide a framework for managing and overseeing these contracts.
Therefore, we propose a blockchain-powered framework to represent expatriate employment contracts as digital assets and manage them with smart contracts. Our proposed framework allows employers to create contracts and employees to agree to them in a decentralized, tamper-proof, transparent, and traceable manner. Our solution allows employers to view and verify the worker’s employment history. On the other hand, employees can also view the employer’s hiring and dispute history. These features help both parties support their employment decision and minimize the risk and cost of employment contract fraud and violations.
The main contributions of this paper are summarized as follows:
  • A blockchain-powered framework for managing expatriate employment contracts;
  • A design for 12 smart contract transactions allowing for issuing disputes and job history verification;
  • A publicly available proof-of-concept implementation of our framework using permissioned blockchain;
  • A detailed qualitative analysis of seven properties associated with the framework design to demonstrate its efficiency, scalability, security, and privacy.
The rest of this paper is organized as follows: Section 2 reviews the related work. In Section 3, we provide a thorough background. In Section 4, we explain the features of the proposed framework and detail its design aspects. Section 5 provides a qualitative analysis of the properties of our proposed framework. Section 6 details the implementation choices for a prototype of the proposed framework. We discuss some of the limitations and challenges to the practical application of our framework in Section 7. Section 8 concludes the paper.

2. Related Work

The impact of blockchain is evident in the digital currencies space after the invention of Bitcoin more than a decade ago [12]. Recently, there has been considerable work focused on different domains and use cases other than digital currencies, financial applications such as health care [13], supply chain management [14,15], elections [16], Privacy-Preserving such as federated learning [17], secure blockchain-based domain name systems [18], and human resources management [19,20,21]. The main properties of blockchain, such as immutability, transparency, and decentralization, make it the right choice to solve a wide variety of real-world problems in certain contexts.
In human resource management, hiring workers among different candidates is a tedious and difficult task. In addition, ensuring the workers’ rights is even more critical and significant. There have been many attempts to address the problem of hiring workers by utilizing blockchain technology to verify the education, skills, and employment of the workers [9,10,11] and to create and sign electronic work contracts that are certified, unforgeable, and stored encrypted over cloud servers [22]. Moreover, ref. [23] proposes a blockchain-based solution to automate the process of temporary employment contracts while ensuring respect for the rights of all parties involved. Hiring expatriate employees makes the task even more complicated because it involves different unrelated parties. For example, a company that hires expatriate employees has limited access to the institutions of the employees’ home countries. Thus, it would be difficult to verify any claims of education or employment records of the applicants.
In an attempt to address the automation of temporary worker payments, the ChronoBank platform [24] proposed to bind the labor hours with a stablecoin currency called Labor-Hour Tokens (LHT) that can be backed by any existing fiat currency or physical store of wealth in addition to legally binding contractual obligations. However, the platform falls short of providing services to expatriate employees’ contracts due to the centralized nature of the proposed platform, where it is meant to be a single deployment and only applicable to a single economic region.
Freelancing is another approach to hiring temporary workers practiced by individuals and companies to complete a specific task during a predefined time. Most freelancing platforms [25,26] are centralized and charge significant fees. To make freelancing more cost-effective, there is a body of work [27,28] proposed to eliminate the centralized third party utilizing blockchain technology. On the other hand, this work focuses on addressing the issues of managing expatriate employees, starting from hiring, ensuring the legitimacy of the provided documents, meeting the contract terms and conditions, and terminating the contract while preserving the rights of both the worker and the employer.

3. Background

In this section, we provide background information related to expatriate employment issues. In addition, we also give a brief overview of blockchain technology.

3.1. Expatriate Employment

Expatriate employees, also called overseas employees and migrant employees, are employees who are employed outside of their home country and reside in a foreign country for the purpose of work. These employees may be employed on a permanent or temporary basis, and their duties may vary depending on their skills and qualifications. The Gulf Labor Markets Migration and Population (GLMM) program reports a number of 30 million foreign workers in the Gulf Cooperation Council (GCC), making up 52 percent of the entire population of the region [29]. The status and working conditions of these employees can vary greatly depending on the host country and their employment contract.
Expatriate employment offers numerous benefits for both the employee and the employer. For the employee, it typically provides higher income compared to local jobs, making it a financially attractive option. For the employer, it gives access to a bigger pool of skilled and qualified workers that may not be available locally. However, these benefits come with many legal, logistical, and ethical issues.
A major issue in expatriate employment contracts is determining the law that governs the employment relationship when an employment dispute arises [30]. Several reports show that expatriate employees often face employment contract issues due to the lack of legal protection and language barriers in their host countries [31,32]. They may be promised certain working conditions, wages, and benefits, but these promises are not always fulfilled. Additionally, expatriates might need to pay high recruitment fees, which can lead to debt exploitation [33]. These issues become more devastating when an employee falls victim to job fraud. Several incidents have been reported where scammers reach out to workers promising employment in exchange for a fee. Once the fee is paid, the job never materializes, leaving the employee without their money and without job prospects [34,35,36]. Even when securing the job, these workers may also be subject to poor living conditions and limited access to healthcare [37,38]. Despite efforts by the hosting countries to improve the working conditions of expatriate workers [39,40,41], reports show that in many cases, laws governing working hours and conditions are usually ignored by employers [39]. The absence of a proper employment contracting framework that gives employees full visibility of their contracts and employer history makes it difficult for them to address these contract issues, which leaves them vulnerable to abuse by their employers.
On the other hand, for most employers, background screening is still a troublesome procedure in the employment process. Most times, background screening is lengthy and inaccurate, especially when it comes to employment and education history verification. These issues are more prevalent in overseas recruitment, where background screening is more difficult due to cultural, legal, and logistical challenges. Employers must have knowledge of cross-border laws and regulations and must also find reliable sources of information about potential employees, which can make the process more complicated and costly.

3.2. Blockchain

In order to implement our framework, we utilize blockchain technology. Blockchain is an immutable, distributed ledger that stores data entries. It allows entities to interact and exchange information with each other without the need for a central trusted governing body. The ledger in the blockchain is a set of growing blocks that store data entries. These blocks are bundled together using cryptographic protocols to ensure they are tamper-proof [42]. The nodes in the blockchain use an efficient, fair, reliable, and secure process to ensure that all transactions on the network are valid and agreed upon. This process is carried out using consensus mechanisms [43].
Blockchain networks have many characteristics that make them suitable for expatriate employment contracts. These characteristics include:
  • Decentralization: there is no centralized governing authority in charge of validating and approving the records in the ledger of the blockchain;
  • Immutability: records stored in the blockchain are permanent and unalterable, and no node on the network will be able to change, edit, or delete them;
  • Transparency: all nodes in the blockchain network have a complete and auditable copy of the ledger of transactions;
  • Traceability: all transactions can be traced. Thus, a full history of any record can be retrieved at any given time.

3.2.1. Public vs. Permissioned Blockchain

Blockchain networks can be categorized into two types that vary in their accessibility and level of control: public and permissioned. A public blockchain, such as Bitcoin [12] and Ethereum [44], is open to anyone to join without any restrictions, while the permissioned blockchain (also known as a private blockchain) restricts access to the blockchain to only known participants. The basic characteristics of blockchain networks may vary between the two types. For example, public blockchains are usually more complex due to their openness, which requires a careful design and a proper consensus mechanism that may impact the network’s scalability and performance. In addition, public blockchain may not be suitable for sharing sensitive information, such as employment contract data, since shared records will be visible to all network participants. On the other hand, permissioned blockchains are more suitable for sharing sensitive data and tend to be less exposed to attacks than public blockchains due to their restrictiveness and the known identity of the network participants.

3.2.2. Blockchain Smart Contracts

Blockchain smart contracts are self-executing contracts with the terms of the agreement between two parties directly written into lines of code. The code and the agreements contained within the contract exist on a decentralized blockchain network. A smart contract is similar to a legal agreement between two parties, which includes predetermined terms and conditions on which the contract parties agreed. A smart contract is activated automatically when the terms of the agreement are met, executing them without the need for a central authority. This results in a more efficient, secure, and transparent process, as the agreement terms are recorded on the blockchain and can be audited and validated by any party on the network. Several platforms and languages have been implemented to support smart contracts. Table 1 compares the most popular smart contract platforms.

4. Design

We leverage blockchain technology to design a framework that manages expatriate employment contracts. It enables employers to create contracts and employees to agree to them in a decentralized manner. Consequently, employment contracts become transparent and traceable with a tamper-proof ledger for all transactions. Section 4.1 provides an overview of our framework along with its functionalities and features, and Section 4.2 lays out the details of the blockchain smart contracts that manage employment contracts. Lastly, Section 4.3 describes the blockchain network architecture.

4.1. Functionalities and Features

An employment contract represents a legal agreement between an employer and an employee, specifying job responsibilities, benefits, terms, rights, obligations, etc. We use smart contracts to manage employment contracts as digital assets in the blockchain network, including the above-mentioned details. Furthermore, a smart contract determines the transactions that all parties may execute and their conditions. Using smart contracts leads to the efficient execution of the employment contract terms and enhances transparency for employees, employers, and oversight organizations.
One may create a new smart contract to manage each employment contract. However, this one-to-one mapping would increase the number of smart contracts significantly. We leverage the fact that it is common for a set of employment agreements to share and follow the same contract template. This contract template states the duties, rights, and legal terms for a specific job description and is filled out with the details of the workers and employers for each employment contract. For example, domestic workers in Saudi Arabia follow the same contract template stating their terms and conditions [45], which is populated with the worker, employer, job, and salary details per employment contract. Thus, we design and implement each smart contract to capture a contract template. The populated information, such as the employer, worker, job, and benefit details, are stored as contract JSON objects (see Section 4.2). In essence, employment contracts are created by adding new object instances to their associated smart contract. This design enables a smart contract to manage a set of employment contracts instead of one-to-one mapping. Consequently, a smart contract may manage multiple employment contracts, while an employment contract is managed by precisely one smart contract.
We define E C i , j as an employment contract between employer i and worker j. E C i , j has a set of terms and conditions corresponding to a contract template, and C T a = { p : p i s a c o n t r a c t t e r m } . E C i , j is managed by a smart contract S C a consisting of transactions and contract JSON objects:
S C a = { t x n : t x n i s a c o n t r a c t t r a n s a c t i o n } { O i , j : O i , j i s c o n t r a c t o b j e c t b e t w e e n i a n d j }
S C a manages a set of O i , j , and every t x n must obey every condition p in the corresponding C T a .

4.1.1. Basic Transactions

An employer begins using our framework by creating an employment contract object, O i , j . This contract object represents E C i , j and is managed by its corresponding smart contract, S C a . Both the employer and employee perform actions by executing transactions ( t x n ) of S C a . First, the employer adds O i , j to the blockchain using S C a to initiate E C i , j , which the employee must approve to establish the agreement. Moreover, transactions ( t x n ) of S C a facilitate extending or updating the employment contract by the employer, which the employee must also approve. Another essential functionality is contract termination. An employee/employer may issue a contract termination transaction that must be approved/acknowledged by the other party.

4.1.2. Raising Disputes

An employee may issue a dispute transaction to raise job-related complaints, and her/his employer may issue a response transaction to reply to the employee’s claims. This functionality captures workplace disputes, which are very common. Employees raise disputes to protect and compensate themselves from the wrongful doings of employers as they tend to have the upper hand in the employer–employee relationship. This unfair situation is exacerbated with expatriate contacts due to the limited support for expatriate workers (see Section 3 for details). Consequently, it is critical to include disputes in our employment contract framework.
Moreover, storing employment disputes in the blockchain is a way to capture the quality of the employer–employee relationship. Employment contract terms and conditions are not comprehensive, as it is impossible to cover all aspects of the employment relationship. They tend to focus on quantitative elements, such as salaries and other benefits, leaving qualitative qualities, such as discrimination and harassment, subject to local laws. These qualities are harder to protect and prove a violation.
However, handling disputes is challenging as they may be actual or alleged. The verification of claims requires human investigation efforts. It may include several dimensions that a technical solution alone cannot handle, especially for expatriate contracts, as it may include multiple different jurisdictions. Thus, our framework provides the functionality of raising disputes and responses with a disclaimer about their correctness. This mechanism is similar to Google Maps reviews [46] that customers write about their experience with businesses.

4.1.3. Verify Working History

A blockchain-based solution to manage expatriate employment contracts provides other inherited benefits. For example, it facilitates viewing the overseas working history of job candidates. Conversely, workers can view an employer’s hiring history of expatriates. These data should aid each party in supporting their employment decision. These features are possible because all contracts and transactions are stored transparently in a tamper-proof ledger.

4.2. Employment Smart Contract

A smart contract S C a is implemented for each contract template C T a and provides the terms (p) that must be satisfied for a set of employment contracts E C i , j . Our framework supports implementing multiple smart contracts to capture the various terms and conditions of employment contracts. For example, a smart contract may be created for construction workers and another for medical practitioners. Each of these smart contracts will manage the employment contracts associated with it.
An employment contract ( E C i , j ) is converted to a digital asset ( O i , j ), added to the blockchain using S C a , and stored as key–value pairs in the blockchain network. Its key is a unique identifier for the contract, and its value is a JSON object. The JSON object contains all the employment contract information, such as job and benefits details. Figure 1 shows an example of a JSON object ( O i , j ) representing an employment contract, E C i , j . JSON provides the flexibility to add data items, as required, to fit the various data requirements for employment contracts. The shown JSON example consists of seven main elements, as described below.
  • Contract: captures high-level contract information, such as its identification number, duration, and status;
  • Employer: provides data about the employer, such as name and address details;
  • Employee: provides data about the employee, such as name and contact details;
  • Job: describes the job details, such as position and task description;
  • Benefits: states the job benefits, such as salary, allowances, and annual increase;
  • Disputes: lists the disputes, if any, that are raised by the employee with their content and the last update dates;
  • Responses: list the employer responses, if any, for disputes the employee raises.
Moreover, the smart contract contains the transactions ( t x n ) that employees and employers may execute as part of their employment agreements. Each transaction t x n implements the necessary controls and checks associated terms (p) for its actions as stated in the employment template C T a . For example, a contract termination transaction may check the contract’s elapsed time to determine the necessary conditions according to C T a , such as setting a maximum period of three months for unilateral termination. We do not go into the details of the checks and conditions for each transaction because they may be implemented as desired to match the employment agreement.
Smart contract transactions may be implemented to autonomously execute to enhance the efficiency and compliance of employment contracts. They may permit both employees and employers or just one party to issue them. Furthermore, these transactions may require the approval of the employee, employer, or both. Table 2 shows a design of the smart contract transactions for our framework, along with their inputs, outputs, issuing party, and approval requirements. These smart contract specifications are flexible and may be changed as desired without impacting the overall framework or its value.

Reuse of Smart Contracts

Our framework may require deploying many smart contracts to capture the variety of employment contract templates ( C T a ). The number of smart contracts becomes even larger as we limit a smart contract to manage employment contracts between two countries to protect data privacy (see Section 4.3 for details). This large number of smart contracts may lead to code defects [47,48] that are hard to fix because smart contracts become immutable once deployed. One solution to this issue is reusing verified smart contract code. Since smart contracts implement employment contract templates, their code may be reused to capture new templates. Code reusing and cloning techniques [49,50,51] enhance the security of smart contracts and reduce the number of bugs.

4.3. Network Architecture

This subsection describes the architecture of the blockchain network. It provides details about the selected blockchain network type, its nodes, clients, and the interaction between them.

4.3.1. Blockchain Type

Employment contracts contain personal and private data, such as contact and benefits information. Since blockchain networks are typically open and transparent, we must carefully design our framework to prevent exposing sensitive data. Consequently, we opt for a permissioned blockchain network, such as Hyperledger Fabric [52], to have better control over participants and access permissions. In contrast, a public blockchain will permit anyone to join the network and expose employment contracts’ private data. One may conceal or encrypt such data, but it will render the solution less useful and defeat the purpose of having a blockchain to share information in the first place. With a permissioned blockchain, peer nodes participating in the network are known, and data access permissions may be specified as required.

4.3.2. Blockchain Nodes

An essential aspect of expatriate employment contracts is handling the approval requirements of both the employer and worker countries. Another critical requirement is protecting the privacy of data and transactions corresponding to employment contracts. Thus, we create a private communication channel in the blockchain network between every two participating countries to manage their employment contracts (see Figure 2). Each channel has its own ledger of transactions. More than two countries could establish a channel between them. However, required access permissions must be set to protect the privacy of data, as it becomes exposed to all countries in that channel.
Furthermore, we limit each smart contract ( S C a ) to manage employment contracts between exactly two countries and deploy it on the proper blockchain channel. For example, Saudi Arabia and India may create one or more smart contracts to manage their employment contracts and deploy them on their corresponding channel. New smart contracts must be created to manage the employment contracts between Saudi Arabia and the Philippines.
Member countries are represented as peer nodes in a blockchain network channel. These peers could be governmental agencies responsible for the job and foreign affairs, such as the Ministry of Labor or the Ministry of Exterior. They handle the creation of smart contracts and execute transactions on their channels. Peers accept requests from employees/employers who are represented as clients. A peer has access to smart contracts ( S C a ) to manage the employment contracts E C i , j of its employees and employers. Each peer uses the proper smart contracts to access and manage the employment contracts belonging to its country.

4.3.3. Blockchain Clients

A peer node receives requests from clients (i.e., employers/employees) to execute transactions t x n of S C a , such as initiating and extending an employment contract. First, the designated peer must approve the transaction and sign it using its Public Key Infrastructure (PKI) [53,54] to prove its identity. Then, the peer issues and executes the smart contract transaction to record it in its blockchain network channel.
A client sends requests through its county’s peer to execute transactions in the blockchain network channel. The method of communication between peers and their clients is outside the scope of the blockchain network and may be implemented in various ways. Countries may select their proper mechanisms for peer–client communications. For example, a country may provide a web portal for its citizens to communicate with the designated peer in the blockchain network. This peer–client design ensures that any transaction executed in the blockchain network is verified by the designated agency of its issuing country and complies with its regulations.
To summarize, we show a high-level workflow of managing employment smart contracts in Figure 3. It begins with two countries joining a blockchain channel and creating a smart contract. After deployment, employees/employers perform actions by executing smart contract transactions through their country peers.

5. Framework Analysis

We analyze the main qualitative properties of our proposed framework presented in Section 4 from different aspects. We describe and analyze each property, such as integrity and transparency, in the context of managing expatriate employment contracts. The proposed framework uses the permissioned blockchain Hyperledger Fabric framework (HLF), which enables building highly configurable networks.

5.1. Integrity and Non-Repudiation

Public key infrastructure (PKI) is an essential building block of the distributed ledger technology where the transaction cannot be appended to the chain unless the transaction has an authorized digital signature that ensures integrity and non-repudiation.

5.2. Transparency

Transparency is one of the most significant features of blockchain technology. Employees, employers, and government organizations are able to view all transactions and track their history. Additionally, the deployed smart contract is verified and agreed upon. This helps the network achieve a high confidence level between all the network participants. More specifically, the two participating countries—the country representing the employee and the other county representing the employer—have an identical approved smart contract. Any transactions should satisfy the terms and conditions of the approved smart contract. Additionally, any unilateral attempt to change the terms and conditions without the approval of the other peer means the transaction violates the smart contract and would be rejected.

5.3. Immutability

Blockchain technology inherently ensures the immutability of the stored information as this information is protected and tamper-proof by employing the hashing of the previous block. Therefore, any malicious change attempt in any piece of the transaction would invalidate all the following blocks.

5.4. Scalability

The underlying components of the blockchain network heavily affect the scalability of the running application. One of the major factors impacting scalability is the consensus protocol. Choosing the right consensus protocol can help the scalability significantly. Since the proposed framework is implemented using HLF, which is a highly scalable network compared to the public blockchain network such as Ethereum. Several studies in the literature have evaluated HLF scalability extensively [55,56,57,58,59,60].

5.5. Security and Privacy

The permissioned blockchain network ensures security because of the access control layer. All the network participants are known in contrast to the public blockchain. Thus, only network participants (the participating two countries in our case) are allowed to execute the transactions to which they are authorized. In the same way, privacy is ensured by the channel that is established between the participants to exchange data between them. Therefore, the data are exclusively limited to the channel participants, and no one outside the network has access to these data. Updating the data should be conducted according to the approved smart contract by which all transactions are governed.

6. Prototype Implementation

We use Hyperledger Fabric [52] to implement a proof of concept for our framework [61] as a permissioned blockchain network. Furthermore, we employ the Fablo tool to spin off a Hyperledger Fabric network [62] quickly. The blockchain network comprises two organizations representing CountryA and CountryB. Each country has a Membership Service Provider (MSP) that handles identity and authentication issues using PKI. We utilize Hyperledger Fabric’s cryptogen utility tool to generate the public and private keys for all entities in the network. We create two orderer instances for the ordering service of Hyperledger Fabric. The ordering service implements Raft as the consensus protocol [63] for the blockchain network.
We create a peer node for each country to maintain a replica of the blockchain ledger state. Multiple peers per country can be created for availability and durability purposes. Peers issue read/write transactions on behalf of their countries and act as endorsers that must approve transactions to be considered valid. We implement one smart contract ( S C a ) that captures an employment agreement template ( C T a ) between CountryA and CountryB. The smart contract stores the associated employment contracts digitally as key–value pairs. A digital employment contract is represented as a JSON object ( O i , j ) capturing its content and benefit details, along with the smart contract’s transactions ( t x n ), implementing the actions and processes of the C T a and satisfying all of its terms (p).
Next, we build one channel to privately communicate between CountryA and CountryB and deploy the created smart contract ( S C a ) on it. For evaluation, we show screenshots of the execution of the smart contract transactions. The performance and overhead characteristics of our framework are dependent on its underlying blockchain platform, namely Hyperledger Fabric (HLF). The performance and scalability of HLF have been extensively evaluated in previous work [55,56,57,58,59,60], showing superior results. This is attributed to several design decisions, including the fact that HLF operates in a permissioned blockchain network, which allows it to opt for more scalable consensus protocols and avoid protocols with limited performance characteristics, such as Proof of Work [64,65].

Prototype Demonstration

We implement a smart contract in Golang [66] with the transactions shown in Figure 4. First, we show the peer of CountryA representing an employer and executing the “AddContract” transaction with a JSON object as input. The JSON object represents the employment contract to be added with status “Pending” (see Figure 5). The peer of CountryB represents the employee and executes the transaction “ApproveContract” or “RejectContract” to either approve or reject the contract, respectively, and sets its status accordingly. Figure 6 shows the employee peer approving the contract, changing its status to “Active”.
We show the execution of “UpdateContract” and “ExtendContract” transactions to update and extend the contract, respectively, (see Figure 7 and Figure 8). Both the employer and employee peers must approve these transactions. A new JSON file is provided as input to the “UpdateContract” transaction, as shown in Figure 7. For “ExtendContract”, the contract extension transaction has failed due to violating one control of the employment agreement that permits contract extensions during the last three months (see Figure 8).
Next, we show the cycle of raising disputes. An employee issues a dispute through her/his peer, CountryB, and executes the “IssueDispute” transaction with the dispute content and contract ID as inputs (see Figure 9). The employer responds to her/his peer, CountryA, and executes the “RespondDispute” transaction with the response content, contract, and dispute IDs as inputs (see Figure 10). Finally, the employee closes the dispute through her/his peer, CountryB, and executes the “CloseDispute” transaction with the contract and dispute IDs as input (see Figure 11).
Last, we show the employee and employer contract histories by looking up their IDs and viewing their previous contract statistics in Figure 12 and Figure 13, respectively. We show the total number of contracts, specifying their status as terminated, active, or pending. We show similar stats for the number of disputes and their status as open or closed. Retrieved stats can be easily extended to compute the desired metrics since all contracts and transactions are stored transparently in the blockchain network.

7. Discussion

Our proposed framework is an application of blockchain and smart contracts to manage expatriate employment contracts between countries in a decentralized manner. Each country joins a blockchain network and executes transactions that are governed by smart contracts to manage the work agreements of its employees/employers. Thus, successful implementation of this framework requires government endorsement to utilize its benefits and enforce legal consequences. Countries may approve the use of this framework as part of their foreign governments’ agreements to help protect their workers/employers and ensure compliance. If our solution is widely adopted, its collected data will be great assets for understanding and analyzing expatriate employment contracts and their issues. Furthermore, it can be utilized to determine the local needs of the workforce and potentially predict them using machine learning models. Similarly, it may help guide the hiring of workers with certain skills, as it provides a verified record of overseas working experience.
This blockchain-based framework has two main challenges: off-chain requirements and contract compliance verification. Governments may require essential actions or paperwork before establishing employment agreements that are outside the blockchain network and scope. For example, governments may require employers and employees to obtain work permits. This ensures that local laws and regulations are followed. However, these requirements are external to the blockchain network and require integrating with local agencies to obtain and verify off-chain data. Our framework may facilitate fulfilling these requirements via smart contracts. However, it must be extended to support retrieving and verifying external and off-chain data accordingly. For example, before initiating an employment contract, both the employee and employer must provide the prerequisite documents as input to the smart contract. The blockchain network must be integrated with the necessary government application programming interfaces (APIs) to verify the validity and completeness of these documents. Another solution to increase the boundary and scope of our framework is through blockchain interoperability. Recently, there is some theoretical and practical studies conducted to propose new approaches of cross-chain bridges to facilitate sharing and exchanging data between heterogeneous blockchain networks [67].
The second challenge is compliance verification with some employment contract terms and conditions. For instance, a contract may require an employee to work up to 50 h per week. However, an employer may violate this contract term by forcing her/his employee to work more hours or accept a reduced salary than agreed upon in the contract. Furthermore, an employee may be forced to work a job different than what is stated in her/his contract. For example, an employee accepting a technician job position may be forced to work as a delivery driver, violating the job description of the signed contract.
Our framework cannot verify compliance for specific contract terms as they may require manual investigation efforts or processing of external supporting documents, such as bank statements. We mitigate this limitation by enabling employees to raise disputes. An employee may use this functionality to highlight any issues related to her/his contract and record it in the blockchain.

8. Conclusions

The management of current expatriate employment contracts may be optimized to provide a better experience for workers and employers. Therefore, we propose a framework that leverages smart contracts to manage employment agreements as digital assets in the blockchain network in a decentralized manner. Blockchains are highly customizable networks. Legal terms, job details, benefits, and other related standards and conditions may practically be modeled using smart contracts. We show that our framework supports implementing varying smart contracts depending on the terms and conditions of the employment contracts that need to be managed. This flexibility is very necessary to accommodate the varying nature of expatriate jobs. Additionally, the proposed smart contract transactions are designed to establish trust among workers and employers by maintaining transparent historical employment records. This accounts for many of the issues with current employment contracts. Our choice of implementing a system on a permissioned blockchain network is justified by the need to protect contracts’ sensitive data-leveraging properties that are inherent to the blockchain, namely: (1) integrity and non-repudiation, (2) transparency, (3) immutability of information, (4) scalability, and (5) security and privacy. To put this into context, we provide a publicly available concrete implementation of our proposed framework with one smart contract that can perform 12 different transaction types. Finally, while our proposed framework may not guarantee the enforcement of contract agreements, it provides tools to mitigate violations of such agreements resulting from the inability to verify historical employment records or check dispute cases. The proposed framework may be further extended in the future by adding applications that enable workers and employers to query de-identified statistical summaries about expatriate employment contracts from the blockchain. Such a configuration would greatly benefit understanding the existing issues and overall satisfaction levels across different industries and participating countries.

Author Contributions

Conceptualization, Y.A., A.A. (Abdulmajeed Alameer), M.A., N.A. and A.A. (Abdulaziz Almaslukh); Methodology, Y.A.; Software, F.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research project was supported by a grant from the Researchers Supporting Project number (RSP2023R451), King Saud University, Riyadh, Saudi Arabia.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
APIApplication Programming Interface
GCCGulf Cooperation Council
GLMMThe Gulf Labor Markets Migration and Population
HLFHyperledger Fabric
JSONJavaScript Object Notation
LHTLabor-Hour Tokens
MSPMembership Service Provider
PKIPublic Key Infrastructure
SCSmart Contract
txntransaction
C T a A contract template
E C i , j Employment contract between employer i and worker j
O i , j Contract object between employer i and worker j
pContract term
S C a A smart contract

References

  1. Labour Migration. Available online: https://www.migrationdataportal.org/themes/labour-migration (accessed on 20 February 2023).
  2. Mucci, N.; Traversini, V.; Giorgi, G.; Tommasi, E.; De Sio, S.; Arcangeli, G. Migrant workers and psychological health: A systematic review. Sustainability 2019, 12, 120. [Google Scholar] [CrossRef] [Green Version]
  3. Moyce, S.C.; Schenker, M. Migrant workers and their occupational health and safety. Annu. Rev. Public Health 2018, 39, 351–365. [Google Scholar] [CrossRef] [Green Version]
  4. Hasan, S.I.; Yee, A.; Rinaldi, A.; Azham, A.A.; Mohd Hairi, F.; Amer Nordin, A.S. Prevalence of common mental health issues among migrant workers: A systematic review and meta-analysis. PLoS ONE 2021, 16, e0260221. [Google Scholar] [CrossRef] [PubMed]
  5. Burns, R.; Zhang, C.X.; Patel, P.; Eley, I.; Campos-Matos, I.; Aldridge, R.W. Migration health research in the United Kingdom: A scoping review. J. Migr. Health 2021, 4, 100061. [Google Scholar] [CrossRef] [PubMed]
  6. Mailan Arachchige Don, R.K.; Hong, S.C. Sri Lankan migrant worker perceptions of workplace hazard and safety awareness: Case of the manufacturing industry in Korea. Int. J. Occup. Saf. Ergon. 2022, 28, 2355–2361. [Google Scholar] [CrossRef] [PubMed]
  7. Ruhs, M. The rights of migrant workers: Economics, politics and ethics. Int. Labour Rev. 2016, 155, 281–296. [Google Scholar] [CrossRef]
  8. Dench, S.; Hurstfield, J.; Hill, D.; Akroyd, K. Employers’ Use of Migrant Labour: Main Report; Home Office: London, UK, 2006. [Google Scholar]
  9. Saleh, O.S.; Ghazali, O.; Rana, M.E. Blockchain based framework for educational certificates verification. J. Crit. Rev. 2020, 7, 79–84. [Google Scholar] [CrossRef]
  10. Caldarelli, G.; Ellul, J. Trusted academic transcripts on the blockchain: A systematic literature review. Appl. Sci. 2021, 11, 1842. [Google Scholar] [CrossRef]
  11. Liu, L.; Han, M.; Zhou, Y.; Parizi, R.M.; Korayem, M. Blockchain-based certification for education, employment, and skill with incentive mechanism. In Blockchain Cybersecurity, Trust and Privacy; Springer: Basel, Switzerland, 2020; pp. 269–290. [Google Scholar] [CrossRef]
  12. Nakamoto, S. Bitcoin A: Peer-to-Peer Electronic Cash System, Volume 4. Bitcoin, 2008. Available online: https://bitcoin.org/bitcoin.pdf (accessed on 31 March 2023).
  13. Agbo, C.C.; Mahmoud, Q.H.; Eklund, J.M. Blockchain technology in healthcare: A systematic review. Healthcare 2019, 7, 56. [Google Scholar] [CrossRef] [Green Version]
  14. Saberi, S.; Kouhizadeh, M.; Sarkis, J.; Shen, L. Blockchain technology and its relationships to sustainable supply chain management. Int. J. Prod. Res. 2019, 57, 2117–2135. [Google Scholar] [CrossRef] [Green Version]
  15. Queiroz, M.M.; Telles, R.; Bonilla, S.H. Blockchain and supply chain management integration: A systematic review of the literature. Supply Chain. Manag. Int. J. 2020, 25, 241–254. [Google Scholar] [CrossRef]
  16. Bhadoria, R.S.; Das, A.P.; Bashar, A.; Zikria, M. Implementing Blockchain-Based Traceable Certificates as Sustainable Technology in Democratic Elections. Electronics 2022, 11, 3359. [Google Scholar] [CrossRef]
  17. Peng, Z.; Xu, J.; Chu, X.; Gao, S.; Yao, Y.; Gu, R.; Tang, Y. Vfchain: Enabling verifiable and auditable federated learning via blockchain systems. IEEE Trans. Netw. Sci. Eng. 2021, 9, 173–186. [Google Scholar] [CrossRef]
  18. Li, Z.; Gao, S.; Peng, Z.; Guo, S.; Yang, Y.; Xiao, B. B-DNS: A secure and efficient DNS based on the blockchain technology. IEEE Trans. Netw. Sci. Eng. 2021, 8, 1674–1686. [Google Scholar] [CrossRef]
  19. Onik, M.M.H.; Miraz, M.H.; Kim, C.S. A recruitment and human resource management technique using blockchain technology for industry 4.0. In Proceedings of the Smart Cities Symposium, Bahrain, Saudi Arabia, 22–23 April 2018; IET: London, UK, 2018; pp. 1–6. [Google Scholar] [CrossRef] [Green Version]
  20. Wang, X.; Feng, L.; Zhang, H.; Lyu, C.; Wang, L.; You, Y. Human resource information management model based on blockchain technology. In Proceedings of the 2017 IEEE Symposium On Service-Oriented System Engineering (SOSE), San Francisco, CA, USA, 6–9 April 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 168–173. [Google Scholar] [CrossRef]
  21. Salah, D.; Ahmed, M.H.; El Dahshan, K. Blockchain applications in human resources management: Opportunities and challenges. In Proceedings of the Evaluation and Assessment in Software Engineering, Trondheim, Norway, 15–17 April 2020; pp. 383–389. [Google Scholar] [CrossRef]
  22. Yeom, S.; Choi, S.; Chi, J.; Park, S. Blockchain-Based Employment Contract System Architecture Allowing Encrypted Keyword Searches. Electronics 2021, 10, 1086. [Google Scholar] [CrossRef]
  23. Pinna, A.; Ibba, S. A blockchain-based decentralized system for proper handling of temporary employment contracts. In Proceedings of the Intelligent Computing: Proceedings of the 2018 Computing Conference, London, UK, 10–12 July 2019; Springer: Berlin/Heidelberg, Germany; Volume 2, pp. 1231–1243. [Google Scholar] [CrossRef] [Green Version]
  24. CHRONOBANK—PHASE 1: A Non-Volatile Digital Token Backed by Labour-Hours. Available online: https://blockchainlab.com/pdf/whitepaper.pdf. (accessed on 18 February 2023).
  25. Upwork. Available online: https://www.upwork.com/ (accessed on 18 February 2023).
  26. Fiverr. Available online: https://www.Fiverr.com/. (accessed on 18 February 2023).
  27. Deshmukh, P.; Kalwaghe, S.; Appa, A.; Pawar, A. Decentralised freelancing using Ethereum blockchain. In Proceedings of the 2020 International Conference on Communication and Signal Processing (ICCSP), Chennai, India, 28–30 July 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 881–883. [Google Scholar] [CrossRef]
  28. Radosavljevic, M.; Pesic, A.; Petrovic, N.; Tosic, M. Freelancing Blockchain: A Practical Case-Study of Trust-Driven Applications Development. In Proceedings of the International Conference on Electrical, Electronic, and Computing Engineering (IcETRAN), Ethno Village Stanisic, Republic of Srpska, 8–10 September 2021; pp. 1–4. [Google Scholar]
  29. De Bel-Air, F.; Fellow, S. Explaining the “Demographic Imbalance” in the Gulf States. Available online: https://gulfmigration.grc.net/wp-content/uploads/2022/10/GLMM-FS1-Imbalance-Final-2022-10.24.pdf (accessed on 20 February 2023).
  30. Martínez, C.P. Where Will the Case Be Heard: Which Is the Applicable Law: Approach to Selected Problems of Transnational Employment Relationships. Am. Univ. Labor Employ. Law Forum 2015, 5, 52. [Google Scholar]
  31. Fargues, P.; Shah, N.M.; Brouwer, I. Working and Living Conditions of Low-Income Migrant Workers in the Hospitality and Construction Sectors in the United Arab Emirates: A Survey among Migrant Workers through Focus Group Discussions; Technical Report; European University Institute: Fiesole, Italy, 2019. [Google Scholar]
  32. Fargues, P.; Shah, N.M.; Brouwer, I. Working and Living Conditions of Low-Income Migrant Workers in the Hospitality and Construction Sectors in Qatar: A Survey among Migrant Workers through Focus Group Discussions; Technical Report; European University Institute: Fiesole, Italy, 2019. [Google Scholar]
  33. Nepal to Kuwait and Qatar: Fair Recruitment in Review—Business & Human Rights Resource Centre. Available online: https://www.business-humanrights.org/en/latest-news/nepal-to-kuwait-and-qatar-fair-recruitment-in-review/ (accessed on 20 February 2023).
  34. Najibullah, F. Hundreds of Central Asians Fall Victim to Overseas Jobs Scam. Available online: https://www.rferl.org/a/central-asian-victims-overseas-jobs-scam/31969347.html (accessed on 31 March 2023).
  35. Overseas Job Scams. Available online: https://www.sb.gov.hk/eng/ota/info-overseasjobscam.html (accessed on 31 March 2023).
  36. Antony, T. Yet Another Overseas Job Recruitment Scam in Kochi. Available online: https://www.newindianexpress.com/cities/kochi/2022/nov/01/yet-another-overseas-job-recruitment-scam-in-kochi-2513614.html (accessed on 31 March 2023).
  37. Hesketh, T.; Jun, Y.X.; Lu, L.; Mei, W.H. Health status and access to health care of migrant workers in China. Public Health Rep. 2008, 123, 189–197. [Google Scholar] [CrossRef] [Green Version]
  38. WHO. World Report on the Health of Refugees and Migrants. Available online: https://www.who.int/publications/i/item/9789240054462 (accessed on 31 March 2023).
  39. Work Fatigue Study. Available online: https://twc2.org.sg/wp-content/uploads/2017/03/workfatigue_report_final5.pdf (accessed on 20 February 2023).
  40. Legislation, K. Private Sector Workers Domestic Workers. Available online: https://www.ilo.org/wcmsp5/groups/public/—arabstates/—ro-beirut/documents/legaldocument/wcms_728262.pdf (accessed on 20 February 2023).
  41. Regulatory Framework Governing Migrant Workers. Available online: https://www.ilo.org/wcmsp5/groups/public/—arabstates/—ro-beirut/documents/publication/wcms_776527.pdf (accessed on 20 February 2023).
  42. Li, X.; Jiang, P.; Chen, T.; Luo, X.; Wen, Q. A survey on the security of blockchain systems. Future Gener. Comput. Syst. 2020, 107, 841–853. [Google Scholar] [CrossRef] [Green Version]
  43. Bains, P. Blockchain Consensus Mechanisms: A Primer for Supervisors; International Monetary Fund: Washington, DC, USA, 2022. [Google Scholar] [CrossRef]
  44. Wood, G. Ethereum: A Secure Decentralised Generalised Transaction Ledger. Available online: https://membres-ljk.imag.fr/Jean-Guillaume.Dumas/Enseignements/ProjetsCrypto/Ethereum/ethereum-yellowpaper.pdf (accessed on 31 March 2023).
  45. Musaned. Available online: https://tawtheeq.musaned.com.sa/ (accessed on 9 March 2023).
  46. Google Maps. Available online: https://www.google.com/maps/@24.7159263,46.6222736,15z (accessed on 22 February 2023).
  47. Chen, J.; Xia, X.; Lo, D.; Grundy, J.; Luo, X.; Chen, T. Defining Smart Contract Defects on Ethereum. IEEE Trans. Softw. Eng. 2022, 48, 327–345. [Google Scholar] [CrossRef] [Green Version]
  48. Dingman, W.; Cohen, A.; Ferrara, N.; Lynch, A.; Jasinski, P.; Black, P.E.; Deng, L. Defects and vulnerabilities in smart contracts, a classification using the NIST bugs framework. Int. J. Networked Distrib. Comput. 2019, 7, 121–132. [Google Scholar] [CrossRef] [Green Version]
  49. Kondo, M.; Oliva, G.A.; Jiang, Z.M.; Hassan, A.E.; Mizuno, O. Code cloning in smart contracts: A case study on verified contracts from the Ethereum blockchain platform. Empir. Softw. Eng. 2020, 25, 4617–4675. [Google Scholar] [CrossRef]
  50. Khan, F.; David, I.; Varro, D.; McIntosh, S. Code Cloning in Smart Contracts on the Ethereum Platform: An Extended Replication Study. IEEE Trans. Softw. Eng. 2022, 1–13, early access. [Google Scholar] [CrossRef]
  51. Górski, T. Reconfigurable Smart Contracts for Renewable Energy Exchange with Re-Use of Verification Rules. Appl. Sci. 2022, 12, 5339. [Google Scholar] [CrossRef]
  52. Hyperledger Fabric—Hyperledger. Available online: https://www.hyperledger.org/use/fabric (accessed on 15 February 2022).
  53. Diffie, W.; Hellman, M. New Directions in Cryptography. IEEE Trans. Inf. Theory 1976, 22, 644–654. [Google Scholar] [CrossRef] [Green Version]
  54. Hellman, M. An Overview of Public Key Cryptography. IEEE Commun. Soc. Mag. 1978, 16, 24–32. [Google Scholar] [CrossRef]
  55. Kuzlu, M.; Pipattanasomporn, M.; Gurses, L.; Rahman, S. Performance Analysis of a Hyperledger Fabric Blockchain Framework: Throughput, Latency and Scalability. In Proceedings of the 2019 IEEE International Conference on Blockchain (Blockchain), Atlanta, GA, USA, 14–17 July 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 536–540. [Google Scholar] [CrossRef]
  56. Nasir, Q.; Qasse, I.A.; Abu Talib, M.; Nassif, A.B. Performance analysis of hyperledger fabric platforms. Secur. Commun. Networks 2018, 2018, 3976093. [Google Scholar] [CrossRef] [Green Version]
  57. Baliga, A.; Solanki, N.; Verekar, S.; Pednekar, A.; Kamat, P.; Chatterjee, S. Performance characterization of hyperledger fabric. In Proceedings of the 2018 Crypto Valley Conference on Blockchain Technology (CVCBT), Zug, Switzerland, 20–22 June 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 65–74. [Google Scholar] [CrossRef]
  58. Wang, C.; Chu, X. Performance Characterization and Bottleneck Analysis of Hyperledger Fabric. arXiv 2020, arXiv:2008.05946. [Google Scholar]
  59. Dreyer, J.; Fischer, M.; Tonjes, R. Performance Analysis of Hyperledger Fabric 2.0 Blockchain Platform. In Proceedings of the Proceedings of the Workshop on Cloud Continuum Services for Smart IoT Systems, Virtual, 16–19 November 2020; pp. 32–38. [Google Scholar] [CrossRef]
  60. Guggenberger, T.; Sedlmeir, J.; Fridgen, G.; Luckow, A. An In-Depth Investigation of Performance Characteristics of Hyperledger Fabric. arXiv 2021, arXiv:2102.07731. [Google Scholar] [CrossRef]
  61. Managing Overseas Employment Contracts with Blockchain. Available online: https://github.com/FahadKK/Blockchain (accessed on 31 March 2023).
  62. Fablo. Available online: https://labs.hyperledger.org/labs/fablo.html. (accessed on 12 February 2023).
  63. Ongaro, D.; Ousterhout, J. In Search of an Understandable Consensus Algorithm. In Proceedings of the 2014 USENIX Conference on USENIX Annual Technical Conference (USENIX ATC’14), Philadelphia, PA, USA, 14 May 2014; pp. 305–320. [Google Scholar]
  64. Cachin, C.; Vukolić, M. Blockchain Consensus Protocols in the Wild. arXiv 2017, arXiv:1707.01873. [Google Scholar]
  65. Xiao, Y.; Zhang, N.; Lou, W.; Hou, Y.T. A Survey of Distributed Consensus Protocols for Blockchain Networks. IEEE Commun. Surv. Tutorials 2020, 22, 1432–1465. [Google Scholar] [CrossRef] [Green Version]
  66. The Go Programming Language. Available online: https://go.dev/ (accessed on 22 February 2023).
  67. Ghosh, B.C.; Bhartia, T.; Addya, S.K.; Chakraborty, S. Leveraging public-private blockchain interoperability for closed consortium interfacing. In Proceedings of the IEEE INFOCOM 2021-IEEE Conference on Computer Communications, Vancouver, BC, Canada, 10–13 May 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 1–10. [Google Scholar] [CrossRef]
Figure 1. A JSON object representing the employment contract digitally in the smart contract.
Figure 1. A JSON object representing the employment contract digitally in the smart contract.
Electronics 12 01673 g001
Figure 2. Framework overview.
Figure 2. Framework overview.
Electronics 12 01673 g002
Figure 3. The workflow of managing employment contracts.
Figure 3. The workflow of managing employment contracts.
Electronics 12 01673 g003
Figure 4. A list of the implemented transactions for the smart contract.
Figure 4. A list of the implemented transactions for the smart contract.
Electronics 12 01673 g004
Figure 5. An employer peer issues “AddContract” to initiate a new employment contract and add it to the smart contract.
Figure 5. An employer peer issues “AddContract” to initiate a new employment contract and add it to the smart contract.
Electronics 12 01673 g005
Figure 6. An employee peer issues “ApproveContract” to approve the employment contract issued by the employer.
Figure 6. An employee peer issues “ApproveContract” to approve the employment contract issued by the employer.
Electronics 12 01673 g006
Figure 7. An employer peer issues “UpdateContract”, increasing the salary of her/his employee.
Figure 7. An employer peer issues “UpdateContract”, increasing the salary of her/his employee.
Electronics 12 01673 g007
Figure 8. An employer peer issues the “ExtendContract” transaction, which fails due to the violation of one of the employment contract terms.
Figure 8. An employer peer issues the “ExtendContract” transaction, which fails due to the violation of one of the employment contract terms.
Electronics 12 01673 g008
Figure 9. An employee peer issues the “IssueDispute” transaction to raise a complaint related to the employment contract.
Figure 9. An employee peer issues the “IssueDispute” transaction to raise a complaint related to the employment contract.
Electronics 12 01673 g009
Figure 10. An employer peer issues the “RespondDispute” transaction to reply to a complaint raised by an employee.
Figure 10. An employer peer issues the “RespondDispute” transaction to reply to a complaint raised by an employee.
Electronics 12 01673 g010
Figure 11. An employee peer issues the “CloseDispute” transaction to close the raised complaint.
Figure 11. An employee peer issues the “CloseDispute” transaction to close the raised complaint.
Electronics 12 01673 g011
Figure 12. Showing statistics about the working history of a specific employee.
Figure 12. Showing statistics about the working history of a specific employee.
Electronics 12 01673 g012
Figure 13. Showing statistics about the employment contracts of a specific employer.
Figure 13. Showing statistics about the employment contracts of a specific employer.
Electronics 12 01673 g013
Table 1. A comparison of smart contract platforms.
Table 1. A comparison of smart contract platforms.
PlatformBlockchainNetwork PermissionLoops SupportProgramming Language
SolidityEthereumpublic/permissionedYesSolidity
ChaincodeHyperledger FabricpermissionedYesGoLang
SimplicityBitcoinPublicNoHaskell
ScillaZilliqaPublicNoOCaml
RholangRchainPublic/PermissionedYesJava
AplosMystikoPermissionedYesScala
PactKadenaPublic/PermissionedNoHaskell
Table 2. A proposed design of smart contract transactions and their description.
Table 2. A proposed design of smart contract transactions and their description.
TransactionDescriptionInputOutputIssuing PartyApproval Requirements
Add ContractCreate a new contract object representing an employment contractContract ID and JSON objectSuccess if the JSON contains all the necessary information and match conditions; otherwise, failureEmployerNone
Approve ContractApprove a contract to establish the employment agreementContract IDTrue if approved and false if rejected or contract not existsEmployeeNone
Update ContractUpdate an existing contractContract ID and JSON objectSuccess if the contract exists and the JSON contains all the necessary information and match conditions; otherwise, failureEmployerEmployee
Extend ContractExtend the duration of an existing contractContract ID and extended durationSuccess if the contract exists and matches conditions; otherwise, failureEmployerEmployee
Terminate ContractTerminate the agreement of an existing contractContract IDSuccess if the contract exists and matches conditions; otherwise, failureEmployer or employeeDepends on contract terms
Issue DisputeIssue a new dispute claim related to an existing contractContract ID and dispute descriptionIf the contract exists and matches transactions conditions, a dispute ID is returned; otherwise, failureEmployeeNone
Update DisputeUpdate a previously issued disputeContract ID, dispute ID, contentSuccess if the contract and dispute exist and match conditions; otherwise, failureEmployeeNone
Close DisputeClose an existing disputeContract ID and dispute IDSuccess if the contract and dispute exist and match conditions; otherwise, failureEmployeeNone
Respond to DisputeProvide a response to an existing disputeContract ID, dispute ID, and responseSuccess if the contract and dispute exist and match conditions; otherwise, failureEmployerNone
View Employee HistoryView employment contracts belonging to an employeeEmployee IDReturn stats about all contract JSON objects associated with this employee or null otherwiseEmployerNone
View Employer HistoryView employment contracts belonging to an employerEmployer IDReturn stats about all contract JSON objects associated with this employer or null otherwiseEmployeeNone
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alabdulkarim, Y.; Alameer, A.; Almukaynizi, M.; Allheeib, N.; Alkadyan, F.; Almaslukh, A. Managing Expatriate Employment Contracts with Blockchain. Electronics 2023, 12, 1673. https://doi.org/10.3390/electronics12071673

AMA Style

Alabdulkarim Y, Alameer A, Almukaynizi M, Allheeib N, Alkadyan F, Almaslukh A. Managing Expatriate Employment Contracts with Blockchain. Electronics. 2023; 12(7):1673. https://doi.org/10.3390/electronics12071673

Chicago/Turabian Style

Alabdulkarim, Yazeed, Abdulmajeed Alameer, Mohammed Almukaynizi, Nasser Allheeib, Fahad Alkadyan, and Abdulaziz Almaslukh. 2023. "Managing Expatriate Employment Contracts with Blockchain" Electronics 12, no. 7: 1673. https://doi.org/10.3390/electronics12071673

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop