DOI : 10.5281/zenodo.24709242
- Open Access
- Authors : Dr. Geetha A, N P Dharani, Deeksha D Y, Apeksha K J, Kavana H C
- Paper ID : IJERTV15IS111572
- Volume & Issue : Volume 15, Issue 11 , November – 2026
- Published (First Online): 01-12-2026
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License:
This work is licensed under a Creative Commons Attribution 4.0 International License
TrustLance: Calibrated Jury Sizing, Escalating Arbitration and Reputation-Discounted Bonds for Smart Contract-Based Freelance Escrow
N P Dharani
USN: 20231CBC0056
B.Tech CSE (Blockchain Technology)
Presidency University, Bengaluru
Deeksha D Y
USN: 20231CBC0040
B.Tech CSE (Blockchain Technology)
Presidency University, Bengaluru
Apeksha K J
USN: 20231CBC0037
B.Tech CSE (Blockchain Technology)
Presidency University, Bengaluru
Kavana H C
USN: 20231CBC0030
B.Tech CSE (Blockchain Technology)
Presidency University, Bengaluru
Presidency School of Artificial Intelligence and Advanced Computing (PSAIAC), Presidency University, Bengaluru, India Project Guide: Dr. Geetha A, Associate Professor, PSAIAC, Presidency University
Abstract-Freelance escrow systems on public blockchains combine milestone payments, a staked jury for disputes and an on- chain reputation. We observe that three parameters of this class of systems are usually left uncalibrated: the jury size ignores the value at stake, a quorum failure caused by inactive jurors defaults to an uninformative 50/50 ruling, and a graded loser-pays rule leaves the client paying the court fee when the freelancer is awarded nothing. We present TrustLance, an open Solidity implementation of a milestone escrow, a commit-reveal court and a reputation registry, and add three calibrated mechanisms: (i) value-adaptive jury sizes derived from an expected-loss budget under a stake-holding attacker; (ii) escalation to a fresh, larger panel after a quorum failure; and (iii) a freelancer bond discounted by on-chain reputation. Exact probabilities and simulations show that, with 20% of jurors offline, escalation cuts the default probability from 10.4% to 0.02% and halves the ruling error; a coalition withholding reveals at 30% stake succeeds 0.4% instead of 21.5% of the time; adaptive sizing reduces the expected loss from a captured jury up to 10.8 times; and the bond makes a junk submission about 6 times costlier for the freelancer while restoring the client's fee. Forty-two automated tests, including randomized fund-conservation tests with all mechanisms enabled, pass, and a baseline deployment runs on Ethereum Sepolia.
Index Terms-blockchain, smart contracts, escrow, decentralized arbitration, jury sizing, reputation, freelance marketplace.
-
INTRODUCTION
Freelancers and clients usually depend on a marketplace that holds payments, arbitrates disputes and owns reputation data, which causes fees, delays and opaque decisions. Smart contracts can hold the payment in escrow and settle milestones by fixed rules, and decentralized courts such as Kleros and Aragon Court let a staked, randomly drawn jury decide disputes [2], [4], [5]. Several open projects already combine milestone escrow with such arbitration [3], [6], [7]. This paper asks a narrower question: once the basic pieces exist, which of their parameters are left uncalibrated, and what do better settings cost and buy?
We identify three gaps. (G1) The jury size is a constant, so a
$5,000 dispute is decided by as few jurors as a $50 one. (G2) When fewer than a majority of jurors reveal, existing designs either wait for an appeal or fall back to a default outcome, which for a graded ruling is an uninformative 50/50 split. (G3) In a graded loser-pays rule the client posts the court fee, but a freelancer awarded nothing has no share from which to reimburse it, so the client bears the fee even when the jury sides with them, and junk submissions cost the freelancer nothing.
Contributions. (1) Value-adaptive jury sizing: a rule that picks the smallest jury whose expected capture loss stays under
a budget for a bounded attacker stake share, with exact probabilities and an on-chain implementation. (2) Escalating arbitration: a quorum failure slashes no-shows and re-draws a fresh panel of two more jurors, at most twice, with an exact analysis of defaults and of coalition blocking. (3) Reputation- discounted bond: a freelancer bond equal to the court fee, discounted by the on-chain trust score, which completes loser- pays and prices junk-spam. (4) A range-bounded ruling lemma and Sybil-cost results for the reputation weighting. (5) An open implementation with 42 tests and reproducible experiments.
What is not new. Timeout release, commit-reveal voting, stake-weighted sortition, coherence rewards, a median rule for ordered options, appeals and juror replacement, and reputation- tiered bonds each appear in earlier systems or documents (Table I). Our claim is limited to the calibration rules, their quantitative analysis and their integration in one tested system; we did not find prior work that provides the combination in Table I, but absence in the sources we reviewed is not proof of absence.
-
RELATED WORK
Asgaonkar and Krishnamachari give a dual-deposit escrow whose equilibrium is honest delivery for automatically verifiable goods [1]. Kleros adds a crowdsourced court with Schelling-point incentives [2], [10], whose escrow can release funds to the receiver after a timeout and supports appeals [3], and whose design describes the median as the winning option for ordered choices [4]. Aragon Court uses commit-reveal voting, slashing and appeals for binary outcomes [5]. Smart Invoice offers milestone escrow with optional arbitration providers [6], Trustless Work lets a resolver split a disputed milestone [7], and a jury-dispute design describes replacing abstaining jurors [8]; Accord grows the panel on each appeal [17]. Surveys cover decentralized justice [9], and game- theoretic work bounds the jurors and payments needed for a given error rate [16]. For reputation, blockchain systems describe reputation services [12], [13], decay [15] and diminishing returns for repeated actions [18], and the Sybil attack is classical [14]. Table I summarizes what we found.
TABLE I
Features documented in related systems (- = not found in the sources reviewed)
100·p/(p+K) is shown as a trust score t. The court fee posted by the client when disputing is
reveal
System
Kleros [2]-[4]
Timeout Commit-
Graded rulings
design
No-show re-draw
appeals
Value- adaptive jury
–
Rep.- discounted bond
–
Aragon Court [5]
–
binary
appeals
–
–
Smart Invoice [6]
– provider
–
–
–
–
Trustless Work [7]
– –
resolver
–
–
–
(2)
(cp = 3%, Fmin = $5); for a ruling r (the freelancer's share in basis points) the milestone a is split as
Juror-replacement court [8]
Tiered-bond project [11]
– – – – –
-
– – – – tiered
(3)
and a loser-pays reimbursement T moves part of the fee back to
larger
TrustLance fresh,
-
-
BASELINE SYSTEM
TrustLance has four contracts and a React front end (Fig. 1). FreelanceEscrow locks the client's stablecoin, tracks milestones and pays the freelancer minus a 1% fee when the client approves or when the review window lapses without a dispute (optimistic release); deadline refunds, mutual cancellation and a pul-payment fallback prevent any party from freezing a settlement. ArbitrationCourt draws a stake- weighted jury without replacement, collects sealed votes in {0, 25, 50, 75, 100}% to the freelancer, reveals them, takes the median as the ruling, rewards jurors within 25 points of it, and slashes outliers (half of a $100 lock) and no-shows (all of it). ReputationRegistry credits both parties after a settlement with
the client: T = 0 if r S 5000, F/2 if r = 5000 and F if r < 5000.
-
CALIBRATED MECHANISMS
-
Value-Adaptive Jury Size (G1)
Let a fraction f of arbiter stake be adversarial and a panel of k jurors be drawn without replacement from N arbiters; the attacker controls the median only if it holds a majority of the panel, which has the hypergeometric probability
(4)
Lemma 1 (range-bounded ruling). If at most l(r-1)/2J of r revealed votes are adversarial, the median lies between the smallest and largest honest vote. Proof (odd r). If the median were below every honest vote, the (r+1)/2 votes at or below it would all be adversarial, a contradiction; the other side is symmetric. Hence an attacker below a majority of the panel cannot push the ruling outside the honest range, and Pcap bounds the failure probability. If capture flips a milestone of value V, the expected loss is Pcap·V. We therefore size the jury by the budget rule
Fig. 1. Architecture of TrustLance.
Fig. 2. Dispute sequence from escalation to payout (the escalation of Sec. IV-B re-enters step 2).
(1)
where base(v) = min(v, cap)/1000 and n counts earlier deals between the same pair; points decay with a one-year half-life, a lost dispute or missed deadline costs twice a win, and
(5)
with fmax = 0.2 and B = $50. This yields value tiers of $500,
$900, $1,600 and $2,900 for juries of 5, 7, 9 and 11 arbiters (3 below $500); FreelanceEscrow.panelFor implements them and the court accepts a per-case size. Values above $5,250 exceed the budget even at k = 11 and need appeals. The tiers are sensitive to the assumed attacker share: with fmax = 0.3 the same budget would require 5, 7, 9 and 11 jurors from $233, $312,
$410 and $533, so deployments should re-derive them from their own stake distribution.
-
Escalating Arbitration (G2)
If fewer than lk/2J + 1 jurors reveal, finalize no longer defaults. It unlocks the panel, slashes the non-revealers and shares their stake among those who revealed, bars every member of the failed panel, and re-opens the case with k + 2 jurors (at most two escalations, then 50/50 and a fee refund). With independent offline probability p, the default probability is
(6)
with Pfail(k, p) = Pr[Bin(k, 1-p) < lk/2J + 1] and kr = 3, 5, 7. A coalition that withholds reveals must hold a panel majority in every round, so escalation turns one capture event into three independent ones.
-
Reputation-Discounted Bond (G3)
With each submission the freelancer posts a bond equal to the court fee, discounted by trust:
(7)
(no bond for milestones too small to arbitrate). If the freelancer loses, the client's fee reimbursement T is taken first from the freelancer's share and any shortfall a = min(b, T – d), with d = min(sf, T), from the bond, so loser-pays is complete even at a 0% ruling; the rest of the bond is returned on release or ruling. A fresh account pays the full fee, and a discount of 40% (t = 50) requires about $5,000 of settled volume, i.e. at least $50 of protocol fees.
-
-
EVALUATION
A. Verification and Cost
The suite has 42 tests: 30 for the baseline (lifecycle, arbitration, reputation, a seeded random run) and 12 for the extensions (tier boundaries, disjoint re-drawn panels, final fallback, bond posting, refund, 0%/50%/100% rulings and the reputation discount). Two seeded random runs of 60 jobs assert after every job that token balances equal the contracts' accounting, one with the baseline and one with all mechanisms enabled (40 approvals, 27 optimistic releases, 28 disputes, 4 escalations, 95 bonds). The first run of the baseline random test exposed a division by zero for an even split of reveals, now fixed. Slither 0.11.6 reports no issue beyond the documented block-hash randomness; its other findings are false positives or hygiene items, several fixed by updating state before external calls.
Fig. 3. (a) Probability of defaulting to 50/50 under juror inactivity and (b) probability that a coalition blocks the ruling, with and without escalation.
C. Adaptive Jury Size
TABLE III
Fixed (k = 3) versus adaptive jury at f = 0.2 (pool of 200)
Value
k
P(capture)
Expected loss
Gas (M)
$100
3
10.25% / 10.25%
$10 / $10
1.07 / 1.07
$1,000
7
10.25% / 3.07%
$103 / $31
1.07 / 1.72
$5,000
11
10.25% / 0.95%
$513 / $48
1.07 / 2.37
$10,000
11
10.25% / 0.95%
$1025 / $95
1.07 / 2.37
TABLE II
Group
Tests Checks
Baseline lifecycle
9 payouts and fees, order, optimistic release, cancel, reclaim, blacklist fallback
Baseline arbitration
11 100/25/50% rulings, slashing, no-show, even split, abort, access control
Baseline reputation
9 points, dampening, decay, cap, 2x loss, writer restriction
Test suite (42 tests)
Adaptive jury, escalation
5
tier boundaries, 7- and 3-juror draws, disjoint re-draw, final fallback
The budget rule keeps the expected loss under $50 up to
$5,250, while a fixed jury of three loses $103 per $1,000 and
$1025 per $10,000 (Fig. 4). At $10,000 the adaptive jury lowers the loss 10.8 times for about 2.2 times the dispute gas, while small milestones keep the cheap three-juror path.
Bond 6
posting, refund, 0/50/100% rulings, discount, small milestones
Randomized conservation
2 60 seeded jobs, baseline and all mechanisms on
The bond adds 39k gas to a submission (83k to 122k) and nothing measurable to approval; an escalating finalize costs 137k gas and the next draw (5 jurors) 405k. A complete 3-juror dispute costs about 1.07 M gas and grows by about 0.16 M per extra juror.
B. Escalation
We simulate juror inactivity (40,000 trials per point, honest accuracy 0.75, truth uniform over the five levels). At p = 0.2 escalation reduces defaults from 10.2% to 0.01% (exact 10.4% and 0.02%), halves the mean ruling error from 0.057 to 0.027, and needs only 1.11 rounds on average (Fig. 3a). A coalition that withholds reveals succeeds with the same probability as capturing a majority; escalation reduces it from 10.3% to 0.02% at f = 0.2 and from 21.5% to 0.42% at f = 0.3 (Fig. 3b; simulation 0.32%).
Fig. 4. Expected loss from a captured jury versus milestone value for a fixed and an adaptive jury.
D. Bond Economics
TABLE IV
Expected cost of one junk submission (client disputes with probability 0.8; jury accuracy 0.75)
Milestone
Fee F
Client's cost
Freelancer's cost
$100
$5
$3.38 —+ $0
$0.62 —+ $4.00
<>$1,000 $30
$20.25 —+ $0
$3.75 —+ $24.00
$5,000
$150
$101.27 —+ $0
$18.73 —+ $120.00
budget rule
A jury of three rules junk below 50% in every simulated case (mean award 3.9%), so without a bond the client loses about two thirds of the fee in expectation (it is reimbursed only from
TABLE V
Gap Mechanism Measured effect
Gaps, mechanisms and measured effects
the tiny share awarded) while the freelancer pays almost
G1 fixed jury size value-adaptive k(V),
loss :: $50 up to $5.2k; at $10k 10.8x
lower for 2.2x gas
nothing; with the bond the client is made whole and a fresh freelancer account loses about 6.4 times more (Table III). If 20% of stake is adversarial and favours the freelancer, the freelancer still loses with probability 0.90 and the deterrence falls only to 5.8 times. For an honest freelancer the bond ($30 at
G2 quorum failure —+ 50/50
G3 fee unreimbursed, junk is free
escalate to k+2, at most twice
reputation-discounted bond
defaults 10.4% —+ 0.02%; error halved;
blocking 21.5% —+ 0.4%; +137k gas
client made whole; junk cost x6.4;
+39k gas per submission
a $1,000 milestone, less with trust) locked for three days costs about $0.01 at 5% yearly interest, and the bond does not help junk that the client fails to dispute.
E. Baseline Results and Deployment
Proposition 2 (reputation cost). With protocol fee and linear-capped weighting, the fee per reputation point is the constant 1000 token base units (about $0.01 per 1,000 points at
= 1%) for every milestone up to the cap, so reputation cannot be bought below this price however many identities are used; with square-root weighting it grows like -vv, so dust-level jobs are cheapest. With harmonic dampening, n repeated jobs of value v between one pair earn at most Hn·base(v) while costing nv, a yield ratio of Hn/n.
In the baseline court, five graded jurors with a median err by
0.075 of a milestone against 0.388 for a binary majority when 20% of stake is adversarial. For reputation, linear-capped weighting makes the fee per point constant, whereas square- root weighting makes $1 jobs 31.6 times cheaper per point than
$1,000 jobs (Fig. 5); harmonic pair dampening keeps 5.2% of wash-trading yield after 100 repeats (Gini 0.44 against 0.23). The baseline contracts were deployed on Sepolia and used with two wallets (Job #7 was accepted, submitted and completed). That testing found that event-log job lists return empty results through public RPC providers, that a completed-job card indexed past the last milestone (fixed), and that every signer, including the freelancer, needs test ETH for gas. The extensions were verified on the local EVM and still need redeployment on Sepolia.
-
LIMITATIONS
The simulations assume independent juror inactivity, honest accuracy of 0.75, an attacker that votes the opposite extreme and a client that disputes junk with probability 0.8; they show mechanism behaviour, not field data. Randomness still uses a block hash, jury draws cost O(n) gas, appeals beyond the two escalations are absent, the bond requires the freelancer to hold stablecoin, and no external audit or user study has been done. The tiers assume fmax = 0.2 and would need re-tuning for another stake distribution.
-
CONCLUSION
Calibrating the jury size to the value at stake, re-drawing instead of defaulting after a quorum failure, and discounting a freelancer bond by reputation each close a measurable gap in escrow-court designs, with exact probabilities and small, measured gas overheads. Future work covers verifiable randomness, an on-chain appeal market, a user study and a Sepolia dispute run with all extensions.
ACKNOWLEDGMENT
The authors thank Dr. Geetha A (Project Guide), Dr. Sridevi S (Program Project Coordinator), Ms. Rakheeba Taseen (School Project Coordinator), Dr. Sampath A K (Professor and Head of the Department), Dr. Shakkeera L (Dean), the Presidency School of Artificial Intelligence and Advanced Computing, and Presidency University. AI tools assisted with drafting and code; the authors reviewed and are responsible for the content.
Fig. 5. (a) Reputation per fee-dollar for two weightings and (b) wash-trading yield under harmonic dampening.
REFERENCES
-
A. Asgaonkar and B. Krishnamachari, "Solving the buyer and seller's dilemma: A dual-deposit escrow smart contract for provably cheat-proof delivery and payment for a digital good without a trusted mediator," in Proc. IEEE ICBC, 2019, pp. 262-267, doi: 10.1109/BLOC.2019.8751482.
-
C. Lesaege, F. Ast, and W. George, "Kleros: Short paper v1.0.7," Kleros,
Sep. 2019. [Online]. Available: https://kleros.io/whitepaper_en.pdf
-
Kleros, "Kleros Escrow specifications." [Online]. Available: https://docs.kleros.io/products/escrow/kleros-escrow-specifications
-
Kleros, "Kleros, a decentralized court system for the Internet (abridged),"
Kleros Blog. [Online]. Available: https://medium.com/kleros
-
Aragon Network, "Aragon Court protocol," GitHub, aragon/whitepaper. [Online]. Available: https://github.com/aragon/whitepaper
-
RaidGuild, "Smart Invoice," project documentation. [Online]. Available: https://checker.gitcoin.co/public/project/show/smart-invoice-1
-
Trustless Work, "Smart escrow design: dispute resolution," documentation. [Online]. Available: https://docs.trustlesswork.com
-
FrogPay, "Jury dispute management," white paper. [Online]. Available: https://frogpay.gitbook.io/whitepaper
-
F. Ast, W. George, J. Kamalova, and A. Sharma, "Decentralized justice: State of the art, recurring criticisms and next-generation research topics," Front. Blockchain, 2023, doi: 10.3389/fbloc.2023.1204090.
-
V. Buterin, "SchellingCoin: A minimal-trust universal data feed," Ethereum Foundation Blog, Mar. 2014.
-
"JobEscrow, Dispute and Reputation contracts," project portfolio page. [Online]. Available: https://michael-wzl.github.io/portfolio/portfolio-5
-
M. Li, L. Zhu, Z. Zhang, C. Lal, M. Conti, and M. Alazab, "Anonymous and verifiable reputation system for e-commerce platforms based on blockchain," IEEE Trans. Netw. Service Manag., Dec. 2021, doi: 10.1109/TNSM.2021.3098439.
-
S. Olariu, R. Mukkamalai, and M. Aljohani, "Towards trust and reputation as a service in a blockchain-based decentralized marketplace," arXiv:2403.04779, Mar. 2024.
-
J. R. Douceur, "The Sybil attack," in Proc. 1st Int. Workshop Peer-to- Peer Systems (IPTPS), 2002.
-
"MeritRank: Sybil tolerant reputation for merit-based tokenomics," arXiv:2207.09950.
-
I. Caragiannis et al., "Adjudication with rational jurors," arXiv:2201.06597, 2022.
-
"Accord: Schelling-point arbitration as a composable Solana primitive," arXiv:2610.20666, 2026.
-
P2P.me, "Proof of credibility," protocol documentation. [Online]. Available: https://www.mintlify.com/p2pdotme/docs/whitepaper/proof- of-credibility
