KP800 state layout, domain separation, and ideal-permutation commitment bounds for VOLE-ACT #
This module formalizes the 100-byte (800-bit) single-permutation, truncated-output Keccak-p
(KP800) input-block layouts specified in VOLE-ACT (#kp800-commitment and
#kp800-tag) and specializes the generic ideal-permutation commitment bounds from
Cslib.Crypto.Protocols.Commitment.IdealPerm to both the draft's fixed-slot encoding and a
contiguous-packed parameter-family variant.
Commitment and tag state encodings #
A KP800 state FixedBytes 100 (800 bits) splits via kp800StateSplitEquiv into a 32-byte
(256-bit) output digest FixedBytes 32 and a 68-byte (544-bit) discarded tail
FixedBytes 68. This file treats two distinct 100-byte commitment block layouts:
- Draft fixed-slot layout (
comSlotBytes,comSlotState,kp800ComSlotPermSpec): matches [ZPS26]#kp800-commitmentfor any configuration satisfyingrLen ≤ 25andvariableBytes ≤ 68(includingkp800ComDefaultwithrLen = 16andkp800ComUpgrade20withrLen = 20). It placesrin a25-byte slot followed by(ctx, t, nf)in a68-byte slot:"rata" || ver || "c0" || r || 0^(25 - rLen) || ctx || t || nf || 0^(68 - variableBytes). WheneverrLen < 25,25 - rLenzero bytes sit betweenrandctx. - Contiguous budget-family layout (
comBudgetBytes,comBudgetState,kp800ComBudgetPermSpec): packs all fields before a single trailing zero block,"rata" || ver || "c0" || r || ctx || t || nf || 0^padLen, allowing hypothetical re-layouts withrLen > 25(such askp800ComRelayout26andkp800ComRelayout32). ForrLen < 25with a nonzeroctxbyte,comSlotStateandcomBudgetStateare distinct byte blocks (comSlotState_ne_comBudgetState), while both valid-input subsets have cardinality2 ^ (8 * (rLen + variableBytes))(card_validComSlotStates,card_validComBudgetStates). - Draft tag input layout (
tagBytes,tagState): matches [ZPS26]#kp800-tagfor any refund byte lengthL ≤ 36:"rata" || ver || "t0" || 0^25 || c || x || 0^(36 - L)forc : FixedBytes 32andx : FixedBytes L. The draft's tag output is the firstm_uovbytes of the final state rather than the32-byte digest used bykp800StateSplitEquiv, and this module proves no security bound forTag.
Scope and gaps #
- Static hiding only:
kp800ComSlot_idealPerm_hiding_leandkp800ComBudget_idealPerm_hiding_lequantifym₀, m₁ : ComInputbeforeπis sampled or queried; adaptive message choices depending on permutation queries are out of scope. - Target-preimage resistance, not collision binding:
kp800ComSlot_idealPerm_targetPreimage_leandkp800ComBudget_idealPerm_targetPreimage_lebound the probability of finding a valid input mapping to a fixed digestcStarchosen before queries, with denominator|State| - (Q_fwd + Q_inv + 1). Collision binding (producing any two distinct openings sharing a digest, e.g. via~2^128birthday search on a256-bit digest) is not addressed. - No
Tagsecurity bound and no concrete permutation: this module proves injectivity and commitment/tag domain separation fortagState, without proving a security bound forTag. ConcreteKeccak-p[800]permutations, PPT resource bounds, and zero-knowledge soundness are not formalized here, andkp800_rLen_lt_or_padLen_ltis purely combinatorial byte arithmetic.
Main definitions #
Cslib.Crypto.AnonymousToken.ComBudgetConfig: byte-length budget partitioning a100-byte commitment input block (7-byte prefix,r,nf,ctx,t, and padding).Cslib.Crypto.AnonymousToken.kp800ComDefault,Cslib.Crypto.AnonymousToken.kp800ComUpgrade20,Cslib.Crypto.AnonymousToken.kp800ComRelayout26,Cslib.Crypto.AnonymousToken.kp800ComRelayout32: representative100-byte parameter choices.Cslib.Crypto.AnonymousToken.kp800DstCom,Cslib.Crypto.AnonymousToken.kp800DstTag:7-byte domain-separation prefixes"rata" || ver || "c0"and"rata" || ver || "t0".Cslib.Crypto.AnonymousToken.ComInput: message tuple(ctx, t, nf)committed byKP800.Cslib.Crypto.AnonymousToken.comSlotBytes,Cslib.Crypto.AnonymousToken.comSlotState: draft fixed-slot commitment block encoding (rLen ≤ 25,variableBytes ≤ 68).Cslib.Crypto.AnonymousToken.comBudgetBytes,Cslib.Crypto.AnonymousToken.comBudgetState: contiguous trailing-pad commitment block encoding for arbitraryComBudgetConfig.Cslib.Crypto.AnonymousToken.tagBytes,Cslib.Crypto.AnonymousToken.tagState: KP800 tag input block"rata" || ver || "t0" || 0^25 || c || x || 0^(36 - L)(L ≤ 36).Cslib.Crypto.AnonymousToken.kp800StateSplitEquiv: equivalence splittingFixedBytes 100intoFixedBytes 32 × FixedBytes 68.Cslib.Crypto.AnonymousToken.kp800ComSlotPermSpec,Cslib.Crypto.AnonymousToken.kp800ComBudgetPermSpec:PermCommitmentSpecinstantiations for the draft fixed-slot and generalized budget-family encodings.
Main results #
Cslib.Crypto.AnonymousToken.comSlotState_inj,Cslib.Crypto.AnonymousToken.comBudgetState_inj,Cslib.Crypto.AnonymousToken.tagState_inj: injectivity of all three input encodings.Cslib.Crypto.AnonymousToken.comSlotState_ne_tagState,Cslib.Crypto.AnonymousToken.comBudgetState_ne_tagState: domain separation between commitment and tag blocks ('c' ≠ 't'at byte5).Cslib.Crypto.AnonymousToken.comSlotState_ne_comBudgetState: layout separation whenrLen < 25andctxbegins with a nonzero byte.Cslib.Crypto.AnonymousToken.card_validComSlotStates,Cslib.Crypto.AnonymousToken.card_validComBudgetStates,Cslib.Crypto.AnonymousToken.card_validTagStates: exact valid input-set cardinalities.Cslib.Crypto.AnonymousToken.kp800ComSlot_idealPerm_hiding_le,Cslib.Crypto.AnonymousToken.kp800ComSlot_idealPerm_targetPreimage_le: static hiding and fixed-target preimage bounds for the draft fixed-slot layout.Cslib.Crypto.AnonymousToken.kp800ComBudget_idealPerm_hiding_le,Cslib.Crypto.AnonymousToken.kp800ComBudget_idealPerm_targetPreimage_le: static hiding and fixed-target preimage bounds for the generalized budget-family layout.Cslib.Crypto.AnonymousToken.kp800_rLen_lt_or_padLen_lt: undernfLen = 24,ctxLen = 16,lLen = 8, anyComBudgetConfigsatisfiesrLen < 32 ∨ padLen < 16.
References #
- VOLE-ACT, KP800 Commitment (
#kp800-commitment) and KP800 Tag (#kp800-tag).
Byte-length budget partitioning a 100-byte (800-bit) KP800 commitment input block into a
7-byte DST/version header ("rata" || ver || "c0"), opening r, variable fields (ctx, t, nf),
and total zero-padding padLen.
- ver : Byte
Protocol version byte
verappearing at index4of the7-byte DST header. - rLen : ℕ
Length in bytes of the commitment opening
r. - nfLen : ℕ
Length in bytes of the nullifier
nf. - ctxLen : ℕ
Length in bytes of the context string
ctx. - lLen : ℕ
Length in bytes of the tag or credit-value field
t. - padLen : ℕ
Total number of zero-padding bytes in the
100-byte commitment block. Exact
100-byte (800-bit) block conservation invariant.
Number of reserved constant bytes (7-byte DST header plus padLen zero-padding bytes).
Number of reserved constant bits (8 * fixedBytes).
Number of opening bits (8 * rLen).
In-slot KP800 commitment variant widening the opening to rLen = 20 bytes (160 bits)
within the draft's 25-byte opening slot.
Under nfLen = 24, ctxLen = 16, lLen = 8 (rLen + padLen = 45), any 100-byte KP800
commitment configuration satisfies either rLen < 32 (< 256 opening bits) or padLen < 16
(< 128 zero-padding bits), because 32 + 16 = 48 > 45.
Message inputs (ctx, t, nf) committed inside a KP800 commitment block.
- ctx : FixedBytes ctxLen
Context string
ctx. - t : FixedBytes lLen
Tag or credit-value field
t. - nf : FixedBytes nfLen
Nullifier
nf.
Draft fixed-slot KP800 commitment byte list (#kp800-commitment):
"rata" || ver || "c0" || r || 0^(25 - rLen) || ctx || t || nf || 0^(68 - variableBytes).
Any draft fixed-slot KP800 commitment block with rLen ≤ 25 and variableBytes ≤ 68 has
exact length 100 bytes.
Draft fixed-slot KP800 commitment permutation state in FixedBytes 100.
comSlotState is jointly injective in (r, ctx, t, nf) when rLen ≤ 25 and
variableBytes ≤ 68.
Generalized contiguous-packed KP800 commitment byte list for arbitrary ComBudgetConfig:
"rata" || ver || "c0" || r || ctx || t || nf || 0^padLen.
Any generalized KP800 commitment byte list has exact length 100 bytes.
Generalized contiguous-packed KP800 commitment permutation state in FixedBytes 100.
comBudgetState is jointly injective in (r, ctx, t, nf) for every ComBudgetConfig.
When rLen < 25 and ctx has a nonzero first byte, comSlotState and comBudgetState
differ because comSlotState places zero padding between r and ctx.
KP800 tag input byte list ([VOLEACT2026], #kp800-tag):
"rata" || ver || "t0" || 0^25 || c || <x>_L || 0^(36 - L).
Any KP800 tag block with L ≤ 36 has exact length 100 bytes
(7 + 25 + 32 + L + (36 - L) = 100).
KP800 tag permutation state in FixedBytes 100.
tagState is jointly injective in (c, x) when L ≤ 36.
Commitment blocks in the draft slot layout are disjoint from all KP800 tag blocks at byte
index 5 ('c' ≠ 't').
Generalized commitment blocks are disjoint from all KP800 tag blocks at byte index 5
('c' ≠ 't').
Equivalence splitting a 100-byte KP800 state into its 32-byte digest prefix and 68-byte
discarded tail.
PermCommitmentSpec for the draft fixed-slot KP800 commitment encoding (comSlotState).
PermCommitmentSpec for the generalized contiguous-packed KP800 commitment encoding
(comBudgetState).
Finset of all valid draft fixed-slot KP800 commitment input blocks in FixedBytes 100.
Finset of all valid generalized KP800 commitment input blocks in FixedBytes 100.
Finset of all valid KP800 tag input blocks in FixedBytes 100 for refund length L ≤ 36.
Exact cardinality 2 ^ (8 * (rLen + variableBytes)) of valid draft fixed-slot KP800
commitment input states.
Exact cardinality 2 ^ (8 * (rLen + variableBytes)) of valid generalized KP800 commitment
input states.
When rLen ≤ 25 and variableBytes ≤ 68, the valid state sets of comSlotState and
comBudgetState have the exact same cardinality 2 ^ (8 * (rLen + variableBytes)).
Bidirectional ideal-permutation static hiding bound for the draft fixed-slot KP800
commitment encoding: any Q-query adversary has advantage at most
2 * Q * ((2 ^ (8 * rLen))⁻¹ + (2 ^ 544)⁻¹) for fixed (m₀, m₁) chosen before queries.
Bidirectional ideal-permutation static hiding bound for the generalized KP800 commitment
encoding (comBudgetState), covering parameter re-layouts with rLen > 25 as well.
Bidirectional ideal-permutation fixed-target preimage bound for the draft fixed-slot KP800
commitment encoding: any adversary making Q_fwd forward and Q_inv inverse queries outputs a
valid input hitting a fixed digest cStar with probability at most
((Q_fwd + 1) * 2^544 + Q_inv * 2^(8 * (rLen + variableBytes))) / (2^800 - (Q_fwd + Q_inv + 1)).
This does not address collision binding.
Bidirectional ideal-permutation fixed-target preimage bound for the generalized KP800
commitment encoding (comBudgetState), covering rLen > 25 parameter re-layouts as well. This
does not address collision binding.