Inspiration

A company payment needs more than a wallet's Send button. Someone requests the expense, another person approves it, the budget must allow it, and the team needs evidence that the invoice was paid.

GreyFinance brings that workflow to small African studios, startups, and distributed teams already using Bitcoin. Our primary user is a company of 3–10 people that wants accountable spending without giving every employee the company wallet credential. We focused on one complete journey: request → independent approval → Lightning settlement → verifiable receipt.

What it does

The owner signs in with a Nostr identity, creates a company workspace, and separately connects the company's Lightning wallet through Nostr Wallet Connect, or NWC. Members receive one of four server-enforced roles: Owner, Finance, Employee, or Viewer.

  • Employees submit fixed-amount Lightning invoices and follow their own requests and allowance.
  • A different owner or Finance member reviews each expense. Requesters cannot approve or pay their own invoices.
  • Company monthly budgets, member limits, and maximum request amounts are checked before an approval reserves budget.
  • Finance explicitly confirms payment. An unclear result stays reserved for reconciliation rather than allowing a duplicate payment.
  • The server verifies settlement using the wallet's payment proof. A receipt retains the payment hash, preimage, settlement time, and source wallet-connection fingerprint; the browser can check the proof too.
  • Companies can create incoming invoice QR codes, verify received payments, export a CSV ledger, and inspect workspace audit records.

The dashboard includes an approval inbox, team permissions, budgets, and wallet settings. Warm chalk, deep forest, and restrained accents make the financial information readable. Horizontal desktop navigation and phone navigation keep the workflow usable at narrow widths.

How we built it

The interface uses React, TypeScript, Vite, handwritten CSS, locally served fonts, and Phosphor icons. Convex provides production persistence and backend operations; the reproducible local laboratory uses Node.js, Express, and SQLite. The repository starts locally with ./start.sh.

Nostr NIP-98 signed HTTP requests establish authenticated sessions. Connect provides the NIP-07 identity signer; it does not automatically connect or fund the company treasury. NWC, NIP-47, handles that separate wallet connection through the Alby SDK. Bitcoin Core and two LND nodes provide the private regtest laboratory.

Membership, tenant isolation, invoice validation, budget reservations, and payment state transitions are checked on the server. Delegated wallet credentials are encrypted at rest and withheld from employees. Funds remain in the company's chosen wallet; custody depends on that wallet and its provider.

What we learned and the challenges we faced

The difficult part was handling the states between approval and a clear wallet response. A timeout does not prove a payment failed. We retain its budget reservation and reconcile against the original wallet connection and settlement proof. Reservations also need to survive calendar-month boundaries and concurrent requests.

We learned to distinguish a wallet service from an individual delegated connection. Two connections can share a service key, so receipts retain a fingerprint that includes both service and client identity.

Sign-in testing exposed another practical issue: installing an extension does not enable every website. We added exact-origin setup guidance, bounded provider discovery, explicit Connect or other-signer selection, and helpful locked, declined, and expired-request states. Retrying requires a deliberate click and a fresh signature.

The security boundary is explicit: these are application approvals, not cryptographic multisignature. The server holds delegated spending authority, so provider permissions and spending caps remain essential. Routing fees are not yet included in the application's budget totals, and the audit record is operational history rather than an immutable public ledger.

Verified results

The published hosted integration evidence records a 150-sat outgoing expense and a 100-sat incoming payment, settled by real LND wallets on a private Bitcoin regtest network, with durable Convex receipts. The receiving wallets independently checked settlement. Its 19 integration checks include signed login and replay rejection, tenant isolation, employee payment denial, independent approval, budget reservation, receipt verification, and duplicate-payment prevention.

The published release record includes 137 passing automated tests, a production build, and desktop and 390px/360px browser checks. The latest Connect sign-in candidate additionally passed the expanded 155-test suite and its build, and completed actual installed-extension login against Convex.

These are builder-controlled functional results. Test sats have no monetary value. We have not measured independent team adoption, mainnet payment performance, or savings in staff time, and an external security audit remains a next step.

Try GreyFinance · Source and setup · Hosted payment evidence · Published release evidence

What's next

Our pilot target is five Nigerian and Senegalese teams of 3–10 members, with a planning estimate of ten expense requests per team each week: 50 weekly requests, not current adoption. We will measure request-to-approval time, approval-to-settlement time, blocked policy violations, reconciliation delays, and completion on mid-range phones.

Next iterations add distinct wallet bindings for multiple owned companies, account recovery and wallet rotation procedures, structured invoice replacement and cancellation, and routing-fee accounting. An independent security review and observed team pilots will guide wider live use.

Built With

Share this project:

Updates

Submission history