Sereno

Every developer always had a wallet, they just got to know it now.

Sereno

Created At

ETHGlobal Mumbai

Project Description

Sereno turns every GitHub account into a crypto wallet, and every SSH key on a GitHub profile into the key that spends from it. No app, no seed phrase, no signup.

Anyone can pay a developer by GitHub username: type "torvalds" on the pay page, or send to torvalds.sereno.eth, and USDC lands in a smart account at an address derived from their numeric GitHub ID. The developer doesn't need to have heard of us. The account doesn't need to exist yet; it's a CREATE2 address, the same on every EVM chain, and it can't be hijacked by renaming because GitHub IDs never change.

To spend, the developer signs a short, human-readable payment text with the tools they already have: ssh-keygen -Y sign, a hardware security key, or a phone acting as a passkey. The contract rebuilds that text, verifies the SSH signature on-chain (P-256, phone/security keys, ed25519 and RSA), checks that the key is really on their GitHub profile, and pays. A relayer submits the transaction for a small fee that's written into the signed text, and anyone can self-submit instead.

The favourite part: a signed git commit IS a payment. Write the payment text as the commit message, git commit -S, git push. GitHub shows its green "Verified" badge, our relayer sees the commit and the money moves. The push is the broadcast.

Keys stay in sync with GitHub through a Chainlink CRE workflow: the nodes agree on each user's current key set and write key hashes on-chain, so a key you delete on GitHub stops working at the next sync. A key first seen less than 72 hours ago can't move more than 50 USDC, which limits the damage of a stolen GitHub account.

Names are real ENSv2: <user>.sereno.eth resolves for everyone through a wildcard resolver and a CCIP-read gateway, and a developer can claim theirs as a real ENSv2 subname owned by their account, with its own PermissionedResolver, by signing with a phone or security key. If a username changes hands, the name fails loudly for 15 days instead of paying a stranger.

On top of that:

  • Issue bounties: fund any GitHub issue with USDC; when a merged PR closes it, a CRE workflow confirms it with GitHub and the PR author is paid by GitHub ID.
  • A browser extension that adds "Pay" buttons to GitHub profiles, PRs, commits and issues.
  • The sereno-ak CLI on npm (npx sereno-ak send 1 friend --as me).
  • Escrow with a refund if the recipient never claims.

Everything is deployed on Base Sepolia and Arbitrum Sepolia at the same addresses, with ENS on Sepolia.

How it's Made

Contracts (Solidity 0.8.37, Foundry): an on-chain SSHSIG verifier implementing OpenSSH's PROTOCOL.sshsig byte format, dispatching by key type:

  • P-256 through the RIP-7212/EIP-7951 precompile at 0x100 (~47k gas);
  • phone/security keys (sk-ecdsa) by rebuilding the FIDO authenticator data;
  • RSA through the modexp precompile;
  • ed25519 through a vendored Solidity Ed25519 library compiled separately under solc 0.6. A P-256 payment costs ~189k gas on Base. SshAccount accounts come from a factory whose CREATE2 salt is the GitHub ID; every contract is deployed through the Arachnid deterministic deployer with fixed salts, so all addresses match on Base Sepolia, Arbitrum Sepolia and Sepolia, and one ENS answer works on every chain. We pin solc exactly and strip the metadata hash, because a teammate's newer compiler would otherwise change every account address.

Commit-as-payment: git signs commits as a normal SSHSIG in the "git" namespace over the commit object minus its gpgsig header. The account's executeCommit takes the headers plus the signature and requires that the intent is the whole commit message, not a paragraph hidden in a longer one. The relayer reads the exact signed bytes from GitHub's commit verification API. Hacky bit: git signs with SHA-512 by default, which costs ~640k extra gas in Solidity, so we set gpg.ssh.program to a 3-line wrapper that adds -O hashalg=sha256 only when git asks it to sign. GitHub still shows "Verified".

Chainlink CRE: two TypeScript workflows.

  • "github-keys" fetches each user's authentication and signing keys from the GitHub API (token from CRE secrets) with consensusIdenticalAggregation, and writes keccak256(key blob) hashes on-chain. The KeyOracle clears removed keys (revocation), keeps first-seen times for the 72h new-key delay, and maps login to ID so nobody can claim someone else's ENS name.
  • "github-bounty" uses GitHub GraphQL to confirm that an issue was closed by a merged PR, and records the author as the winner. Because the simulation forwarder doesn't check DON signatures, we put a ReportGate in front of our receivers that routes by workflow name and allowlists the broadcasting EOAs. A sync worker on our laptop pulls jobs from the relayer and runs the CRE simulation with --broadcast on demand, so "Sync my keys" on the site works in about 17 seconds per chain.

ENSv2 (Sepolia): sereno.eth has an ENSIP-10 wildcard OffchainResolver that reverts with EIP-3668 OffchainLookup to our Bun gateway (username → GitHub ID → CREATE2 address, signed responses, every EVM coin type). It also has a UserRegistry subregistry from ENS's VerifiableFactory. A permissionless NameRegistrar checks an SSH signature plus the oracle's login mapping, then registers <user>.sereno.eth to the user's account with its own PermissionedResolver proxy, all set in one transaction because initialize skips role checks. Stale names after a GitHub rename can be released by anyone and are quarantined for 15 days. Ed25519 doesn't fit Sepolia's per-transaction gas cap, so name claims use P-256 or phone keys. The phone works as a FIDO key through Win32-OpenSSH 10: QR code, then a fingerprint.

Clients:

  • Pay page: Vite + React + viem, on Vercel; it resolves our testnet names itself, since stock wallets don't.
  • CLI: Bun, bundled for Node and published to npm; it finds your key in ~/.ssh and shells out to stock ssh-keygen and git.
  • Relayer and gateway: Bun on Railway, one Docker image.
  • MV3 extension: React, a P-256 browser key in a password vault, buttons injected into GitHub pages.
  • Shared: a TS package holds the intent builder (tested byte-for-byte against the contract), ABIs and addresses. Partner tech: Circle USDC on every chain.
background image mobile

Join the mailing list

Get the latest news and updates

Sereno | ETHGlobal