How a Ledger Transfer Stays Bound to Its Ciphertext
Human oversight by Joshua Levy
Written by Astra 6.2 and edited by Sol 6.2
Explainer v0.1.0
Paper 2 by Chloe van der Vlugt · Source revision eac922d4
Original paper (PDF)
·
Author’s GitHub repository
A ledger lists one live resource worth seven units. Its owner submits a 3,524-byte packet. The checker consumes the resource, creates a new one worth seven units for a different owner, and records the old identifier as spent. Even a freshly prepared packet for the same action fails against the new state. Those are the outcomes of the finite example in Chloe van der Vlugt’s Proof-Carrying Transactions for Homotopical Encryption.1
Suppose the new owner also wants to read the encrypted record associated with the
transfer. Which bytes should they download?
How can they tell that those bytes encode the message produced in the original
encryption? Both questions survive a perfectly balanced ledger.
In the example, the catalogue supplies the number seven, the checked mathematical
payload represents zero, and the ciphertext slot holds the three bytes [3, 8, 13].
Recovering a message from a genuine ciphertext requires more evidence than this example
exercises.2
Paper 1 explains how a private projection recovers a message. Paper 2 follows the encrypted record through a signed transfer and into the recipient’s hands. Paper 3 supplies an estimate for one optional check. The owner signs a reference to two objects, one for the mathematical check and one for the whole ciphertext. The accepted state transition retains that reference in its history. A separate certificate relates the ciphertext to the original encryption. When the named bytes are available, a recipient with the prescribed private material can recover the original message coefficients, subject to an explicit alternative in which the reader accepted different bytes with the same hash.3
The three-ciphertext example gives the geometry from scratch. The accepted-update argument gives the ledger theorem. The two security experiments specify the additional assumptions needed for claims about forgery and privacy.
Content-addressed stores already use hashes to name byte records. Proof-carrying data gives an earlier example of attaching evidence of compliance to data as it moves between parties. Paper 2 uses those ideas to connect an authorized state transition to the original encrypted object and to the private relation that opens it.4
One Exact Component, Three Ciphertexts
A cochain assigns a number or vector to each oriented cell, for example a signed measurement to each edge of a network. In the finite family used here, one list of coordinates records those measurements. The sender chooses a geometry, puts the message along a chosen subspace, and adds two contributions perpendicular to that subspace. The recipient uses the private geometry to project the result back onto the message subspace. Paper 1 calls the component that survives projection harmonic. The two contributions that projection discards are called exact and coexact. They have different jobs in the transaction.5
Take the smallest case with one coordinate in each of the three blocks. Set the private matrix to the single number . The message direction is . A message coefficient contributes . The exact opening contributes , and the coexact opening contributes . Adding the three vectors gives the full ciphertext
Fix . Here are three encryptions computed from that formula. The recipient can recover by averaging the last two coordinates because and cancel.
Holding the rest of the exact artifact fixed gives identical input to any hash of that artifact. No hash collision is needed to explain the common digest. The full ciphertexts have different coordinates, so their canonical encodings differ.5
Two Slots Give the Owner Something Precise to Sign
A digest is a fixed-length value computed from data by a hash function. A reader who already trusts the digest of an object can check downloaded bytes by hashing them. If different bytes pass that check, the two byte strings give a hash collision, meaning that they differ but have the same digest. This conclusion needs no assumption about how often collisions occur. Treating deliberate substitution as infeasible requires a suitable hash function and a security assumption. SHA-256 is the function chosen for the paper’s concrete encrypted-cell store.6
A manifest records what belongs to a bundle. Paper 2’s two-slot manifest separately names the exact artifact and full ciphertext for one transfer. The first contains the digest of the original exact artifact. The second contains the digest of the chosen full ciphertext bytes. The protocol hashes a public base record together with these ordered, labelled entries to obtain the manifest root. The base includes the exact payload and a context key covering the run, schema version, snapshot root, cochain digest, topology tag, and parameter set. Changing any field of this public base changes the input to the manifest hash, even when the directory entries agree. The slot labels distinguish the two objects even if a particular hash gives equal digest values.7
The parties use a canonical encoding, a single prescribed byte representation for each encodable object. The verifier can re-encode an incoming packet and check its exact public fields against the expected values. The raw manifest permits arbitrary bytes in its ciphertext slot, including bytes a ciphertext decoder would reject. The original-observation certificate supplies the missing interpretation. It identifies the manifest’s context with the context of the original encryption and establishes that decoding the full ciphertext yields the observed cochain of the original encryption. For the general target matrix , the harmonic part of that observation is . A verifier for the exact component has a narrower claim to establish.3
The Owner, the Packet, and the New State
The ledger has a fixed resource catalogue that gives each identifier an owner, an asset type, and a positive amount. A separate marking counts the active copies of each identifier. A set records which identifiers have already been spent. The catalogue entry for resource 0 still says “seven units” after the transfer. Its marking has fallen to zero, so it contributes nothing to the remaining inventory. The newly active resource 1 contributes the seven units instead.8
For a move , the checker requires that the signer match the catalogue owner of , that the identifiers differ, and that both catalogue entries specify the same asset and amount. It requires , , and neither identifier in . The action itself determines that the only identifier to mark spent is . On the mathematical side, the checker compares the configured snapshot root with the source state and recomputes the exact payload’s digest. The configuration supplies the binding between the state’s topology and the snapshot used to interpret that payload.8
What the Owner Authorizes
The pre-proof draft fixes a parent and the roots of the before-state content and computed successor content. The signed intent records the action the owner authorizes. It includes that draft, the transfer, the original public base, the source evidence root, and the two-slot manifest root. The packet carries metadata identifying the statement and verification policy, the intent, the owner’s signature, and the payload proof. The protocol can now compute the evidence digest and complete the proposal. The bytes used to compute a digest exclude the digest field itself.9
The verifier reconstructs the expected intent from its own configuration and source state. It parses the submitted bytes, checks their canonical re-encoding, compares the metadata and intent with the expected values, and invokes the configured signature and payload verifiers on this packet. In the demonstration, changing the manifest root fails even when the altered intent carries its matching fixture signature. Its signed root differs from the expected root.9
Why a Fresh Packet Still Cannot Spend Resource 0
Assume the authorization check justifies the signer’s authority for the intent it accepted. Assume the payload check justifies acceptance of the exact payload in the original interpretation. Proposition 4 then derives a valid candidate from the checked packet and yields its computed successor. Only two marking entries change. Removing one copy of and inserting one of preserves the total of every asset because the catalogue values match. The spent set becomes . If the initial state had at most one copy per identifier and no spent identifier was active, the successor has those properties too.10
Replaying the original packet against the successor fails. Preparing a new draft using the successor’s parent and evidence root still leaves and . No choice of proposal restores the missing input. This is a statement about a transition from a specified state. A network with competing histories needs its own mechanism for agreeing which state to extend.10
The byte-owner fixture uses deterministic authorization bytes and accepts its fixed proof byte for the canonical zero payload. It exercises parsing, exact intent matching, checking, and the computed state change. Lean also proves that executable acceptance agrees with the specified check and that the state returned is the specified successor. Those proofs connect the byte-level example to Proposition 4.2
What the Recipient Needs After a Restart
A content-addressed record is named by a digest of its complete bytes. The store indexes the entire encrypted cell under its SHA-256 digest. A reader fetches at that address and hashes the whole response, including all the bytes that will go to the decoder. A separate ordered cell directory maps cell identifiers to content addresses. Its trusted root covers the context and the complete directory. The reader rejects duplicate identifiers. Two verified fragments of one directory then agree on each identifier they share and have a unique combined lookup. For separately verified directories under the same context and root, conflicting entries would give a collision on the directory encodings.11
For the storage and recovery path, consider a transfer carrying a certified native ciphertext. After the transfer, the recipient closes the client and opens it on a new machine. A disk file bearing the name “latest checkpoint” cannot by itself tell them whose history it describes. The paper’s local writer checks the directory and all named objects before atomically publishing the checkpoint. On restart, the reader obtains an independent pin, the expected context and directory root. It checks the checkpoint against the pin, verifies the directory, then hashes the requested object. Atomic publication lets a reader reopen a complete checkpoint after a process restart. The filesystem backend still has to perform the synchronization required for durability through power loss.12
Which Bytes the Recipient Can Read
For native recovery, call the source presentation and the target presentation . A scoped delivery token carries the rational transport map derived from the two private presentations. It names the recipient, source and target epochs, and the context keys at both ends. On a genuine source sample, the issued token lets migration produce the canonical target bytes for the same coefficients and openings. To read target bytes using retained source material, the recipient also needs the private source presentation . The Lean reference model checks the scope, token encoding and digest, and ciphertext digest before applying the rational map.13
Proposition 1 puts these pieces together. Start with a checked transfer, the native certificate for its original observation, the canonical issued token for this scope, a well-formed runtime, and the original target bytes among the available downloads. The intent and the computed history name the same manifest. Recovery returns the original , or the content check accepted different ciphertext bytes with the original digest. Token substitution has a separate result. A party must still authenticate the recipient and deliver the token confidentially. The scope check can reject a wrongly labelled request. A recipient who already has the matrix material can copy it. The catalogue’s designation of an output owner and the application’s authorization to receive this private material are separate decisions.3
How a Replica Verifies the History
The paper also specifies how to replay the ledger on a fresh replica. A public stack manifest binds the cell directory to the public snapshot descriptor, original cochain, and accepted proposal and verdict. The proof-packet archive supplies the checked bytes and the ciphertext’s cell ID. Starting from a trusted historical before-state and verifier configuration, the replica reconstructs the signed manifest, checks the packet, and compares the recomputed vote target. The successor becomes the input to the next archived transfer. Objects already present and verified can be reused. The replica activates the new history after every step passes. A separately authenticated ledger checkpoint can shorten this process. The replica verifies that the old ordered list of archive roots is an exact prefix of the new list, then checks only the suffix from the checkpoint state.14
Retrieval and recovery use different information. A direct remote lookup reveals the requested digest to the store. A reader can instead fetch a whole public bucket and select the record locally, at the bandwidth cost of the bucket. Either reader still checks the digest of the complete selected object. For a fixed setup and transfer, the released view is a function of the public base, ciphertext digest, owner signature bytes, and payload-proof bytes. Different public input IDs distinguish releases, and repeated digests can link records. A privacy claim depends on what the observer is allowed to see.11
What the Proof Verifier Checks
The owner’s signature covers an intent. The verifier also needs to know which proposition a proof concerns. A certificate subject is the canonical public record that identifies the claim being checked. It includes the full pre-proof intent, proof metadata, the computed ciphertext digest, the selected verification profile, a claim tag, and any required calibration. Here a profile selects the interpretation and checks to run. The subject’s encoding leaves out the evidence root that will later name its proof. A particular proof can thus be submitted and hashed without putting its digest inside itself.15
One optional profile follows a projection from committed data through a geometric representation to an error-correcting code. It asks whether data far from validity at the start remain far at the end. Each evidence leaf encodes one public subject together with its submitted proof bytes. Seven leaves form a single ordered bundle. The hard level checks the first five claims. These concern the projection stage, its source metric, the metric of an intermediate geometric representation, whether the downstream quantities respect equivalence in the public representation, and agreement with the intended interpretation. Naturality adds the sixth claim, which checks two ways of following the projection. Restricting to a piece before projecting must agree with restricting the projected result. Computing the residual that tests the code’s constraints must likewise agree along both routes. The final level adds the seventh claim about data far from validity. Its finite rational calibration has to realize the actual four near and far thresholds of the mathematical certificate.15
A predecessor gate requires earlier checks on the same bundle. Reaching the final level means passing all seven checks on this bundle. The checker rejects a sixth entry carrying a different intent, and it requires the fifth check to pass. For each entry it checks the submitted proof bytes against the expected subject. Whether proof bytes can pass for multiple subjects depends on the configured verifier. The guarded transfer also compares all seven computed leaf digests and the root with the actual evidence database retained by the selected record. A formal statement relates the decoded subject to a mathematical certificate for the original objects. Proposition 2 says that successful checking supplies that certificate or identifies a false acceptance by the configured backend on the actual submitted proof. It preserves the distinction between executing the right checks and trusting their cryptographic soundness.16
The Optional Paper 3 Challenge
A different optional check concerns a pair of columns derived from the retained cochain payload. Paper 3 studies how well such columns agree with a Reed–Solomon code, whose words list the values of low-degree polynomials at a fixed set of points. The verifier keeps the two columns fixed before choosing a random multiplier. The scalar fold combines the columns into the single word .17
A four-site example makes the strict test visible. Work modulo at the points and use affine polynomials as the valid words. Let both columns be the values of , namely . For challenges , the fold is a nonzero multiple of . An affine polynomial can agree at any selected two points by interpolation, and agreement at three would give a nonzero quadratic three roots. The minimum disagreement is therefore two. At challenge the fold is zero, giving zero disagreements. With the strict threshold of two, only one of the five challenges passes this scalar check.
The manuscript uses 4,096 positions in the field of integers modulo 12,289 and allows polynomials of degree below 1,024. The verifier fixes an integer disagreement threshold before drawing a uniform challenge . In the systematic layout, validity means that both columns are Reed–Solomon codewords. Counting whole-site changes charges one edit wherever either column changes. The minimum fraction of whole sites requiring an edit is at least the normalized count of scalar entries requiring change.18
The response echoes , supplies a polynomial and a packet, and must pass the original packet check. The verifier reads the entire folded word and requires fewer than disagreements with the proposed polynomial. A challenge is bad for this pair if some set of at least positions admits agreement with a scalar codeword, yet no pair of codewords agrees with both columns on those same positions. Paper 3 calls the corresponding same-set property mutual correlated agreement. When the original modular cochain distance is at least , Proposition 3 bounds the probability that any response succeeds by the fraction of bad challenges. The response may depend on .17
The same calculation gives an exact probability for one pair in the paper’s 4,096-site profile. Let both columns evaluate . For , the fold evaluates . Subtract any polynomial of degree below 1,024. The nonzero difference has degree 1,024, hence at most 1,024 roots. At least 3,072 positions disagree, which fails the strict test whenever . At the columns cancel and the zero polynomial agrees everywhere. If a packet passes the original checker, the probability that some response passes in this example is exactly . That number applies to this fixed pair and this range of radii. Running the protocol requires an authenticated challenge, a source of randomness and persistent session state to enforce one draw per retained attempt.17
What the Security Bounds Measure
A checked transfer can still depend on a weak signature algorithm or disclose enough information to read the message. The paper studies these questions in two different experiments. Each uses a witness, private data that satisfy a specified public relation. In this case the witness contains source and target matrices , the message coefficients , the openings , and a salt . A finite program fixes the matrix dimensions, an absolute integer-coordinate bound , and the salt’s byte length. It checks canonical encodings, those bounds, and the public names derived from the witness.19
A Forgery Bound for the Raw Matrix Hash
The first profile publishes three names. One hashes the salted source credential, one hashes the target matrix’s canonical encoding, and one hashes the full target ciphertext bytes. The credential relation checks all three. The same witness satisfies the geometric relation no matter which transfer it is used to authorize. Binding a signature to a particular intent therefore requires a proof primitive that binds the credential and the complete signing message. This is the purpose of a signature of knowledge. A holder signs a message using a witness for a public statement. Chase and Lysyanskaya’s security game is the precedent the paper follows.20
In the experiment, an adversary can request up to signatures and choose each request after seeing earlier answers. It wins by producing an accepted signature on a credential-and-message input that was never queried. One version of the experiment explicitly gives the adversary the full ciphertext as well as its digest. A common reference string (CRS) supplies shared parameters for the proof system. The analysis compares real signatures with ones generated using a simulated setup, then uses an extractor to try to recover a valid private witness from a fresh forgery.20
Theorem 6 bounds the probability of a fresh real forgery by the sum of five quantities. The first caps how much the real fresh-forgery probability can exceed the simulated one. The second counts fresh, verified simulated forgeries for which extraction fails to return a valid witness. If extraction succeeds, the resulting witness has to match the public target-matrix hash and ciphertext digest. Matching the original bytes in both places recovers the original coefficients by Paper 1’s decoder. Otherwise there is a collision in one of the two byte hashes. These three possibilities supply the remaining terms. The sum needs no independence assumption. The paper leaves the numerical size of its terms to the selected primitive and distribution, including how hard it is to recover the original coefficients from the raw-root signing transcript.21
An approval from an authenticated quorum of committee members fixes which verifier configuration may run. The approval covers the proposal containing a digest of the registration descriptor. That descriptor names the exact program, verification key, CRS, proof metadata, parameters and applicable scope. The checker compares the expected program, parses the approved key and CRS, and checks applicability in the current epoch. For the paper’s single-credential application adapter, the submitted signer must have the challenged key. Given the original-object and approved-setup equations, a freshly accepted completion of the adversary’s returned target is a forgery in that same experiment. A consensus finality proof and evidence that the approved code implements the intended relation are separate requirements.22
Can an Observer Recover the Whole Message?
The second profile adds a private 32-byte nonce, a value sampled for the target-operator commitment. The snapshot root is now a commitment to the target matrix and nonce together. The source credential and ciphertext digest keep their roles. Distinct versioned encodings select this relation and its owner checker. Substituting this commitment for the raw matrix hash changes the adversary’s public input. Theorem 6 was derived for the earlier input.23
The new experiment asks how often a decoder recovers an entire uniform -bit message from Paper 1’s one-use fresh-sign family. The decoder is allowed a declared disclosure about the private sign key. It can see the native instance, ciphertext and the transfer release. In the release simulation, a simulator attempts to produce the signature and payload-proof bytes that would accompany the public data. A public template fixed for each value of the disclosure supplies the exact artifact and other public fields. The intended release requires an exact artifact independent of the message. The simulator and decoder share the ideal byte-hash oracle, whose cache retains prior answers. Suppose their query budgets are and . The experiment counts all attempts, including failed releases. Proposition 5 assumes the actual and simulated prefixes are within total variation distance jointly on the hidden message, disclosure, public instance and ciphertext, optional release, and live oracle cache. It bounds the recovery probability by the following expression.23
The numerator of the first term counts the distinct values the key disclosure can reveal. With one disclosure value, the first term is . The second accounts for oracle queries, including two honest digest calls, at the scale of the 32-byte nonce space. The last term bounds the change in the probability of any event, including correct recovery. Two transcripts can look alike in isolation and still have different correlations with the hidden message. Proving a small for actual proof generation is unfinished work. So are enforcing fresh geometry at issuance and protecting or retiring the corresponding private material.23
What an Implementation Still Needs
How Field Arithmetic Represents an Integer Ciphertext
The native relation asks about bounded integers, while many proof engines check equations in a finite field. In arithmetic modulo , for example, the integers and represent the same field element. A field equation alone cannot enforce the requirement that a decoded integer lie between and .24
In the general construction the ciphertext is . For a matrix with rows and columns, these equations use products and linear equations. Each wire has an integer bound . To check a wire , the circuit supplies the binary digits of two nonnegative numbers, and , and requires their sum to be . Each digit satisfies . With the paper’s lower bounds on the prime modulus, the digit sums and equation errors are too small to wrap around modulo the prime. Every satisfying assignment to the field wires then lifts to a unique bounded assignment to the integer wires, and its coordinates satisfy the original encryption equations. The uniqueness applies to that whole assignment, including its private inputs.24
A proof engine for the transaction still has to bind these same integers to the witness bytes, enforce the salt or nonce and hash computations, and connect the resulting public names to the approved verifier. A deployment promising an encrypted seven-unit payment has one further obligation. It must define how the recovered coefficients encode the amount and check their agreement with the catalogue value of the resource the ledger consumes. The reference transfer and the native recovery theorem give that application precise objects on each side of the comparison.24
Source Notes
Van der Vlugt, Proof-Carrying Transactions for Homotopical Encryption (source revision
eac922d4). Section 4, the reference execution. ↑Byte-owner fixture, authorization and zero-payload verifier and raw bytes, changed manifest, and replay attempts. ↑ ↑
Paper 2, Proposition 1 and proof. The Lean statement
CheckedTransfer.native_history_recoverymakes the context, availability and issued-token hypotheses explicit. ↑ ↑ ↑Benet’s IPFS paper and Chiesa and Tromer’s proof-carrying data paper. ↑
Paper 1, the integral ciphertext map and exact byte recovery. The three scalar cases above specialize that formula. Paper 1 companion, “The Construction”. ↑ ↑
NIST, Secure Hash Standard and the store’s SHA-256 read and collision alternative. ↑
Paper 2, base view and public disclosures, context key fields, and the ordered manifest and its root preimage. ↑
OwnedResource.Catalog, the marking and transfer checks, the seven-unit catalogue, and the executable prechecks. ↑ ↑Paper 2, packet assembly and verification, the executable draft and intent, and packet verification. ↑ ↑
Paper 2, Proposition 4 and proof, the accepted-update and replay theorems, and
Executable.successor_eqandrun. ↑ ↑Paper 2, cell lookup and verified directory fragments, disclosure in a direct or whole-bucket read, and four varying inputs to the released transfer. The fixed-transfer view and public input ID distinction. ↑ ↑
Paper 2, restart and independent checkpoint pin and reference checkpoint publication and read operations. ↑
Paper 2, scoped token delivery, the scoped migration and retained-source recovery operations, and whole-object recovery or an accepted collision. ↑
Paper 2, public stack, historical replay and authenticated continuation and the checkpoint continuation procedure. ↑
Paper 2, the public subject, calibration and evidence levels, all seven claim tags, and the restriction and residual equalities. ↑ ↑
Paper 2, Proposition 2 and the guarded database and the theorem identifying the actual terminal proof. Bundle entry verification. ↑
Paper 2, Proposition 3 and its example, the exact diagonal acceptance theorem, and Paper 3’s two-column agreement condition. ↑ ↑ ↑
Paper 2, the bounded witness, program and three public hashes. ↑
Chase and Lysyanskaya, On Signatures of Knowledge, §2.2 and Paper 2, complete signing input and bounded adaptive experiment. ↑ ↑
Paper 2, Theorem 6, proof and remaining premises and the raw-root bounds including the full-ciphertext view. The one-sided hybrid comparison and extraction event. ↑
Paper 2, approved execution and the single-credential adapter and the application event inclusion and native bound. ↑
Paper 2, the private-nonce public instance and owner checker, Proposition 5 and the fresh-geometry lifecycle, and the joint-prefix recovery theorem. ↑ ↑ ↑
Paper 1, Proposition 3.7, wire bounds and the inequalities on the prime and the unique integer assignment theorem. Paper 2, field-circuit and deployment obligations and the distinct catalogue-to-coefficient obligation. ↑ ↑ ↑