There are two values of cm that match cmx in their x-coordinate.
Because the output of NoteCommitrcm for notetuple is
of the form cm=[f(notetuple)+rcm]R,
for any given note we have exactly two values of rcm that will pass
the commitment check.
Suppose there are N legitimate notes in the tree. The adversary is trying
to find a note that will pass the commitment check without actually being a
note in the tree. As argued above, the distribution of rcm is
indistinguishable from uniform-random on FrP. The
success probability for each attempt in a classical search is therefore
2N/rP where rP is the order of the Pallas curve,
and that is negligible because N≤232≪rP.
We're not finished yet because we also have to prove that the nullifier is
computed deterministically for a given note.
All of the inputs to DeriveNullifier are things we committed to
in the protocol so far except nk. By the same argument used
pre-quantumly, there is only one ivk for a given
(gd,pkd). So in order to just use the existing
protocol for this part, we would need to prove that there is only one
nk (that is feasible to find) such that
Commitrivkivk(ak,nk)=ivk.
Unfortunately that's not true; Commitivk is instantiated by
SinsemillaShortCommit which is not post-quantum binding.
There are two cases depending on which witness branch the adversary
uses (they can choose to attack either, or both simultaneously):
-
Case sk=⊥: The spender must prove knowledge of
sk, and that ak, nk, and rivk
are derived correctly from sk. This works because the
derivations use post-quantum hashes (and ask↦ak
is deterministic).
In particular, ivk is an essentially random function of
sk, and so we expect that an adversary has no better attack
than to search for values of sk
to find one that reproduces a given ivk. Since ivk
must be an x-coordinate of a Pallas curve point (see the note at the end of
§ 4.2.3 Orchard Key Components),
it can take on (rP−1)/2 values. So if there are T targets
the success probability for each attempt in a classical search is
2T/(rP−1), which is negligible provided that
T≪rP.
-
Case qk=⊥: This case is almost the same except that
ivk is now an essentially random function of
(nk,ak,qk). The success probability
in terms of T is also the same as for the sk=⊥
case.
The above security argument means that provided we also check the uses of
Hrcm and Hψ in the post-quantum
Recovery Statement, Orchard-protocol note
commitments can be considered binding on the note tuple
(rseed,noterepr).
Note that the argument associated with
Theorem 5.4.4
in the protocol specification ("SinsemillaHashToPoint(…)=⊥
yields a nontrivial discrete logarithm relation." and
"Since by assumption it is hard to find a nontrivial discrete logarithm
relation, we can argue that it is safe to use incomplete additions when
computing Sinsemilla inside a circuit.") is not applicable when it is
necessary to defend against a discrete-logarithm-breaking or quantum adversary.
Therefore, the post-quantum Recovery Statement
will need to use complete curve additions to implement Sinsemilla.
Security argument for key binding
The security of the Orchard shielded protocol against several attacks depends
on cryptographic keys being bound to a recoverable note's ivk.
Different Orchard-protocol properties need different components of the key
witness pinned:
- Nullifier-binding (used by the Balance argument and by the
Spendability argument below
— the latter via the
nf-pinning lemma):
nk uniquely determined by ivk.
- Spend Authorization: ak (up to y-sign of
akP) and qk uniquely determined by
ivk. This includes uniquely determining the tag of
qk_or_sk, i.e. which of the QK and
SK branches produced the ivk.
The determination of qk must fix the branch itself, not merely
the value of qk within the QK branch. Suppose
an address generated with use_qsk=true —whose owner
authorizes recovery by proving knowledge of qsk via
SoKqsk— shared its ivk with an sk-branch
witness. An adversary holding a suitable sk could then recover
the note through the sk-branch of the
Recovery Statement, authorizing the spend
with SoKsk and never demonstrating knowledge of
qsk. Against a discrete-logarithm-breaking adversary —for which
the accompanying RedDSA signature over ak gives no protection—
this breaks Spend Authorization for such addresses. Ruling out these
cross-branch collisions (both qk-values pinned, ⊥ included)
is therefore a requirement of the argument, not incidental strength.
The formal key-binding condition stated below covers all of these
uniformly: a key-binding break is a pair of distinct witnesses sharing
the same ivk, where each witness carries the full key tuple
— (ak,nk,rivk) plus whichever of
qk or sk is in use. If key binding fails, the
Balance, Spendability, and Spend Authorization arguments each lose
their corresponding pinning step.
Relative to the situation with note commitments where it was reasonable
to only obtain quantum recoverability for newly output Ironwood-pool notes,
there is a complication. Addresses may be used over the long term and
it may not be desirable to switch to new addresses, or to avoid funds
being sent to old ones. Fortunately, the Orchard protocol specified each
of ak, nk, and rivk to be derived from
sk via PRFexpand, which is assumed collapsing.
(rivk is derived differently for an "internal IVK", but that
is also via PRFexpand.)
Classically, the binding of Commitivk —instantiated via
Sinsemilla— fails against a discrete-logarithm-breaking adversary,
similarly to NoteCommit. We use essentially the same fix as
for NoteCommit, with the rivk-derivation hashes
playing the role of Hrcm. The Recovery Statement checks
the derivation of rivk:
The witness carries the branch as a tagged union
qk_or_sk⦂QK(BY[ℓqk/8])∣SK(B[ℓsk])
—following the formalization's sum type— so exactly one branch is
present per witness, by construction. This is equivalent to
case-splitting by use_qsk.
- In the QK branch,
rivk_ext=Hqkrivk_ext(ak,nk).
- In the SK branch,
rivk_ext=Hrivk_legacy(sk), with
ak and nk also derived from sk via
Hask and Hnk.
In either case, rivk is then either rivk_ext
directly (external IVK) or
Hrivk_extrivk_int(ak,nk) (internal
IVK). All of these hashes are modelled as independent random oracles for
the key-binding argument.
As in the Recovery Statement, we have:
BindKeyssk(sk,akP,nk,rivk_ext)=(akP=[Hask(sk)]GOrchard∧nk=Hnk(sk)∧rivk_ext=Hrivk_legacy(sk))
Let the key-binding condition on a witness
w=(ivk,akP,nk,rivk_ext,rivk,qk_or_sk) be:
match qk_or_sk with {QK(qk)SK(sk)⇒rivk_ext=Hqkrivk_ext(ak,nk)⇒BindKeyssk(sk,akP,nk,rivk_ext)(∧rivk∈{rivk_ext,Hrivk_extrivk_int(ak,nk)}∧ivk=Commitrivkivk(ak,nk)∧ivk∈{0,⊥}
where ak=ExtractP(akP).
The predicate intentionally does not constrain the y-sign of
akP. This is consistent with the Orchard protocol's
design choice to use ak as a single FqP
element (the x-coordinate ExtractP(akP)),
which avoids point-decompression in places that consume ak,
in exchange for a factor-of-2 reduction in concrete binding security.
Accordingly, the break event below identifies witnesses up to the
y-sign of akP.
The flags use_qsk and is_internal_rivk that
appear in the protocol diagram do not appear in this witness — nor in
the formal Recovery Statement above. Their roles are absorbed into the
witness's structural form:
- use_qsk is encoded in the tag of qk_or_sk:
the witness carries exactly one of the two branches by construction
(enforced by the tagged form, not by a ⊥-exclusion constraint),
and the branch-specific constraint applies to whichever is present.
- is_internal_rivk is encoded in
rivk∈{rivk_ext,Hrivk_extrivk_int(ak,nk)}:
both rivk derivations are admitted simultaneously.
This formulation is strictly stronger than a flag-conditioned one: a
key-binding break can have w1 and w2 in different branches across
either flag (e.g., w1 in the QK branch and w2 in the
SK branch, or w1 with external rivk and
w2 with internal rivk), provided both produce the same
ivk. A flag-based formulation would forbid only same-branch
breaks. For the use_qsk flag this extra strength is required
by Spend Authorization —forbidding the qk-versus-sk
cross-branch collision described above— and not merely incidental; for
is_internal_rivk it is additional robustness.
A key-binding break is a pair of witnesses (w1,w2) with
shared ivk satisfying the key-binding condition, whose
(ak,nk,rivk,qk_or_sk)
projections differ — i.e., w1 and w2 differ in some component
other than the y-sign of akP.
The random oracles used in the key-binding condition are Hrivk_ext,
Hrivk_legacy, Hrivk_int, Hask, and
Hnk.
Let εkb(A,qkb)
be the probability, over A's randomness and at most qkb
queries in total to these random oracles, that A outputs a
key-binding break. Here qkb counts the derivation inputs of
A's output witnesses among its queries — a convention that is
without loss of generality, by the
accounting normalization in the proof.
Theorem (key-binding, classical ROM).
Let A be a classical adversary making at most qkb
total queries to the random oracles used in the key-binding condition. Then
εkb(A,qkb)≤rPqkb(qkb−1).
Proof sketch.
Algebraic setup.
By § 5.4.1.10 “Sinsemilla commitments”,
Commitrivkivk(ak,nk)=ExtractP(M′+[rivk]S),
where S is the rivk-randomization base
S:=GroupHashP(“z.cash:Orchard-CommitIvk-r”,“”),
and
M′:=SinsemillaHashToPoint(“z.cash:Orchard-CommitIvk-M”,I2LEBSPℓbaseOrchard(ak)∥I2LEBSPℓbaseOrchard(nk)).
By expanding the Sinsemilla bases used inside SinsemillaHashToPoint
as scalar multiples of S, without loss of generality we have
M′=[h(ak,nk)]S for a Pedersen-like
deterministic scalar hash h, so
Commitrivkivk(ak,nk)=ExtractP([h(ak,nk)+rivk]S).
Domain separation in
the protocol's BLAKE2b instantiations ensures h does not query
Hrivk_ext, Hrivk_legacy,
Hrivk_int, Hask, or Hnk:
h depends only on fixed Sinsemilla bases and on (ak,nk).
By the same y2=Y(x) argument used in the Spendability proof
(using § 5.4.9.7 for the ExtractP-style
x-coordinate convention), a key-binding break implies
h(ak,nk)+rivk≡±(h(ak′,nk′)+rivk′)(modrP).
Define G(w):=h(ak,nk)+rivk(modrP)
for a witness w, and let Gi:=G(wi) for i∈{1,2}.
The break condition is
G1≡±G2(modrP).
Final-random-oracle structure.
For each witness wi satisfying the key-binding condition,
rivki is the output of a final random oracle
Oi∈{Hrivk_ext,Hrivk_legacy,Hrivk_int}
at a final input xi, determined by the witness's branch and
IVK choice:
- qk-branch, external IVK: Oi=Hrivk_ext,
xi=(qki,aki,nki).
- sk-branch, external IVK: Oi=Hrivk_legacy,
xi=ski.
- qk-branch, internal IVK: Oi=Hrivk_int,
xi=(rivk_exti,aki,nki) where
rivk_exti=Hqkirivk_ext(aki,nki).
- sk-branch, internal IVK: Oi=Hrivk_int,
xi=(rivk_exti,aki,nki) where
rivk_exti=Hrivk_legacy(ski).
In each case
Gi=h(aki,nki)+Oi(xi)(modrP),
with the deterministic shift h independent of Oi's responses
(by non-querying).
The shifted combined oracle.
Treat the three rivk-derivation oracles
(Hrivk_ext, Hrivk_legacy,
Hrivk_int) as a single combined oracle H∗
on the disjoint union of their input domains. Each instance
contributes outputs uniform on FrP,
independently of the others, by domain separation.
Hask and Hnk are not part of
H∗: they enter only through the shifts below, and their
output types differ.
For a combined input x, define the shift
s(x):=h(ak,nk), with (ak,nk)
read off the input: directly for Hrivk_ext and
Hrivk_int inputs, and via
ak=ExtractP([Hask(sk)]GOrchard),
nk=Hnk(sk) for an
Hrivk_legacy input sk. So s is a function
of the input and of the Hask/Hnk oracles
only; since h is non-querying, s never depends on the
rivk-derivation responses. Define the shifted combined oracle
Hs(x):=s(x)+H∗(x)(modrP).
For every witness satisfying the key-binding condition the derivation
constraints give Gi=Hs(xi), so the break condition is
a ±-collision of Hs at the pair (x1,x2).
Distinct final inputs.
The final inputs x1,x2 of a break need not be distinct, but the
case x1=x2 is fully deterministic. If the witnesses decode
differently —one external, one internal— their final inputs lie in
disjoint summands of the combined domain, so x1=x2 is impossible
outright. If both witnesses are externally decoded, equal final inputs
force the witnesses to coincide
on all fields constrained by the key-binding condition, contradicting
distinctness. (Equal Hrivk_ext inputs determine
(qk,ak,nk) and thence
rivk_ext=rivk; equal
Hrivk_legacy inputs determine sk and thence
everything, via Hask and Hnk.)
So both witnesses are internally decoded, sharing
(ak,nk,rivk_ext,rivk) and
differing only in their branch data. Then
rivk_ext1=rivk_ext2 is an equality of
H∗ outputs at the two upstream
(rivk_ext-derivation) inputs, which the differing branch data make
distinct. The shifts at those inputs agree: both equal
h(ak,nk), using the derivation constraints on the
sk side. So this is again a ±-collision of Hs,
at distinct inputs. In every case:
a key-binding break yields a ±-collision of Hs at two
distinct inputs among the adversary's queries, under the convention
that qkb counts the derivation inputs of the adversary's
output witnesses among its queries.
This convention is without loss of
generality: replace A by the adversary that runs
A, queries the (at most 4) derivation inputs of its output
witnesses —each witness's final input and its rivk_ext-derivation
input— and returns the output unchanged. This "reasonable
adversary" normalization38 leaves the output distribution —and
therefore the break probability— unchanged, puts the collision inputs
among the queries by construction, and adds at most 4 to
qkb.
Note that the external/internal decode is by value
(rivk=?rivk_ext), not by how the witness was
derived: at a fixpoint
Hrivk_extrivk_int(ak,nk)=rivk_ext
an internally-derived witness decodes as external. Both readings give
the same rivk, and the accounting partitions pairs by the
decode.
Sequential collision bound.
The adversary chooses each query adaptively, so we reveal the oracle
responses in query order rather than fixing a pair in advance. Before
the j-th query xj to H∗, condition on the transcript
so far: the Hask/Hnk responses (which fix
the shifts s(⋅)) and the j−1 recorded H∗
responses. Under every such conditioning the fresh response
H∗(xj) is uniform on FrP, and
for each recorded input xi and each sign there is exactly one value
of H∗(xj) with
Hs(xj)≡±Hs(xi)(modrP);
so the fresh response completes a shifted ±-collision with probability
at most 2(j−1)/rP. Because the conditioning is on the
transcript itself, this holds however xj was chosen from the
transcript. Summing over the queries,
εkb(A,qkb)≤j=1∑qkbrP2(j−1)=rPqkb(qkb−1).
(Queries to Hask or Hnk are not
H∗ inputs and cannot complete a collision, so counting
them in qkb is conservative.)
Security argument for Spendability
DeriveNullifier is based on a Pedersen hash. In the current Orchard
protocol, the property that it is infeasible to find two distinct
Orchard-protocol notes with the same nullifier depends on the
collision resistance of that hash, which would not hold against a
discrete-logarithm-breaking adversary.
Does this mean it is possible to break Spendability for the given
Recovery Statement? As it turns out, no, but the argument is somewhat
involved.
Since each function in the Recovery Statement is deterministic, the
free variables that the adversary can control are the sources of the
derivation digraph within that statement and either SoKsk
or SoKqk. That is, the adversary can control all of
(ρ,gd,rseed,sk,nk,ak,qk,qsk,rivk)
subject to exactly one of sk and qk being
present, per the qk_or_sk tagged union. The
choice between external and internal IVK is encoded in
rivk's value (either rivk_ext or
Hrivk_extrivk_int(ak,nk)).
We analyze DeriveNullifier as a function of these
controllable inputs. Recall that DeriveNullifier is defined
in § 4.16 ‘Computing ρ values and Nullifiers’ as:
DeriveNullifiernk(ρ,ψ,cm):=ExtractP([(PRFnknf(ρ)+ψ)modqP]K+cm)
Also recall from [Repairing note commitments] that we have
cm=[Hrseedrcm(noterepr)+f(rseed,noterepr)]R.
Let KR denote the discrete logarithm of
K with respect to R. This is well-defined and
nonzero: R generates the prime-order Pallas group, so any
non-identity Pallas point has a unique nonzero discrete logarithm with
respect to it; and K is non-identity by construction.
Recall that ψ is determined by rseed via
ψ=Hrseedψ(ρ).
The nullifier corresponding to
(nk,ρ,rseed,noterepr)
is then
ExtractP([((PRFnknf(ρ)+ψ)modqP)⋅KR+Hrseedrcm(noterepr)+f(rseed,noterepr)]R).
We model Hrcm as a random oracle with output uniform on
FrP. The functions f,
Hψ, and PRFnf are deterministic
functions of notetuple=(rseed,noterepr)
that do not query Hrcm: f(notetuple)
is the Sinsemilla-base lift; Hψ and PRFnf are
conventional hash functions.
The non-querying constraint rules out trivializing instantiations such
as f(•)=−Hrcm(•).
In the concrete protocol, it reflects that f depends only on
fixed Sinsemilla bases; and that the hashes Hψ,
PRFnf, and Hrcm use distinct domain
separators, so can be considered unrelated to each other.
A key-binding break is as defined above in the
Security argument for key binding.
Let εkb(A,qkb)
be the probability, over A's randomness and at most
qkb queries to the random oracles used in the
key-binding argument, that A outputs a key-binding break
(with qkb counting the derivation inputs of the output
witnesses among the queries, as in the
accounting normalization).
εkb(A,qkb) is
bounded separately by that argument; the bound below is unconditional,
but is only useful to the extent that
εkb(A,qkb) is
small.
We give a reduction-based argument that any classical adversary
A in the Random Oracle Model attempting to find two valid
Recovery Statement witnesses with distinct
note tuples that have colliding nullifiers, succeeds with probability at most
rPqrcm(qrcm−1)+εkb(A,qkb),
where qrcm is the number of queries A makes
to Hrcm, and qkb is as defined above.
The bound depends only on qrcm and on
εkb(A,qkb),
not on running time.
The components rseed,noterepr
are fields of notetuple by definition; and ρ,
gd, pkd, and ψ are fields of
noterepr, hence of notetuple.
ivk-pinning lemma.
For any valid Recovery Statement witness w with
notetuple=(rseed,noterepr),
the value ivk=loggd(pkd) is
well-defined, since gd=OP on the
prime-order Pallas curve and
ivk∈[0,qP)⊆[0,rP);
ivk is therefore uniquely determined by notetuple.
nf-pinning lemma.
Suppose A's output (w1,w2) does not contain a
key-binding break. Then for each i∈{1,2}, nfi is
uniquely determined by notetuplei: by the conditioning,
(aki,nki,rivki) is the only opening of
ivki appearing in A's output, so nki
is a function of ivki, which is in turn a function of
notetuplei by the ivk-pinning lemma; ρi
is a field of notetuplei; and the remaining
DeriveNullifier inputs ψi and cmi are
determined by notetuplei through the Recovery Statement's
deterministic derivations.
The argument here covers nullifier-binding — it argues that nf
binds the note tuple (rseed,noterepr)
under Hrcm modelled as a random oracle
and the key-binding theorem.
Theorem (distinct-notetuple Spendability, classical ROM).
Let A be a classical adversary with oracle access to
Hrcm having output uniform on FrP,
making at most qrcm oracle queries. The Spendability-collision
game has A output two Recovery Statement witnesses w1,w2
satisfying:
Validity of witnesses
: both witnesses satisfy the
Proposed Recovery Statement.
Distinct note tuples
: the Hrcm-input tuples
notetuplei:=(rseedi,noterepri)
satisfy notetuple1=notetuple2.
Colliding nullifiers
: nf1=nf2.
Then A wins this game with probability at most
(2qrcm)⋅rP2+εkb(A,qkb)=rPqrcm(qrcm−1)+εkb(A,qkb),
taken over the random oracle's responses and any internal randomness of
A.
This bound is essentially tight against classical generic adversaries.
Maurer 39 (Section 2, p. 5) establishes a matching upper
bound of (2k)/N on the success probability of any
classical algorithm in finding a collision against a random oracle with
an N-element output space using k queries. Maurer's bound applies
to the equality event Fi=Fj; our win condition allows
Fi=±Fj (two winning configurations per pair instead of one).
Applying Maurer with N=rP (the Hrcm
output space) gives (2qrcm)/rP for
the equality event; doubling for the sign relaxation gives our
rPqrcm(qrcm−1) bound.
Classical parallel collision search 40 (top of p. 8)
achieves the equality-event regime up to a constant factor; the same
adversaries achieve a constant fraction of the doubled bound for the
±-equivalence event.
Proof sketch.
A makes at most qrcm queries to
Hrcm before outputting (w1,w2) satisfying
Validity of witnesses,
Distinct note tuples, and
Colliding nullifiers. The probability
that (w1,w2) contains a key-binding break is at most
εkb(A,qkb); condition on
the complement.
Algebraic setup.
Under this conditioning, define
F(notetuple):=Hrcm(notetuple)+f(notetuple)+((PRFnknf(ρ)+ψ)modqP)⋅KR(modrP)
,
where rseed,ρ,ψ are fields of
notetuple and nk is determined by
notetuple via the key-binding leg of the
nf-pinning lemma, and let
Fi:=F(notetuplei) for i∈{1,2}.
ExtractP (§ 5.4.9.7 'Coordinate Extractor for
Pallas' ) is the x-coordinate of
its argument for non-identity points, with the identity mapping to 0.
Since Pallas has the form y2=Y(x) and no Pallas point has
x-coordinate 0, the collision nf1=nf2
holds iff F1≡±F2(modrP).
Independence claim per pair.
By Distinct note tuples,
notetuple1=notetuple2, so the
Hrcm outputs at notetuple1,notetuple2
are independent uniform on FrP. The
deterministic shifts (f and the PRFnf
contribution scaled by KR) do not query
Hrcm, so they are independent of its responses. Hence
F1 and F2 are independent uniform on FrP.
Bounding the win probability.
The win condition F1≡±F2 is a linear constraint on a
pair of independent uniform variables, satisfied with probability at
most 2/rP (one per sign). Union-bounding over the at
most (2qrcm) pairs of distinct
Hrcm queries:
Pr[win∣¬break]≤rPqrcm(qrcm−1).
Decomposing on whether a key-binding break occurs and applying
Pr[win]≤Pr[win∣¬break]+Pr[break]:
Pr[win]≤rPqrcm(qrcm−1)+εkb(A,qkb).
This completes the classical-ROM proof.
The key-binding theorem bounds
εkb(A,qkb)≤rPqkb(qkb−1).
Substituting, an adversary A that makes at most
qrcm queries to Hrcm and at most
qkb queries to the key-binding random oracles
wins the Spendability-collision game with probability at most
rPqrcm(qrcm−1)+rPqkb(qkb−1).
For the post-quantum lift of this bound and of the
key-binding bound above, see the next section.