Skip to content
C

CreditLedger

On-chain credit and automatic payment splits

Created on 26th September 2026

•

C

CreditLedger

On-chain credit and automatic payment splits

The problem CreditLedger solves

Creative work increasingly involves several people and AI tools, but credit is informal. There is no neutral record of who took part, no agreed split that everyone has actually accepted, and no easy way to prove a work existed at a given time. When money arrives, someone divides it by hand and everyone else has to trust them. The role of AI tools is rarely written down at all.

Credit Ledger fixes this on Ethereum:

  • A creator registers a work by its content hash, with 1 to 10 contributors (humans and AI tools), each with a role and a percentage share.
  • Every contributor confirms from their own wallet. The work becomes active only when all have confirmed.
  • Anyone can then pay the work in ETH. The contract splits the payment automatically, and contributors withdraw their share whenever they like.
  • The timestamp comes from the chain, so it cannot be backdated. The app can check any file against the registered hash.

It is a hackathon prototype on the Sepolia testnet. It is unaudited and not for real funds. A registered hash proves that an address registered it at a time, not that the address authored the file.

Challenges I ran into

  • Exact splits. Dividing a payment by basis points leaves rounding remainders. We give the remainder to the first contributor so the credited total always equals the payment, and we wrote a fuzz test to prove it.
  • Safe payouts. Sending ETH to several wallets inside one payment is a reentrancy risk. We used pull payments, so payWork only credits balances and each contributor calls withdraw(), which is guarded against reentrancy. A malicious-contributor test confirms the attack fails.
  • Working as two people on one repo. We fixed the contract interface first (docs/INTERFACE.md and the ABI in /shared) so the frontend could start immediately. When we considered adding an explorerUrl field to the shared deployment file, we found it would break the frontend's generated TypeScript types, so we left it out.
  • Verifying the contract. Etherscan needs the exact compiler settings. We read them from the build metadata (solc 0.8.37, optimizer 200 runs, via-IR) and verification passed.
  • Deploying the app. The frontend lives in a subfolder, so Vercel needed its Root Directory set to web and the Next.js preset before it would build.
  • Gas on tiny payouts. In testing, Bob's 0.0003 ETH withdrawal cost about as much in gas as he received. This is the main reason a low-fee L2 is our next step.

Tracks Applied (1)

Sydney Hackathon

Technologies used

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio