QUANORY ASSET PASSPORT — PROTOCOL / POLICY V1 Implementation profile: synidia.passport.policy.v1 Browser/shared implementation: /assets/js/passport-core.js Independent offline CLI: /passport-verifier/verify.mjs (Node >=24.8) Public reference: /examples/passport-reference.json This document defines application policy v1, not a new cryptographic standard. 1. BYTES AND CRYPTOGRAPHY JSON uses RFC8785 JCS: ECMAScript number serialization, UTF-16 code-unit property ordering, no whitespace, and no Unicode normalization. Input must be UTF-8, with no BOM, duplicate property names (including decoded escapes), unpaired Unicode surrogates, non-finite numbers, or trailing data. Objects are plain JSON only. Unknown object fields, unknown schema/policy/algorithm values and ambiguous encodings are rejected. The original JSON text/bytes must enter parseJsonStrict or parsePackage before any ordinary JSON.parse can erase duplicate keys. Pure ML-DSA-65 (FIPS204), raw public key1952 bytes, secret key4032 bytes, signature3309 bytes. Message = UTF8(JCS(payload)). Context = the17 ASCII bytes ASSET-PASSPORT-V1. Use the pure algorithm with its context input, not HashML-DSA, not an external SHA512 prehash, and not the research-report context. The library constructs the FIPS204 domain-separated M' internally. Signing uses CSPRNG-backed hedged randomness by default. Production identities always use CSPRNG keygen; no user-selected seeds are accepted by generateIdentity(). All SHA512 digests and cryptographic byte fields use canonical unpadded base64url (A-Z,a-z,0-9,-,_); noncanonical final bits, padding, standard +/ and wrong lengths are rejected. SHA512 outputs64 bytes /86 encoded characters. keyId = base64url(SHA512(UTF8("synidia.passport.key.v1\0ML-DSA-65\0") || rawPublicKey)). The prefix ends in an actual NUL byte after each of key.v1 and ML-DSA-65. This 34-byte ASCII prefix is unambiguous; there is no display name or JSON in keyId. recordHash = base64url(SHA512(UTF8(JCS(signedRecord)))). This includes both proofs. Receipts, transport metadata and index state are outside signedRecord and never alter its hash. A signedRecord returned by signPayload is recursively frozen. Public reproducible TEST vector (test seed only; never use this identity): seed =32 bytes 00 01 02 ...1f passed to ML-DSA-65 keygen; message = UTF8("Synidia Asset Passport context and fingerprint vector v1"); context = UTF8("ASSET-PASSPORT-V1"); deterministic signing extraEntropy=false. keyId =3sTVUgefoGdyzPtPxYTzBujhEATerkDpgEu6i0HFFz948E2e6_XoIqVM0zs_qvIswN0of4XnHuQGvHZC3rgAoA SHA512(signature) =c6Nyqun_UV39qukgDWVEkeXNIlhCOejLFlALdr7okgSzfVzeJK52Ost3A4JHVYZoB8W9g9OGmF8rpjnXU0mAZw Tests reproduce these values and verify signatures independently with native Node ML-DSA as well as the bundled noble implementation. The Reference uses a separate CSPRNG-generated disposable identity; its private key is not written anywhere. 2. PAYLOAD — ALL FIELDS REQUIRED, NO EXTRA FIELDS { "schema":"synidia.passport.v1", "policyVersion":1, "operation":"create|update|rotate|revoke", "rootRecordHash":null|"", "sequence":0, "previousRecordHash":null|"", "network":{"namespace":"solana","genesisHash":"<32-byte base58>"}, "subject":{"type":"project","projectId":""}, "issuerWallet":"<32-byte base58>", "signingKey":{"algorithm":"ML-DSA-65","keyId":"","publicKey":"<1952-byte base64url>"}, "nextSigningKey":null|"", "createdAt":"", "nonce":"<32 CSPRNG bytes base64url>", "manifest":{ "name":"<1..160 UTF8 bytes>", "description":"<0..16000 UTF8 bytes>", "website":null|"", "links":[{"label":"<1..80 UTF8 bytes>","url":""}], "publisherRelation":"self-declared", "attachments":[{"path":"proof/readme.txt","mediaType":"text/plain","size":123,"sha512":""}], "revocationReason":null|"<1..2000 UTF8 bytes>" } } Alternative subject: {"type":"solana-mint","address":"<32-byte base58>"}. Project subject has exactly type/projectId; Mint subject has exactly type/address. projectId matches ^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$ (1..128 characters), remains stable within a root; display name is mutable manifest.name. Base58 values must decode to32 bytes. The complete RPC genesis hash is used, never a truncated CAIP network label. Expected network comes from trusted application/CLI configuration: Solana Mainnet =5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d. Sequence is a safe integer0..2147483647. Timestamps accept exactly real calendar YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ; no offsets/local dates/leap seconds. Timestamp is publisher-declared signed content, not proof of issuance time. Local wall clock ordering is not trusted for version ordering; hash linkage and sequence are authoritative. The nonce is32 cryptographically random bytes, not a timestamp. Control characters except TAB/LF/CR are rejected from user text. URLs must be absolute HTTPS, <=2048 bytes, no credentials or literal whitespace/control chars. Links <=20, unique URL strings. publisherRelation is exactly self-declared; no ownership or truth conclusion follows from a valid signature. Attachments <=64 per record. Path is relative ASCII,1..240 bytes, <=8 segments, each1..80 characters, simple [A-Za-z0-9][A-Za-z0-9._-]*; no absolute path, dot/dotdot, backslash, percent escapes, empty segments or duplicate path. No attachments are executed or fetched from URLs. MIME is lowercase type/subtype with [-a-z0-9.+], <=96 characters and no parameters. Size is a safe integer0..67108864. sha512 is computed over ORIGINAL file bytes, not decoded text or reserialized JSON. Files are identified by digest, so repeated content can be shared across versions. 3. SIGNED RECORD AND TRANSITION POLICY signedRecord = {"payload":,"proofs":{"pqSignature":"<3309-byte base64url>","newKeyProof":null|"<3309-byte base64url>"}} create: sequence0, rootRecordHash=null, previousRecordHash=null, nextSigningKey=null, newKeyProof=null, revocationReason=null. The first complete signedRecord's hash is the root ID; it cannot self-contain that hash. For every non-create record, rootRecordHash is the recognized root, previous hash is the immediately preceding complete signedRecord hash, sequence increments by exactly1, and network, subject identity, issuerWallet, schema and policy stay fixed. The supplied signingKey must exactly equal the previous verified state's effective key. Replacing the public key and self-signing does not authorize an existing root. update: current key signs, nextSigningKey/newKeyProof/revocationReason all null. rotate: old effective key signs pqSignature; nextSigningKey is different; the new key signs newKeyProof over the IDENTICAL payload and context. Only after both proofs validate does the offline verifier expect the new key on the next record. An index must additionally verify the real finalized registration receipt before advancing its production effective key/head. Candidate crypto validity is separate from accepted on-chain state. Earlier records remain verifiable with their old key. revoke: current effective key signs, nonempty manifest.revocationReason, null next key and new proof. This terminates the root. All later update/rotate/revoke reject; republishing requires a distinct new root. Revoked history remains readable. No multiple roots, duplicate records, missing predecessor, sequence gaps, sibling forks or unknown transitions are accepted in one package. A linear history alone cannot prove the absence of a hidden competing branch or later revocation. An index must preserve immutable candidates and use compare-and-swap for accepted head; never silently pick a latest timestamp. Exported history is root through selected version. Global latest is not provable solely from a publisher-supplied package. 4. PUBLIC PACKAGE { "format":"synidia.passport.package.v1", "records":[,...,], "files":{"":""}, "receipts":[], "verificationPolicy":"synidia.passport.policy.v1" } Exactly these5 fields. Every attachment declared by ANY included version must have its original bytes in files, matching signed size and SHA512. Missing bytes, unsigned extra files, inconsistent size for a digest, or changed bytes reject. Same bytes under multiple declared paths are allowed. No plaintext private key, seed, backup, API credential or RPC URL belongs in a public package. Each optional receipt contains exactly: networkGenesisHash, recordHash, transactionSignature, slot, blockTime, memoProgramId, checkedAt; optional serializedTransaction (base64url raw bytes). transactionSignature is a64-byte base58 value, slot a nonnegative safe integer, blockTime a nonnegative safe integer Unix timestamp or null, checkedAt strict UTC. Network must match signed network; recordHash must reference an included record; Memo program is exactly MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr. No finalized:true field is accepted. A receipt's presence or serialized bytes do not by themselves establish finality. Offline result always says receipt and publisher binding were not checked. A digest to transaction lookup is not proof. Memo bytes = UTF8("synidia:passport:v1:sha512:" + recordHash). A real successful finalized transaction must use the allowlisted Memo program, exact bytes, and explicitly require payload.issuerWallet as its Memo signer. The transaction header signer is checked, not logs or explorer text. No transfer, approve, authority change or subscription instruction is allowed. The first outbound transaction is legacy Memo-only; verification also accepts v0 with actual loaded addresses and at most2 unique Compute Budget instructions before Memo: SetComputeUnitLimit1..200000 and SetComputeUnitPrice0..100000 micro-lamports. Get actual genesis, signature finalized status, transaction, meta.err===null, transaction/receipt slot and compiled instructions from configured RPC. Query again before accepted indexing. Blockchain Ed25519 remains classical; this does not make Solana itself post-quantum and says nothing about asset quality or truth. 5. ENCRYPTED PRIVATE-KEY BACKUP (NEVER A PUBLIC PACKAGE) Format synidia.passport.keybackup.v1, exact fields: format,createdAt,signingKey,kdf,cipher,ciphertext. kdf={name:"PBKDF2",hash:"SHA-256",iterations:600000,salt:<16 random bytes base64url>} cipher={name:"AES-GCM",iv:<12 random bytes base64url>,tagLength:128} Key length256 bits. Fresh CSPRNG salt and IV per export. Password UTF8 bytes, 12..1024 bytes; no trimming or Unicode normalization. KDF iterations and all parameters are fixed, checked BEFORE derivation; attacker-selected iteration counts are rejected. Backup input <=32768 JSON bytes; ciphertext16..16384 bytes. Encrypted plaintext is JCS({format:"synidia.passport.privatekey.v1",secretKey:<4032 raw bytes base64url>}). AES-GCM AAD = UTF8("ASSET-PASSPORT-KEYBACKUP-V1\0" + JCS(headerWithoutCiphertext)). The header includes format/createdAt/signingKey/kdf/cipher, making public metadata and KDF/cipher params authenticated. Wrong password and tampering report a common authentication failure. Restore re-derives public key, checks keyId and performs an actual sign/verify probe. Import/export never silently generates a substitute identity. Protect and verify a backup before long-term use or key rotation. WebCrypto keys are nonextractable derived keys. Temporary plaintext/password byte arrays are zeroed in finally blocks; unlocked secret bytes remain only in module memory and should be zeroed on explicit lock/pagehide. JavaScript strings/engine copies and garbage collection cannot guarantee complete memory erasure. This is password-encrypted browser software storage, not a hardware vault or audited key custody service. Losing the effective private key and backup cannot be repaired by reconnecting a wallet; wallet ownership does not replace PQ authorization. 6. LIMITS AND VERIFICATION OUTPUT Default offline max JSON12MiB, max256 records, max1024 unique files, depth64, JSON nodes1000000. Caller may configure maxBytes1024..64MiB and maxRecords1..4096. Service request limit2MiB is an application choice, not a protocol security constant. Core verification has no DOM, network, file execution, wallet calls or persistence. verifyPackage throws PassportError(code,message) on failure. On pass it returns rootRecordHash,headRecordHash,sequence,effectiveSigningKey,revoked,subject, issuerWallet,network, per-record summaries and separate offline checks. A mathematical pass establishes signed bytes and included continuity only. Mint syntax is checked locally; actual Mint account type requires trusted RPC account inspection. Publisher binding requires the transaction signer. Identity/authority, receipt/finality and global history status are never inferred from PQ success. 7. INDEPENDENT CLI AND REBUILD Download verify.mjs and a public package; no repository, wallet, password, package manager, Quanory API, or live connection is required for offline use: node verify.mjs passport-reference.json Optional independently configured Solana RPC (never read from package URLs): node verify.mjs passport.json --rpc https://YOUR_RPC --expect-genesis 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d The bundled CLI uses the same strict schema, actual cryptography, chain policy and compiled-Memo verifier. It queries actual genesis, finalized signature status and finalized transaction for supplied receipts, compares stable receipt metadata, checks actual initialized Token/Token-2022 Mint account bytes for Mint subjects, and repeats genesis. HTTPS required; HTTP only for localhost testing. RPC calls have15-second timeouts,4MiB response limits, no redirects. No URL in a package is fetched. Missing receipts remain unknown, including the explicit Reference. Global latest/hidden revocation is never proven by one included package. Exit0: content plus all requested checks pass. Exit1: invalid content/evidence. Exit2: usage, unavailable/incomplete requested RPC evidence. Offline valid content returns0 while printing receipt/publisher/subject network checks as unknown. To rebuild in the source checkout: node scripts/build-passport-verifier.mjs. The bundled cryptography is the existing pinned @noble/post-quantum0.6.1; no claim of a new audit is made. Deterministic seeds exist only in public test vectors. SOURCES NIST FIPS204: https://csrc.nist.gov/pubs/fips/204/final JCS RFC8785: https://www.rfc-editor.org/rfc/rfc8785 Web Cryptography: https://www.w3.org/TR/webcrypto/ noble official API/source: https://github.com/paulmillr/noble-post-quantum Solana Memo: https://spl.solana.com/memo Solana native Mint: https://solana.com/developers/docs/tokens/basics/sync-native