Skip to content
bsv-blockchainPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

BSV Unified Identity

Private, verifiable, unlinkable KYC, from a free passport scan to eIDAS.

This repository holds a proposed BSV-native identity composition and conformance profile. It combines established private-credential techniques with relationship isolation, tiered assurance, current-device authorization, recovery and optional delegated CDD custody. The full profile targets credential-backed predicates and unlinkability across distinct authenticated service scopes, subject to disclosure and metadata limits. A stable per-service pseudonym intentionally links repeat visits. Tier 1 authenticates document data, not the human holding the document.

Status: v0.3 · September 2026 security revision. Not a ratified BRC or implemented, audited production profile. The revision adds supported-AA remote freshness, isolated BRC-103 relationship identities, private current-device authorization, exact-transition recovery proofs, active-registration uniqueness limits, verified online CDD packages, and explicit hardware/software custody boundaries. Full unlinkability is gated on Phase 1.

Documents

Read in increasing depth. CHANGELOG.md records historical corrections and editorial changes:

File Audience What it covers
summary.md Executives, non-technical The idea, why now, the regulatory path, and the limits, in one sitting.
technical-whitepaper.md Engineers, architects The architecture and cryptographic rationale: the (s, n, pid) model, KYC tiers, the zero-knowledge toolbox, and the threat model.
whitepaper.md Implementers, standards reviewers The normative proposal (RFC 2119 MUST/SHOULD): identity model, key derivation, tiers, presentation, revocation, the eIDAS interoperability profile, security analysis, and appendices with concrete constructions.

Supporting engineering documents: the reuse decision record tracks pending component choices; the evidence plan maps observations, lifecycle tests and benchmarks to the specification. These are plans, not implementation results. The Privado/Billions assessment records the source checks and qualifications behind the comparison revision.

The core idea

The model separates three values:

  • s, the presentation secret. High-entropy, wallet-held, never disclosed. Generates a different pseudonym for every relying party. Production presentations also need a fresh signature from a currently authorized device; knowledge of s alone is insufficient.
  • n, the personhood nullifier (the "uniKey"). A deterministic, one-way value derived from passport chip data (document number, MRZ, SOD hash; no biometrics). Anchors per-document active-registration uniqueness in a declared registry. This does not enforce lifetime account uniqueness: fresh-secret replacement can create new pseudonyms. It is not a secret, so nothing n-derived is ever shown to a service.
  • pid, the scoped pseudonym. pid = PRF(s, scope), what a relying party sees and stores: stable for that party, uncorrelated across parties.

A zero-knowledge proof ties a presentation to a valid credential and proves the requested facts without disclosing the underlying identity, the credential, or any extra attribute.

Onboarding tiers

  • Tier 0: bare identity key, no document.
  • Tier 1: self-read passport verified against the issuing state's PKI (ICAO 9303). Supported Active Authentication additionally proves remote chip freshness. Ordinary wallet-supplied Chip Authentication transcripts do not. No proofing issuer is required, but registry operation needs funding; a sponsor can make it free to the holder.
  • Tier 2: accountable issuer / qualified trust service provider with real identity proofing.
  • Tier 3: in-person (or supervised-equivalent) proofing, toward government-grade assurance.

