Skip to content

docs(specs)!: hidden identities — tagged nodes, token-checked circuits, opt-in disclosure - #144

Merged
xgreenx merged 18 commits into
mainfrom
docs/hashed-identities
Oct 19, 2026
Merged

xgreenx merged 18 commits into
mainfrom
docs/hashed-identities

Conversation

@SupremaLex

@SupremaLex SupremaLex commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

The specification of hidden identities. It supersedes #45. A claim puts no plaintext user id, handle or email on chain. Bindings are keyed by tagged SHA-256 nodes that the circuits output, and a handle reaches the chain only when a transaction discloses it.

Implementation: libid-org/libID-contracts#87, libid-org/libID-circuits#17, libid-org/libID-rs#35 and libid-org/usernames-indexer#26. The text follows their code.

Nodes and tags (platform §2.1, §2.1a)

  • idNode = SHA256(tag || id) over the account identifier's exact bytes. handleNode = SHA256(tag || fold(handle)), where fold maps A–Z to a–z and nothing else.
  • The tags are raw ASCII with no separator: libid.<p>.user-id and libid.<p>.handle, for p in google, x, github.
  • The circuit checks that each value is exactly the JSON token the platform sent: a handle, or a Google sub, is printable ASCII without " or \; an X or GitHub id is 1 to 20 digits. That is what stops a prover from ending a commitment at a later quote or past the digits. The platform's own format (alphabet, length, the id grammar) is the platform's; no role repeats it. Nothing is trimmed, so @bob or a space hashes as sent. Ids are never folded.
  • Buffers: X and GitHub handles 39 bytes, Google addresses 62, X and GitHub ids 20 digits, a Google sub 31. Longer fails to prove.
  • The chain folds text and compares nodes. It applies no charset or shape rules.
  • The circuits own the platform table: tags, buffers and id shape in libID-circuits' lib/identity/platforms.json, vectors in lib/identity/handles.json (checked with hashlib). Each release ships both; libID-contracts generates its tables from the shipped copies.
  • A Google sub is 1–31 bytes with no " or \, checked on the signed bytes.
  • REQ-PLAT-06 is the one id rule: X and GitHub ids as 1 to 20 digits as sent, and the Google sub limits. The TS Prover's decimalUserId follows it.
  • Changed: REQ-PLAT-05A (now every platform, dotted Google tag), REQ-PLAT-06, REQ-PLAT-08A, REQ-PLAT-08B, REQ-PLAT-08C, TEST-PLAT-02, TEST-PLAT-20; §2.1a is now "The token check and folding".
  • Removed: REQ-PLAT-04, 05, 07 and 08. 05A forbids transforming an id, REQ-PLAT-06 holds the sub limits, and the anchors of REQ-PLAT-31 and 51 fix each id's JSON type.
  • Added: REQ-PLAT-05B, REQ-PLAT-05C, and one definition of an id (account identifier); on Google, userId is the id node.

Circuit relation and public inputs (platform §5.3, §6.5)

  • X and GitHub prove under one bearer-link circuit. It links the two bearer commitments, opens the id and handle commitments, applies the token check, folds the handle and outputs both nodes under the tags its public inputs carry. The Platform Verifier supplies its own platform's tags, so a proof made under one platform's tags fails under the other's.
  • There are 16 public inputs, each 32-byte value as [high, low] 16-byte halves:
    • 0-1: token commitment;
    • 2-3: identity bearer commitment;
    • 4-5: id commitment;
    • 6-7: handle commitment;
    • 8-9: id node;
    • 10-11: handle node;
    • 12-13: user-id tag and its length; 14-15: handle tag and its length, each tag as its bytes from the top of one 31-byte field.
  • The bearer cap is 128 bytes on both platforms.
  • The verifier returns the two nodes in place of the userId and the raw handle.
  • Changed: REQ-PLAT-30, REQ-PLAT-32B, REQ-PLAT-32C, REQ-PLAT-35A, REQ-PLAT-36, REQ-PLAT-51, REQ-PLAT-52A, REQ-PLAT-52B, REQ-COMMON-05E, TEST-PLAT-10, TEST-PLAT-15A, TEST-PLAT-15B.
  • Added: REQ-PLAT-32D, REQ-PLAT-52C.

Anchor-only identity response and one-request identity session

  • The identity response reveals only the anchors around the id and the handle, and commits each value as its own range.
  • The Platform Verifier finds each commitment by its anchors. It refuses a doubled anchor and a missing or ambiguous frame.
  • GitHub's , or } terminator now follows the committed digits.
  • The identity request is exactly one bodiless HTTP request: one head end, nothing revealed after it, and the last range ending at the signed length. It carries exactly one host with the pinned authority.
  • The Prover copies the id and handle from the committed bytes, never through a number parse. One rule, REQ-PLAT-31A, covers X and GitHub.
  • Changed: REQ-PLAT-03, REQ-PLAT-31, REQ-PLAT-31A, REQ-PLAT-51, REQ-PLAT-59, REQ-PLAT-60, TEST-PLAT-17, TEST-PLAT-17A, TEST-PLAT-22, TEST-COMMON-18. Removed: REQ-PLAT-51A.
  • Added: REQ-COMMON-39C (one request), REQ-COMMON-39D (host).

Google profile (platform §3.3)

  • The public inputs are the id node and the handle node, where the userId digest and the raw email stood.
  • The launch artifact uses 57 fields: digest 0-31, SHA256(aud) 32-33, id node 34-35, handle node 36-37, exp 38, modulus 39-56.
  • The circuit admits the email under the token check, folds it and hashes it; its tags stay compiled in.
  • It fails rather than truncates a sub over 31 bytes or an email over 62.
  • The Application's projection check takes the id node from userId and the handle node from userName, folded.
  • Changed: REQ-PLAT-14B, REQ-PLAT-16B, REQ-PLAT-16C, TEST-PLAT-06.
  • Added: REQ-PLAT-16D.

Disclosure, publish and unpublish (new platform §2.1b)

  • No payload has a field for a handle or an id. The Consumer's bind takes one optional handle beside the Submission, bind(platformId, version, payload, handle); the Application passes it only when the user asks.
  • The Consumer folds a disclosed handle and hashes it under the platform's handle tag, as for publish, and requires that node to equal the handle node the Platform Verifier returned (HandleNotProved). The Platform Verifier never sees the handle.
  • The Consumer keys bindings on the nodes, with an owner and a watermark for each node. A rename retires the old handle node.
  • A Transaction Author has one name per platform. A disclosing claim or publish(platformId, handle) writes it. unpublish and any change of the handle's owner clear it, so a stored name is one its author holds, and a reader mirroring the events answers what the chain answers. A name event replaces the author's earlier name on that platform without a clearing event.
  • publish needs no proof, only ownership of the node (NotYourHandle).
  • A claim that discloses a handle always becomes the name. That includes a claim of the author's other account on the same platform. docs(specs): identity digests and disclosure for the Google profile #45 kept the name unless asked; the implementation does not.
  • Binding events carry nodes, never a plaintext handle.
  • Added: REQ-PLAT-03A, REQ-PLAT-08D, REQ-PLAT-08E, REQ-PLAT-08F, REQ-PLAT-08H, REQ-PLAT-08I, REQ-PLAT-08J, REQ-PLAT-08K, TEST-PLAT-20A, TEST-PLAT-20B. Changed: REQ-COMMON-05E (the verifier returns no handle), the Submission Payload definition (no handle), SP-PRIV-01, REQ-PLAT-08B, and the Application operator row in libid.md.

Privacy (common §4, §12; platform §9; overview)

  • SP-PRIV-01: a handle reaches the chain only from a transaction that carried it, and an id never. Nothing yields an undisclosed value except by hashing a guess.
  • What it does not hide:
    • "private" means not disclosed, not unguessable;
    • the tags are public;
    • committed range lengths reveal the lengths of the values;
    • GitHub ids are sequential, so a GitHub id node is in effect public;
    • a disclosure stays in history;
    • a duplicate field hidden behind a commitment rests on ASM-PROV-06;
    • the existence and time of a binding are public;
    • a handle named as text elsewhere, or sent to an off-chain reader, is disclosed there.
  • Added: SP-PRIV-01, ASM-HASH-01, ASM-ZK-01, REQ-COMMON-45A, TEST-COMMON-22A.
  • The overview's trust table names the roles of the Application and the Distribution.

Not specified

  • Escrow. No escrow text exists on main, and none is added. The implementation's private deposit(handleNode, …) names no platform; its public depositToHandle(platformId, handle, …) logs the handle folded. The common §12 bullet on handles named as text covers the privacy side only.
  • ENS. specs/ens-integration.md is not edited here; see below.
  • Circuit pin. Each Platform Verifier accepts only its circuit's code hash (WrongCircuit): X and GitHub pin bearer-link, Google oidc-google. That is an implementation property. REQ-COMMON-45 already requires the selected artifact.
  • Gas and the EVM encoding of payloads and events.

Ceremony version (common §2, §5, §12; platform REQ-PLAT-01A)

  • google, x and github stay at Platform Ceremony Version 1 under the new statement. They ship as a fresh deployment under new canonical names. The live deployment that runs the old version-1 statement is retired, not upgraded.
  • A ceremony version identifies its statement within one set of canonical Platform Verifier addresses. A new set may restate a version. Within a set, a changed statement still takes a new version.
  • The Authorization Digest binds the chain id, ceremony version, operation domain, nonce and transaction data, not a verifier address. What keeps a proof from crossing deployments is the statement: the two have different verification keys, so an old proof does not verify under the new circuits, and the reverse. A payload may still decode under the other encoding; the proof check refuses it. REQ-PLAT-01A requires this of any restated statement.
  • Changed: the Platform Ceremony Version term, ASM-PROOF-01, REQ-PLAT-01A, common §5 and §12 prose.

Review decisions

A design review proposed simplifications, each checked by a separate attempt to refute it. Done here: the Consumer, not the Platform Verifier, checks a disclosed handle; the id rules are one requirement; X and GitHub share one Prover rule; a name is cleared when its owner changes, not re-checked on read; an id is defined once, and the no-id clauses a Consumer holding only nodes cannot break are gone. Declined: new ceremony versions (x/2, github/2, google/2). The deployment stays at version 1 under new canonical names, so the glossary scoping, ASM-PROOF-01 and REQ-PLAT-01A stay as written here.

Scoping and stated checks

  • REQ-COMMON-19, 19B, 19D and 19F: the delimiter, canonical-integer and one-range rules cover a document the circuit holds whole (Google's ID Token) and revealed values; a committed X or GitHub value is located by its profile's anchors and terminator and checked under §2.1a (0123 proves).
  • REQ-PLAT-55, TEST-PLAT-21: the id and handle openings stay out of Submissions, logs and published artifacts.
  • REQ-PLAT-31A, TEST-PLAT-17A: the X and GitHub Prover checks the proof's node inputs against the id and handle it delivers.
  • REQ-PLAT-05C, §7: tags are prefix-free, not only distinct.
  • REQ-COMMON-39D, TEST-COMMON-18: host is compared on the raw value, trimmed, so API.X.COM is refused.
  • REQ-PLAT-08O, TEST-PLAT-20D: the pair check reads the handle's pairing, so a handle passed between two identities of one wallet no longer agrees with the first.
  • Common §2, §5.1: the Consumer holds each platform's handle tag and the fold, and nothing else of the profiles.
  • REQ-PLAT-03A and libid.md: the disclosure choice binds the Application operator.
  • Common §12: a restated version is kept apart by REQ-PLAT-01A; different verification keys are how this one meets it.
  • ens-integration.md: the Gateway's handle check is the circuits' fold and token check, not per-platform rules.

Relation to #45

This supersedes #45, which closes. Every platform is now a node profile under one construction at one version, so #45's Google version 2 (§3.4), byte-vs-digest profiles (REQ-PLAT-08L), keccak handle keys and multi-construction resolution (REQ-PLAT-08M, 08N), REQ-PLAT-16D–16F and TEST-PLAT-06A/20C do not apply. The rules that still apply are reused with their IDs:

  • REQ-PLAT-03A, the Application chooses;
  • REQ-PLAT-08D–08F and 08H–08K, keys, watermarks, retirement, names, disclosure and events;
  • SP-PRIV-01, ASM-HASH-01, ASM-ZK-01, REQ-COMMON-45A;
  • the 31-byte sub rule, now in REQ-PLAT-06.

Two changes from #45: there is no separate publish flag, because a carried handle publishes; and the implementation clears the previous owner's name whenever a handle changes owner. #45's design/ notes (private-gmail-handle.md, neutral-google-client.md) are not carried over.

ENS (ens-integration.md)

  • It names HandleNormalizer as the owner of handle normalization. The implementation removes it: the chain folds, the circuits apply the token check, and a platform's format is its own.
  • The Gateway's label transform still relies on each platform's own format (X issues no -, GitHub no _). A handle outside that format proves under the token check but has no name.
  • The Indexed Store (ASM-ENS-03, REQ-ENS-GW-07) looks up the holder by handle node; the indexer (usernames-indexer#26) computes the tagged SHA-256 node.
  • An undisclosed binding gives the indexer no handle text, so §6's "readable … by address" holds only for published names.
  • Name resolution itself still works, because the name carries the handle. A gateway query discloses the handle to the gateway.

Checks

  • Every REQ/SP/ASM/TEST id is defined once, every reference resolves, and every intra-spec anchor link resolves (a script over specs/*.md; it flags TEST-ENS-13 only because main defines it on a wrapped line).
  • The site builds and its tests pass.
  • @libid/ceremony: vitest 1011/1011, typecheck and pnpm lint.
  • The node vectors match libID-circuits' handles.json and were recomputed with hashlib.
  • REQ-COMMON-45A, verifier half: the vendored Honk verifiers are the ZK variant (Libra masking commitments).

Unverified

  • REQ-COMMON-45A, prover half (fresh randomness): no browser prover implements these circuits yet.
  • REQ-PLAT-03A and REQ-PLAT-14B: the Application side of the browser is not updated yet.

An identity is keyed by two nodes: idNode = SHA256(tag || id) over the
account identifier's exact bytes, and handleNode = SHA256(tag || fold(handle)),
where fold maps A-Z to a-z and nothing else. The tags are raw ASCII with no
separator, one per platform and kind: libid.<p>.user-id and libid.<p>.handle
for google, x and github. REQ-PLAT-05A now states the id node for every
platform, with the dotted Google tag; REQ-PLAT-05B and 05C are new.

The circuits own the rules and the fold (REQ-PLAT-08A): they refuse a value
the rules refuse and never trim or strip, so a leading @ is refused. The
chain folds text and compares nodes, with no rule set of its own
(REQ-PLAT-08B). The rules are summarized per platform and handles.json is
named as the published vector table. A Google sub is at most 31 bytes with
no quote or backslash, checked on the signed bytes (REQ-PLAT-04).

The conformance vectors are copied from handles.json and checked with
hashlib. CCDP's userName note points at the circuit's fold.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
…put their nodes

Each TLSNotary platform has its own bearer-link circuit. Besides linking the
two bearer commitments, it opens the identity response's id and handle
commitments, checks both under the platform's rules, folds the handle from
the same witness, and outputs the two nodes (REQ-PLAT-32D, REQ-PLAT-52C).
The tags and rules are compiled in, so a proof cannot key another platform.

The public inputs are twelve fields, every 32-byte value as [high, low]
16-byte big-endian halves: token commitment, identity bearer commitment,
id commitment, handle commitment, id node, handle node (REQ-PLAT-32B,
REQ-PLAT-52A). The Platform Verifier ties all four commitments to the
attestations and returns the nodes (REQ-PLAT-32C, REQ-PLAT-52B). The bearer
cap is 128 bytes on both platforms (REQ-PLAT-30, REQ-PLAT-36).

The verifier's verified fields are the two nodes in place of the userId and
raw handle (REQ-COMMON-05E). The overview and the Proving Circuit term say
the circuit checks the hidden identity values. TEST-PLAT-10, 15A and 15B
follow.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
… request to one request

The X and GitHub identity responses reveal only the anchors around the id
and the handle and commit each value as its own range (REQ-PLAT-59,
REQ-PLAT-60). The Platform Verifier finds each commitment as the one its
anchors frame, refuses a doubled anchor or an ambiguous or missing frame,
and passes the commitments to the proof (REQ-PLAT-31, REQ-PLAT-51). GitHub's
`,` or `}` terminator now follows the committed digits; their canonical form
is the circuit's to check. The Prover reads the identity from the committed
bytes it opens (REQ-PLAT-03, 31A, 51A).

A second delimiter hidden in a committed range escapes the duplicate scan,
so uniqueness of a framed value rests on ASM-PROV-06 alone; common §9 says so.

The identity request is exactly one bodiless HTTP request: one head end,
nothing revealed after it, and the last revealed range ending at the signed
length (REQ-COMMON-39C). It carries exactly one `host` naming the pinned
authority (REQ-COMMON-39D). TEST-COMMON-18, TEST-PLAT-17, 17A and 22 follow.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
REQ-PLAT-16B lists the id node and handle node where the userId digest and
the raw email bytes stood. The launch oidc-google artifact's 57-element
encoding is stated beside it: digest 0-31, client-identifier digest 32-33,
id node 34-35, handle node 36-37, exp 38, modulus 39-56.

The circuit exposes neither the sub nor the email, hashes the signed sub
bytes, and admits, folds and hashes the email under the Google rules
(REQ-PLAT-16C, new REQ-PLAT-16D). It fails rather than truncates a sub over
31 bytes or an email over 62. TEST-PLAT-06 covers the sub and email
refusals and the case-folded handle vector.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
…sh and unpublish

A new platform §2.1b. Every Submission Payload has one optional handle field
and no field for an id. The Application fills it only when the user asks
(REQ-PLAT-03A). The Platform Verifier folds a carried handle, requires its
node to equal the proved handle node, and returns it folded
(REQ-PLAT-08D, REQ-COMMON-05E); it applies no rules.

The Consumer keys bindings on the two nodes (REQ-PLAT-08H) with an owner and
a watermark per node; a write needs evidence strictly newer than both, and
a rename retires the old handle node, keeping its watermark (REQ-PLAT-08I).
A Transaction Author has one name per platform: written by a Submission that
discloses a handle or by the disclosure call, cleared by withdrawal and
whenever the named handle's owner changes, and read only while the author
holds the handle (REQ-PLAT-08J, 08K). The disclosure call takes a platform
and a handle, needs no proof, and requires the caller to hold the node
(REQ-PLAT-08E). Binding events carry nodes only; every stored or cleared
name has its event (REQ-PLAT-08F). TEST-PLAT-20A and 20B cover them.

These IDs are the ones the Google-only draft in #45 used, kept for the same
rules, without its byte profiles, keccak keys and publish flag.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
SP-PRIV-01: the Consumer, Proof Verifier and Platform Verifier put an
identity's handle on chain only from a transaction that carried it, and its
id and account identifier never; nothing on chain yields an undisclosed
value except by hashing a guess. ASM-HASH-01 says a node is not a secret.
ASM-ZK-01 and REQ-COMMON-45A require zero-knowledge proofs with fresh
randomness and verifier artifacts that accept only those, with
TEST-COMMON-22A.

Common §12 and platform §9 say what that does not hide: private means not
disclosed, not unguessable; the tags are public; committed range lengths
reveal value lengths; GitHub ids are sequential, so a GitHub id node is in
effect public; a disclosure stays in history; a duplicate field behind a
commitment rests on ASM-PROV-06; a binding's existence and time are public;
and a handle named as text anywhere else, or given to an off-chain reader,
is disclosed there. Platform §9 says the rules are part of each proof
statement, so changing them takes a new version and new circuits. The
overview's trust table names the Application's and the Distribution's
roles in the property.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
…ty path

Platform §7 asks a new profile for its user-id and handle tags, its id and
handle rules in the shared vector table and its circuit, and how the id and
handle reach the circuit unrevealed. Two leftover sentences follow the fold
and the identity commitments.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
…ifier addresses

X, GitHub and Google keep Platform Ceremony Version 1 under the new node
statement. They ship as a fresh deployment under new canonical names, and
the live deployment that runs the old version-1 statement is retired, not
upgraded.

ASM-PROOF-01 and REQ-PLAT-01A said a changed statement takes a new
version. They now scope that rule to one set of canonical Platform
Verifier addresses. A new set may restate a version; within a set, a
changed statement still takes a new version.

The Authorization Digest binds the chain id, ceremony version, operation
domain, nonce and transaction data, not a verifier address, so it does
not separate two deployments of one version. Their statements do: the
verification keys and payload encodings differ, so a proof for one does
not verify under the other's circuits or decode as its payload.
REQ-PLAT-01A requires that of any restated statement, and common §12
states it as the reason. No id is added or renamed.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
…re bearer-link

- §2.1a: the Proving Circuit checks that the id and the handle are each
  one whole JSON token as the platform sent it (a handle or a Google `sub`
  is printable ASCII without `"` or `\`; an X or GitHub id is digits),
  folds the handle, and repeats no platform format. The buffers and tags
  are each platform's `keys` in libID-contracts' profiles.json; the vectors
  are its handles.json.
- REQ-PLAT-06: an X or GitHub id is 1 to 20 digits as sent; the grammar the
  platform issues is the platform's. TEST-PLAT-02 follows.
- REQ-PLAT-32B/32C/32D, 52A/52B/52C: X and GitHub prove under one
  bearer-link circuit with sixteen public inputs, the last four the
  platform's tags and lengths, which the Platform Verifier supplies.
- REQ-PLAT-16D, TEST-PLAT-10, TEST-PLAT-20, §7 and §9 follow, and libid.md's
  overview.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://docs-hashed-identities.previews.lib.id, https://docs-hashed-identities-libid.grounded-systems.workers.dev (commit 59f77f9)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://9ea160b9.previews.lib.id, https://9ea160b9-libid.grounded-systems.workers.dev 59f77f9 2026-10-19T14:51:08.088Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://6790fcac.previews.lib.id, https://6790fcac-libid.grounded-systems.workers.dev 78dd5db 2026-10-16T14:58:45.299Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://b531a114.previews.lib.id, https://b531a114-libid.grounded-systems.workers.dev 5b5251d 2026-10-15T15:45:43.549Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://150c8f99.previews.lib.id, https://150c8f99-libid.grounded-systems.workers.dev 10330f3 2026-10-15T14:38:16.274Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://4a669f01.previews.lib.id, https://4a669f01-libid.grounded-systems.workers.dev af3c1c6 2026-10-15T13:47:18.563Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://bdc630ca.previews.lib.id, https://bdc630ca-libid.grounded-systems.workers.dev f46bc60 2026-10-15T11:20:30.090Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://6b71efaa.previews.lib.id, https://6b71efaa-libid.grounded-systems.workers.dev e4410e4 2026-10-14T13:39:02.068Z Visit the dashboard ↗

@xgreenx

xgreenx commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Decision on the proposals: the deployment stays at ceremony version 1 under new canonical names, so proposal 1 (x/2, github/2, google/2) is declined; the glossary scoping, ASM-PROOF-01 and REQ-PLAT-01A stay as this PR writes them. The dropped id grammar and format rules are accepted as specified here (REQ-PLAT-06 "1 to 20 digits as sent"). Proposal 2 (disclosure checked by the Consumer) is still open.

TEST-PLAT-06 said an email with a space, two `@` or an `@` at either end
fails the circuit; under the token check it proves as sent, and only `"`,
`\` and the 62-byte limit refuse it. Common §12 said a payload for one
statement does not decode as the other's; a Google payload can, and the
verification key is what refuses it.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
@xgreenx

xgreenx commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Proposal 2 is accepted: the disclosed handle is a bind argument the Consumer checks as it checks publish, not a Submission Payload field the Platform Verifier returns. REQ-PLAT-08D, REQ-COMMON-05E, the Submission Payload definition, REQ-PLAT-08J and TEST-PLAT-20A follow. Also decided on libid-org/libID-contracts#87: resolvers answer the zero holder for a known platform with nothing bound (no everBound), the circuit pin stays, and escrow deposits take no expectedHolder.

The Consumer's bind call takes the handle beside the Submission:
bind(platformId, version, payload, string handle). The Consumer folds and
hashes it under the platform's handle tag, as it already does for a
disclosure call, and requires that node to equal the proved handle node.
An empty handle keeps the bind private.

The handle leaves the Submission Payload and the Platform Verifier's
result, so the verifier no longer decodes, folds or returns handle text,
and one Consumer rule serves both bind and disclosure.

Changed: REQ-PLAT-03A, REQ-PLAT-08B, REQ-PLAT-08D, REQ-PLAT-08J,
TEST-PLAT-20A, REQ-COMMON-05E, SP-PRIV-01, the Submission Payload
definition, the §2.1b introduction and disclosure definition, and the
Application operator row in libid.md.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
…ecks

Wording fixes from review of the hidden-identities spec, each stating
current behaviour, plus two Prover obligations that had no requirement.

- REQ-COMMON-19F reads a revealed value inside one range; a committed value
  is located by the anchors and terminator its profile names, GitHub's
  `,`/`}` sitting in the range after the commitment.
- REQ-COMMON-19, 19B and 19D cover a document the circuit holds whole
  (Google's ID Token). The bearer-link circuit opens committed values and
  checks them under platform §2.1a, so a committed id is digits as sent and
  `0123` proves, matching REQ-PLAT-06, TEST-PLAT-02 and handles.json.
  REQ-PLAT-51 drops its stale REQ-COMMON-19D citation.
- REQ-PLAT-55 and TEST-PLAT-21 keep the id and handle commitments'
  openings, value and blinder, out of Submissions, logs and published
  artifacts, as for the bearer: an opening is the plaintext id or handle.
- REQ-PLAT-05C, §7 and TEST-PLAT-20 require prefix-free tags, since a node
  hashes tag || value with no separator; the six launch tags are.
- REQ-PLAT-08I's necessity matches the rule: a retired node keeps its own
  last-write time.
- REQ-COMMON-39D and TEST-COMMON-18: the `host` value is compared over the
  raw revealed bytes, trimmed of spaces and tabs, as
  TlsNotaryVerifierBase._headerLine does, so `API.X.COM` is rejected.
- Common §12: separating a restated version rests on REQ-PLAT-01A; new
  verification keys are how the current restatement meets it.
- ens-integration: HandleNormalizer and per-platform handle rules are gone.
  The Gateway folds, applies the circuits' token check with the platform's
  buffer, and hashes under the handle tag (REQ-ENS-LABEL-05); SP-ENS-03
  and §11 depend on it matching the circuits each indexed chain accepts.
- REQ-PLAT-31A and REQ-PLAT-51A (new obligation): before delivery the
  Prover requires the proof's id and handle nodes to equal the nodes of
  the identity it delivers, the X/GitHub counterpart of REQ-PLAT-14A;
  TEST-PLAT-17A checks it.
- REQ-PLAT-03A and libid.md's Application operator row: the Application
  passes a handle only when the user asks; the rule binds its operator,
  and an Application breaking it is outside ASM-BROWSER-01.
- The Consumer holds each platform's handle tag and the fold, and no other
  profile constant (common §2 and §5.1), as IdentityRegistry does through
  CeremonyProfile.handleTag.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
…handle

REQ-PLAT-08O: a Consumer answering whether a handle and an id still go
together reads the handle's pairing (REQ-PLAT-08I), so two identities of
one wallet passing a handle between them answer no; an unknown id or an
unowned handle answers no; the answer advises and refuses nothing.
TEST-PLAT-20D exercises it.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
@xgreenx

xgreenx commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Correction to the decisions above: the id grammar is enforced in the circuit after all. REQ-PLAT-06 keeps its original statement, ^[1-9][0-9]{0,19}$ with a value at most 2^64−1, and REQ-PLAT-08 keeps refusing a leading zero; the "1 to 20 digits exactly as sent" wording reverts, with the note that the Proving Circuit, not the Platform Verifier, enforces it. The Google tag stays libid.google.user-id. Implementation PRs follow on libid-org/libID-circuits#21 and libid-org/libID-contracts#90.

@xgreenx

xgreenx commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Reversed: the id grammar stays out of the circuit. The identity is the value the platform returned; the token check (digits, 1–20 bytes) is all the circuit applies, as this PR has it. libid-org/libID-circuits#22 is closed; REQ-PLAT-06 keeps #144 wording. The dotted Google tag stays final.

- REQ-PLAT-06 holds the whole id rule: X and GitHub ids as 1 to 20
  digits as sent, and the Google `sub` limits of the former REQ-PLAT-04.
  REQ-PLAT-04, 05, 07 and 08 go: 05A already forbids transforming an
  id, and the anchors of REQ-PLAT-31 and 51 fix each id's JSON type.
- REQ-PLAT-31A covers X and GitHub; REQ-PLAT-51A goes. The Prover copies
  the id from the committed bytes, never through a number parse.
- REQ-PLAT-08K answers the stored name. REQ-PLAT-08J clears a name on
  every owner change, so a reader mirroring the events answers the same;
  §9 says a stored-name event replaces the earlier name.
- "id" is defined once in §2.1. REQ-PLAT-08H and 08F drop their no-id
  clauses, which a Consumer holding only nodes cannot break.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
decimalUserId refused a leading zero and a value above 2^64-1, which
REQ-PLAT-06 and the Proving Circuit accept, so the Prover refused ids
the proof would bind.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
@SupremaLex

Copy link
Copy Markdown
Member Author

Four design-review simplifications are applied in d9fb69a, with the TypeScript follow-up in 9483116.

  1. One id rule. REQ-PLAT-06 holds all of it: an X or GitHub id is 1 to 20 digits as sent, and a Google sub is 1–31 bytes of 0x20–0x7e without " or \, on the signed bytes. REQ-PLAT-04, 05, 07 and 08 are removed:

    • 05A already forbids transforming an id;
    • the anchors of REQ-PLAT-31 and 51 fix each id's JSON type, so a quoted GitHub id or an unquoted X id is not framed;
    • 07's "no float parse" moves into REQ-PLAT-31A as "copy, never through a number parse".

    REQ-PLAT-16C and TEST-PLAT-02 now cite REQ-PLAT-06.

  2. A name is cleared when written, not re-checked on read.

    • REQ-PLAT-08K answers the stored name.
    • REQ-PLAT-08J already clears a name on every owner change, so a stored name is one its author holds, and an event mirror answers what the chain answers.
    • §9 states that a name event replaces the author's earlier name without a clearing event, and ceremony-common.md no longer says name reads hash the handle.
    • The contract may keep its re-hash as an implementation guard.
  3. One Prover rule for X and GitHub. REQ-PLAT-31A covers both platforms and REQ-PLAT-51A is removed. REQ-PLAT-51, REQ-PLAT-55 and TEST-PLAT-17A point to 31A. TEST-PLAT-17A keeps its rejection of a detached value, which is the only guard for X and GitHub.

  4. "id" is defined once in §2.1: the account identifier, which is userId unchanged on X and GitHub and the id node's source on Google, whose userId is the node. REQ-PLAT-08H and 08F drop their no-id clauses, since a Consumer that receives only nodes cannot store or emit an id. 03A and TEST-PLAT-20A keep theirs.

TypeScript (9483116): decimalUserId refused a leading zero and anything above 2^64−1, which REQ-PLAT-06 and the circuit accept. It now takes 1 to 20 digits, the conformance fixture follows, and validation.test.ts covers the rows. @libid/ceremony: vitest 1011/1011, typecheck and pnpm lint pass. The spec linter's counts are unchanged.

Still open:

  • REQ-PLAT-04 and 08 are cited in code comments: oidc-google/src/main.nr:185 (libID-circuits) and GitHubPlatformVerifier.t.sol:691 (libID-contracts). Both become REQ-PLAT-06.
  • §2.1a still places the vector table in libID-contracts' handles.json; it now lives in libID-circuits.
  • The TS handle validators (isUserName) still apply the X and GitHub alphabets that §2.1a says no role repeats.

Each platform's tags, buffers and id shape are in libID-circuits'
lib/identity/platforms.json and the vectors in lib/identity/handles.json.
Every release ships both; libID-contracts generates its tables from the
shipped copies.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
SupremaLex and others added 2 commits October 19, 2026 17:36
Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
The registry refuses a platform no profile names (UnknownPlatform), so
the glossary and the overview name that set among what it holds.

Assisted-by: Claude Opus 5.5

Signed-off-by: Green Baneling <XgreenX9999@gmail.com>
@xgreenx
xgreenx merged commit 90cdb41 into main Oct 19, 2026
16 checks passed
@xgreenx
xgreenx deleted the docs/hashed-identities branch October 19, 2026 15:34
SupremaLex added a commit that referenced this pull request Oct 22, 2026
Brings in the hidden-identities spec (#144), which the ported concepts pages link to.

Assisted-by: Claude Opus 5.5
Signed-off-by: SupremaLex <georglutsenko@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants