Skip to content

About

Public code, sovereign identity. Contribute to GitHub repositories pseudonymously and receive shielded Zcash testnet rewards.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

GhostCommits β€” Public code. Your own identity. Zcash testnet.

GhostCommits

Contribute to open source without a personal GitHub login. Request a shielded Zcash testnet reward for accepted work.

🌐 Live App: https://ghostcommits.netlify.app

GhostCommits brings a local signing identity, bot-authored pull requests, maintainer review, and wallet-approved rewards into one browser workspace. Your code stays public. You choose a separate identity for your contributions. Maintainers keep their existing GitHub review process.

Testnet MVP Β· Public repositories Β· One file per submission Β· One award per bounty

Live App Β· How it works Β· Live transaction Β· Run locally Β· Architecture Β· Verification Β· Zcash feedback


Live testnet transaction

This is a real, confirmed shielded Zcash testnet transfer triggered through the GhostCommits reward flow β€” a maintainer approved the payout in Noir Wallet and the transaction was broadcast to the Zcash testnet.

Field Value
Transaction d7d9b789...8e54
Explorer testnet.zecblock.com
Block height 4 582 798
Block hash 000018388d3edd77c94aae2efd82881cc17d276aee70526edc24c4e7712949ae
Confirmations 78 (at time of export)
Fee 0.00002 ZEC (testnet)
Tx size 9 166 bytes
Version 6 (Zcash v6 transaction format)
Shield type Fully shielded β€” inputs, outputs, and amounts are not visible on-chain (saplingSpendCount: 0, saplingOutputCount: 0, orchardActions: 0 fields indicate no transparent components were exposed)

Note

Zcash shielded transactions deliberately expose no input addresses, output addresses, or amounts in public block data. The explorer shows the transaction exists and is confirmed, but cannot reveal sender, recipient, or value β€” that is the privacy guarantee Zcash provides. GhostCommits records the transaction ID as recorded-unverified; the recipient confirms receipt independently through their own Noir Wallet.

What this proves

flowchart LR
    A["πŸ”§ Maintainer\nselects claim in GhostCommits"] --> B["πŸ’œ Noir Wallet\napproves shielded transfer"]
    B --> C["⚑ Zcash Testnet\nbroadcasts tx d7d9b789"]
    C --> D["πŸ“¦ Block 4582798\n78 confirmations"]
    D --> E["πŸ‘€ Contributor\nverifies receipt in Noir"]
    A -.->|"records txid"| F["βš™οΈ GhostCommits API\nstatus: recorded-unverified"]
Loading

The full end-to-end flow β€” bounty published, file submitted, PR merged on GitHub, claim signed with a Sapling address, maintainer approval in Noir, shielded broadcast, and recipient receipt β€” has been executed on the Zcash testnet. This transaction is the on-chain evidence of the reward step.

Noir Wallet showing Transaction Submitted β€” 0.01 ZEC to utest1...scfn3j, tx d7d9b7...898e54

Noir Wallet confirms: 0.01 ZEC sent to utest1...scfn3j Β· transaction hash d7d9b7...898e54 Β· status: submitted.


Why this should exist

A useful contribution can be small: fix a broken example, clarify an installation step, or repair a single function. A developer should be able to offer that work under an identity they choose, and a maintainer should be able to review it without changing how their project runs.

Someone who wants to keep that work separate from their usual GitHub identity has to manage another account and arrange any reward separately. GhostCommits brings those steps together: create a Ghost, submit a file, respond to review, and request a reward from the same workspace.

The first use case is deliberately narrow: small, clearly scoped open-source bounties. It could help an occasional contributor make a quick fix, a developer keep an experimental contribution separate from their main profile, or a maintainer offer a reward for a neglected documentation task. These are intended users, not claims of existing adoption. A pilot still needs to establish whether people find this useful enough to return.

Why Zcash belongs here

Public code review and payment privacy serve different purposes. Review needs an inspectable diff and a clear acceptance decision. A reward does not need to add a transparent payment trail to that public work.

GhostCommits integrates Noir Wallet to request a transfer from shielded funds to a Sapling testnet recipient. The contributor signs the reward request with the Ghost identity associated with the submission; the maintainer chooses the award and approves the transfer in their own wallet. The application does not hold wallet spending keys.

This puts Zcash in an everyday developer workflow. It is also a limited privacy claim: the operator and maintainer can see the reward address and associated claim. Shielded transfers do not make the application anonymous.


How it works

Conceptual workflow: contribute, review and merge, then approve a testnet reward.

These AI-generated illustrations explain the product. They are not screenshots or evidence of completed transactions.

For contributors

  1. Choose a bounty. Read the repository, acceptance criteria, and testnet reward before starting.
  2. Create your Ghost. Generate a local signing identity and export its recovery key. No personal GitHub login is required.
  3. Submit one complete file. The GitHub App opens a bot-authored pull request associated with your Ghost.
  4. Respond to review. Read feedback on the public PR, then revise the same file from My contributions. Revisions update the same PR.
  5. Request the reward after merge. Check merge status, provide a valid Sapling testnet address, and sign the claim. Noir can fill in your receiving address.

A merged PR makes a claim eligible for review; it does not guarantee selection or payment.

For maintainers

  1. Open Sponsor desk, sign in with GitHub, and install the GitHub App on a public repository you manage.
  2. Refresh repositories and publish a small task with clear acceptance criteria and a testnet reward. Published terms are fixed.
  3. Review and merge the contribution on GitHub using your normal process.
  4. Review eligible claims, choose one award, connect a funded Noir testnet wallet, and approve the shielded transfer in the extension.
  5. Check wallet history and recipient receipt. GhostCommits records a transaction ID as recorded-unverified, not confirmed payment.

Multiple contributors can request review. Selecting a claim atomically reserves the bounty's single award.

Small tasks, a browser, and a recoverable identity

You do not need a local Git checkout or a personal GitHub login to submit a file through the contributor interface. Bounties, submissions, and claim progress live in one workspace. The layout adapts to smaller screens for checking work on the go.

The Ghost key lives in that browser. Export it before clearing browser data, and import the recovery file when moving to another device. There is no automatic identity sync. Wallet approval requires a compatible Noir testnet extension; an end-to-end mobile wallet flow has not been established.


A walkthrough for reviewers

Use a public test repository with an existing default branch and a task small enough to finish in one file, such as improving a README usage example. The operator must first complete the deployment setup.

Step Action What to inspect
Publish Maintainer creates a bounty. Repository, fixed terms, and testnet reward.
Contribute A separate browser profile creates a Ghost and submits the file. Real bot-authored PR, without contributor GitHub sign-in.
Revise Maintainer requests a change; the Ghost submits a revision. The same PR receives the update.
Merge Maintainer merges; contributor checks merge status. GitHub merge evidence in contribution history.
Claim Contributor signs a request with a Sapling testnet address. Claim associated with the submitting Ghost.
Approve Maintainer selects the claim and approves in Noir. Shielded spendability check, wallet approval, one reserved award.
Verify Check sender history and recipient receipt; reload the app. Persistent records; transaction remains unverified in the UI.

Warning

If wallet approval is declined or interrupted, the award stays reserved. Check the sender's wallet history before taking another action. If a transfer exists, use Record transaction with its 64-character transaction ID. There is no automatic resend or reservation reset; a definitive no-transfer outcome requires operator reconciliation.


Architecture

System overview

flowchart TB
    subgraph Browser["πŸ–₯️ Browser (No install required)"]
        Contributor["πŸ‘€ Contributor\nGhost key Β· signed requests"]
        Maintainer["πŸ”§ Maintainer\nGitHub OAuth Β· Sponsor desk"]
        Noir["πŸ’œ Noir Wallet Extension\nWallet-controlled approval"]
    end

    subgraph Backend["☁️ Netlify (Serverless)"]
        API["βš™οΈ Node.js API\nNetlify Function /api/*"]
        DB[("πŸ—„οΈ Netlify Blobs\nBounties Β· Submissions\nClaims Β· Sessions")]
    end

    subgraph External["🌐 External Services"]
        GitHub["πŸ™ GitHub App & REST API\nBot PRs Β· Reviews Β· Merge evidence"]
        Zcash["⚑ Zcash Testnet\nShielded transfer recipient"]
    end

    Contributor -->|"Ed25519-signed contributions & claims"| API
    Maintainer -->|"Publish bounty Β· select award"| API
    API <-->|"Persist state (conditional writes)"| DB
    API <-->|"Create PRs Β· verify merges"| GitHub
    Maintainer -->|"Request shielded transfer"| Noir
    Noir -->|"Approve & broadcast"| Zcash
    Maintainer -->|"Record 64-char txid"| API
Loading

Identity and signing flow

flowchart LR
    subgraph Client["Browser (WebCrypto)"]
        KG["πŸ”‘ Key Generation\nEd25519 via WebCrypto"]
        PK["Public Key\n(registered)"]
        SK["Private Key\n(browser-local only)"]
        RE["πŸ“¦ Recovery Export\nunencrypted JSON"]
    end

    subgraph Server["GhostCommits API"]
        REG["Ghost Registration\nstore public key"]
        CH["Challenge Issuer\nnonce + expiry"]
        VER["Signature Verifier\nEd25519 verify"]
    end

    KG --> PK & SK
    PK -->|"register ghost"| REG
    SK -->|"sign challenge"| VER
    REG --> CH
    CH -->|"challenge payload"| SK
    SK --> RE
    RE -.->|"import on new device"| KG
Loading

Contribution lifecycle

stateDiagram-v2
    [*] --> BountyOpen : Maintainer publishes bounty

    BountyOpen --> Submitted : Contributor submits file
    Submitted --> PROpen : GitHub App opens bot PR

    PROpen --> PROpen : Maintainer requests changes\nContributor revises file
    PROpen --> Merged : Maintainer merges PR

    Merged --> ClaimEligible : Contributor checks merge status
    ClaimEligible --> ClaimSigned : Contributor signs reward claim\nwith Sapling address
    ClaimSigned --> ClaimSelected : Maintainer selects one claim\n(atomically reserves award)

    ClaimSelected --> TransferApproved : Maintainer approves in Noir
    TransferApproved --> RecordedUnverified : Transaction ID recorded

    RecordedUnverified --> [*] : Recipient verifies receipt separately

    ClaimSigned --> ClaimRejected : Maintainer rejects claim
    ClaimRejected --> [*]
Loading

Request & data flow (sequence)

sequenceDiagram
    participant C as πŸ‘€ Contributor
    participant A as βš™οΈ GhostCommits API
    participant DB as πŸ—„οΈ Netlify Blobs
    participant G as πŸ™ GitHub
    participant M as πŸ”§ Maintainer
    participant W as πŸ’œ Noir Wallet

    Note over C,W: Phase 1 β€” Submission
    C->>A: Register Ghost (public key)
    A->>DB: Store ghost record
    C->>A: Submit file (Ed25519-signed)
    A->>DB: Store submission
    A->>G: Open bot-authored PR
    G-->>A: PR number & URL
    A-->>C: Submission confirmed

    Note over C,W: Phase 2 β€” Review & Merge
    M->>G: Review and merge PR
    C->>A: Check merge status
    A->>G: Verify merge evidence (SHA, state)
    G-->>A: Merge confirmed
    A->>DB: Update submission state

    Note over C,W: Phase 3 β€” Reward
    C->>A: Sign reward claim (Sapling address)
    A->>DB: Store claim (pending)
    M->>A: Select claim & reserve award
    A->>DB: Atomic write β€” reserve bounty
    M->>W: Request shielded testnet transfer
    W-->>M: Transaction ID (after wallet approval)
    M->>A: Record transaction ID
    A->>DB: Update claim β†’ recorded-unverified
    Note over A,W: Recipient verifies receipt independently
Loading

Deployment architecture

flowchart LR
    subgraph Dev["πŸ’» Local Development"]
        Vite["Vite Dev Server\n:5173"]
        NodeDev["Node.js Backend\n:5174 (proxied)"]
        JSON[("data/store.json\nGit-ignored")]
        Vite <-->|"proxy /api/*"| NodeDev
        NodeDev <--> JSON
    end

    subgraph Prod["🌐 Netlify Production"]
        CDN["Static Assets\nVite build output"]
        Fn["Netlify Function\n/api/* β†’ netlify/functions/api.mjs"]
        Blobs[("Netlify Blobs\nDurable Β· strongly consistent")]
        CDN -->|"route /api/*"| Fn
        Fn <--> Blobs
    end

    subgraph Ext["External"]
        GH["GitHub App\n& REST API"]
        NW["Noir Wallet\nExtension"]
    end

    Fn <-->|"App JWT + OAuth"| GH
    Fn <-->|"SDK integration"| NW
Loading

Tech stack

