| Internet-Draft | Sigma Proofs for Linear Relations | September 2026 |
| Orrù & Yun | Expires 1 April 2027 | [Page] |
This document describes Sigma Protocols for proving knowledge of preimages of linear maps in prime-order elliptic curve groups. These are sometimes also called Maurer Proofs, or proofs of knowledge of a preimage of a group homomorphism.¶
Examples include zero-knowledge proofs for discrete logarithm relations, ElGamal encryptions, Pedersen commitments, and range proofs.¶
This note is to be removed before publishing as an RFC.¶
The latest revision of this draft can be found at https://mmaker.github.io/draft-irtf-cfrg-sigma-protocols/draft-irtf-cfrg-sigma-protocols.html. Status information for this document may be found at https://datatracker.ietf.org/doc/draft-irtf-cfrg-sigma-protocols/.¶
Discussion of this document takes place on the Crypto Forum Research Group mailing list (mailto:cfrg@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/cfrg. Subscribe at https://www.ietf.org/mailman/listinfo/cfrg/.¶
Source for this draft and an issue tracker can be found at https://github.com/mmaker/draft-irtf-cfrg-sigma-protocols.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 1 April 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.¶
Zero-knowledge proofs of knowledge allow a prover to convince a verifier that a statement is true, without revealing anything other than what is already revealed by the statement itself.¶
Sigma Protocols are an essential component of a number of cryptographic constructions, such as anonymous credentials [ARC] [BBS], verifiable random functions [RFC9381], anonymous tokens [RFC9497], blind signatures [BBSBlind], and proofs of knowledge of the opening of a Pedersen commitment [Pedersen91]. This document specifies a single Sigma Protocol for proving knowledge of a preimage of a linear map over a prime-order group [Brands00], [Cramer97], [Maurer09]. A linear relation is a system of equations among group elements that is linear in the secret scalars; affine relations with constant terms (e.g. verifiable encryption) and quadratic equations (e.g. range proofs) can also be expressed as the preimage of a linear map (Section 3.1).¶
A Sigma Protocol is an interactive proof with the following three-message flow:¶
The messages are respectively called commitment (computed by the prover), challenge (randomly sampled by the verifier), and response (computed by the prover). The prover is stateful and maintains a single-use private state between the first and third messages. The transcript (commitment, challenge, response) is checked by the verifier.¶
Sigma Protocols can compose: several statements can be proven simultaneously (AND composition), disjunctively (OR composition [CramerDS94]), or thresholded. AND composition of linear relations is immediate in this document (Section 3.4); OR and threshold composition, and composition across heterogeneous proof systems, are not part of this document, but possible via the Sigma Protocol interface. Composition carries soundness and zero-knowledge caveats; see Section 7 and Section 7.5.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
The algorithms and procedures in this document are specified using Python-like pseudocode. Each function accepts defined inputs and parameters and returns one or more output values. Once a protocol variant and ciphersuite are selected, all associated parameters are treated as constants.¶
The following notation is used throughout this document.¶
A byte is an 8-bit unsigned integer (an octet), and a byte string is a finite sequence of bytes. The empty byte string is written "", and x || y is the concatenation of the byte strings x and y. For any finite sequence x, len(x) is the number of elements in x; for a byte string, this is its length in bytes. Byte strings are indexed from zero: for integers 0 <= i <= j <= len(x), x[i : j] denotes the (j - i)-byte substring of x at positions i, i+1, ..., j-1, so that x[0 : N] is the first N bytes of x and x[i : i] is "".¶
I2OSP(n, w) and OS2IP(x) are the integer/byte-string conversion primitives used throughout this document, in big-endian byte order, as defined in Section 4 of [RFC8017]. I2OSP(n, w) converts a non-negative integer n with 0 <= n < 256^w into a w-byte, big-endian byte string, and fails if n >= 256^w; OS2IP(x) is its inverse, mapping a w-byte string to the integer in [0, 256^w) that it represents. LE(n, w) is the little-endian counterpart defined in [fiat-shamir]. LE2IP(x), also defined in [fiat-shamir], converts a little-endian byte string back into a non-negative integer. Byte order and length of the scalar and group-element encodings are fixed by each ciphersuite (Section 8).¶
The prover commitment algorithm requires fresh, single-use randomness for zero-knowledge. This document denotes with rng a cryptographically secure random number generator (CSPRNG), and uses Group.random_scalar(rng) to denote sampling a uniformly random element of the scalar field, similarly to RandomScalar() of Section 2.1 of [RFC9497].¶
Elliptic curves are presented using additive notation.¶
Group elements are upper-case (G, X, M) and scalars lower-case (x, s). The name G denotes the group generator Group.generator() (Section 2.3.1). Pseudocode and interface names are descriptive (e.g. commitment, image, witness) and do not follow this rule.¶
identity() is the neutral element, generator() returns the canonical generator of the prime-order subgroup (Section 8), and order() returns its order p. Addition, negation, equality, and scalar multiplication by a Scalar are written +, -, ==, and *.¶
serialize(elements: list[Group]) and deserialize(buffer) convert N group elements into a fixed-length Ne * N-byte encoding, where Ne is fixed per ciphersuite (Section 8).¶
Group values are assumed to be valid elements of the prime-order group. Deserialization MUST fail on invalid or non-canonical encodings.¶
A Scalar is an element of the group's scalar field, the prime field of integers modulo the group order p. Addition and multiplication are written + and * via operator overloading.¶
serialize(scalars: list[Scalar]) and deserialize(buffer) batch convert between N scalars and their canonical, fixed-length Ns * N-byte encoding.¶
Scalar values are assumed to be integers in [0, p). A constructor from an integer MUST fail unless the integer is in this range, and deserialization MUST fail on non-canonical encodings. Arithmetic operations reduce their results modulo p.¶
Sampling a random scalar takes two steps: obtaining high-quality entropy via a CSPRNG (e.g., getrandom(); see [RFC4086] for randomness requirements), and reducing the resulting bytes to a scalar. It is RECOMMENDED that the latter be done via DecodeField as in [fiat-shamir]. Different sampling mechanisms, such as the wide reduction of hash_to_field (Section 5.2 of [RFC9380]) and the integer conversion of Appendix A.4.1 of [FIPS186-5] do not affect interoperability of proofs. The "discard method" of Appendix A.4.2 of [FIPS186-5] SHOULD NOT be used Section 7.6.¶
This section specifies the statement being proven: the preimage of a linear map over a group, also known as the preimage of a group homomorphism. The Sigma Protocol proving knowledge of a preimage is specified in Section 4.¶
A linear map is a matrix-vector product image = M * witness, where M is a matrix of group elements and witness is a vector of scalars. The relation proven is:¶
R := { ((M, image), witness) : image = M * witness }
¶
M and image together form the instance, while witness is the secret. image is the result of the multi-scalar multiplication of each matrix row with the witness, that is, for i in 0, ..., num_equations - 1¶
image[i] = sum(witness[j] * M[i][j] for j in 0, ..., num_scalars - 1)¶
num_scalars is the length of witness (the width of M), and num_equations is the number of group elements in image (the height of M).¶
As an example, Schnorr's identification protocol has num_scalars = num_equations = 1 and M = [[G]], where G is the group generator, proving knowledge of the scalar x such that the group element X satisfies X = x * G [RFC8235].¶
Another example is the Chaum-Pedersen relation [ChaumP92]: given the group generator G and group elements H, X, Y, the prover shows knowledge of a single scalar x such that X = x * G and Y = x * H. Here num_scalars = 1, num_equations = 2, and:¶
M = [[G],
[H]]
¶
Variants of the Chaum-Pedersen relation are widely used for VRFs [RFC9381] and anonymous tokens [RFC9497]. Proofs of knowledge of the opening (m, r) of a Pedersen commitment [Pedersen91] C = m * G + r * H are Okamoto-Schnorr proofs [Okamoto92].¶
Affine equations with constant terms can be expressed directly through image terms and coefficients (Section 3.2). More elaborate relations, such as quadratic equations, reduce to this same form by letting instance elements themselves serve as bases (Section 3.4).¶
The group Group, and its generator, are provided by the ciphersuite Section 8. The statement author has the responsibility to select the appropriate M, and this requires care. Computationally-independent bases, sometimes also called auxiliary generators, or nothing up my sleeve (NUMS) generators, may be computed via hash to the curve (Section 3 of [RFC9380]).¶
The linear relations proven with Sigma Protocols are typically sparse: most entries of M are zero. This document handles and serializes them in a sparse, symbolic form rather than as a 2-dimensional vector of group elements.¶
A LinearRelation is the instance for the Sigma Protocol. It fixes the linear map M and the image, that is, the instance (M, image) of the relation R (Section 3.1). There might be multiple witnesses for the same (M, image), or no valid witness. The word relation is used here in the linear-algebra sense: a system of linear equations among group elements. A LinearRelation is held and evaluated by both prover and verifier (Section 3.3).¶
class LinearRelation:
elements: list[Group]
# elements[i] has element index i + 2
equations: list[Equation]
class Equation:
image: list[(int, Scalar)]
# (element_index, coeff)
terms: list[(int, int, Scalar)]
# (scalar_index, element_index, coeff)
element(instance, element_index):
if element_index == 0: return Group.identity()
if element_index == 1: return Group.generator()
return instance.elements[element_index - 2]
¶
A LinearRelation holds a list of group elements and a list of equations. The identity and generator have implicit element indices 0 and 1, respectively; elements[i] has element index i + 2. Each row of M is called an Equation, and consists of two lists of terms.¶
The image terms (the left-hand side) are pairs (element_index, coeff). The image is the sum of coeff * element(instance, element_index).¶
The terms (the right-hand side) are triplets (scalar_index, element_index, coeff). Each coeff is a scalar (Section 2.3.2) fixed by the instance.¶
An empty image or terms list represents the identity element. A constant of the statement (an element carrying no witness scalar) is encoded as an image term (Section 3.4). It MUST NOT be encoded as a right-hand side term whose witness scalar is "fixed" to 1. A coefficient MAY be zero.¶
The instance MUST contain, as individually-indexed elements, every group element on which the statement depends. In particular, all group elements processed by the verifier MUST appear in the statement, else the resulting argument is malleable across its preimages (Section 7.2).¶
For instance, the verifiable-decryption statement M + E1 = x * E0 is encoded with the two image terms (M, 1), (E1, 1), never as the single element F = M + E1. Otherwise, the same proof will verify for any F = M' + E1', even when M' != M. As another example, a statement multiplying a scalar by a sum of elements, such as Y = x * (E0 + E1), is expressed by repeating the scalar index across terms, as terms = [(0, 2, 1), (0, 3, 1)], never as the single element K = E0 + E1. An element may appear multiple times in the same equation, even with the same coefficient and scalar.¶
Every group element index MUST have an associated group element. Every element in instance.elements MUST appear in the terms or image terms of at least one equation. The identity (index 0) and generator (index 1) are available in every instance whether or not an equation uses them.¶
For a valid instance, let:¶
num_elements(instance) = 2 + len(instance.elements)
num_equations(instance) = len(instance.equations)
num_scalars(instance) = max((s + 1 for eq in instance.equations
for (s, _, _) in eq.terms),
default=0)
¶
Scalar indices need not be contiguous. Trailing unused scalar variables are not part of the instance. The number of group elements is independent of the number of equations. For instance, Chaum-Pedersen has num_elements = 5, num_equations = 2.¶
This document writes map(instance, scalars) for the function that evaluates M at scalars:¶
map(instance, scalars) -> list[Group]
1. out = []
2. for equation in instance.equations:
3. acc = Group.identity()
4. for (scalar_index, element_index, coeff) in equation.terms:
5. acc = acc + (coeff * scalars[scalar_index]) \
* element(instance, element_index)
6. out.append(acc)
7. return out
¶
With image(instance) we denote the evaluation of each equation's left-hand side.¶
This section defines a symbolic notation in the spirit of [CamenischS97] for declaring scalars, elements, and equations.¶
The notation is a specification convention, not a wire format. Prover and verifier must agree on the compiled LinearRelation (Section 3.2) and its serialization (Section 3.6). The notation of this section is the RECOMMENDED way to present a relation.¶
A linear relation is declared as a US-ASCII block:¶
Relation NAME(P[0], ..., P[n-1]):
Witness: s[0], ..., s[k-1]
Equations:
<linear combination> = <linear combination>
...
¶
As a first example, the Chaum-Pedersen relation of Section 3.1 is:¶
Relation ChaumPedersen(H, X, Y):
Witness: x
Equations:
X = x * G
Y = x * H
¶
The relation parameters are the public values of the statement. A parameter whose name begins with an upper-case letter is a group element, and one whose name begins with a lower-case letter is a public scalar (following Section 2.3); the names under Witness: are the secret scalars. G denotes the group generator at element index 1, and MUST NOT appear among the relation parameters. Every other name used in Equations: is declared exactly once, as a parameter or under Witness:. A declaration MUST compile to a valid instance (Section 3.5).¶
Each equation is an equality between two linear combinations. Each term is the product of an optional coefficient, an optional witness scalar, and exactly one element name. Every equation MUST be linear in the witness. A coefficient is a public constant of the statement evaluated in the scalar field before compilation. An omitted coefficient is 1, and a leading - on a term negates its coefficient. Expressions in parentheses distribute before the term rules apply: 2 * r * (X1 - X2) denotes 2 * r * X1 - 2 * r * X2.¶
As an example with two witness scalars in a single equation, the Okamoto-Schnorr proof proves knowledge of the opening of a Pedersen commitment [Pedersen91]:¶
Relation PedersenOpening(H, C):
Witness: m, r
Equations:
C = m * G + r * H
¶
ChaumPedersen compiles to elements = [H, X, Y] and equations = [Equation(image=[(3, 1)], terms=[(0, 1, 1)]), Equation(image=[(4, 1)], terms=[(0, 2, 1)])], while PedersenOpening is compiled to a LinearRelation with elements = [H, C] and equations = [Equation(image=[(3, 1)], terms=[(0, 1, 1), (1, 2, 1)])].¶
The compiled LinearRelation assigns indices in declaration order. Vectors of names (for example, C_0, ..., C_{n-1}) and families of equations stated over an index range unroll, in index order, to names and equations of the ordinary form.¶
Terms compile to the two lists of Section 3.2. A term carrying a witness scalar compiles to the right-hand side term (homomorphism) (scalar_index, element_index, coeff); a term without one (a constant term) compiles to the left-hand side term (image) (element_index, coeff), with its coefficient negated when the term is written on the right-hand side. Terms appear in the order written, left-hand side first; equations compile in the order they are written under Equations:. Indices attach to names: every occurrence of a name, within or across equations, denotes the same scalar or element index, and every occurrence of a scalar parameter denotes the same public value.¶
As an example with a public scalar parameter, below is the relation stating that C opens to the public value m, that is, C - m * G = r * H:¶
Relation OpensTo(m, H, C):
Witness: r
Equations:
C = m * G + r * H
¶
m is now a scalar parameter, so m * G is a constant term. The relation compiles to elements = [H, C] and equations = [Equation(image=[(3, 1), (1, -m)], terms=[(0, 2, 1)])].¶
As an example with a constant term crossing sides, correct ElGamal decryption states that the ciphertext (E0, E1), with E1 = r * X - M, decrypts to M under the decryption key x of X:¶
Relation ElGamalDecryption(X, E0, E1, M):
Witness: x
Equations:
X = x * G
M = x * E0 - E1
¶
The constant term - E1 crosses to the image with its coefficient negated: the second equation compiles to Equation(image=[(5, 1), (4, 1)], terms=[(0, 3, 1)]), identically to the spelling M + E1 = x * E0, and both M and E1 are bound individually by the serialization of Section 3.6.¶
As yet another example with a distributed scalar, the following proves correct encryption of a public message M under the aggregate key X1 + X2, as arises in threshold decryption: the ciphertext is (E0, E1), with E0 = r * G and E1 = r * (X1 + X2) - M:¶
Relation AggregateEncryption(X1, X2, M, E0, E1):
Witness: r
Equations:
E0 = r * G
M + E1 = r * (X1 + X2)
¶
The scalar r distributes over the parenthesized sum, so the second equation compiles to Equation(image=[(4, 1), (6, 1)], terms=[(0, 2, 1), (0, 3, 1)]).¶
As a last example, the following proves that the value committed by C is a bit, the building block of range proofs:¶
Relation Bit(H, C):
Witness: b, r, s
Equations:
C = b * G + r * H
C = b * C + s * H
¶
Bit compiles to elements = [H, C] and equations = [Equation(image=[(3, 1)], terms=[(0, 1, 1), (1, 2, 1)]), Equation(image=[(3, 1)], terms=[(0, 3, 1), (2, 2, 1)])]: the element index 3 (the commitment C) appears both in each equation's image and among the bases of the second equation.¶
AND composition comes for free for this relation family. To do so, concatenate the parameter lists, Witness:, and Equations: of each sub-relation. Under concatenation, a name kept in common should denote the same scalar or element in every sub-relation, and is declared exactly once in the combined declaration. Names not intended to be shared MUST be renamed apart before concatenating.¶
For an instance to be valid, it MUST satisfy all below conditions:¶
Every scalar_index and every element_index is a non-negative integer less than 2^32; so are num_equations(instance), and each equation's term count and image-term count.¶
Every element index is less than num_elements(instance). In other words, every index references a group element.¶
Every element index other than 0 and 1 appears in the terms or image terms of at least one equation; the identity (index 0) and generator (index 1) are present in every instance whether or not an equation uses them (Section 3.2).
Together with check 2, this ensures either num_elements(instance) == 2 or num_elements(instance)-1 is the largest referenced element index.¶
The prover SHOULD reject an invalid instance, and MAY additionally check that image == map(instance, witness) before proving; Section 7.5 and Section 7.4 state when this check, or a stronger precaution, is required. The verifier MUST fail on an invalid instance (Section 4.3, Section 5), either when the instance is constructed or during verification itself.¶
These checks admit identity images and columns, including M * x = Y with M = 0 and Y = 0, or with M != 0 and Y = 0.¶
ValidateInstance(instance) denotes the function returning true if all above predicates are met. Instance validation won't flag all violations of Section 3.2 (for instance, a registered element obtained as a precomputed linear combination from one obtained independently) because the instance generation can't know how a group element is obtained. A structurally valid instance may still yield an unsound argument.¶
A LinearRelation is serialized as a sparse matrix encoded in row-major order. Serialization involves serializing each equation's image terms, then its right-hand side terms, each preceded by its count (Section 3.2). At the end, instance.elements are serialized (identity and generator are implicit). Counts and indices are encoded in 4 bytes via LE (Section 2.1). Coefficients are encoded with the scalar serialization function (Ns bytes each, Section 8).¶
SerializeLinearRelation(instance) Input: - instance, a LinearRelation. Output: - a byte string Procedure: 1. out = "" 2. out = out || LE(num_equations(instance), 4) 3. for i in 0, ..., num_equations(instance) - 1: 4. image_terms = instance.equations[i].image 5. out = out || LE(len(image_terms), 4) 6. for (element_index, coeff) in image_terms: 7. out = out || LE(element_index, 4) || Scalar.serialize([coeff]) 8. terms = instance.equations[i].terms 9. out = out || LE(len(terms), 4) 10. for (scalar_index, element_index, coeff) in terms: 11. out = out || LE(scalar_index, 4) 12. out = out || LE(element_index, 4) || Scalar.serialize([coeff]) 13. return out || Group.serialize(instance.elements)¶
For example, the compiled ChaumPedersen relation of Section 3.4 serializes to¶
LE(2, 4) # 2 equations
LE(1, 4) || LE(3, 4) || Scalar.serialize([1]) # image: X
LE(1, 4) || LE(0, 4) || LE(1, 4)
|| Scalar.serialize([1]) # term: x * G
LE(1, 4) || LE(4, 4) || Scalar.serialize([1]) # image: Y
LE(1, 4) || LE(0, 4) || LE(2, 4)
|| Scalar.serialize([1]) # term: x * H
Group.serialize([H, X, Y]) # statement elements
¶
The same relation expressed in two different ways (for example, swapping two rows of M) will yield different serializations.¶
This section specifies the proof of knowledge for the preimage of a linear map (Section 3). These proofs are sometimes also called Maurer proofs [Maurer09] [Cramer97].¶
A Sigma Protocol provides the following interface:¶
ProverCommitment(instance, witness, rng): produces a pair (commitment, prover_state) consisting of the commitment message, and a private prover_state. The prover state MUST be used at most once. The random number generator rng is defined in Section 2.2.¶
ProverResponse(prover_state, challenge) produces the response.¶
Verifier(instance, commitment, challenge, response), the verification algorithm.¶
These are the interactive protocol's building blocks. Implementations MAY also provide the zero-knowledge simulator:¶
SimulateResponse(instance, rng) -> (response, state), which returns a simulated response, and a simulator state.¶
SimulateCommitment(state, response, challenge) -> simulated_commitment, which returns the simulated_commitment such that Verifier(instance, simulated_commitment, challenge, response) accepts.¶
Both are specified concretely for the linear-map Sigma Protocol in Section 4.4. The simulator is useful for proof composition (e.g. OR-composition [CramerDS94]) and for compact serialization Section 5.5.¶
This interface allows for composition, and SHOULD NOT be exposed directly to consumers of the non-interactive argument. In particular, ProverResponse MUST NOT be invoked with a challenge that was not either sent by an honest interactive verifier or derived from the instance and commitment via the Fiat-Shamir transformation (Section 5). Supplying an invalid challenge or an arbitrary prover state will compromise soundness and zero-knowledge.¶
The prover of a Sigma Protocol is stateful and will send two messages, described below.¶
ProverCommitment(instance, witness, rng)
Inputs:
- instance, the LinearRelation being proven
- witness, an array of scalars satisfying the linear relation
- rng, a cryptographically secure random number generator
Outputs:
- A commitment message (a vector of group elements)
- A (private) prover state
Procedure:
1. fail if len(witness) != num_scalars(instance)
2. nonces = [Group.random_scalar(rng)
for j in 0, ..., num_scalars(instance) - 1]
3. commitment = map(instance, nonces)
4. return (commitment, prover_state := (witness, nonces))
¶
The prover MAY produce an output (and not fail) if the witness is not valid for the instance provided. The prover MUST fail if the witness length does not match num_scalars(instance): a mismatch cannot yield a valid proof.¶
ProverResponse(prover_state, challenge)
Inputs:
- prover_state, the current state of the prover
- challenge, the verifier challenge scalar
Output: the response message, an array of scalars
Procedure:
1. witness, nonces = prover_state
2. fail if len(witness) != len(nonces)
3. return [nonces[i] + witness[i] * challenge
for i in 0, ..., len(nonces) - 1]
¶
The prover MUST fail if the lengths of witness and nonces mismatch.¶
The challenge is a scalar drawn uniformly at random from the scalar field. Non-interactive Sigma Protocols derive the challenge via the Fiat-Shamir transformation (Section 5).¶
The verification equation is as follows:¶
Verifier(instance, commitment, challenge, response)
Inputs:
- instance, the LinearRelation being verified
- commitment, the commitment generated by the prover
- challenge, the challenge generated by the verifier
- response, the response generated by the prover
Output: a boolean indicating whether the verification succeeded
Procedure:
1. fail if ValidateInstance(instance) fails
2. fail if len(commitment) != num_equations(instance) or \
len(response) != num_scalars(instance)
3. expected = map(instance, response)
4. got = [commitment[i] + challenge * image(instance)[i]
for i in 0, ..., num_equations(instance) - 1]
5. fail if got != expected
¶
The verifier MUST enforce instance validity (Step 1, see Section 3.5), and that the shape of the transcript matches that of the instance.¶
SimulateResponse(instance, rng) returns as simulated response a vector of num_scalars(instance) uniformly random scalars, and as simulator state the instance itself.¶
SimulateCommitment(state, response, challenge) solves the verification equation (Section 4.3) for the commitment, returning the vector of num_equations(state) group elements¶
simulated_commitment[i] = map(state, response)[i]
- challenge * image(state)[i]
¶
Drawing response uniformly at random with SimulateResponse and then computing commitment with SimulateCommitment yields a transcript (commitment, challenge, response) with the same distribution as an honest one. This is the honest-verifier zero-knowledge property (Section 7).¶
The simulator is also used by the compact verifier (Section 5).¶
The Fiat-Shamir transformation applied to Sigma Protocols yields a non-interactive zero-knowledge argument of knowledge.¶
[fiat-shamir] describes how to instantiate the transformation, for the group and field codecs given. This section specifies how to select the session identifier (Section 5.1), how to produce a challenge (Section 5.2), two flavors of non-interactive argument (NARG) string serialization (Section 5.3), and batch verification (Section 5.6).¶
The session identifier session_id is a 32-byte string. It SHOULD be derived from a string tag using DeriveSessionID of [fiat-shamir]. The prover and verifier initialize their duplex sponge state from it (Section 5.2).¶
The tag is a byte string following the security requirements on the session identifier in [fiat-shamir]. It MUST contain, verbatim, the flavor (DSFS for batchable NARG strings, CMPT for compact NARG strings), and the ciphersuite identifier (Section 8). Following the domain-separation conventions of Section 3.1 of [RFC9380], an application concatenates its own name, version, and epoch with these two components. As an example, a reasonable choice of tag for a fictional application named Foo is:¶
FOO-V{xx}-{tttt}-{flavor}-with-{ciphersuiteID}
¶
where xx is the two-digit number indicating the version, tttt is the four-digit number identifying the epoch, flavor is the serialization flavor marker, and ciphersuiteID is the ciphersuite identifier of Section 8. For instance, for batchable NARG strings:¶
FOO-V01-0001-DSFS-with-sigma-proofs_Shake128_P256¶
The corresponding tag for compact NARG strings replaces the flavor marker DSFS (duplex sponge Fiat-Shamir) with CMPT.¶
The prover and the verifier each construct the tag (or session identifier). Neither should accept a session identifier supplied by a third party. An adversary who controls the entire session identifier can cause a proof to be accepted where it was never intended.¶
The prover derives the challenge from the tag (Section 5.1), the instance being proven, and the serialized commitment message; the verifier re-derives it from the same values, exactly as the prover does. Both compute DeriveChallenge, which outputs the challenge, a scalar:¶
DeriveChallenge(tag, instance, commitment_bytes) Inputs: - tag, a byte string uniquely identifying the session - instance, the LinearRelation being proven - commitment_bytes, the serialized commitment message Output: the challenge, a scalar 1. session_id = DeriveSessionID(tag) 2. duplex_sponge = DS.Init(session_id) 3. duplex_sponge.Absorb(SerializeLinearRelation(instance)) 4. duplex_sponge.Absorb(commitment_bytes) 5. return DecodeField(duplex_sponge.Squeeze(Ns + 16), p, 1)¶
DS, DeriveSessionID, and DecodeField are defined in [fiat-shamir]; Ns + 16 is the input length DecodeField requires over a prime field, and the choices of DecodeField for the ciphersuites of this document are discussed in Section 8. The challenge is drawn from the full scalar field (Section 7.2).¶
Two serialization flavors are possible:¶
A batchable NARG string serializes the prover messages (commitment, response), as in [fiat-shamir], and it permits amortized verification costs (Section 5.6).¶
A compact NARG string serializes (challenge, response). It is preferable in the common case, whenever the commitment (num_equations group elements) is larger than a single challenge scalar.¶
A batchable NARG string is a (Ne * num_equations + Ns * num_scalars)-byte string, while a compact NARG string is a (Ns * (num_scalars + 1))-byte string. A NARG string verifies only under the flavor it was produced for: the flavor marker is a mandatory tag component (Section 5.1). Both flavors have the same soundness guarantees.¶
NARG strings are not deterministic, and so applications MUST NOT rely on the uniqueness of the NARG string for replay protection or as a nullifier.¶
A batchable NARG string is the NARG string of [fiat-shamir], consisting of the concatenation of the serialized prover messages using their respective serialization functions:¶
Group.serialize(commitment) || Scalar.serialize(response)¶
ProveBatchable and VerifyBatchable are the NARG prover and verifier of [fiat-shamir] instantiated with the Sigma Protocol of Section 4.¶
ProveBatchable(tag, instance, witness, rng) computes the commitment message with ProverCommitment, derives the challenge as DeriveChallenge(tag, instance, Group.serialize(commitment)) (Section 5.2), computes the response with ProverResponse(prover_state, challenge), and outputs the NARG string above.¶
VerifyBatchable(tag, instance, narg_string) checks:¶
A compact NARG string serializes serialize(challenge) || serialize(response). The Sigma Protocol transcript is recovered by invoking the simulator.¶
ProveCompact(tag, instance, witness, rng) Inputs: - tag, a byte string uniquely identifying the session - instance, the LinearRelation to be proven - witness, the prover's secret witness - rng, a cryptographically secure random number generator Output: the compact NARG string Procedure: 1. (commitment, prover_state) = ProverCommitment(instance, witness, rng) 2. commitment_bytes = Group.serialize(commitment) 3. challenge = DeriveChallenge(tag, instance, commitment_bytes) 4. response = ProverResponse(prover_state, challenge) 5. return Scalar.serialize([challenge]) || Scalar.serialize(response)¶
The verifier recomputes the commitment from the challenge and response via SimulateCommitment (Section 4.4), then recomputes the challenge from that commitment and accepts only if it matches the one in the NARG string.¶
VerifyCompact(tag, instance, narg_string)
Inputs:
- tag, a byte string uniquely identifying the session
- instance, the LinearRelation to be proven
- narg_string, the compact NARG string
Output: a boolean indicating whether the NARG string is valid
Procedure:
1. fail if ValidateInstance(instance) fails
2. Nr = num_scalars(instance) * Ns
3. fail if len(narg_string) != Ns + Nr
4. challenge = Scalar.deserialize(narg_string[0 : Ns])[0]
5. response = Scalar.deserialize(narg_string[Ns : Ns + Nr])
6. commitment = SimulateCommitment(instance, response, challenge)
7. expected_challenge = DeriveChallenge(tag, instance,
Group.serialize(commitment))
8. return challenge == expected_challenge
¶
Since the simulator always outputs accepting transcripts, there is no need to run Verifier in this case.¶
Verification of multiple batchable NARG strings MAY be done more efficiently than verifying each NARG string on its own, via batch verification. Batch verification can be more efficient even in the presence of a single instance, provided the instance has at least a few equations. Batch verification is a local verifier-side optimization, which affects neither the prover nor the NARG string.¶
Batch verification is done by re-computing the verifier challenge of each NARG string individually (Section 5.2), and then checking a single random linear combination of the verification equations of the whole batch. See Section 8.2 of [RFC8032], [BDLSY11], and [BellareGR98].¶
The verification equation for Nt transcripts (commitment, challenge, response) of preimages of linear relations is:¶
commitment[i][j] + challenge[i] * image(instances[i])[j]
== map(instances[i], response[i])[j]
¶
for each transcript index i and each equation index j.
Batch verification consists of sampling uniformly random scalars batching_randomness[i][j] (for i = 0, ..., Nt - 1 and j = 0, ..., num_equations(instances[i]) - 1) and checking the single equation:¶
sum( batching_randomness[i][j] * commitment[i][j] + batching_randomness[i][j] * challenge[i] * image(instances[i])[j] - batching_randomness[i][j] * map(instances[i], response[i])[j] for i in 0, ..., Nt - 1 for j in 0, ..., num_equations(instances[i]) - 1 ) == Group.identity()¶
Similarly to batch verification of Ed25519 signatures [BDLSY11], a false NARG string will be accepted with probability at most 2^-128, which is negligible. In general, for batching_randomness elements drawn uniformly from a set of 2^t scalars, a false NARG string will be accepted with probability at most 2^-t.¶
It is RECOMMENDED that the batching randomness be generated deterministically, with the duplex sponge of [fiat-shamir] as follows; it MAY instead be freshly sampled from a cryptographically secure random number generator. Below, session_ids[i] is the 32-byte session identifier of the i-th NARG string being verified (Section 5.1).¶
1. batching_sid = DeriveSessionID(
"irtf-cfrg-sigma-protocols/batch-verify")
2. duplex_sponge = DS.Init(batching_sid)
3. for i in 0, ..., Nt - 1:
4. duplex_sponge.Absorb(session_ids[i])
5. duplex_sponge.Absorb(SerializeLinearRelation(instances[i]))
6. duplex_sponge.Absorb(narg_strings[i])
7. batching_randomness_bytes = duplex_sponge.Squeeze(
16 * sum(num_equations(instances[i]) for i in 0, ..., Nt - 1))
¶
The session identifier has fixed length, and the length of each NARG string is determined by the respective instance.¶
The squeezed output is read in row-major order (for example, the second batching randomness corresponds to the second equation of the first transcript). Each 16-byte chunk is interpreted as a little-endian integer via LE2IP (Section 2.1). The batching randomness elements are uniform in [0, 2^128) and are used as scalars without further reduction.¶
8. k = 0
9. for i in 0, ..., Nt - 1:
10. for j in 0, ..., num_equations(instances[i]) - 1:
11. batching_randomness[i][j] =
LE2IP(batching_randomness_bytes[16*k : 16*(k+1)])
12. k = k + 1
¶
The batch verifier MUST perform instance validation for each instance, and MUST compute each of the verifier challenges with DeriveChallenge (Section 5.2). Empty batches are accepted as valid; the batch size MUST be less than 2^32. Upon failure, batch verification does not identify the offending NARG string; an application may fall back to verifying the NARG strings individually.¶
Batch verification is sound only if the prover(s) cannot choose their messages as a function of the batching randomness. When derived deterministically, the batching randomness MUST therefore absorb every value in the batched equation before squeezing. In particular, this includes the response message. Omitting prover messages from the derivation will compromise soundness of batch verification [SOLANA-ZK] [SOLANA-PHANTOM]. When sampled, the batching randomness MUST be drawn only after every NARG string in the batch is received, and MUST NOT be reused across batches. The batch verification procedure MUST NOT reuse the duplex sponge of a NARG verifier.¶
The batching randomness elements MAY be replaced by the successive powers 1, mu, mu^2, ... of a single uniformly random scalar mu, assigned in row-major order (transcripts, then equations) to the pairs (i, j) and computed in the scalar field. In this case, step 7 squeezes 16 bytes instead of 16 * K, where K = sum(num_equations(instances[i]) for i in 0, ..., Nt - 1) is the total number of batched equations, and mu is the little-endian integer they encode, read via LE2IP (Section 2.1), uniformly distributed in [0, 2^128). In this case, an invalid batch is accepted with probability at most (K - 1)/2^128, rather than the 2^-128 achieved by independent sampling.¶
Constant arithmetic operations MAY be preprocessed, provided the security requirements of Section 3.2 hold. For example, implementations may use fixed-base multiplication tables or skip arithmetic for unused scalar variables and zero-coefficient terms (e.g., 0 * x * G).¶
Because num_scalars(instance) is determined by the largest scalar index, a sparse high index can make responses and NARG strings very large. Implementations SHOULD enforce application-specific limits before allocating resources.¶
Multi-scalar multiplication (MSM) algorithms can help evaluate map(instance, scalars) (Section 3.3) and the verification equation. For example, the verifier of Section 4.3 is specified as the equality map(instance, response) == commitment + challenge * image(instance), evaluated as two separate vectors for clarity. Implementations MAY instead verify each equation i by checking that commitment[i] + challenge * image(instance)[i] - sum(response[j] * M[i][j] for j in 0, ..., num_scalars(instance) - 1) is identity(), accumulating all terms in a single MSM per equation. Prioritizing field operations, by evaluating expressions over terms and scalar coefficients, will be faster than computing and summing each term individually.¶
The fastest MSM algorithms, such as Pippenger's bucket method or windowed non-adjacent forms, run in time that depends on the scalars. This is safe, for instance, in the verification equation above, for image computation image(instance), and in SimulateCommitment (Section 4.4): there, every scalar is public.¶
The efficiency considerations of [fiat-shamir] apply here too. Implementations that produce or verify many proofs for the same instance can precompute and reuse the duplex sponge state after the instance is absorbed (steps 1-3 of DeriveChallenge, Section 5.2) across proofs. ValidateInstance (Section 3.5) likewise depends only on the instance, and can be checked once per instance rather than once per proof.¶
A Sigma Protocol run interactively provides the guarantees of Section 7.1. In practice, however, Sigma Protocols are almost always deployed non-interactively via the Fiat-Shamir transformation (Section 5); Section 7.2 describes how these guarantees carry over and what additional care the non-interactive setting requires. In either setting, every guarantee is relative to the instance: Section 7.4 collects the obligations on how prover and verifier construct it and agree on it.¶
The interactive Sigma Protocol of Section 4 has special soundness [Cramer97] [Maurer09]: two accepting transcripts with the same commitment and distinct challenges yield a witness, so a prover that convinces the verifier must know a witness satisfying the proof statement. Knowledge of a witness is meaningful only when the relation is computationally hard: if witnesses are easy to find, the proof conveys nothing.¶
The interactive Sigma Protocol of Section 4 is honest-verifier zero knowledge: the prover messages do not reveal any information beyond what can be directly inferred from the statement itself, so an honest verifier gains no knowledge about the witness [Cramer97].¶
Because interactive Sigma Protocols do not have transferable message authenticity, a third party (neither the prover nor the verifier) cannot be convinced that the prover made the proof. The interaction is thus not transferable as evidence to a third party [JakobssonSI96] [Pass03].¶
The security considerations of [fiat-shamir] apply here as well.¶
Soundness holds only if the encoded instance contains the entire statement being proven (Section 3.6). Omitting any statement element will compromise knowledge soundness of the resulting non-interactive argument [CVE-2022-29566]. For example, consider the verifiable-decryption statement M + E1 = x * E0. If encoded with the single image element F = M + E1, then M and E1 never enter the instance encoding function, and the resulting NARG string is malleable across statements: it verifies (unchanged) for every pair (M', E1') with M' + E1' = F. An attacker can thus present a NARG string generated for one plaintext-ciphertext pair as valid for a different one. Another example: encoding Y = x * (E0 + E1) with the single element K = E0 + E1 as base instead of the two terms x * E0 + x * E1 verifies unchanged for every pair (E0', E1') with E0' + E1' = K. Section 3.2 requires the instance to contain, individually, every group element on which the application's acceptance depends; both examples above violate that requirement while remaining structurally valid (Section 3.5).¶
The challenge is drawn uniformly at random from the scalar field (Section 4.3), and the non-interactive instantiations of Section 5 always derive full-field challenges. Writing C for the set the challenge is drawn from, 1/|C| < 2^-250 for the ciphersuites of Section 8. Compositions of Sigma Protocols (out of scope for this document) MAY restrict the challenge to a smaller challenge set C.¶
Knowledge extraction in the random oracle model requires rewinding the adversary: by the Forking Lemma [PointchevalS00], an adversary that outputs an accepting proof with probability epsilon after q hash queries yields a witness with probability about epsilon^2/q, a quadratic loss. In the algebraic group model (with a random oracle), extraction is instead straight-line (when, for each row of M, finding a non-trivial linear relation among its elements is computationally hard) with total extraction error on the order of q/|C| (Section 9 of [Orru24]).¶
The security considerations of [fiat-shamir] apply here too.¶
In particular, for group elements, deserialization MUST verify that each point is valid, lies on the curve, and in the prime-order (sub-)group suited for cryptographic use. Uncompressed or hybrid forms of [SEC1] MUST be rejected [ChalkiasGN20]. Skipping the on-curve or subgroup check enables invalid-curve attacks [JagerSS15]. Accepting non-canonical field elements will compromise soundness [CVE-2022-23806].¶
For scalars, deserialization MUST reject any value that is not the canonical representative in [0, p) [CVE-2023-33252] [CVE-2025-57801].¶
For compact NARG strings, the verifier MUST recompute the challenge and compare it before accepting.¶
The prover and verifier construct the instance from values they independently hold and trust, such as the group generator. Often, one party will supply elements or scalars to the other (Section 3.4). These are untrusted input, and MUST be checked (Section 7.3). For the verifier, those checks are part of verification. The prover MUST NOT produce a proof over an instance without validating well-formedness of all group elements and scalars first.¶
An instance may have many valid witnesses. For example, X = x * G + 5 * y * G collapses to X = (x + 5 * y) * G, and has p distinct witnesses [x, y] trivial from one another. Likewise, x * H - x * H is valid for any x. In general, the witnesses of an instance form a coset of the kernel of M, and a proof establishes knowledge of a witness only up to that kernel. It is the caller's responsibility to choose relations whose kernel is trivial, or for which finding a non-zero kernel element is computationally hard.¶
The same holds for specific requirements on individual elements. For example, when H is the auxiliary generator of a Pedersen commitment, the caller must ensure that H is not the identity and that the committer knows no discrete-logarithm relation between H and G.¶
The NARG string discloses nothing beyond the truth of the statement the instance encodes. However, if the instance is chosen by the adversary the privacy guarantee might be vacuous. Untrusted inputs to the instance need to be validated by the caller. Instance validation (Section 3.5) checks only the structure of the result; a well-formed instance may encode an attacker-chosen linear map.¶
The entropy source of ProverCommitment MUST provide different scalars for every different input. A re-used nonce reveals the witness [PS3]. (This is the extractor: given different challenges c1 != c2, the witness is (s1 - s2) / (c1 - c2), where s1, s2 are the corresponding responses).¶
The Verifier procedure SHOULD NOT be used interactively with an untrusted verifier: interactive Sigma Protocols only guarantee zero-knowledge against honest verifiers (Section 7).¶
For verification, VerifyBatchable and VerifyCompact SHOULD be used. The non-interactive Fiat-Shamir transformation yields statistically zero-knowledge arguments of knowledge.¶
Implementations SHOULD securely delete prover state as soon as it is no longer needed (witness and instance), and put in place safeguards to prevent re-use of the prover state. Private witness information should not be part of crash dumps and diagnostic logging.¶
The secret values of this document are the witness, the nonces, and the prover state that carries them. The instance and the NARG string are public. All group and field operations whose inputs include secret values SHOULD be constant-time in those values, and randomness SHOULD be derived with straight-line code, avoiding rejection sampling and other methods whose iteration count depends on the entropy drawn (Section 2.2). Implementations MAY skip multiplications by coefficient 1, or test instance coefficients for zero in variable time.¶
The dominant secret-dependent operation is the multi-scalar multiplication map(instance, nonces) in ProverCommitment, whose scalars are secret and whose bases are public instance elements: it SHOULD be constant-time with respect to the scalars, a guarantee group libraries typically offer as an interface separate from their variable-time MSM. The variable-time algorithms of Section 6 leak scalar bits through window sizes and iteration counts, and partial knowledge of the nonces will compromise the witness [HowgraveGrahamS01] [JancarSSS20].¶
In some applications, such as keyed-verification credentials, constant-time implementations are required for the verifier too: there, the instance itself depends on the issuer's secret key. The secret then enters the verification equation through the group elements rather than the scalars, and an MSM that is constant-time only with respect to the scalars is not sufficient: the point arithmetic must not branch on exceptional cases, and the comparison of the two sides of the verification equation must be constant-time.¶
The constant-time requirements of [fiat-shamir] apply here, and extend to the encoding of the instance during challenge derivation. Implementations that expose the simulator (Section 4.1) for OR composition should note that which clause is simulated is itself determined by the witness. Real and simulated clauses SHOULD follow the same code path, with constant-time selection of the desired transcript.¶
Sigma Protocols are unconditionally sound and honest-verifier zero-knowledge. What breaks in the post-quantum setting are the statements themselves. They are preimages of linear maps in groups where the discrete logarithm problem is assumed hard, and they are meaningful only while computing discrete logarithms remains infeasible. Therefore, relations of Section 3.1 SHOULD NOT be used in the presence of quantum adversaries.¶
For instance, in the statement C = m * G + r * H, R = r * G, the witness m is only computationally hidden. The NARG string does not leak the witness. Yet, a quantum adversary may recover r from R and then m from C - r * H, with two discrete logarithm computations.¶
As another example, the statement C = m * G + r * H, D = m * G + s * H, asserting that two commitments open to the same value, is meaningless to a quantum adversary: the commitments bind m only computationally, and an adversary that computes the discrete logarithm of H to the base G can open either of them to any value of its choice.¶
The quantum random-oracle model (QROM) [BDFLSZ11], where the adversary may query the hash function in superposition, is not considered in this document. An analysis of the Fiat-Shamir transformation in the QROM can be found in [DFMS19].¶
Other families of Sigma Protocols, e.g. MPC-in-the-Head [IKOS07], lattice-based [AttemaCK21], or code-based [Stern93] approaches, can provide post-quantum guarantees, but are not specified in this document. The generic AND composition with a post-quantum-sound Sigma Protocol does not upgrade security. For example, the binding of a Pedersen commitment fails against a quantum adversary regardless of the strength of the conjunct statement, so the combined statement is meaningful only while both underlying problems remain hard. See [BonehS23].¶
A ciphersuite for the non-interactive Sigma Protocol (Section 5) is composed of the following parameters:¶
an elliptic curve group, over which the Sigma Protocol of Section 4 is run,¶
a duplex sponge [fiat-shamir].¶
The ciphersuites defined by this document, and the identifiers used by the test vectors, are:¶
| Identifier | Group | Ne | Ns | Duplex Sponge | Security |
|---|---|---|---|---|---|
sigma-proofs_Shake128_P256
|
P-256 (secp256r1) | 33 | 32 | SHAKE128 | 128-bit pre-quantum |
sigma-proofs_Shake128_BLS12381
|
BLS12-381 (G1) | 48 | 32 | SHAKE128 | about 120-bit pre-quantum |
Each row uses the Sigma Protocol of Section 4 over the named group. Ne and Ns are the element and scalar byte lengths of that group. The ciphersuite identifier fixes the group, the codecs, and the hash instantiation, and is included verbatim in the tag (Section 5.1).¶
For every ciphersuite in this document, the verifier challenge is derived with DecodeField(buf, p, 1) exactly as specified in [fiat-shamir]: the scalar field is prime, and its serialization length Ns = 32 equals the smallest integer such that 256^Ns >= p, so provers and verifiers squeeze exactly Ns + 16 = 48 bytes per challenge (Section 5.2). Note that DecodeField interprets the squeezed bytes as a little-endian integer.¶
The groups are prime-order elliptic curve groups, defined as follows.¶
This ciphersuite uses P-256 [NIST-SP-800-186] for the Group.¶
order(): 115792089210356248762697446949407573529996955224135760342422259061068512044369.¶
generator(): the base point G specified in [NIST-SP-800-186]; its compressed serialization is 036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296.¶
serialize([A]): the group element serialization function [fiat-shamir] for [SEC1] (Ne = 33).¶
deserialize(buf): the group element deserialization function of [fiat-shamir], which inverts the conversion above. Every non-identity point MUST perform all checks of Section 5.6.2.3.4 of [NIST-SP-800-56A]. Deserialization MUST accept only compressed form, an Ne-byte that begins with 0x00, 0x02, or 0x03, as specified in [fiat-shamir]).¶
serialize(s): the big-endian fixed-length integer encoding I2OSP (Section 2.1) (Ns = 32).¶
deserialize(buf): OS2IP (Section 2.1); it MUST fail unless the result is in [0, order()).¶
This ciphersuite uses the prime-order subgroup G1 of the BLS12-381 elliptic curve [RFC9380] [PAIRING].¶
order(): 52435875175126190479447740508185965837690552500527637822603658699938581184513.¶
generator(): the generator of G1 specified in Section 4.2.1 of [PAIRING]: 97f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb.¶
serialize([A]): the compressed G1 serialization of Appendix C of [PAIRING] (`Ne = 48).¶
deserialize(buf): inverts the serialization above and MUST perform full point validation.¶
serialize(s): the big-endian fixed-length integer encoding I2OSP (Section 2.1) (Ns = 32).¶
deserialize(buf): OS2IP (Section 2.1); it MUST fail unless the result is in [0, order()).¶
This document has no IANA actions. The ciphersuite identifiers of Section 8 are defined by this document and enter the protocol only as components of the tag (Section 5.1); no registry is established.¶
The authors thank Jan Bobolz, Vishruti Ganesh, Stephan Krenn, Mary Maller, Ivan Visconti, and Yuwen Zhang for reviewing a previous edition of this specification.¶
The authors thank Giap Vu and David Wong (zkSecurity) for their help and contributions.¶
This appendix contains test vectors for the non-interactive Sigma Protocols specified in this document, one section per ciphersuite (Appendix A.2, Appendix A.3). Each ciphersuite section has two subsections: valid proofs, and adversarial vectors. Appendix A.1 pins the randomness used, so that the vectors are reproducible from this document alone.¶
The vectors follow the format specified in the Test Vectors appendix of [fiat-shamir]: a block of Key = Value lines, no key repeated, values inline or indented under their key, and sequences written one - item per line. Every vector carries Id, its stable name, and Function, which is SigmaProof throughout this document. Where [fiat-shamir] identifies the hash suite with Hash, these vectors carry Ciphersuite, which fixes the group and the hash together (Section 8). Every vector also carries Expected, which is accept or reject: unlike the functional vectors of [fiat-shamir], each vector here is a verifier decision.¶
The remaining keys are those of the protocol. Relation names the relation of Section 3.4 and Flavor is batchable or compact; one vector covers one flavor, so Tag, SessionId and NargString are unambiguous. The Witness field, which never appears on the wire, is encoded as the concatenation of Scalar.serialize of the witness scalars, in the order given by each relation.¶
Every adversarial vector carries BaseId, naming the valid vector it is derived from: it re-verifies that transcript under a different tag, statement, or encoding, and a conformant verifier MUST reject it while accepting its baseline. Testing only that the adversarial vectors are rejected is therefore not sufficient; an implementation that rejects every input passes no accept/reject pair. The prose accompanying each vector states which check fails; where the rejection step depends on the implementation's check order, any of the stated rejection points is conformant.¶
Batch verification (Section 5.6) can be tested on any subset of these vectors: a batch of valid batchable proofs MUST verify, and a batch containing any invalid batchable proof MUST be rejected.¶
The randomness for these vectors is drawn from a seeded PRNG, instantiated via a duplex sponge [fiat-shamir] initialized with the session identifier DeriveSessionID(prng_tag).¶
The US-ASCII tag:¶
TestDRNG-SIGMA-PROOFS-{Ciphersuite}-{Relation}
¶
Yields the scalars that build the instance and witness, in the order given by each relation.¶
The tag:¶
TestDRNG-SIGMA-PROOFS-DSFS-{Ciphersuite}-{Relation}
¶
Provides the randomness for the prover in the batchable NARG string. That is, it is used to sample num_scalars(instance) commitment nonces of the batchable proof.¶
Finally, the tag:¶
TestDRNG-SIGMA-PROOFS-CMPT-{Ciphersuite}-{Relation}
¶
Provides the randomness for the prover in the compact NARG strings.¶
Applications MUST NOT use this deterministic pseudorandom generator. The prover's randomness MUST be seeded from operating-system entropy (Section 2.3.2).¶
This section contains vectors for the ciphersuite identified as sigma-proofs_Shake128_P256.¶
Knowledge of a discrete logarithm, X = x * G: the Schnorr relation
given as example in Section 3.1.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = discrete_logarithm Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 SessionId = 72eeaaf4b2af14a6020b59d9b0501f7263bdbb16a403d93d7af1635546dcc503 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 Witness = 9b7b9af133b35ea96e662c4662956909fe465084fe929506980e025022d750be NargString = 037e00143a98c515388e00397c050c46729f010e30752f00172c2e9444cd323e 19a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c Expected = accept¶
Knowledge of a discrete logarithm, X = x * G: the Schnorr relation
given as example in Section 3.1.¶
Id = sigma-protocols/p256/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = discrete_logarithm Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_P256 SessionId = 2934314b80877ce535bf39bb9074bc541c98e171b563b74dff82a63a921c6858 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 Witness = 9b7b9af133b35ea96e662c4662956909fe465084fe929506980e025022d750be NargString = b8cec3a2142ed5c54a25d45364ba64224da03989a3ed7a52b86a1301b936d245 10f48a666ddbd87883648ad4cde196d8c158cb288b280c7532e3602f6a0c5d15 Expected = accept¶
Discrete-logarithm equality, X = x * G and Y = x * H
(Section 3.4).¶
Id = sigma-protocols/p256/dleq/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = dleq Flavor = batchable Tag = dleq-DSFS-with-sigma-proofs_Shake128_P256 SessionId = 322adf7cff2aca1c08e9c7053b1d1d75016d22f1903f1b109f0267034645478c Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000004000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000030000000000000000000000000000000000000000000000 00000000000000000000000103a0d262ccb556df026581adf2ea6ea52cf69ca3 9f0644b89e43471cb40d921b0503dc308f6d1c515121d2334015b95254336a60 8a78031809b31099aadadcb566350241d6b25cf581b93fb4f769f1d88aa571df e9d3f2e451b2f779e8da710ae0015b Witness = b4fbb257ea2f224915a82a630ff348069e2b25bafdcf6255322c9fa0dfb6340a NargString = 0203ed31e0d73b821eba236b903f83ddd6e60e59a77249462be32fc43ab4d5dd 7e038ad4a96b49f6e29ea0afcb6a329632b5e3cdea70137e965515219da19be4 49763209aa1f8c3a6b82ae4ddeed64c2d28003b242c54090ef09c4322ef66a98 2b43 Expected = accept¶
Discrete-logarithm equality, X = x * G and Y = x * H
(Section 3.4).¶
Id = sigma-protocols/p256/dleq/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = dleq Flavor = compact Tag = dleq-CMPT-with-sigma-proofs_Shake128_P256 SessionId = 6f3abd4c1daaa824fce769441e9f5c724021ee723174190745be999dbfeca92f Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000004000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000030000000000000000000000000000000000000000000000 00000000000000000000000103a0d262ccb556df026581adf2ea6ea52cf69ca3 9f0644b89e43471cb40d921b0503dc308f6d1c515121d2334015b95254336a60 8a78031809b31099aadadcb566350241d6b25cf581b93fb4f769f1d88aa571df e9d3f2e451b2f779e8da710ae0015b Witness = b4fbb257ea2f224915a82a630ff348069e2b25bafdcf6255322c9fa0dfb6340a NargString = 5439ce3609b91a4dd9b27b10e62b469a6e7ddba5b8a6aac7239d53f16e6837c0 3c0e0bdd00091a39a38c4b3d184b518b1e796eca262dc570eafaf449117a3c42 Expected = accept¶
Knowledge of the opening of a Pedersen commitment, C = m * G + r * H
(Section 3.4).¶
Id = sigma-protocols/p256/pedersen_commitment/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = pedersen_commitment Flavor = batchable Tag = pedersen_commitment-DSFS-with-sigma-proofs_Shake128_P256 SessionId = 6d12e90fc2e3d74d9496ff609cd49f1013c6319da01b7aba5383f6b46789985e Instance = 0100000001000000030000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000002000000 0000000000000000000000000000000000000000000000000000000000000001 0206c16fcf4c4017adb8908fb2ec0aba8ea9edd683ae38eac52d59f040956be8 f803e8372937cb2d0d9d0d48263ecd0a1d4b96207bceb3806739757fcad774f9 2642 Witness = 25c9fd63403d0da31081857537ade64b637c80ed2338639148a9938b3562ea06 afc354c8985ee3cb61b83af2f7a5bb2abeb7d510db5168b6ede21b4910594a2b NargString = 03491976f248dcde9ecf9c4536754cb2e81b61be73999efd8e82d061cabf3a49 4366bacc0e4766532738c1877a528d3f6711d61f36d2653200d1ddeacb1787af b90b3b192754bf116d386edcc7a93a8204a9a09ac8b4ca93b248dd5e8381ea4b 3f Expected = accept¶
Knowledge of the opening of a Pedersen commitment, C = m * G + r * H
(Section 3.4).¶
Id = sigma-protocols/p256/pedersen_commitment/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = pedersen_commitment Flavor = compact Tag = pedersen_commitment-CMPT-with-sigma-proofs_Shake128_P256 SessionId = 4d241bd0f43a3a162d0671aa263a8285f51d22d848d08b0f9e2e747f20b19d89 Instance = 0100000001000000030000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000002000000 0000000000000000000000000000000000000000000000000000000000000001 0206c16fcf4c4017adb8908fb2ec0aba8ea9edd683ae38eac52d59f040956be8 f803e8372937cb2d0d9d0d48263ecd0a1d4b96207bceb3806739757fcad774f9 2642 Witness = 25c9fd63403d0da31081857537ade64b637c80ed2338639148a9938b3562ea06 afc354c8985ee3cb61b83af2f7a5bb2abeb7d510db5168b6ede21b4910594a2b NargString = c865818d664aed2b586a5c7a70ee09d435e351651b8b82993f53f3bc1751c29b 655e3006c14693c0ac8e29a37108b52b795cbb4d9afc657669195508253e531f 8b71106f53cb395aafc38d209214a1edb2f3312da0992a48809561beca62b03e Expected = accept¶
Two Pedersen-form equations sharing both witness scalars, X = x0 * G0 +
x1 * G1 and Y = x0 * G2 + x1 * G3 (Section 3.4).¶
Id = sigma-protocols/p256/pedersen_commitment_dleq/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = pedersen_commitment_dleq Flavor = batchable Tag = pedersen_commitment_dleq-DSFS-with-sigma-proofs_Shake128_P256 SessionId = 688476139ac68ba996cc86d0331830b18fe2b5c8ab87038d4cf622d7c897c1cf Instance = 0200000001000000040000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000020000000000000000000000 0000000000000000000000000000000000000000000000010100000003000000 0000000000000000000000000000000000000000000000000000000000000001 0100000007000000000000000000000000000000000000000000000000000000 0000000000000001020000000000000005000000000000000000000000000000 0000000000000000000000000000000000000001010000000600000000000000 0000000000000000000000000000000000000000000000000000000102120b29 125003d5d494503fd47fa4057e761c1cb1632e8965233b8f8dfadd9d2503dc92 fe87397abd7e0beded9099032d680f46280672afeb1682e46b45e046d5b302a2 8a33dc8792cb198a9d7942eb1a34909373a5f382e8e68983a54f6fba75875502 76d70754e0a8f249a41695d5db16f8765d27a46a19dfcd8c1fdc7ac5896f46f5 03ccdb0adda1a852cac38054215e298b8d4b19823e3a66b9a80e44d063935de4 09028ef1cfa2468871b4b5116a6709c8df1f722180fc4fc1ad6e5db991660be7 8915 Witness = 1242ef15dea6fafe29b8d3e9ba859d0489744d46cc8b52563c445dcd0ee62854 b80c18e412222e458decdfbecd398b8036df12500008fac1a8f16eecb517bf54 NargString = 03e2aa1a7e5b705690b8fc4859dc9353a8ca262c6f11016306a9a84664e55f48 fc0268b6aeff56dbd1517e0721f62a59fe09fa2f523972ad06f3a6ccd75d82f8 6e95feccdea380011cfaf162a975e3929461986246665e4860d2be13aa728e89 c3d12751b3994e7cf5466e4f75ef681dc1e001e3dce43eac5126ad42bae707ef d9ab Expected = accept¶
Two Pedersen-form equations sharing both witness scalars, X = x0 * G0 +
x1 * G1 and Y = x0 * G2 + x1 * G3 (Section 3.4).¶
Id = sigma-protocols/p256/pedersen_commitment_dleq/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = pedersen_commitment_dleq Flavor = compact Tag = pedersen_commitment_dleq-CMPT-with-sigma-proofs_Shake128_P256 SessionId = ef423a52be5ad7d7d8e499aa870634f5ac3fc424b89fdc96aa72d8c5361e79d1 Instance = 0200000001000000040000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000020000000000000000000000 0000000000000000000000000000000000000000000000010100000003000000 0000000000000000000000000000000000000000000000000000000000000001 0100000007000000000000000000000000000000000000000000000000000000 0000000000000001020000000000000005000000000000000000000000000000 0000000000000000000000000000000000000001010000000600000000000000 0000000000000000000000000000000000000000000000000000000102120b29 125003d5d494503fd47fa4057e761c1cb1632e8965233b8f8dfadd9d2503dc92 fe87397abd7e0beded9099032d680f46280672afeb1682e46b45e046d5b302a2 8a33dc8792cb198a9d7942eb1a34909373a5f382e8e68983a54f6fba75875502 76d70754e0a8f249a41695d5db16f8765d27a46a19dfcd8c1fdc7ac5896f46f5 03ccdb0adda1a852cac38054215e298b8d4b19823e3a66b9a80e44d063935de4 09028ef1cfa2468871b4b5116a6709c8df1f722180fc4fc1ad6e5db991660be7 8915 Witness = 1242ef15dea6fafe29b8d3e9ba859d0489744d46cc8b52563c445dcd0ee62854 b80c18e412222e458decdfbecd398b8036df12500008fac1a8f16eecb517bf54 NargString = 889b772b3a090bb4849222bf7a05abe7667bb0412096e01963e210131c863f63 55ef1a932490ec8366d551e3b99c0d34035f15226508f20add6ac87c8b67e223 7bff9c0768b0e1bbad32a578661ca76331845dec445660b21ac394cb7555e413 Expected = accept¶
The blind commitment computation of [BBSBlind], C = blind * Q2 +
msg_1 * J1 + msg_2 * J2 + msg_3 * J3.¶
Id = sigma-protocols/p256/bbs_blind_commitment_computation/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = bbs_blind_commitment_computation Flavor = batchable Tag = bbs_blind_commitment_computation-DSFS-with-sigma-proofs_Shake128_P256 SessionId = 72af721d175eb7b0c975ab01d37b8770077ce6bf9e81779188f59cb51a31bcbc Instance = 0100000001000000060000000000000000000000000000000000000000000000 0000000000000000000000010400000000000000020000000000000000000000 0000000000000000000000000000000000000000000000010100000003000000 0000000000000000000000000000000000000000000000000000000000000001 0200000004000000000000000000000000000000000000000000000000000000 0000000000000001030000000500000000000000000000000000000000000000 000000000000000000000000000000010202eaa274def05ab048396033e7f2d7 638851a60131af9759a016e3eff592941c02b4f47e54f51d447c160ecf71c456 a8e0d513d593c07bfaac23a373a4b51ca868034f75a59df8f7f10f97fcd9bdaf 24a3b0c5ea403167929f4fcab9d4e3f483747c02f86566f754588d585264dac4 f3650cf8ff53ec716ed21dfd07213058d8fc78020390ef88459ded35acdbe56d 986dad595f45a8b6f190bbce3ddb5908308f6115b5 Witness = af35a44a86ed7403467f49203e8c79501e70f039b113cd1753993f84977d95ac 13cadbba0e76ff85edd77b7340ba0396e45671dff7229dc424faa180dba435ba 334d189229fa64202a6182e85d80497f21f250fa467ded4cf8152154af76c241 0a3c8706d1a6d4623d89b5b9213c59e1163975d6ef7abc8311682ddfe6d7390b NargString = 03206f70cc509ce8660cca8caa1f3b403f143c006705fe72daf4cb083be82495 849b21cc13b4e40300b3b63a03fa86eac1f0871dd619d227e90bfd3c34ff0ddf 68d7ffcf46bd1df8fa709d07ebdb91298850f2c699b56e40288fa3bd0d4a1fcc bf3e7ad849735256a9769fc193d6db1a2ac3d5408cb33d880fbbcf5afabab790 fffe64c2ccb2ec789305b9d03cc01fbc47ee06dd924f173e241529c6ae9c8289 c8 Expected = accept¶
The blind commitment computation of [BBSBlind], C = blind * Q2 +
msg_1 * J1 + msg_2 * J2 + msg_3 * J3.¶
Id = sigma-protocols/p256/bbs_blind_commitment_computation/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = bbs_blind_commitment_computation Flavor = compact Tag = bbs_blind_commitment_computation-CMPT-with-sigma-proofs_Shake128_P256 SessionId = 079c5d8e65618f746d72d2881bbb630155565d95375eb27619581b1e937a697d Instance = 0100000001000000060000000000000000000000000000000000000000000000 0000000000000000000000010400000000000000020000000000000000000000 0000000000000000000000000000000000000000000000010100000003000000 0000000000000000000000000000000000000000000000000000000000000001 0200000004000000000000000000000000000000000000000000000000000000 0000000000000001030000000500000000000000000000000000000000000000 000000000000000000000000000000010202eaa274def05ab048396033e7f2d7 638851a60131af9759a016e3eff592941c02b4f47e54f51d447c160ecf71c456 a8e0d513d593c07bfaac23a373a4b51ca868034f75a59df8f7f10f97fcd9bdaf 24a3b0c5ea403167929f4fcab9d4e3f483747c02f86566f754588d585264dac4 f3650cf8ff53ec716ed21dfd07213058d8fc78020390ef88459ded35acdbe56d 986dad595f45a8b6f190bbce3ddb5908308f6115b5 Witness = af35a44a86ed7403467f49203e8c79501e70f039b113cd1753993f84977d95ac 13cadbba0e76ff85edd77b7340ba0396e45671dff7229dc424faa180dba435ba 334d189229fa64202a6182e85d80497f21f250fa467ded4cf8152154af76c241 0a3c8706d1a6d4623d89b5b9213c59e1163975d6ef7abc8311682ddfe6d7390b NargString = 7f3c332fa51b54e86031e45088c3b206ad16e2c4f0ae3bb552d8019acf9dd79c 712d4b7c77f44ea5a14983dfdcba7e5aaef846fc071afdd709ea2aef9213ff31 84352110ec1f5899e3318c8af86ca78ecec22ac31d8b0899ca729393bf64cebe 2f9316401b7ab6ce1026d5ff9b7e163cbd8b787ccada0ab82e251da8e3f965c6 c18b76d9839f72867d0251abec4f3461501b0208c808386cbcc935c0480f5153 Expected = accept¶
Correct ElGamal decryption, X = x * G and M = x * E0 - E1
(Section 3.4).¶
Id = sigma-protocols/p256/elgamal_decryption/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = elgamal_decryption Flavor = batchable Tag = elgamal_decryption-DSFS-with-sigma-proofs_Shake128_P256 SessionId = b9125fe73ce90119db10799a9669a1ee47f6bc7b1dc7e0e8ab00296df6159657 Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010200000005000000 0000000000000000000000000000000000000000000000000000000000000001 0400000000000000000000000000000000000000000000000000000000000000 0000000101000000000000000300000000000000000000000000000000000000 000000000000000000000000000000010372462b86837aaadb6ec2348fc4a602 9f7ae77e9aea238017bebbbe469dd299be039f3ab1733887055e7f18884bc8d6 66d2461925888f366009aeefcaaffd94900e02597c2dd8b7bd7c2c9864efa356 ed285103582e75c001fbd8400aaf618790fa93036d21e24e585051080212d7ee b3884dcb28017e91d50967bcd432bbd9a8cf4986 Witness = 14375a0f9d92dd6fd4b67cb11de6f81b54c101f6e846cd8817dce6db7b30fb4c NargString = 02f2de68f98653dc53ef1832f363b62fd68837f7b5d17080e068e4450ef35bc5 2f036ae8948f8836f4c38bf16298de1179a4641f6a11e2222457160ff4f8963b 728673acec1e1c9afabd9a0ebee222254f1743c01d201b1d6606021707206e15 dba1 Expected = accept¶
Correct ElGamal decryption, X = x * G and M = x * E0 - E1
(Section 3.4).¶
Id = sigma-protocols/p256/elgamal_decryption/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = elgamal_decryption Flavor = compact Tag = elgamal_decryption-CMPT-with-sigma-proofs_Shake128_P256 SessionId = cf4b3a76432ab31da160eb35049dde5afea29635eaadc9a79c59a04771b0908f Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010200000005000000 0000000000000000000000000000000000000000000000000000000000000001 0400000000000000000000000000000000000000000000000000000000000000 0000000101000000000000000300000000000000000000000000000000000000 000000000000000000000000000000010372462b86837aaadb6ec2348fc4a602 9f7ae77e9aea238017bebbbe469dd299be039f3ab1733887055e7f18884bc8d6 66d2461925888f366009aeefcaaffd94900e02597c2dd8b7bd7c2c9864efa356 ed285103582e75c001fbd8400aaf618790fa93036d21e24e585051080212d7ee b3884dcb28017e91d50967bcd432bbd9a8cf4986 Witness = 14375a0f9d92dd6fd4b67cb11de6f81b54c101f6e846cd8817dce6db7b30fb4c NargString = 1a0c7624f3e260f60248904f040be8030d35f3ffa2aa753edb89d0d39e45b093 80dfe181f95f6f29fb356f862551f7e5acb26f7f320fd5026095b1109cd2cea4 Expected = accept¶
The ChaumPedersen relation of Section 3.4 again, with Y = x
* H derived by the prover from its witness rather than received: the
compiled instance matches dleq, and only the tag (hence the proof
bytes) differs.¶
Id = sigma-protocols/p256/dleq_derived_element/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = dleq_derived_element Flavor = batchable Tag = dleq_derived_element-DSFS-with-sigma-proofs_Shake128_P256 SessionId = c14c1f05e26976121b0842e9a64270893d4d7ca1b24e09c7d6b4147e74e9af0d Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000004000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000030000000000000000000000000000000000000000000000 00000000000000000000000103f56baee56b8f80b4bae59bb48c615a7b34ab47 c8f0de3fe6bc23706511a90a0d037100a881faf4f73982c7e3113810c6e56a69 c42c98562a121c15ad1951c8eafa031def6155fd67b1be8e4fd49c7227e576c1 abe0886e5d6a928a015f5d8f08e436 Witness = 45d78f1fff7555932001aa84fb525f9caa8a0949bb8406aaacdd9ce9f06dfdea NargString = 029e903a7f21e67b403658a8b55c2097d0b5ec918a10b4ac965dbbddca20d216 d50374b96946905242651598a20721cce60aaa1a1d84f4f4644ad1abb2ea61eb 435fc1db75038db1a9038b3c5945bbaa57bd059fca461e88fcdc4741e7ff8aa3 ea8d Expected = accept¶
The ChaumPedersen relation of Section 3.4 again, with Y = x
* H derived by the prover from its witness rather than received: the
compiled instance matches dleq, and only the tag (hence the proof
bytes) differs.¶
Id = sigma-protocols/p256/dleq_derived_element/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Relation = dleq_derived_element Flavor = compact Tag = dleq_derived_element-CMPT-with-sigma-proofs_Shake128_P256 SessionId = 5ed1c6effe868eaf259136b7702a342c2bd7aee2028e29dcee0364f8cbe88e2d Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000004000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000030000000000000000000000000000000000000000000000 00000000000000000000000103f56baee56b8f80b4bae59bb48c615a7b34ab47 c8f0de3fe6bc23706511a90a0d037100a881faf4f73982c7e3113810c6e56a69 c42c98562a121c15ad1951c8eafa031def6155fd67b1be8e4fd49c7227e576c1 abe0886e5d6a928a015f5d8f08e436 Witness = 45d78f1fff7555932001aa84fb525f9caa8a0949bb8406aaacdd9ce9f06dfdea NargString = 90e1393e4c16ab77543b188b8d9f6277891b0ebc3b01eeeacdfd5d38b827bd7b a10708aa11af6334ceeabed21f2e2e0216a69b16e1bea40976189d215933173c Expected = accept¶
Deserialization fails on the SEC1 uncompressed prefix 0x04.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/A1 BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 047e00143a98c515388e00397c050c46729f010e30752f00172c2e9444cd323e 19a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c Expected = reject¶
Deserialization fails on the SEC1 hybrid prefix 0x06.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/A2 BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 067e00143a98c515388e00397c050c46729f010e30752f00172c2e9444cd323e 19a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c Expected = reject¶
Deserialization fails on the SEC1 hybrid prefix 0x07.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/A2b BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 077e00143a98c515388e00397c050c46729f010e30752f00172c2e9444cd323e 19a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c Expected = reject¶
Deserialization fails if the x-coordinate is lifted by the field characteristic (x = 5, encoded as x + p): the coordinate is non-canonical.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/A3 BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 02ffffffff000000010000000000000000000000010000000000000000000000 04a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c Expected = reject¶
The padded identity commitment decodes successfully, but the verification equation fails.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/A4 BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 0000000000000000000000000000000000000000000000000000000000000000 00a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c Expected = reject¶
Deserialization fails on x = 1, which has no square root for y.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/A6 BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 0200000000000000000000000000000000000000000000000000000000000000 01a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c Expected = reject¶
Deserialization fails if response[0] is set to order + 1.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/B1 BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 037e00143a98c515388e00397c050c46729f010e30752f00172c2e9444cd323e 19ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc6325 52 Expected = reject¶
Deserialization fails if challenge is set to order + 1.¶
Id = sigma-protocols/p256/discrete_logarithm/compact/B2 BaseId = sigma-protocols/p256/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632552 10f48a666ddbd87883648ad4cde196d8c158cb288b280c7532e3602f6a0c5d15 Expected = reject¶
Verification fails if one trailing 0x00 byte is appended to a valid proof.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/C1 BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 037e00143a98c515388e00397c050c46729f010e30752f00172c2e9444cd323e 19a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c00 Expected = reject¶
Verification fails if a valid proof is truncated by one byte.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/C2 BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 037e00143a98c515388e00397c050c46729f010e30752f00172c2e9444cd323e 19a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 Expected = reject¶
Verification fails if one trailing 0x00 byte is appended to a valid proof.¶
Id = sigma-protocols/p256/discrete_logarithm/compact/C1 BaseId = sigma-protocols/p256/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = b8cec3a2142ed5c54a25d45364ba64224da03989a3ed7a52b86a1301b936d245 10f48a666ddbd87883648ad4cde196d8c158cb288b280c7532e3602f6a0c5d15 00 Expected = reject¶
Verification fails if a valid proof is truncated by one byte.¶
Id = sigma-protocols/p256/discrete_logarithm/compact/C2 BaseId = sigma-protocols/p256/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = b8cec3a2142ed5c54a25d45364ba64224da03989a3ed7a52b86a1301b936d245 10f48a666ddbd87883648ad4cde196d8c158cb288b280c7532e3602f6a0c5d Expected = reject¶
Verification fails on the all-zero compact proof: challenge and response are zero.¶
Id = sigma-protocols/p256/discrete_logarithm/compact/D1 BaseId = sigma-protocols/p256/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 Expected = reject¶
The empty relation, with no equations and no image, is valid.¶
Id = sigma-protocols/p256/empty_relation/batchable/E0 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = empty_relation-DSFS-with-sigma-proofs_Shake128_P256 Instance = 00000000 NargString = "" Expected = accept¶
The instance and proof are accepted even though scalar index 1 appears in no equation.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/E1 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = instance_unconstrained_scalar-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000030000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010200000002000000 0000000000000000000000000000000000000000000000000000000000000001 031ac02e1fd7d885b1e5eb1811abd9c4d03eee8eada37d9c1a860ca3c649b8e2 a302ccab62b6a53592a5bc088188532faa9eee974c21150d6276da6c6d924b6e 2dc1 NargString = 033d85fedbddfd463f0392eeea57107720404fbce572e420fe54fba77bad18b4 b9834260ba32314f5942fada9807725a84612213e0d9cd077a408152cc8888ce 1d53c677da45813656460981b5486f84b75cac23d94fd31d62b1b700f5c0ac94 f5a9a8aff056ca55160b48736276aa8c5d6cdc502147814b99bad208d3e9cdfc ef Expected = accept¶
Because scalar index 1 is unconstrained, changing response[1] in a valid
proof produces another valid proof.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/E1b Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = instance_unconstrained_scalar-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000030000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010200000002000000 0000000000000000000000000000000000000000000000000000000000000001 031ac02e1fd7d885b1e5eb1811abd9c4d03eee8eada37d9c1a860ca3c649b8e2 a302ccab62b6a53592a5bc088188532faa9eee974c21150d6276da6c6d924b6e 2dc1 NargString = 033d85fedbddfd463f0392eeea57107720404fbce572e420fe54fba77bad18b4 b9834260ba32314f5942fada9807725a84612213e0d9cd077a408152cc8888ce 1d53c677da45813656460981b5486f84b75cac23d94fd31d62b1b700f5c0ac94 f6a9a8aff056ca55160b48736276aa8c5d6cdc502147814b99bad208d3e9cdfc ef Expected = accept¶
The instance and proof are accepted when the image terms X + (-X) sum to the identity.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/E2 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = instance_trivial_equation-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000002000000020000000000000000000000000000000000000000000000 0000000000000000000000010300000000000000000000000000000000000000 0000000000000000000000000000000101000000000000000100000000000000 00000000000000000000000000000000000000000000000000000001031db20b c00c5012329627c85174b00ade13788636ce3ce3842e0fc1dde4179ca5021db2 0bc00c5012329627c85174b00ade13788636ce3ce3842e0fc1dde4179ca5 NargString = 022fb88456a6a7f8d974b129ec99f3745ffd9e3dcbae9771815571d4c4087a12 088aa155e5f5e22708f62eec3e7425026489340ed065e835229f1a5010637696 d9 Expected = accept¶
An instance containing the identity element is accepted.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/E3 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = instance_identity_element-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000030000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000002000000 0000000000000000000000000000000000000000000000000000000000000001 0000000000000000000000000000000000000000000000000000000000000000 0003871d14718441e23004e5c432427775bde2e9244f75550e839d210556bde1 cad0 NargString = 02b9d1353c5f3bf39418f2ea4bb8f8ba63cef1e8cc7eb14f51242c31ec17765a 5fd2995d319c4066ae5a6e462b6df73d7a3fa96528f6df4f06427792f5fbf918 173d803b926c49616e4505826af6862afd0746974c0cc0305f57a35580738a76 8e Expected = accept¶
Instance validation fails if a term references element index 3 while a single element follows; parsers may instead reject on length.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/E4 BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = instance_index_out_of_bounds-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000030000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 037e00143a98c515388e00397c050c46729f010e30752f00172c2e9444cd323e 19a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c Expected = reject¶
A valid NARG string verifies under the tag it was produced for.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/F1 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 037e00143a98c515388e00397c050c46729f010e30752f00172c2e9444cd323e 19a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c Expected = accept¶
Verification fails under a different tag.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/F1b BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm/wrong-session-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 037e00143a98c515388e00397c050c46729f010e30752f00172c2e9444cd323e 19a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c Expected = reject¶
A valid NARG string verifies under the tag it was produced for.¶
Id = sigma-protocols/p256/discrete_logarithm/compact/F1 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = b8cec3a2142ed5c54a25d45364ba64224da03989a3ed7a52b86a1301b936d245 10f48a666ddbd87883648ad4cde196d8c158cb288b280c7532e3602f6a0c5d15 Expected = accept¶
Verification fails under a different tag.¶
Id = sigma-protocols/p256/discrete_logarithm/compact/F1b BaseId = sigma-protocols/p256/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = compact Tag = discrete_logarithm/wrong-session-CMPT-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = b8cec3a2142ed5c54a25d45364ba64224da03989a3ed7a52b86a1301b936d245 10f48a666ddbd87883648ad4cde196d8c158cb288b280c7532e3602f6a0c5d15 Expected = reject¶
A valid NARG string verifies against the statement it was produced for.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/F2 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = dleq-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000004000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000030000000000000000000000000000000000000000000000 00000000000000000000000103a0d262ccb556df026581adf2ea6ea52cf69ca3 9f0644b89e43471cb40d921b0503dc308f6d1c515121d2334015b95254336a60 8a78031809b31099aadadcb566350241d6b25cf581b93fb4f769f1d88aa571df e9d3f2e451b2f779e8da710ae0015b NargString = 0203ed31e0d73b821eba236b903f83ddd6e60e59a77249462be32fc43ab4d5dd 7e038ad4a96b49f6e29ea0afcb6a329632b5e3cdea70137e965515219da19be4 49763209aa1f8c3a6b82ae4ddeed64c2d28003b242c54090ef09c4322ef66a98 2b43 Expected = accept¶
Verification fails if the statement's two equations are swapped.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/F2b BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = dleq-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0200000001000000040000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000030000000000000000000000 0000000000000000000000000000000000000000000000010100000002000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000010000000000000000000000000000000000000000000000 00000000000000000000000103a0d262ccb556df026581adf2ea6ea52cf69ca3 9f0644b89e43471cb40d921b0503dc308f6d1c515121d2334015b95254336a60 8a78031809b31099aadadcb566350241d6b25cf581b93fb4f769f1d88aa571df e9d3f2e451b2f779e8da710ae0015b NargString = 0203ed31e0d73b821eba236b903f83ddd6e60e59a77249462be32fc43ab4d5dd 7e038ad4a96b49f6e29ea0afcb6a329632b5e3cdea70137e965515219da19be4 49763209aa1f8c3a6b82ae4ddeed64c2d28003b242c54090ef09c4322ef66a98 2b43 Expected = reject¶
A valid NARG string verifies against the statement it was produced for.¶
Id = sigma-protocols/p256/discrete_logarithm/compact/F2 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = compact Tag = dleq-CMPT-with-sigma-proofs_Shake128_P256 Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000004000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000030000000000000000000000000000000000000000000000 00000000000000000000000103a0d262ccb556df026581adf2ea6ea52cf69ca3 9f0644b89e43471cb40d921b0503dc308f6d1c515121d2334015b95254336a60 8a78031809b31099aadadcb566350241d6b25cf581b93fb4f769f1d88aa571df e9d3f2e451b2f779e8da710ae0015b NargString = 5439ce3609b91a4dd9b27b10e62b469a6e7ddba5b8a6aac7239d53f16e6837c0 3c0e0bdd00091a39a38c4b3d184b518b1e796eca262dc570eafaf449117a3c42 Expected = accept¶
Verification fails if the statement's two equations are swapped.¶
Id = sigma-protocols/p256/discrete_logarithm/compact/F2b BaseId = sigma-protocols/p256/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = compact Tag = dleq-CMPT-with-sigma-proofs_Shake128_P256 Instance = 0200000001000000040000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000030000000000000000000000 0000000000000000000000000000000000000000000000010100000002000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000010000000000000000000000000000000000000000000000 00000000000000000000000103a0d262ccb556df026581adf2ea6ea52cf69ca3 9f0644b89e43471cb40d921b0503dc308f6d1c515121d2334015b95254336a60 8a78031809b31099aadadcb566350241d6b25cf581b93fb4f769f1d88aa571df e9d3f2e451b2f779e8da710ae0015b NargString = 5439ce3609b91a4dd9b27b10e62b469a6e7ddba5b8a6aac7239d53f16e6837c0 3c0e0bdd00091a39a38c4b3d184b518b1e796eca262dc570eafaf449117a3c42 Expected = reject¶
Verification fails if a statement element is changed after proving.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/F3 BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001039db6eb62700691 c3580fbda8fc7ee33f6cfdd5b43203507c1b0533b15d0d1b7e NargString = 037e00143a98c515388e00397c050c46729f010e30752f00172c2e9444cd323e 19a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c Expected = reject¶
Verification fails if a statement element is changed after proving.¶
Id = sigma-protocols/p256/discrete_logarithm/compact/F3 BaseId = sigma-protocols/p256/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001039db6eb62700691 c3580fbda8fc7ee33f6cfdd5b43203507c1b0533b15d0d1b7e NargString = b8cec3a2142ed5c54a25d45364ba64224da03989a3ed7a52b86a1301b936d245 10f48a666ddbd87883648ad4cde196d8c158cb288b280c7532e3602f6a0c5d15 Expected = reject¶
Verification fails if the batchable proof's transcript is re-encoded as a compact NARG string.¶
Id = sigma-protocols/p256/discrete_logarithm/compact/F4 BaseId = sigma-protocols/p256/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 93bac806a40bf7649bd000f052d04ddbc3e5c407e7d895f2818d01076c070d13 a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a687360c Expected = reject¶
Verification fails if the compact proof's transcript is re-encoded as a batchable NARG string: the challenge derived under the batchable tag differs.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/F4b BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 0221f8d84da0727022bf043b23de7c67590535109a3a6c24f4fba9c8732190c6 ea10f48a666ddbd87883648ad4cde196d8c158cb288b280c7532e3602f6a0c5d 15 Expected = reject¶
Verification fails if response[0] is increased by 1.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/H1 BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 037e00143a98c515388e00397c050c46729f010e30752f00172c2e9444cd323e 19a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0d Expected = reject¶
Verification fails if commitment[0] is replaced by a different valid
group element.¶
Id = sigma-protocols/p256/discrete_logarithm/batchable/H2 BaseId = sigma-protocols/p256/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = 036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c2 96a3e0ebd45a2bcf4ccdbaf720aaf57161612abc4ce2ad1d97ff004483a68736 0c Expected = reject¶
Verification fails if challenge is replaced by a different scalar.¶
Id = sigma-protocols/p256/discrete_logarithm/compact/H3 BaseId = sigma-protocols/p256/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_P256 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_P256 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 00000000000000000000000000000000000000000000000103f0f109368d010f 5adf85ad7ce620a87291f3d4cabcf72fd8d2b91bc50f541fa8 NargString = b8cec3a2142ed5c54a25d45364ba64224da03989a3ed7a52b86a1301b936d246 10f48a666ddbd87883648ad4cde196d8c158cb288b280c7532e3602f6a0c5d15 Expected = reject¶
This section contains vectors for the ciphersuite identified as sigma-proofs_Shake128_BLS12381.¶
Knowledge of a discrete logarithm, X = x * G: the Schnorr relation
given as example in Section 3.1.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = discrete_logarithm Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 SessionId = b9a184f47a2038072177099bdfe75e6663e86f0cb6790b7b618102b3f3b2d787 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 Witness = 641c3cdcc72c9b3a84b85df5808de5f37cf4489ca15f1cffdfd105b780ec0682 NargString = a21df433ede15a7e0bb0d8501e24c6c41ba6c36f387bd9961bcbc1acddda5ece 0abe8338bef0293d96d924dafd80ddcb3115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d8 Expected = accept¶
Knowledge of a discrete logarithm, X = x * G: the Schnorr relation
given as example in Section 3.1.¶
Id = sigma-protocols/bls12381/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = discrete_logarithm Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_BLS12381 SessionId = 8651b5e07aef46852f93102b9e9432370b671d4bd84fbfcfd1e224a06e7ae182 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 Witness = 641c3cdcc72c9b3a84b85df5808de5f37cf4489ca15f1cffdfd105b780ec0682 NargString = 2b549a418dc8ac359b946ca91d869653f06058aeab9647f57e1f56251cd3e7a3 49a94d7454a6bbaab6124a4573fb684983886d1d876989f5d218700c99de8195 Expected = accept¶
Discrete-logarithm equality, X = x * G and Y = x * H
(Section 3.4).¶
Id = sigma-protocols/bls12381/dleq/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = dleq Flavor = batchable Tag = dleq-DSFS-with-sigma-proofs_Shake128_BLS12381 SessionId = 8a5c790e1a988d7ad14e5eecdfbd2fc1ce87e01e788c38e3c2487f8d8898c9cc Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000004000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000030000000000000000000000000000000000000000000000 000000000000000000000001b8a52d4f929a5fc9a27b16941d102b632bac0b06 61265ed04ec9e59d35480f93d4ebefc5af6a06090964444a5ed9abfdac2a3348 158e801ab8f31490543b66ddf04a103dd0bc7f41194f72b575b62d08900aaf6e 7ba8f3672c1b7064b19ecf968f3af22d60210b724fc400f8b8e8547a3f82ba01 7d24199087b0bd1941c21f4c6afa8e1d636914790ee4b80e44908926 Witness = 4a27c7be9fb7612efe553eb66c7120b978433c35625c00c9c530da6e7214db08 NargString = b13432cd2a44f3287e1ee64986f77cfd30bc6e27cb5bb245e5e0d5cd74d7ea59 d64b17f3e612b0a5790bad93d77ea46291f38f62b25f78dae74200765604f560 b5b0459b45404eb953e498497a94757841739571c4fa83ba5b27fb2cd9c01c20 1a4ac38aaf591abd139d65113c0b2a3cb3a7ee334333c3aeb276be865bc882ff Expected = accept¶
Discrete-logarithm equality, X = x * G and Y = x * H
(Section 3.4).¶
Id = sigma-protocols/bls12381/dleq/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = dleq Flavor = compact Tag = dleq-CMPT-with-sigma-proofs_Shake128_BLS12381 SessionId = 244120cf7e64e64f0230270461e2011b7e7a37a4ddd1f10613c5a9ea3d69afb5 Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000004000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000030000000000000000000000000000000000000000000000 000000000000000000000001b8a52d4f929a5fc9a27b16941d102b632bac0b06 61265ed04ec9e59d35480f93d4ebefc5af6a06090964444a5ed9abfdac2a3348 158e801ab8f31490543b66ddf04a103dd0bc7f41194f72b575b62d08900aaf6e 7ba8f3672c1b7064b19ecf968f3af22d60210b724fc400f8b8e8547a3f82ba01 7d24199087b0bd1941c21f4c6afa8e1d636914790ee4b80e44908926 Witness = 4a27c7be9fb7612efe553eb66c7120b978433c35625c00c9c530da6e7214db08 NargString = 54486ea1d23b4ed1d4f95ac91f40fa886d21e7a1e713995985317a4ca4527948 0fc8441bb086ca503e23c9f822b929cd95300380f3c8317f1055307be6f9317f Expected = accept¶
Knowledge of the opening of a Pedersen commitment, C = m * G + r * H
(Section 3.4).¶
Id = sigma-protocols/bls12381/pedersen_commitment/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = pedersen_commitment Flavor = batchable Tag = pedersen_commitment-DSFS-with-sigma-proofs_Shake128_BLS12381 SessionId = e029c091ebd8fea4edbd7025de04170104768f284ab9693ede56a0a6ffb299fc Instance = 0100000001000000030000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000002000000 0000000000000000000000000000000000000000000000000000000000000001 98a75ce3f191eebaed9f6a49b445f423ac6ba6dd2caad41ff2d5a05db9531f35 0d9125914ddacd670af9e851d44c05239482122220076c1aa251a964e649aec8 3af91fb2660b1e1dd1932353a88020c3ef09a805be4d8af09a094eaf2263695f Witness = 513794634e24e09f9eb668c0c1f4dfd6857e303b6b8bc5d08bae5a19e3961ed3 27b79d17769ee1f8c1d774380a3acdb8d70c96f4869fa17fdcaf7a5729804a12 NargString = a35cdeff7ecb8c09e2527e98c6da38d23d8f9ac25affe1be3fec9976428f0b83 7b8b9c62b8726f4ee3522e59a64e6b405597ff3de7cb4ae1a417c1f08d0639a6 8ebe8e5bc51ed8a6970015ef1cc351bb24eabe50b56878852d1bde4bfcd6bf0f a486f3e222eea874127a330fc28ce05a Expected = accept¶
Knowledge of the opening of a Pedersen commitment, C = m * G + r * H
(Section 3.4).¶
Id = sigma-protocols/bls12381/pedersen_commitment/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = pedersen_commitment Flavor = compact Tag = pedersen_commitment-CMPT-with-sigma-proofs_Shake128_BLS12381 SessionId = 0d54417e1f7bbbb652a9230e7e47701d1654bee35c8ae86235864576c86521a4 Instance = 0100000001000000030000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000002000000 0000000000000000000000000000000000000000000000000000000000000001 98a75ce3f191eebaed9f6a49b445f423ac6ba6dd2caad41ff2d5a05db9531f35 0d9125914ddacd670af9e851d44c05239482122220076c1aa251a964e649aec8 3af91fb2660b1e1dd1932353a88020c3ef09a805be4d8af09a094eaf2263695f Witness = 513794634e24e09f9eb668c0c1f4dfd6857e303b6b8bc5d08bae5a19e3961ed3 27b79d17769ee1f8c1d774380a3acdb8d70c96f4869fa17fdcaf7a5729804a12 NargString = 574f37a678d3ba2a0262943f0fb804b79396dc20ed5cd55b06dedd720264dd86 6135f5eb6141b6fccee7b89180d4ca7e02c8fb0d49547d5005078f10cf0105df 3308d2f5c16f3f3d6efe0b78f5c385524956a1be8c05d71625e3a3e5ea01aa54 Expected = accept¶
Two Pedersen-form equations sharing both witness scalars, X = x0 * G0 +
x1 * G1 and Y = x0 * G2 + x1 * G3 (Section 3.4).¶
Id = sigma-protocols/bls12381/pedersen_commitment_dleq/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = pedersen_commitment_dleq Flavor = batchable Tag = pedersen_commitment_dleq-DSFS-with-sigma-proofs_Shake128_BLS12381 SessionId = ce017f3f5b3462089c1b374cdd47271a0d0d3bae7381eb3435830eeaf9c48879 Instance = 0200000001000000040000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000020000000000000000000000 0000000000000000000000000000000000000000000000010100000003000000 0000000000000000000000000000000000000000000000000000000000000001 0100000007000000000000000000000000000000000000000000000000000000 0000000000000001020000000000000005000000000000000000000000000000 0000000000000000000000000000000000000001010000000600000000000000 0000000000000000000000000000000000000000000000000000000192e906e9 85c25121c422faf4c618bd1a1b9a31a563997e0300fc79a90752ec3423b0b607 7a8f1efbf89c4feee7e6f55b85fe8aa4926c2c83d53466c50d7e61f51b071708 e0886e493aec496695ca47ec167c232c892c4dbfb5ab7f62208af10489f0a331 1573d65bc23cb94ff627e7e5855348e476b5d6a2b7fa4daa31d77c20f7a6f44b 059d3fe72dde06ec2b3e29f4973cf3101e95d7c046d2984c5bde86e5ca114357 ef165d2d15018d420aa35a96c109631357d5c2f61997cb3004b5a0d49785c04c 35f1feccfe251efff48c5dcedfaffbab72620d295c0fce75698a7d07ae46d5f4 b2f44602f8cb21af77c53e07b3134ce7555cb8088050c52848913e400eb19141 6af4356dadc545c7e12333ebe29658ab0c3a01d890f9ff0a250bc926 Witness = 6633fad945a9da933660070571afb1deb184bb2d24f542bdee864493dcb30027 05f1a4f40164cbbe8b8a33038ad8458afb6b262c0691f7442b1fb2ad253b60c3 NargString = 93a9baa8ac481ad40ffb0c046c03cc8d05f698c9cce9f24aa004f86d8f2b1756 304a4c9e213c36b95628c1e606d2f448b5f0c6903de76e160f034500b499cb05 ea59240e4e616206e444b2f3842a30a78a50ee8551dda8fb532d07b3f9411895 2267c889108a952e1f9a30660ba533b1c0891ed3d046507a6fbbf7fdc3bca35c 5035d9683c31fd56c5e98146674b07558e1f2994b9b314aff3ba4000ebf627e0 Expected = accept¶
Two Pedersen-form equations sharing both witness scalars, X = x0 * G0 +
x1 * G1 and Y = x0 * G2 + x1 * G3 (Section 3.4).¶
Id = sigma-protocols/bls12381/pedersen_commitment_dleq/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = pedersen_commitment_dleq Flavor = compact Tag = pedersen_commitment_dleq-CMPT-with-sigma-proofs_Shake128_BLS12381 SessionId = 9be697e93cbf8dc535caadba2629113c6c63bb12b6f46a86668e28fb2c9e09ef Instance = 0200000001000000040000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000020000000000000000000000 0000000000000000000000000000000000000000000000010100000003000000 0000000000000000000000000000000000000000000000000000000000000001 0100000007000000000000000000000000000000000000000000000000000000 0000000000000001020000000000000005000000000000000000000000000000 0000000000000000000000000000000000000001010000000600000000000000 0000000000000000000000000000000000000000000000000000000192e906e9 85c25121c422faf4c618bd1a1b9a31a563997e0300fc79a90752ec3423b0b607 7a8f1efbf89c4feee7e6f55b85fe8aa4926c2c83d53466c50d7e61f51b071708 e0886e493aec496695ca47ec167c232c892c4dbfb5ab7f62208af10489f0a331 1573d65bc23cb94ff627e7e5855348e476b5d6a2b7fa4daa31d77c20f7a6f44b 059d3fe72dde06ec2b3e29f4973cf3101e95d7c046d2984c5bde86e5ca114357 ef165d2d15018d420aa35a96c109631357d5c2f61997cb3004b5a0d49785c04c 35f1feccfe251efff48c5dcedfaffbab72620d295c0fce75698a7d07ae46d5f4 b2f44602f8cb21af77c53e07b3134ce7555cb8088050c52848913e400eb19141 6af4356dadc545c7e12333ebe29658ab0c3a01d890f9ff0a250bc926 Witness = 6633fad945a9da933660070571afb1deb184bb2d24f542bdee864493dcb30027 05f1a4f40164cbbe8b8a33038ad8458afb6b262c0691f7442b1fb2ad253b60c3 NargString = 3c12ee5aa74164a9699993afa265de4f734701e2bf7e52871fe0c46d85ea5332 016e79f8c0a0e2057d4716afc9ccad6b3662b6142e9446493449c36d6707e4c8 0e38bc5378a73d3c495a268b95d9db8da1943b2ce498fbc81cfc2045b652563d Expected = accept¶
The blind commitment computation of [BBSBlind], C = blind * Q2 +
msg_1 * J1 + msg_2 * J2 + msg_3 * J3.¶
Id = sigma-protocols/bls12381/bbs_blind_commitment_computation/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = bbs_blind_commitment_computation Flavor = batchable Tag = bbs_blind_commitment_computation-DSFS-with-sigma-proofs_Shake128_BLS12 381 SessionId = 2a5805ac1b5454c5ee85c1d1dd9edcd417a992a718de963f24b188c962457877 Instance = 0100000001000000060000000000000000000000000000000000000000000000 0000000000000000000000010400000000000000020000000000000000000000 0000000000000000000000000000000000000000000000010100000003000000 0000000000000000000000000000000000000000000000000000000000000001 0200000004000000000000000000000000000000000000000000000000000000 0000000000000001030000000500000000000000000000000000000000000000 00000000000000000000000000000001a1d2f5b67fab08902ded92336405309c 6b37f32b3e435ed7b0213555f58fa1f55394ddf070c7b2c1ffeb9a4e72043ce3 a6c3922e0802086d57687391066cf25827154b05982bc17b585272d98ba7a3be 222acb845fef67fc29ae0e9aae085c7ab40ee516a7d08c3a178c5ff6818c598b ed05176adcd57e5ef03fca4d7f3db3a457b47529cd2af4a47845b38e0de2df1d b2c01bd2aa2ff4b0cbe41e8b04de59ce28d60849621b7409a19d51c7ef83ca68 f1d6b1f78665c9735477bb4f354880a0a81862f2e43f3c01765ce2104b0f1f22 8bc890da4a3ae973d7a14a7584af797b9526062591b1735f4bd01396beaad8ea Witness = 28288611c102591a64e5d092e2ce83cc10f8d15f094f1342e7d74bd13b85da56 148a573a14e1c0c340ed3b0505ef72f3e308410156ed657b6690662bf22b73c6 393c117132d5a600b63968dfd4b03480b89cf5aff74ec52749a6086b50878c62 1e6ea7c86713a9e429396b2be43a403ed1d435367f157b9c8370e9f223ba479a NargString = 977956f7bad0c7473dfffc0fc9c83e6a875dc84944c8d7e6d43e37111f26b4ce 1e34dc254886cf4560b5ca988c8b4a11449c6fd5d9601c5fbd14a018e5940351 647c89107a21ba6fc220b134ec48b7be382f9d655c9822ac1aa4807eb71c24b2 98e4a1971c047631d60e397b7e982c2164c5d5c94a91cf7913df0902155e3f72 396afb0422e4dac53bdce18e7f5f9c1762325f28231f631507f2e863bd4561c5 8bc82f735c039cafb912fe8bd2da47e1 Expected = accept¶
The blind commitment computation of [BBSBlind], C = blind * Q2 +
msg_1 * J1 + msg_2 * J2 + msg_3 * J3.¶
Id = sigma-protocols/bls12381/bbs_blind_commitment_computation/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = bbs_blind_commitment_computation Flavor = compact Tag = bbs_blind_commitment_computation-CMPT-with-sigma-proofs_Shake128_BLS12 381 SessionId = d44869a3b7c697750425649f4ff70570a192a6afc76d86f233d1d11c6f88e996 Instance = 0100000001000000060000000000000000000000000000000000000000000000 0000000000000000000000010400000000000000020000000000000000000000 0000000000000000000000000000000000000000000000010100000003000000 0000000000000000000000000000000000000000000000000000000000000001 0200000004000000000000000000000000000000000000000000000000000000 0000000000000001030000000500000000000000000000000000000000000000 00000000000000000000000000000001a1d2f5b67fab08902ded92336405309c 6b37f32b3e435ed7b0213555f58fa1f55394ddf070c7b2c1ffeb9a4e72043ce3 a6c3922e0802086d57687391066cf25827154b05982bc17b585272d98ba7a3be 222acb845fef67fc29ae0e9aae085c7ab40ee516a7d08c3a178c5ff6818c598b ed05176adcd57e5ef03fca4d7f3db3a457b47529cd2af4a47845b38e0de2df1d b2c01bd2aa2ff4b0cbe41e8b04de59ce28d60849621b7409a19d51c7ef83ca68 f1d6b1f78665c9735477bb4f354880a0a81862f2e43f3c01765ce2104b0f1f22 8bc890da4a3ae973d7a14a7584af797b9526062591b1735f4bd01396beaad8ea Witness = 28288611c102591a64e5d092e2ce83cc10f8d15f094f1342e7d74bd13b85da56 148a573a14e1c0c340ed3b0505ef72f3e308410156ed657b6690662bf22b73c6 393c117132d5a600b63968dfd4b03480b89cf5aff74ec52749a6086b50878c62 1e6ea7c86713a9e429396b2be43a403ed1d435367f157b9c8370e9f223ba479a NargString = 4d9aa10203635029f4b5660d7581ca586b680bb8e4e0dea51a320c9987eb92c1 247cafafc3a38956eda46d44d5f2c152bd6dd32d4b3949b2ea7e1d478a2c3139 223cb902c61527fb3b5dbf24c3119f233d1185cfeac53e76ee1d91b469329026 51206b7d52ec720c8550d99690d12396ccb57c71c9e8aeb8bb08cfe18f4bd177 1150a1f75523d9be368cd560b653e94d643c7cbfa9cf3f21ebddb16e92ed6842 Expected = accept¶
Correct ElGamal decryption, X = x * G and M = x * E0 - E1
(Section 3.4).¶
Id = sigma-protocols/bls12381/elgamal_decryption/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = elgamal_decryption Flavor = batchable Tag = elgamal_decryption-DSFS-with-sigma-proofs_Shake128_BLS12381 SessionId = f3606306ba6a9e7497185a0dd337bee9364dd4b4cd889704fc40ce74412dffeb Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010200000005000000 0000000000000000000000000000000000000000000000000000000000000001 0400000000000000000000000000000000000000000000000000000000000000 0000000101000000000000000300000000000000000000000000000000000000 00000000000000000000000000000001a73aa2551fd1f24865adb5b9a84f63ef b8d2cab44fcf21dfa9e587dcabff2a0ffa36a93a82df2027ec32288160f0ebd3 835f420c8a573cde22b41e8b427fda9427e9ab5d6bca17cdc4d045c8dd37091a a7315f499646c01861faf1a96f863776a002ade8d4092fd89a457856e9b7afd6 cbe26135981799f75042353f6e9a3eabf205e3788417e21d67741f16b69837c5 86309903b1709ca1b7aca43326415b5bf7e9eb8f259c631913fc55b3a78021cc bdfde509aa8168b3d949ef129247cfd9 Witness = 6f92d7965b9cb245c7656316af218d42c5625f5234bbbd3eba630c9d6f058a76 NargString = abc0eca21b6faea727caf039722661724aa0ffa84df6cff0540292c4b339b2cb d8a06d8b64846bd48d9f194be457a14785c969bc6583aea3aa84fb9a1be42b90 3a9de7be864d9f50f3ab7cf4c1fa4465ac65ee456fb7c652048ba4a0658d3ef8 3932baa472c5fe3123b685602a178184dbc7fb6b370e3d99e96f0538505a0e3f Expected = accept¶
Correct ElGamal decryption, X = x * G and M = x * E0 - E1
(Section 3.4).¶
Id = sigma-protocols/bls12381/elgamal_decryption/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = elgamal_decryption Flavor = compact Tag = elgamal_decryption-CMPT-with-sigma-proofs_Shake128_BLS12381 SessionId = 7e4a5e42b1686205633d27701ae29f682fb2c748e21c0a8a87d021486652c899 Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010200000005000000 0000000000000000000000000000000000000000000000000000000000000001 0400000000000000000000000000000000000000000000000000000000000000 0000000101000000000000000300000000000000000000000000000000000000 00000000000000000000000000000001a73aa2551fd1f24865adb5b9a84f63ef b8d2cab44fcf21dfa9e587dcabff2a0ffa36a93a82df2027ec32288160f0ebd3 835f420c8a573cde22b41e8b427fda9427e9ab5d6bca17cdc4d045c8dd37091a a7315f499646c01861faf1a96f863776a002ade8d4092fd89a457856e9b7afd6 cbe26135981799f75042353f6e9a3eabf205e3788417e21d67741f16b69837c5 86309903b1709ca1b7aca43326415b5bf7e9eb8f259c631913fc55b3a78021cc bdfde509aa8168b3d949ef129247cfd9 Witness = 6f92d7965b9cb245c7656316af218d42c5625f5234bbbd3eba630c9d6f058a76 NargString = 07fe88a2053c95ee4a31eaa345759823de788fda4e421afa501f99f1eeee8d45 2580e6e5f90db9bcfdacd138569f0d34d65e55612e9ffada52f8c8192da67fcf Expected = accept¶
The ChaumPedersen relation of Section 3.4 again, with Y = x
* H derived by the prover from its witness rather than received: the
compiled instance matches dleq, and only the tag (hence the proof
bytes) differs.¶
Id = sigma-protocols/bls12381/dleq_derived_element/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = dleq_derived_element Flavor = batchable Tag = dleq_derived_element-DSFS-with-sigma-proofs_Shake128_BLS12381 SessionId = 54bbba96ccae65df6e806d77e8869cd48afdbc785038d6f90fa905a14f7d53bf Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000004000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000030000000000000000000000000000000000000000000000 00000000000000000000000199dab5463df27b0f83b0608d830294a57f53d279 fd3c5b719bd25ca5bb9a25a57787f6c92bb933ccaa421588ee4554ff8673f08e 10bee9fe8e7eb4f6a1ef0b60571e84c26710a2d4b0bacf0a49033dc814b2c0c9 3d1e83025f0d9fde75835ac4b1aa95d5868f12734c8183e2222f3c321bd19403 802e635dd2c12731e366be9e5e37af51c283afb582fa8a153f494b1c Witness = 48775faa1051b0df070268dee5c4163b9635ebecb049f9016f3538423a7d227c NargString = abc30c203650564c3318f34ca0a4140728631799358f1004bff7708e2e0e1c80 e5d3550cf546bd78734f35c50a0ef599b3f2f83ece52e1d93bdaff1f9344b03f c5b0f324f0a397f4ba8d10d7bb954e9ae884eaa07dd11d942f925f14ebdd3e29 11a3025eb36866da1582915d58453ac0a7417975461551c8e00feea8300a75a1 Expected = accept¶
The ChaumPedersen relation of Section 3.4 again, with Y = x
* H derived by the prover from its witness rather than received: the
compiled instance matches dleq, and only the tag (hence the proof
bytes) differs.¶
Id = sigma-protocols/bls12381/dleq_derived_element/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Relation = dleq_derived_element Flavor = compact Tag = dleq_derived_element-CMPT-with-sigma-proofs_Shake128_BLS12381 SessionId = f284a4d31c70b703930a48a8f420606f8997f3b52ce41458ed8c827257f01a08 Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000004000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000030000000000000000000000000000000000000000000000 00000000000000000000000199dab5463df27b0f83b0608d830294a57f53d279 fd3c5b719bd25ca5bb9a25a57787f6c92bb933ccaa421588ee4554ff8673f08e 10bee9fe8e7eb4f6a1ef0b60571e84c26710a2d4b0bacf0a49033dc814b2c0c9 3d1e83025f0d9fde75835ac4b1aa95d5868f12734c8183e2222f3c321bd19403 802e635dd2c12731e366be9e5e37af51c283afb582fa8a153f494b1c Witness = 48775faa1051b0df070268dee5c4163b9635ebecb049f9016f3538423a7d227c NargString = 480ec4269c8eb04a690a0d7403cfe3691abc6b90d402711b6e648b3e6b7e13c5 70ca654bad6cf0d4aff13430fbc73c733232c1f54b48220e049364bd97925ed3 Expected = accept¶
Deserialization fails if the compression bit is cleared.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/A1 BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 221df433ede15a7e0bb0d8501e24c6c41ba6c36f387bd9961bcbc1acddda5ece 0abe8338bef0293d96d924dafd80ddcb3115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d8 Expected = reject¶
Deserialization fails if the x-coordinate is lifted by the field characteristic (x = 4, encoded as x + p).¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/A3 BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 9a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f624 1eabfffeb153ffffb9feffffffffaaaf3115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d8 Expected = reject¶
The identity commitment decodes successfully, but the verification equation fails.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/A4 BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = c000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000003115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d8 Expected = reject¶
Deserialization fails on a point (x = 0) on the curve but outside the prime-order subgroup G1.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/A5 BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 8000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000003115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d8 Expected = reject¶
Deserialization fails on x = 1, which is not on the curve (x^3 + 4 is a non-residue).¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/A6 BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 8000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000013115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d8 Expected = reject¶
Deserialization fails if response[0] is re-encoded as s + order: same
value mod p, non-canonical bytes. Reducing instead of rejecting yields
malleability.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/B1 BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = a21df433ede15a7e0bb0d8501e24c6c41ba6c36f387bd9961bcbc1acddda5ece 0abe8338bef0293d96d924dafd80ddcba5039d308e6dfdfa0222b201365e5b5d db6172e5397491469bbaad735d5041d9 Expected = reject¶
Deserialization fails if challenge is re-encoded as c + order
(non-canonical bytes).¶
Id = sigma-protocols/bls12381/discrete_logarithm/compact/B2 BaseId = sigma-protocols/bls12381/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 9f424194b766297dcece44b127286e59441dfcb1ab94a3f47e1f56241cd3e7a4 49a94d7454a6bbaab6124a4573fb684983886d1d876989f5d218700c99de8195 Expected = reject¶
Verification fails if one trailing 0x00 byte is appended to a valid proof.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/C1 BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = a21df433ede15a7e0bb0d8501e24c6c41ba6c36f387bd9961bcbc1acddda5ece 0abe8338bef0293d96d924dafd80ddcb3115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d800 Expected = reject¶
Verification fails if a valid proof is truncated by one byte.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/C2 BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = a21df433ede15a7e0bb0d8501e24c6c41ba6c36f387bd9961bcbc1acddda5ece 0abe8338bef0293d96d924dafd80ddcb3115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041 Expected = reject¶
Verification fails if one trailing 0x00 byte is appended to a valid proof.¶
Id = sigma-protocols/bls12381/discrete_logarithm/compact/C1 BaseId = sigma-protocols/bls12381/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 2b549a418dc8ac359b946ca91d869653f06058aeab9647f57e1f56251cd3e7a3 49a94d7454a6bbaab6124a4573fb684983886d1d876989f5d218700c99de8195 00 Expected = reject¶
Verification fails if a valid proof is truncated by one byte.¶
Id = sigma-protocols/bls12381/discrete_logarithm/compact/C2 BaseId = sigma-protocols/bls12381/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 2b549a418dc8ac359b946ca91d869653f06058aeab9647f57e1f56251cd3e7a3 49a94d7454a6bbaab6124a4573fb684983886d1d876989f5d218700c99de81 Expected = reject¶
Verification fails on the all-zero compact proof: challenge and response are zero.¶
Id = sigma-protocols/bls12381/discrete_logarithm/compact/D1 BaseId = sigma-protocols/bls12381/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 Expected = reject¶
The empty relation, with no equations and no image, is valid.¶
Id = sigma-protocols/bls12381/empty_relation/batchable/E0 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = empty_relation-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 00000000 NargString = "" Expected = accept¶
The instance and proof are accepted even though scalar index 1 appears in no equation.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/E1 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = instance_unconstrained_scalar-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000030000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010200000002000000 0000000000000000000000000000000000000000000000000000000000000001 a52f63244810b5e28b235f33df487fce15bc509eac539e19275e1a0c1ae36de1 79fa412292007a1d6df975de5b8ca0a6a62b428f90a014557c5744b69c6303d0 db7a9c876dd15743738b432a9dd1cfad79790d101eedee3bb441bccd262db1c0 NargString = 8a31aa9ace6268707d6a0213fdf4bd9a4231fc4fec35338998a38b5334723d84 f3c46d55c6ff9104aba7bde3e38b46cd35415233a45b898ad465829ec6e3c86d 0f5a45255b5fef90d256e8db2a3bcbba66858f9cdea27fe6bc9cfbfe2e4eca09 bb6d4d55df818226c6bdb9dab30f31522a273883c88ffb850eaaba4771dff310 13c9967e133f399633cab20cc4e252cc Expected = accept¶
Because scalar index 1 is unconstrained, changing response[1] in a valid
proof produces another valid proof.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/E1b Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = instance_unconstrained_scalar-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000030000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010200000002000000 0000000000000000000000000000000000000000000000000000000000000001 a52f63244810b5e28b235f33df487fce15bc509eac539e19275e1a0c1ae36de1 79fa412292007a1d6df975de5b8ca0a6a62b428f90a014557c5744b69c6303d0 db7a9c876dd15743738b432a9dd1cfad79790d101eedee3bb441bccd262db1c0 NargString = 8a31aa9ace6268707d6a0213fdf4bd9a4231fc4fec35338998a38b5334723d84 f3c46d55c6ff9104aba7bde3e38b46cd35415233a45b898ad465829ec6e3c86d 0f5a45255b5fef90d256e8db2a3bcbba66858f9cdea27fe6bc9cfbfe2e4eca09 bb6d4d55df818226c6bdb9dab30f31532a273883c88ffb850eaaba4771dff310 13c9967e133f399633cab20cc4e252cc Expected = accept¶
The instance and proof are accepted when the image terms X + (-X) sum to the identity.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/E2 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = instance_trivial_equation-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000002000000020000000000000000000000000000000000000000000000 0000000000000000000000010300000000000000000000000000000000000000 0000000000000000000000000000000101000000000000000100000000000000 00000000000000000000000000000000000000000000000000000001b8d20484 960f1741eabb4d0dd0c43e72931d646c09440bf1880a1720daaa3308e7634661 77aa88c313f8a9ad1e406c0e98d20484960f1741eabb4d0dd0c43e72931d646c 09440bf1880a1720daaa3308e763466177aa88c313f8a9ad1e406c0e NargString = 8bf4a4e7cca2a2f88859d0b012289500a49db0b5e4e5df3d778248435ed8b51d 0fb3ca489c9f45e8811bb4cc8d0096f96ad6f36b97912382f39758d4e9f591a8 c1d24c1f3d42a2535161c7b7a9c556a3 Expected = accept¶
An instance containing the identity element is accepted.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/E3 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = instance_identity_element-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000030000000000000000000000000000000000000000000000 0000000000000000000000010200000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000002000000 0000000000000000000000000000000000000000000000000000000000000001 c000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000b8722b4b2a3cc66976d848739df2bfb6 6ae371da496a1e239add4646c35c8b8758409ad4b6312b74d4a98bb83284cb87 NargString = adc1c8943d8bfa5ab165ff1ed2c0f45f71567a404849da3e0b9fbd37266681c1 089d6d9b33116aebdab2972d0cb6db130e30cc66fcdf68ad4c1738b178949d26 13d1da71694e047813cc6ae1fca5233927cda7474b204eb305b1a34bd03641e0 2c6d7bfc0ebb26b1ad58c6721af9c04d Expected = accept¶
Instance validation fails if a term references element index 3 while a single element follows; parsers may instead reject on length.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/E4 BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = instance_index_out_of_bounds-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000030000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = a21df433ede15a7e0bb0d8501e24c6c41ba6c36f387bd9961bcbc1acddda5ece 0abe8338bef0293d96d924dafd80ddcb3115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d8 Expected = reject¶
A valid NARG string verifies under the tag it was produced for.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/F1 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = a21df433ede15a7e0bb0d8501e24c6c41ba6c36f387bd9961bcbc1acddda5ece 0abe8338bef0293d96d924dafd80ddcb3115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d8 Expected = accept¶
Verification fails under a different tag.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/F1b BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm/wrong-session-DSFS-with-sigma-proofs_Shake128_BLS12 381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = a21df433ede15a7e0bb0d8501e24c6c41ba6c36f387bd9961bcbc1acddda5ece 0abe8338bef0293d96d924dafd80ddcb3115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d8 Expected = reject¶
A valid NARG string verifies under the tag it was produced for.¶
Id = sigma-protocols/bls12381/discrete_logarithm/compact/F1 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 2b549a418dc8ac359b946ca91d869653f06058aeab9647f57e1f56251cd3e7a3 49a94d7454a6bbaab6124a4573fb684983886d1d876989f5d218700c99de8195 Expected = accept¶
Verification fails under a different tag.¶
Id = sigma-protocols/bls12381/discrete_logarithm/compact/F1b BaseId = sigma-protocols/bls12381/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = compact Tag = discrete_logarithm/wrong-session-CMPT-with-sigma-proofs_Shake128_BLS12 381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 2b549a418dc8ac359b946ca91d869653f06058aeab9647f57e1f56251cd3e7a3 49a94d7454a6bbaab6124a4573fb684983886d1d876989f5d218700c99de8195 Expected = reject¶
A valid NARG string verifies against the statement it was produced for.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/F2 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = dleq-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000004000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000030000000000000000000000000000000000000000000000 000000000000000000000001b8a52d4f929a5fc9a27b16941d102b632bac0b06 61265ed04ec9e59d35480f93d4ebefc5af6a06090964444a5ed9abfdac2a3348 158e801ab8f31490543b66ddf04a103dd0bc7f41194f72b575b62d08900aaf6e 7ba8f3672c1b7064b19ecf968f3af22d60210b724fc400f8b8e8547a3f82ba01 7d24199087b0bd1941c21f4c6afa8e1d636914790ee4b80e44908926 NargString = b13432cd2a44f3287e1ee64986f77cfd30bc6e27cb5bb245e5e0d5cd74d7ea59 d64b17f3e612b0a5790bad93d77ea46291f38f62b25f78dae74200765604f560 b5b0459b45404eb953e498497a94757841739571c4fa83ba5b27fb2cd9c01c20 1a4ac38aaf591abd139d65113c0b2a3cb3a7ee334333c3aeb276be865bc882ff Expected = accept¶
Verification fails if the statement's two equations are swapped.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/F2b BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = dleq-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0200000001000000040000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000030000000000000000000000 0000000000000000000000000000000000000000000000010100000002000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000010000000000000000000000000000000000000000000000 000000000000000000000001b8a52d4f929a5fc9a27b16941d102b632bac0b06 61265ed04ec9e59d35480f93d4ebefc5af6a06090964444a5ed9abfdac2a3348 158e801ab8f31490543b66ddf04a103dd0bc7f41194f72b575b62d08900aaf6e 7ba8f3672c1b7064b19ecf968f3af22d60210b724fc400f8b8e8547a3f82ba01 7d24199087b0bd1941c21f4c6afa8e1d636914790ee4b80e44908926 NargString = b13432cd2a44f3287e1ee64986f77cfd30bc6e27cb5bb245e5e0d5cd74d7ea59 d64b17f3e612b0a5790bad93d77ea46291f38f62b25f78dae74200765604f560 b5b0459b45404eb953e498497a94757841739571c4fa83ba5b27fb2cd9c01c20 1a4ac38aaf591abd139d65113c0b2a3cb3a7ee334333c3aeb276be865bc882ff Expected = reject¶
A valid NARG string verifies against the statement it was produced for.¶
Id = sigma-protocols/bls12381/discrete_logarithm/compact/F2 Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = compact Tag = dleq-CMPT-with-sigma-proofs_Shake128_BLS12381 Instance = 0200000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 0000000000000000000000000000000000000000000000010100000004000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000030000000000000000000000000000000000000000000000 000000000000000000000001b8a52d4f929a5fc9a27b16941d102b632bac0b06 61265ed04ec9e59d35480f93d4ebefc5af6a06090964444a5ed9abfdac2a3348 158e801ab8f31490543b66ddf04a103dd0bc7f41194f72b575b62d08900aaf6e 7ba8f3672c1b7064b19ecf968f3af22d60210b724fc400f8b8e8547a3f82ba01 7d24199087b0bd1941c21f4c6afa8e1d636914790ee4b80e44908926 NargString = 54486ea1d23b4ed1d4f95ac91f40fa886d21e7a1e713995985317a4ca4527948 0fc8441bb086ca503e23c9f822b929cd95300380f3c8317f1055307be6f9317f Expected = accept¶
Verification fails if the statement's two equations are swapped.¶
Id = sigma-protocols/bls12381/discrete_logarithm/compact/F2b BaseId = sigma-protocols/bls12381/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = compact Tag = dleq-CMPT-with-sigma-proofs_Shake128_BLS12381 Instance = 0200000001000000040000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000030000000000000000000000 0000000000000000000000000000000000000000000000010100000002000000 0000000000000000000000000000000000000000000000000000000000000001 0100000000000000010000000000000000000000000000000000000000000000 000000000000000000000001b8a52d4f929a5fc9a27b16941d102b632bac0b06 61265ed04ec9e59d35480f93d4ebefc5af6a06090964444a5ed9abfdac2a3348 158e801ab8f31490543b66ddf04a103dd0bc7f41194f72b575b62d08900aaf6e 7ba8f3672c1b7064b19ecf968f3af22d60210b724fc400f8b8e8547a3f82ba01 7d24199087b0bd1941c21f4c6afa8e1d636914790ee4b80e44908926 NargString = 54486ea1d23b4ed1d4f95ac91f40fa886d21e7a1e713995985317a4ca4527948 0fc8441bb086ca503e23c9f822b929cd95300380f3c8317f1055307be6f9317f Expected = reject¶
Verification fails if a statement element is changed after proving.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/F3 BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001b94ba65546846b43 9edbfc9da84c1c2d2af3d0ede8c88ec50fce2e1c3f782e932205982683f0802a 4dce313610bbb2db NargString = a21df433ede15a7e0bb0d8501e24c6c41ba6c36f387bd9961bcbc1acddda5ece 0abe8338bef0293d96d924dafd80ddcb3115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d8 Expected = reject¶
Verification fails if a statement element is changed after proving.¶
Id = sigma-protocols/bls12381/discrete_logarithm/compact/F3 BaseId = sigma-protocols/bls12381/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001b94ba65546846b43 9edbfc9da84c1c2d2af3d0ede8c88ec50fce2e1c3f782e932205982683f0802a 4dce313610bbb2db NargString = 2b549a418dc8ac359b946ca91d869653f06058aeab9647f57e1f56251cd3e7a3 49a94d7454a6bbaab6124a4573fb684983886d1d876989f5d218700c99de8195 Expected = reject¶
Verification fails if the batchable proof's transcript is re-encoded as a compact NARG string.¶
Id = sigma-protocols/bls12381/discrete_logarithm/compact/F4 BaseId = sigma-protocols/bls12381/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 4db5f29ea248a1ad0a3c952da4f772d6c79feaa1fb574a09cd526ecdf4feacef 3115f5dd64d080b1cee8d9f92cbc835887a3cee2397635479bbaad745d5041d8 Expected = reject¶
Verification fails if the compact proof's transcript is re-encoded as a batchable NARG string: the challenge derived under the batchable tag differs.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/F4b BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = b87d072b8238866651b08da8276e9ea30125617a5ac1b7fcb6934f43bdfed513 4624ffe8040caccc46560bd101c6488849a94d7454a6bbaab6124a4573fb6849 83886d1d876989f5d218700c99de8195 Expected = reject¶
Verification fails if response[0] is increased by 1.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/H1 BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = a21df433ede15a7e0bb0d8501e24c6c41ba6c36f387bd9961bcbc1acddda5ece 0abe8338bef0293d96d924dafd80ddcb3115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d9 Expected = reject¶
Verification fails if commitment[0] is replaced by a different valid
group element.¶
Id = sigma-protocols/bls12381/discrete_logarithm/batchable/H2 BaseId = sigma-protocols/bls12381/discrete_logarithm/batchable Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = batchable Tag = discrete_logarithm-DSFS-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 97f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac58 6c55e83ff97a1aeffb3af00adb22c6bb3115f5dd64d080b1cee8d9f92cbc8358 87a3cee2397635479bbaad745d5041d8 Expected = reject¶
Verification fails if challenge is replaced by a different scalar.¶
Id = sigma-protocols/bls12381/discrete_logarithm/compact/H3 BaseId = sigma-protocols/bls12381/discrete_logarithm/compact Function = SigmaProof Ciphersuite = sigma-proofs_Shake128_BLS12381 Flavor = compact Tag = discrete_logarithm-CMPT-with-sigma-proofs_Shake128_BLS12381 Instance = 0100000001000000020000000000000000000000000000000000000000000000 0000000000000000000000010100000000000000010000000000000000000000 000000000000000000000000000000000000000000000001ac2de2d5ca1310a4 3b8c5adee4632e69c117edbc6c0e9a259efbefd6e5aedc86a4185f06e74a63bf a648c1c4e8b4b444 NargString = 2b549a418dc8ac359b946ca91d869653f06058aeab9647f57e1f56251cd3e7a4 49a94d7454a6bbaab6124a4573fb684983886d1d876989f5d218700c99de8195 Expected = reject¶