Repository navigation
docs(specs)!: hidden identities — tagged nodes, token-checked circuits, opt-in disclosure - #144
Conversation
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>
|
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>
|
Proposal 2 is accepted: the disclosed handle is a |
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>
|
Correction to the decisions above: the id grammar is enforced in the circuit after all. REQ-PLAT-06 keeps its original statement, |
|
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>
|
Four design-review simplifications are applied in d9fb69a, with the TypeScript follow-up in 9483116.
TypeScript (9483116): Still open:
|
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>
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>
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>
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)), wherefoldmapsA–Ztoa–zand nothing else.libid.<p>.user-idandlibid.<p>.handle, forpingoogle,x,github.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@bobor a space hashes as sent. Ids are never folded.sub31. Longer fails to prove.lib/identity/platforms.json, vectors inlib/identity/handles.json(checked with hashlib). Each release ships both; libID-contracts generates its tables from the shipped copies.subis 1–31 bytes with no"or\, checked on the signed bytes.sublimits. The TS Prover'sdecimalUserIdfollows it.sublimits, and the anchors of REQ-PLAT-31 and 51 fix each id's JSON type.userIdis the id node.Circuit relation and public inputs (platform §5.3, §6.5)
[high, low]16-byte halves:userIdand the raw handle.Anchor-only identity response and one-request identity session
,or}terminator now follows the committed digits.hostwith the pinned authority.host).Google profile (platform §3.3)
userIddigest and the raw email stood.SHA256(aud)32-33, id node 34-35, handle node 36-37,exp38, modulus 39-56.subover 31 bytes or an email over 62.userIdand the handle node fromuserName, folded.Disclosure, publish and unpublish (new platform §2.1b)
bind(platformId, version, payload, handle); the Application passes it only when the user asks.publish, and requires that node to equal the handle node the Platform Verifier returned (HandleNotProved). The Platform Verifier never sees the handle.publish(platformId, handle)writes it.unpublishand 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.publishneeds no proof, only ownership of the node (NotYourHandle).libid.md.Privacy (common §4, §12; platform §9; overview)
Not specified
main, and none is added. The implementation's privatedeposit(handleNode, …)names no platform; its publicdepositToHandle(platformId, handle, …)logs the handle folded. The common §12 bullet on handles named as text covers the privacy side only.specs/ens-integration.mdis not edited here; see below.WrongCircuit): X and GitHub pin bearer-link, Google oidc-google. That is an implementation property. REQ-COMMON-45 already requires the selected artifact.Ceremony version (common §2, §5, §12; platform REQ-PLAT-01A)
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
0123proves).hostis compared on the raw value, trimmed, soAPI.X.COMis refused.libid.md: the disclosure choice binds the Application operator.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:
subrule, 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)HandleNormalizeras 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.-, GitHub no_). A handle outside that format proves under the token check but has no name.Checks
specs/*.md; it flagsTEST-ENS-13only because main defines it on a wrapped line).@libid/ceremony: vitest 1011/1011, typecheck andpnpm lint.handles.jsonand were recomputed with hashlib.Unverified