Logo
Learn
  • Explore Course
Build
  • Explore Buildathon
  • Project Archive
Hack
Hack Coming Soon
  • Explore IRL Hackhouse
  • How to Qualify
  • Past Events

Baraza Protocal

Reputation-weighted, on-chain arbitration for chamas, ROSCAs, and informal trade partnerships piloted in East Africa, built on Arbitrum with Stylus (Rust) jury selection.

Videos

Description

Baraza Protocol brings reputation-weighted, on-chain arbitration to chamas, ROSCAs, and informal trade partnerships — trust economies that run on a handshake, not a contract. When a dispute happens, both parties post a bond (via M-Pesa or a wallet), a Stylus (Rust) contract runs a commit-reveal, reputation-weighted random draw over the circle's own members to select a jury, and a majority vote resolves the case on-chain forfeiting the losing party's bond and updating both parties' soulbound reputation score.

Unlike generic on-chain arbitration (e.g. Kleros), Baraza is built for a non-crypto-native user: gasless filing, mobile-money bonds, and jurors drawn from people who actually know the circle, not anonymous global stakers.

Progress During Hackathon

<p>Fully built from scratch and independently verified across contracts, backend, and frontend:</p><ol><li><p><strong>Smart contracts:</strong></p></li></ol><p>DisputeEscrow, BarazaRegistry, and ReputationSBT deployed and tested live on Arbitrum Sepolia, covering the complete dispute lifecycle: filing, bonding, jury selection, voting, resolution, and on-chain reputation updates.</p><p>Testing also surfaced and fixed a real edge case: a juror without a minted reputation profile could have made resolution revert permanently and strand both bonds. Jury selection now guarantees every juror has a profile.</p><ol start="2"><li><p><strong>Stablecoin bonds (Paxos USDG):</strong></p></li></ol><p>Bonds can now be posted in USDG as well as ETH, gated by an admin-controlled token allowlist so a dispute can't be denominated in an arbitrary token. Tested end to end against real deployed bytecode: file, approve, bond, jury draw, vote, resolve, payout (the winner receives 95% of the pot; 5% stays as the juror reward pool). Official Paxos addresses for Arbitrum Sepolia and Arbitrum One are wired in.</p><ol start="3"><li><p><strong>Stylus jury selection:</strong></p></li></ol><p>The reputation-weighted, commit-reveal draw algorithm is independently verified via a dependency-minimal Rust test crate (determinism, no duplicate jurors, zero-reputation floor all pass). The full stylus-sdk contract wrapper is written but not yet compiled/deployed — a Solidity MockJurySelector stands in for it today, with the real Stylus contract as the clear next milestone.</p><ol start="4"><li><p><strong>Backend:</strong></p></li></ol><p>Express API with an M-Pesa relayer ( Daraja-sandbox-ready). A payer confirms a bond by M-Pesa and the relayer records it on-chain, so the bonding step needs no wallet or gas from a non-crypto-native user. Gasless dispute filing via ERC-4337 account abstraction is designed for but not yet integrated.</p><ol start="5"><li><p><strong>Frontend:</strong></p></li></ol><p>React app with a custom visual identity built around the protocol's own metaphor: disputes render as a literal jury circle, not a generic dashboard. Live and fully connected to the deployed contracts.</p><p>This isn't a proof-of-concept scaffold — it's a working system, honest about the one piece still ahead of it.</p>

Tech Stack

ReactNodeWeb3EthersSolidityRustArbitrumArbitrum Stylus

Fundraising Status

<p>No funds raised. Baraza Protocol is a hackathon entry no token, no fundraise. Open to grant or seed funding to continue development post-hackathon.</p>

Team Leader
JJames wasonga
GitHub Link
github

GitHub

https://github.com/James-wasonga/baraza-protocal
Product Category
SocialFiDeFiInfra