Layer Implementation
Interface Vite, vanilla JavaScript, responsive CSS, self-hosted Inter
Identity Browser-generated Ed25519 keys, signed challenges, recovery import/export
GitHub App installation access, maintainer OAuth, bot-authored PRs and revisions
API Node.js locally; Netlify Function for /api/* in deployment
Storage Netlify Blobs; Git-ignored JSON file locally outside Netlify
Rewards @noir-wallet/sdk, shielded spendability checks, wallet approval, transaction recording

Note

The deployed MVP stores aggregate state in one strongly consistent blob. Conditional writes reject stale updates with HTTP 409, including competing award selections. Operations are not automatically replayed. Production data persists across deploys; preview stores are isolated. This suits a small, low-traffic pilot.


Run locally

Requires Node.js 22.12 or newer and npm.

npm ci

Copy .env.example to .env:

# PowerShell
Copy-Item .env.example .env
# macOS / Linux
cp .env.example .env

Configure the GitHub App and session encryption key using the setup guide. Locally, match the GitHub callback to http://localhost:5173/api/github/callback and keep APP_ORIGIN=http://localhost:5173.

npm run dev

Open http://localhost:5173. Vite proxies API requests to the backend. Outside Netlify, state is stored in Git-ignored data/store.json; only one backend process should own that file. Starting the interface alone does not configure GitHub, publish a bounty, or fund a wallet.

For rewards, install a compatible official Noir testnet extension, synchronize the wallet, and fund the maintainer with spendable shielded testnet ZEC plus fees. The integration requires getMaxTransfer and shielded fundingSource support. Contributors can also enter a valid Sapling testnet receiving address manually.


Deploy on Netlify

Live application: https://ghostcommits.netlify.app

The repository includes netlify.toml, the API function, and durable Blobs storage. The operator registers one public GitHub App; maintainers then sign in and install it on their own repositories. Maintainers do not paste GitHub tokens or use a shared operator password.

Runtime variable Purpose
APP_ORIGIN Exact deployed HTTPS origin, without a trailing slash
GITHUB_APP_ID GitHub App ID
GITHUB_CLIENT_ID GitHub App client ID
GITHUB_CLIENT_SECRET GitHub App client secret
GITHUB_APP_PRIVATE_KEY Full PEM private key
SESSION_ENCRYPTION_KEY Stable encryption key: 32 random bytes encoded as 64 hex characters

Important

Netlify supplies Blobs access automatically; no database connection is required. Keep secrets out of Git and VITE_* variables, and redeploy after configuration changes. A static-only deployment is insufficient.

Follow Netlify deployment and live verification for permissions, OAuth settings, database requirements, health checks, and troubleshooting.


Implementation and verification

Area Current scope
Ghost identity Creation, recovery export/import, signed authentication and reward requests
Contributions Public-repository bounties, one-file bot PRs, revisions, merge checks
Maintainers GitHub sign-in, repository permission checks, fixed bounty terms, claim rejection and selection
Rewards Noir connection, address autofill, balance display, shielded spendability checks, approval request and transaction recording
Persistence Durable deployed state and atomic reservation of one award per bounty
Outstanding live evidence βœ… Live shielded testnet transfer confirmed β€” tx d7d9b789, block 4582798, 78 confirmations

Note

Automated coverage uses mocked external integrations. It does not establish that a live wallet transfer or GitHub installation has succeeded. See implementation status.

npm test
npm run build
npx playwright install chromium
npm run test:browser

API tests exercise local JSON storage and an isolated local Blobs test service, including authentication, tenant isolation, revisions, competing claims, and persistence. Browser tests exercise the built frontend with mocked API responses.


Privacy and current limits

Caution

This is a testnet MVP, not a production-audited payment service. Testnet ZEC has no monetary value.

  • Public work: code, PRs, review, and timing remain visible. Review file contents for identifying information before submitting.
  • Operator visibility: the service can associate a Ghost with submissions and claims, and can observe network metadata. Maintainers and the operator see reward addresses.
  • Local keys: Ghost keys and recovery exports are unencrypted. Protect the browser profile and recovery file. A signature proves key control, not original authorship.
  • Limited scope: public repositories, one file per submission, one award per bounty, and Sapling testnet recipients beginning with ztestsapling1 only.
  • No payment guarantee: no mainnet, escrow, guaranteed funding, automatic payment confirmation, or automatic resend. Maintainer approval is required.
  • History: contribution history depends on service storage. It is not a portable credential or an independently verifiable reputation system.

GitHub user tokens are encrypted at rest, and maintainer sessions use HttpOnly cookies with a maximum eight-hour lifetime. Read the security boundaries before operating an instance.


Next steps

The next milestone is a documented live contribution and recipient-wallet receipt, followed by a small pilot with contributors and maintainers. That will test whether contributors find this easier than maintaining a separate GitHub account, and whether maintainers want to repeat the workflow.

Further work includes safer local key storage, better interrupted-payment reconciliation, independent payment verification, and broader contribution support. These are future work, not current features.


Repository guide

Path Contents
src/ Browser workspace, identity, views, and Noir integration
server/ API, authentication, GitHub integration, bounty logic, and storage
netlify/ Serverless entry point and durable Blobs storage
tests/ API, wallet, client, deployment-handler, and browser checks
Deployment guide Setup and live verification walkthrough
Implementation status Current scope and outstanding evidence
Security Trust model and security limits
Visual assets AI illustrations and exact generation prompts
Zcash feedback Builder feedback on testnet onboarding

The original architecture proposal, PRD, and earlier MVP audit remain as historical design context. Use this README and the current implementation status for today's scope.

About

Public code, sovereign identity. Contribute to GitHub repositories pseudonymously and receive shielded Zcash testnet rewards.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages