project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

Arbichain

Smart contract managed dispute arbitration with AI-assisted verdicts: a simpler way to settle disputes.

Arbichain

Created At

HackFS 2024

Winner of

Lit Protocol - Participation Prize

Prize Pool

Fleek - Pool Prize

Prize Pool

Project Description

Traditional arbitration can be plagued by lengthy proceedings, cumbersome paperwork, and limited accessibility, leaving many individuals and businesses feeling disillusioned with the legal system. The opacity of the decision-making process and enforcement challenges can also erode trust in the fairness and integrity of traditional arbitration outcomes.

Arbichain provides a transparent and decentralized environment where evidence is securely stored on the blockchain, accessible to all parties involved. AI algorithms assist arbitrators in analyzing evidence objectively and making informed decisions, promoting fairness and impartiality in dispute resolution.

Some arbitration apps may lack access to qualified legal professionals or experts in specific areas of law, limiting the quality and accuracy of legal advice or decisions provided to parties involved in disputes. Arbichain has a built in AI-advisor that's provided to the judge. Platforms like Kleros (kleros.com) exist, however requires using platform jurors and doesn't have as much flexibility to settle your own disputes without using a justice protocol and/or fee system.

Smart contracts prevent tampering with provided statements or evidence after they are provided.

How it's Made

Every arbitration use gets its own smart contract.

  1. The judge or mediator registers the dispute. The app automatically generates a smart contract based on the submitted dispute and terms agreed upon by both parties.
  2. Each party uses the url to submit their case along with evidence and statements to the arbitration app.
  3. The judge reviews the case and evidence provided by both parties, making a decision based on the evidence and terms of the smart contract using Arbichain's AI input.
  4. The smart contract executes the decision, requesting or transferring locked funds or assets as necessary, based on the arbitrator's ruling.
  5. An event gets emitted from the smart contract with the decision with the result visible by all parties.

Technologies used

Filecoin/IPFS: Serves as the main engine for storage of assets shared during the deliberation process. Involved parties can upload evidence as a document and these are made available to the judge at the time of case determination. Filecoin entries are dynamically linked to the smart contract and only returned to the parties when the case is accessed. Lighthouse and Fleek are used for both secure and backup uploads and act as a gateway for fetching the secured assets for each case created on the app.

Lit Protocol: Lit Protocol enables security of the uploads and data on chain. We don't want arbitrary users coming across smart contracts to necessarily be able to access all raw statements provided by users. Involved parties sign their statements and evidence using the Lit message encrypt action before submitting to the network/contract. Each statement is encrypted using the metamask or signing wallet before being persisted on the network. The judge is the only party that decrypts the messages before having them displayed in the UI when the case is being decided.

Galadriel Devnet: L1 AI Smart contract network. Arbichain uses Galadriel smart contracts to provide an AI-assisted assessment of the case by merging the case description with the statements from the involved parties. Before making the final decision, the judge can review the on-chain LLM recommendation for the case saved to the contract. The AI recommendation is requestable when the judge is ready to review the case and is saved on chain for each unique Arbichain smart contract.

Fleek IPFS/IPNS Pinning: Fleek is used to securely pin IPFS uploaded assets for each case. A custom app specific gateway serves any uploaded documents to the arbiter/judge. These assets are backed to Filecoin via the Fleek SDK. Toggleable IPFS upload, custom gateway, and pinning are supported alongside use with Lighthouse on the client.

Chainlink VRF and subscription management: Prior to case closing, a Chainlink VRF function call is made that generates a random value for both the plaintiff's and defendant's response and saves it to the contract state. This result is shown to the judge during determination. Randomness is used in multiple ways if on a supported network (ex: Fuji): -- Randomness in evidence submission and preparation deadlines i.e. enabling different submission timeframes for parties. -- Random presentation of evidence to the judge: Ordering can bias analysis, a random value is used to indicate which evidence is presented first -- Whenever a new ArbContract is deployed, a consumer is added authorization the new instance of the contract to initiate API calls.

Example funded subscription: https://vrf.chain.link/fuji/111460400570697049739504630512020373539708700110695505033242213289977625247430

Avalanche Fuji: Alternative network that could be used for deployment that offers high throughput and low latency of confirmation. This is key for confirming asynchronous actions such as those involving external oracle calls (ex: Chainlink) and getting a result quickly. The low costs are also beneficial for enabling participants to submit evidence and statements at low cost. Avalanche provides access to various DeFi tools, and oracles like Chainlink used by Arbichain underneath.

Arbichain is build on Javascript/NextJS.

Accomplishments that we're proud of

  • Successfully implementing a fully decentralized arbitration platform using blockchain and smart contracts.
  • Creating a secure and transparent system for submitting and reviewing evidence in arbitration cases.

Potential future work

  1. Supporting more networks: Adding networks can attract users from different blockchain ecosystems. Each network has its advantages and user base, so supporting multiple networks can enhance the app's reach and utility. Each network currently defines a distinct app environment and contracts on one network are unique from other networks.
  2. Improving UI flow: Could include redesigning screens, adding tooltips or tutorials, and incorporating user feedback to address pain points and enhance usability.
  3. Further chainlink and oracle integrations: Chainlink and other oracle integrations play a pivotal role in providing external data to smart contracts. For example, integrating additional Chainlink Price Feeds can provide real-time asset valuations for mediated settlements. Moreover, integrating with other oracle networks can offer redundancy and ensure data reliability across various sources.
  4. Move to mainnet: Moving to mainnet involves thorough testing, auditing, and ensuring scalability and security measures are in place to support real-world usage.

Arbichain is an open source app built for the hackathon. See full information and screenshots on the github here: https://github.com/cbonoz/arbichain

background image mobile

Join the mailing list

Get the latest news and updates