Limitations

  • Uniqueness has lifecycle and domain limits. Multiple documents allow multiple registrations; fresh-secret replacement/re-registration can bypass a previous pid ban. Higher proofing tiers do not establish per-person uniqueness across independent issuers. Such a claim needs a declared, governed common issuance domain.
  • Unlinkability is a gated cryptographic target. It requires the complete Phase-1 proof and isolated authentication contexts. It does not extend to a custodial wallet or the network layer (IP/timing/device); and a party with both a passport's chip data and query access to the (off-chain, rate-limited) uniqueness registry can test whether that document has enrolled. That is the bounded cost of attester-free uniqueness.
  • Unlinkable KYC is not AML KYC. Where customer-due-diligence law applies, the business must identify the customer and retain the record; this system then offers verified, minimized disclosure, not anonymity. Under the optional delegated-custody profile (spec §10.10), the custodian holds the record and the company holds a verified retrieval package. Custodian and escrow provision and countersign each package; the custodian learns company relationships. Custodian-private offline onboarding remains experimental.
  • The free tier verifies document data, not the holder. A self-read passport proves the document is genuine, not that the person holding the phone is its rightful owner.
  • Complete zero-knowledge proofs still require implementation and measurement, and the strongest privacy guarantees (Layer C/D) are a roadmap capability, not the first shipping milestone.
  • Device revocation and hardware custody are separate. Presenting devices share s but have independent keys and no routine control authority. Removed devices lose presentation authorization after the freshness window, but retained s still permits correlation. The phone baseline wraps software secrets; they enter application memory during use. In-hardware execution and threshold proving require separate evidence.

Built on existing standards

did:bsv, W3C Verifiable Credentials, OpenID4VP/SIOP and ISO/IEC 18013-5 presentation, BRC-42/43 key derivation, BRC-103 authentication, BRC-52/53 keyrings, SD-JWT VC, and a zero-knowledge toolbox on the BLS12-381/BBS suite shared with the Mandala stablecoin's credential layer, bound into one layer rather than reinvented.

Building the PDF and EPUB editions

tools/build-docs.sh regenerates both formats from the markdown into pdf/ and epub/. It rebuilds only what changed, keying on a SHA-256 of the source plus every build input (including diagrams/, which the papers embed), so a fresh clone or a stray touch does not trigger work while a real edit always does.

tools/build-docs.sh                 # rebuild whatever changed
tools/build-docs.sh --all           # rebuild everything
tools/build-docs.sh --pdf           # one format only (or --epub)
tools/build-docs.sh --watch         # rebuild on save
tools/build-docs.sh --check         # exit 1 if anything is stale (CI)
tools/build-docs.sh --install-hook  # rebuild and stage on every commit

Requires pandoc and typst (brew install pandoc typst), plus mmdc (npm i -g @mermaid-js/mermaid-cli) for the documents carrying a ```mermaid block; none of the current documents carries one. The PDF path runs markdown through pandoc to typst and compiles with tools/template.typ; the EPUB path is pandoc's epub3 writer with tools/epub.css. Links to engineering notes under docs/ stay local in the Markdown; exported editions point to those files on the repository's main branch, where they become available when published.

tools/mermaid.lua renders mermaid blocks to SVG and substitutes them for the source, so a diagram GitHub renders natively is a diagram in both editions. It content-addresses each render by the SHA-1 of the block and caches it under tools/.build-cache/mermaid/, so an unchanged diagram never pays for another headless Chromium launch. tools/mermaid.json disables mermaid's HTML labels: mermaid 11 puts node text in <foreignObject>, which typst renders as blank boxes. The build also lifts the title, the optional subtitle beneath it, and the **Status:** / **Editors:** block out of each document's front matter into the title block and the EPUB metadata; the title block shows only the version, the part of the status line before the first middot.

Fonts and the glyph guard

Typst falls back across every installed font silently, so a missing glyph produces no warning, only a wrong-looking character on machines without whatever font it borrowed. The papers' non-ASCII characters have been checked in the two fonts typst ships and the template targets: Libertinus Serif for text, DejaVu Sans Mono for code. tools/check-glyphs.sh fails when a document introduces a character that has not been verified by eye:

tools/check-glyphs.sh           # fail on unverified characters
tools/check-glyphs.sh --sheet   # render a coverage sheet to inspect
tools/check-glyphs.sh --accept  # record the current inventory as verified

Contributing

This is an early draft intended to attract review. Issues and pull requests against the documents are welcome; substantive cryptographic and normative feedback especially so.


The .md files are the source of record. The PDF and EPUB editions in pdf/ and epub/ are generated from them by tools/build-docs.sh (see "Building the PDF and EPUB editions" above).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages