Repository navigation
XLS draft Qstamp Post Quantum Evidence Anchor Memo - #665
quantova-inc wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
The post-quantum security and timestamp guarantees need specialist verification, and the reference adapter remains unverified.
0 open findings
What changed in this PR
Introduces a draft Ecosystem standard for anchoring off-ledger record commitments in XRP Ledger transaction Memos without a protocol amendment.
Changes:
- Defines the salted hash commitment and Memo encoding.
- Specifies verification, security considerations, and reference adapter tests.
| File | Description |
|---|---|
| XLS-draft-qstamp-pq-evidence-anchor/README.md | Adds the Qstamp evidence-anchor specification. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
No review since this opened on the fifteenth. It specifies a memo that anchors a post quantum evidence record on the ledger, binding a hash based fingerprint of an off chain document to a ledger entry so existence and integrity are provable without revealing the document. The text is complete. I would like a maintainer to take it into review. Who should I tag. |
|
@quantova-inc as this is an Ecosystem XLS, you need to show some amount of ecosystem consensus around this spec for it to be merged. If this is just your idea and no one else will be using it, then it is not an ecosystem standard. |
|
Thanks, understood. I'll take this to the discussion in #663 and ask other XRPL builders who want to use it to comment there. Once there's real support behind it I'll come back to this PR. The reference implementation is at https://github.com/quantova-inc/xrpl-pq-tooling if anyone wants to try it in the meantime. |
0da8668 to
d13111b
Compare
|
|
||
| ### 2.4. Verification | ||
|
|
||
| A verifier holding `R`, `s`, `A` and `K` recomputes the commitment as in 2.1 and checks that a validated transaction sent by `A` carries a Memo of the type in 2.2 whose `MemoData` equals the commitment. The ledger close time of that transaction is the latest time at which the record is proven to have existed in that exact form. |
|
|
||
| ## 3. Rationale | ||
|
|
||
| Binding the fingerprint to the sending account means the same record anchored by two accounts yields two distinct commitments, so one account cannot present another account's anchor as its own. The record kind lets one account anchor several classes of record without ambiguity. The salt prevents anyone who reads the ledger from confirming a guess about a short or predictable record. SHA3-256 and KECCAK-256 each keep about 128 bits of security against Grover search, which is why the construction uses no signature or elliptic curve primitive of its own. Memos were chosen over a new ledger entry so that the standard needs no amendment and works on every network today. |

Draft of the Ecosystem XLS proposed in #663, submitted by Quantova Inc.
It fixes one Memo convention for anchoring a commitment to an off ledger record. The sender computes fingerprint = SHA3-256(salt || record), binds it as commitment = KECCAK-256(fingerprint || utf8(account) || 0x00 || utf8(kind)) and writes the 32 byte commitment into a Memo with MemoType qstamp/pq-evidence/1 on any validated transaction. A verifier recomputes the commitment from the record, the salt, the account and the kind. The record never reaches the ledger and no amendment is required.
The construction uses only hash functions, so the integrity evidence keeps about 128 bits of security against Grover search for as long as the records are retained.
The file follows the XLS-1 Draft format, includes the required Security Considerations section and parses with scripts/xls_parser.py. Prettier passes. A TypeScript reference adapter with tests is at https://github.com/quantova-inc/xrpl-pq-tooling under Apache 2.0 or MIT.
The XLS number is left for the editors to assign.