Qstamp anchors a post quantum timestamp of off chain content on the Midnight network. Content is reduced to a Merkle root with domain separated SHA3-256 leaves following RFC 9162, and a Compact contract records that root on chain as public state. Later anyone can recompute the root from the content and prove it existed at the anchoring block and is unchanged. Only the root is published, never the content.
contract/QStamp.compact holds a public map from commitment to an anchor record of kind, size, root and sequence. The anchor circuit computes the commitment with the domain tag QSTAMP/ANCHOR/V1, rejects a repeat, stores the record and returns the commitment. It compiles with Compact compiler 0.36.1 and language version 0.28.
src/commitment.mjs builds the Merkle root from content digests. The anchoring and verification helpers wrap the compiled contract through midnight-js. The commitment core has a self test in test/commitment.test.mjs.
The contract compiles and the commitment core passes its self test. The live anchor and verify path against a Midnight network is prepared and runs once a deployment target and a funded wallet are set.
Copyright 2026 Quantova Inc. Licensed under Apache-2.0.