lp: 4845 title: IPA — Inner Product Argument description: Bulletproofs-style logarithmic-size inner product argument over Banderwagon, the proof system underneath Verkle state proofs and confidential range proofs author: Lux Core Team (@luxfi) discussions-to: https://github.com/luxfi/lps/discussions status: Final implementation-rust: none implementation-cpp: partial implementation-go: partial type: Standards Track category: Core tags: [ipa, bulletproofs, inner-product, zk, banderwagon, verkle]
- lp-4190
- lp-4840
- lp-4010
Abstract
The Inner Product Argument (Bulletproofs §3) over Banderwagon
(LP-4190). It proves ⟨a, b⟩ = c for committed vectors with a proof
whose size is logarithmic in the vector length — which is the whole
reason it exists: a linear-size proof of an inner product is just the
vectors.
It underlies Verkle tree state proofs (LP-4840) and confidential range proofs.
Specification
Parameters
- Group: Banderwagon (LP-4190), 47-byte
Elementencoding - Vector length: a power of two, up to 2^16
- Transcript: Merlin (STROBE-128 over Keccak-f[1600])
- Challenges by Fiat-Shamir from the transcript
Algorithm
The prover folds a and b into halves under a random challenge x.
Each of the log₂(n) rounds emits two Element commitments L_i, R_i,
halving the problem. The final scalars a_final, b_final prove the
inner product.
The verifier does not replay the folding. It batches all L_i, R_i into
one multi-scalar multiplication check:
[c]G + sum_i x_i^2 * L_i + sum_i x_i^-2 * R_i == ...
That is why verification is cheap while proving is not: the prover walks
log n sequential rounds, the verifier does one MSM.
Known-answer tests
64-element IPA proof vector, byte-equal to go-ipa.
crypto/ipa/test/kat.json.
Implementation
Go canonical
luxfi/crypto/ipa — {prover,verifier,transcript,multiexp_blinded}.go,
first-party. MultiExpBlinded provides prover-side multiplicative
scalar blinding — constant-time over secret scalars — while the
verifier-side MultiExp operates on public challenges and uses the
variable-time Pippenger path.
C++ CPU canonical
luxcpp/crypto/ipa/cpp/{prover,verifier,transcript}.{hpp,cpp}. C-ABI at
ipa_capi.h, shipped as libipa.a.
GPU kernels
Metal: ipa.metal — the verifier MSM batch (Pippenger). CUDA and WGSL
scaffolds are pending; the verifier-side MSM is the hot path and is
where the work goes first.
Determinism
CPU↔GPU byte-equality over N = 100 random IPA verifications at vector lengths {2^10, 2^12, 2^14}: PASS.
Test oracles
crate-crypto/go-ipa, vendored test-only and never linked into
libipa.a; arkworks-rs/ipa as an independent second oracle for KAT
cross-verification.
Security Considerations
- Soundness rests on Fiat-Shamir over the Merlin transcript, in the random oracle model. The transcript is the domain separation — a challenge derived from an incomplete transcript is a soundness bug, not a performance shortcut.
- Prover-side MSM is constant-time over secret scalars
(
MultiExpBlinded); verifier-side MSM uses the variable-time Pippenger over public challenges. - Banderwagon's prime-order quotient eliminates small-subgroup attacks on the commitment group.
- The rounds are serial within one proof — round
iconsumes roundi−1's challenge — so a single proof cannot be flattened into one parallel sweep. Cross-proof batched verification is the parallel shape (LP-4040), and that is where batching pays.
References
- Bünz et al., "Bulletproofs: Short Proofs for Confidential Transactions and More" (2018) §3
- Merlin transcript specification (Henry de Valence)
Copyright
Copyright (C) 2024-2026, Lux Industries Inc. All rights reserved.
Licensed under the MIT License.