Repository navigation
Feature/onchain commitments - #4
Merged
Merged
Conversation
- Batch commitment is now sha256 over the batch's ciphertexts in settlement order (domain-separated, length-prefixed), recorded via order-vault.create_batch before any decryption. It previously hashed sorted order ids. Batches store content_hash and commitment_tx. - Each validator reads get_batch from Soroban itself (read-only simulation) and refuses shares unless the count and hash match the exact ordered ciphertexts it's asked to decrypt. A pending order can't be decrypted early, even by a coordinator holding every validator token, and nothing can be added, dropped or reordered after sealing. - No silent fallback: validators without a ledger refuse to decrypt. Separate processes must set VALIDATOR_ORDER_VAULT_CONTRACT or opt out explicitly with VALIDATOR_INSECURE_SKIP_COMMITMENT_CHECK=1. Without a contract, the in-process dev ledger stands in. - Settlement keeps the sealed order of the batch. - Batch monitor shows each batch's seal, linked to its transaction. - Works with the already-deployed order-vault (no redeploy). 14 new tests (commitment encoding, sealing-check rejections, Soroban record decoding, early-decrypt and late-insert attacks). 70 backend tests pass.
…tion Document the batch commitment, the validator-side check, and the no-fallback rule. Narrow the trust section to what remains: the coordinator choosing batch composition, settlement not yet bound to the seal, and validators trusting their RPC endpoint. New contributor issues cover a validator batch policy and binding settle_batch to the seal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npm run validators:devstarts 5).Verified
Still trusted (documented)
Validators don't yet check on-chain that a batch is sealed before releasing shares. That's next: committing ciphertext hashes on-chain.