bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 35쪽 중 6쪽
meanssk 1 ( sk2).
vkmeans thevalidating keysuch that( vk) vk=𝒪 , andvk 1 vk2 meansvk 1 ( vk2).
With a change of notation from𝜇 to Sig.DerivePublic, + to , and· to , this is similar to the definition of a “Signature
with Secret Key to Public Key Homomorphism” in [DS2016, Definition 13], except for an additional requirement for
the homomorphism to be injective.
Security requirement:For any sk1 Sig.Private, and an unknown sk2←R Sig.GenPrivate() chosen independently
of sk1, the distribution of sk1 sk2 is computationally indistinguishable from that of Sig.GenPrivate(). (Since
is an abelian group operation, this implies that for 𝑛 N+,
𝑛
𝑖=1
sk𝑖 is computationally indistinguishable from
Sig.GenPrivate()when at least one ofsk 1..𝑛 is unknown.)
4.1.8 Commitment #abstractcommit
Acommitment schemeis a function that, given acommitment trapdoorgenerated at random and an input, can be
used to commit to the input in such a way that:
•no information is revealed about it without thetrapdoor(“hiding”); and
• given thetrapdoorand input, the commitment can be verified to “open” to that input and no other (“binding”) .
Acommitment scheme COMM defines a type of inputs COMM.Input, a type of commitments COMM.Output, a type
ofcommitment trapdoors COMM.Trapdoor, and atrapdoorgenerator COMM.GenTrapdoor ()→R COMM.Trapdoor.
Let COMM COMM.Trapdoor×COMM.Input→COMM.Output be a function satisfying the following security
requirements.
32
Security requirements:
• Computationalhiding:For all 𝑥, 𝑥′ COMM.Input, the distributions{COMM 𝑟(𝑥)|𝑟← R COMM.GenTrapdoor()}
and{COMM 𝑟(𝑥′)|𝑟← R COMM.GenTrapdoor()}are computationally indistinguishable.
• Computationalbinding:It is infeasible to find 𝑥, 𝑥′ COMM.Input and 𝑟, 𝑟′ COMM.Trapdoor such that 𝑥̸=𝑥 ′
andCOMM 𝑟(𝑥) =COMM 𝑟′(𝑥′).
Notes:
•COMM.GenTrapdoor need not produce the uniform distribution on COMM.Trapdoor. In that case, it is incorrect
to choose atrapdoorfrom the latter distribution.
• If it were only feasible to find 𝑥 COMM.Input and 𝑟, 𝑟′ COMM.Trapdoor such that 𝑟̸=𝑟 ′ and COMM𝑟(𝑥) =
COMM𝑟′(𝑥), this would not contradict the computationalbindingsecurity requirement. (In fact, this is feasible
for NoteCommitSapling and ValueCommitSapling becausetrapdoorsare equivalent modulo 𝑟J, and the range of a
trapdoorfor those algorithms is{0..2 ℓSaplingscalar−1}where2 ℓSaplingscalar > 𝑟J.)
Letℓ Sproutrcm ,ℓ SproutMerkle,ℓ SproutPRF , andℓ value be as defined in §5.3 ‘Constants’ on p.77.
DefineNoteCommit Sprout.Trapdoor:=B [ℓSproutrcm ] andNoteCommit Sprout.Output:=B [ℓSproutMerkle].
Sproutuses anote commitment scheme
NoteCommitSprout NoteCommitSprout.Trapdoor×B [ℓSproutPRF ]×{0..2 ℓvalue−1}×B [ℓSproutPRF ]
→NoteCommit Sprout.Output,
instantiated in §5.4.8.1 ‘Note Commitments (Sprout)’ on p.98.
Letℓ Saplingscalar be as defined in §5.3 ‘Constants’ on p.77.
LetJ (𝑟),ℓ J, and𝑟 J be as defined in §5.4.9.3 ‘Jubjub’ on p.105.
Define:
NoteCommitSapling.Trapdoor:={0..2 ℓSaplingscalar−1}andNoteCommit Sapling.Output:=J;
ValueCommitSapling.Trapdoor:={0..2 ℓSaplingscalar−1}andValueCommit Sapling.Output:=J.
Saplinguses two additionalcommitment schemes:
NoteCommitSapling NoteCommitSapling.Trapdoor×B [ℓJ]×B [ℓJ]×{0..2 ℓvalue−1} →NoteCommit Sapling.Output
ValueCommitSapling ValueCommitSapling.Trapdoor× {︀− 𝑟J−12 .. 𝑟J−12 }︀ →ValueCommit Sapling.Output
NoteCommitSapling is instantiated in §5.4.8.2 ‘Windowed Pedersen commitments’ on p. 99, and ValueCommitSapling is
instantiated in §5.4.8.3 ‘Homomorphic Pedersen commitments (Sapling and Orchard)’ on p.99.
Non-normative note: NoteCommitSapling and ValueCommitSapling always return points in the subgroupJ(𝑟). However,
we declare the type of these commitment outputs to be J because they are not directly checked to be in the
subgroup when ValueCommitSapling outputs appear inSpend descriptionsandOutput descriptions, or when the cmu
field derived from aNoteCommit Sapling appears in anOutput description.
33
Letℓ Orchardscalar be as defined in §5.3 ‘Constants’ on p.77.
LetP,ℓ P,𝑞 P, and𝑟 P be as defined in §5.4.9.6 ‘Pallas and Vesta’ on p.108.
Define:
NoteCommitOrchard.Trapdoor:={0..2 ℓOrchardscalar −1}andNoteCommit Orchard.Output:=P∪{⊥};
ValueCommitOrchard.Trapdoor:={0..2 ℓOrchardscalar −1}andValueCommit Orchard.Output:=P.
Commitivk.Trapdoor:={0..2 ℓOrchardscalar −1}andCommit ivk.Output:={0.. 𝑞 P−1}∪{⊥}.
Orcharduses three additionalcommitment schemes:
NoteCommitOrchard NoteCommitOrchard.Trapdoor×B [ℓP]×B [ℓP]×{0..2 ℓvalue−1}
×F 𝑞P×F 𝑞P→NoteCommit Orchard.Output
ValueCommitOrchard ValueCommitOrchard.Trapdoor× {︀− 𝑟P−12 .. 𝑟P−12 }︀ →ValueCommit Orchard.Output
Commitivk Commitivk.Trapdoor×{0.. 𝑞 P−1}×F 𝑞P →Commit ivk.Output
Notes:
•NoteCommit Orchard andCommit ivk can return⊥(with insignificant probability).
•Commit ivk can return 0 (with insignificant probability) even though that is not a valid KAOrchard private key.
The use of Commitivk to obtain an Orchardincoming viewing keyin §4.2.3 ‘Orchard Key Components’ on p. 40
explicitly accounts for the 0 and⊥ cases. Use of Commitivk in theAction circuitdoes not require special
handling of the0case.
NoteCommitOrchard and Commitivk are instantiated in §5.4.8.4 ‘Sinsemilla commitments’ on p. 101. ValueCommitOrchard
is instantiated in §5.4.8.3 ‘Homomorphic Pedersen commitments (Sapling and Orchard)’ on p.99.
4.1.9 Represented Group #abstractgroup
Arepresented groupGconsists of:
•a subgroup order parameter𝑟 G N+, which must be prime;
•a cofactor parameterℎ G N+;
•a groupGof orderℎ G·𝑟 G, written additively with operation+ G×G→G, and additive identity𝒪 G;
•a bit-length parameterℓ G N;
• a representation function reprG G→B [ℓG] and an abstraction function abstG B[ℓG]→G∪{⊥} , such that
abstG is a left inverse ofrepr G, i.e. for all𝑃∈G,abst G
(︀
reprG(𝑃)
)︀
=𝑃.
Note:Ideally, we would also have that for all 𝑆 not in the image of reprG, abstG(𝑆) =⊥ . This may not be true in all
cases, i.e. there can benon-canonicalencodings𝑃 ⋆such thatrepr G
(︀
abstG(𝑃 ⋆)
)︀
̸=𝑃 ⋆.
Define G(𝑟) as the order-𝑟G subgroup of G, which is called arepresented subgroup. Note that this includes 𝒪G. For
the set of points of order𝑟 G (which excludes𝒪 G), we writeG (𝑟)*.
Define G⋆
(𝑟)
:={repr G(𝑃) B[ℓG]|𝑃∈G (𝑟)}. (This intentionally excludesnon-canonicalencodings if there are any.)
For𝐺 Gwe write−𝐺for the negation of𝐺, such that(−𝐺) +𝐺=𝒪 G. We write𝐺−𝐻for𝐺+ (−𝐻).
We also extend the
∑︁
notation to addition on group elements.
34
For𝐺 Gand𝑘 Zwe write[𝑘]𝐺for scalar multiplication on the group, i.e.
[𝑘]𝐺:=
⎧
⎪⎨
⎪⎩
∑︀𝑘
𝑖=1𝐺,if𝑘≥0
∑︀−𝑘
𝑖=1(−𝐺),otherwise.
For 𝐺 G and 𝑎 F𝑟G, we may also write [𝑎]𝐺 meaning [𝑎mod𝑟 G]𝐺 as defined above. (This variant is not defined
for fields other thanF𝑟G.)
4.1.10 Coordinate Extractor #abstractextractor
Acoordinate extractorfor arepresented groupGis a functionExtract G(𝑟) G(𝑟)→𝑇for some type𝑇.
Note:Unlike the representation function reprG, ExtractG(𝑟) need not have an efficiently computable left inverse.
4.1.11 Group Hash #abstractgrouphash
Given arepresented subgroup G(𝑟), afamily of group hashes into the subgroup, denoted GroupHashG(𝑟), consists of:
•a typeGroupHash G(𝑟).URSTypeofUniform Random Strings;
•a typeGroupHash G(𝑟).Inputof inputs;
•a functionGroupHash G(𝑟) GroupHashG(𝑟).URSType×GroupHash G(𝑟).Input→G (𝑟).
In §5.4.9.5 ‘Group Hash into Jubjub’ on p. 107, we instantiate a family ofgroup hashesinto theJubjub curvedefined
by §5.4.9.3 ‘Jubjub’ on p.105.
Security requirement:For a randomly selected URS GroupHashG(𝑟).URSType, it must be reasonable to model
GroupHashG(𝑟)URS (restricted to inputs for which it does not return⊥) as arandom oracle.
In §5.4.9.8 ‘Group Hash into Pallas and Vesta’ on p. 110, we instantiategroup hashesinto the Pallas and Vesta
curves. These are not strictly speakingfamilies of group hashes, because they have a trivial URS, and so the above
security definition does not apply. Nevertheless, they can be heuristically modelled asrandom oracles.
Non-normative notes:
•GroupHash J(𝑟)* is used to obtain generators of theJubjub curvefor various purposes: the bases 𝒢Sapling and
ℋSapling used in Saplingkey generation, thePedersen hashdefined in §5.4.1.7 ‘Pedersen Hash Function’ on
p. 82, and thecommitment schemesdefined in §5.4.8.2 ‘Windowed Pedersen commitments’ on p. 99 and in
§5.4.8.3 ‘Homomorphic Pedersen commitments (Sapling and Orchard)’ on p.99.
The security property needed for these uses can alternatively be defined in the standard model as follows:
Discrete Logarithm Independence: For a randomly selected memberGroupHashG(𝑟)URS of the family, it is infeasible
to find a sequence of distinct inputs 𝑚1..𝑛 GroupHashG(𝑟).Input[𝑛] and a sequence of nonzero 𝑥1..𝑛 F*𝑟G[𝑛]
such that
∑︀𝑛
𝑖=1
(︁
[𝑥𝑖]GroupHash G(𝑟)URS(𝑚𝑖))︁ =𝒪 G.
• Assuming hardness of theDiscrete Logarithm Problemon G(𝑟), arandom oraclealmost surely satisfiesDiscrete
Logarithm Independence.Discrete Logarithm Independenceimpliescollision resistance, since a collision
(𝑚1, 𝑚2)forGroupHash G(𝑟)URS trivially gives adiscrete logarithmrelation with𝑥 1 = 1and𝑥 2 =−1.
35
•GroupHash J(𝑟)* is used in §5.4.1.6 ‘DiversifyHashSapling andDiversifyHash Orchard Hash Functions’ on p. 81 to in-
stantiate DiversifyHashSapling. We do not know how to prove the Unlinkability property defined in that section
in the standard model, but in a model where GroupHashJ(𝑟)* (restricted to inputs for which it does not return
⊥) is taken as arandom oracle, it is implied by theDecisional Diffie–Hellman assumptionon J(𝑟), and similarly
forGroupHash P.
•URS is aUniform Random String; we chose it verifiably at random (see §5.9 ‘Randomness Beacon’ on p. 123),
after fixing the concrete group hash algorithm to be used. This mitigates the possibility that the group hash
algorithm could have been backdoored. For Orchard, we considered a URS to be unnecessary, because we
follow [ID-hashtocurve] which does not use one.
4.1.12 Represented Pairing #abstractpairing
Arepresented pairingP AIR AIR consists of:
•a group order parameter𝑟 PAIR AIR N+ which must be prime;
•tworepresented subgroupsP AIR AIR(𝑟)1,2, both of order𝑟 PAIR AIR;
• a group PAIR AIR(𝑟)𝑇 of order 𝑟PAIR AIR, written multiplicatively with operation· PAIR AIR(𝑟)𝑇 ×P AIR AIR(𝑟)𝑇 →P AIR AIR(𝑟)𝑇 and group
identity1 PAIR AIR;
•three generators𝒫 PAIR AIR1,2,𝑇 ofP AIR AIR(𝑟)1,2,𝑇 respectively;
•a pairing function^𝑒 PAIR AIR PAIR AIR(𝑟)1 ×P AIR AIR(𝑟)2 →P AIR AIR(𝑟)𝑇 satisfying:
–(Bilinearity) for all𝑎, 𝑏 F*𝑟,𝑃 PAIR AIR(𝑟)1 , and𝑄 PAIR AIR(𝑟)2 ,^𝑒PAIR AIR([𝑎]𝑃,[𝑏]𝑄)= ^𝑒 PAIR AIR(𝑃, 𝑄)𝑎·𝑏; and
–(Nondegeneracy) there does not exist𝑃 PAIR AIR(𝑟)*1 such that for all𝑄 PAIR AIR(𝑟)2 ,^𝑒PAIR AIR(𝑃, 𝑄)=1PAIR AIR.
4.1.13 Zero-Knowledge Proving System #abstractzk
Azero-knowledge proving systemis a cryptographic protocol that allows proving a particularstatement, dependent
onprimaryandauxiliary inputs, in zero knowledge — that is, without revealing information about theauxiliary
inputsother than that implied by thestatement. The type ofzero-knowledge proving systemneeded byZcashis a
preprocessing zk-SNARK[BCCGLRT2014].
Apreprocessing zk-SNARKinstanceZKdefines:
•a type ofzero-knowledge proving keys,ZK.ProvingKey;
•a type ofzero-knowledge verifying keys,ZK.VerifyingKey;
•a type ofprimary inputsZK.PrimaryInput;
•a type ofauxiliary inputsZK.AuxiliaryInput;
•a type ofzk-SNARK proofsZK.Proof;
•a typeZK.SatisfyingInputs⊆ZK.PrimaryInput×ZK.AuxiliaryInputof inputs satisfying thestatement;
•a randomized key pair generation algorithmZK.Gen ()→R ZK.ProvingKey×ZK.VerifyingKey;
•a proving algorithmZK. Prove ZK.ProvingKey×ZK.SatisfyingInputs→ZK.Proof;
•a verifying algorithmZK. Verify ZK.VerifyingKey×ZK.PrimaryInput×ZK.Proof→B;
The security requirements below are supposed to hold with overwhelming probability for(pk,vk)←R ZK.Gen().
36
Security requirements:
• Completeness:An honestly generated proof will convince a verifier: for any (𝑥, 𝑤)∈ZK.SatisfyingInputs , if
ZK.Provepk(𝑥, 𝑤)outputs𝜋, thenZK. Verifyvk(𝑥, 𝜋) = 1.
• Knowledge Soundness:For any adversary 𝒜 able to find an 𝑥 ZK.PrimaryInput and proof 𝜋 ZK.Proof
such that ZK.Verifyvk(𝑥, 𝜋) = 1, there is an efficient extractorℰ𝒜 such that ifℰ𝒜(vk,pk) returns 𝑤, then the
probability that(𝑥, 𝑤)̸∈ZK.SatisfyingInputsis insignificant.
• Statistical Zero Knowledge:An honestly generated proof is statistical zero knowledge. That is, there is a
feasible stateful simulator𝒮 such that, for all stateful distinguishers𝒟, the following two probabilities are not
significantly different:
Pr
⎡
⎢⎢⎣ (𝑥, 𝑤)∈ZK.SatisfyingInputs𝒟(𝜋) = 1
⃒⃒⃒⃒⃒⃒⃒⃒ (pk,vk)←R ZK.Gen()(𝑥, 𝑤)←R 𝒟(pk,vk)𝜋←R ZK.Provepk(𝑥, 𝑤)⎤⎥⎥⎦ andPr ⎡⎢⎢⎣ (𝑥, 𝑤)∈ZK.SatisfyingInputs𝒟(𝜋) = 1 ⃒⃒⃒⃒⃒⃒⃒⃒ (pk,vk)←R 𝒮()(𝑥, 𝑤)←R 𝒟(pk,vk)𝜋←R 𝒮(𝑥) ⎤⎥⎥⎦
These definitions are derived from those in [BCTV2014b, Appendix C], adapted to state concrete security for a fixed
circuit, rather than asymptotic security for arbitrary circuits. (ZK.Prove corresponds to 𝑃 , ZK.Verify corresponds
to𝑉, andZK.SatisfyingInputscorresponds toℛ 𝐶 in the notation of that appendix.)
The Knowledge Soundness definition is a way to formalize the property that it is infeasible to find a new proof
𝜋 where ZK.Verifyvk(𝑥, 𝜋) = 1without knowing anauxiliary input 𝑤 such that (𝑥, 𝑤)∈ZK.SatisfyingInputs . Note
that Knowledge Soundness implies Soundness — i.e. the property that it is infeasible to find a new proof 𝜋 where
ZK.Verifyvk(𝑥, 𝜋) = 1withoutthere existing anauxiliary input𝑤such that(𝑥, 𝑤)∈ZK.SatisfyingInputs.
Non-normative notes:
• The above properties do not includenonmalleability [DSDCOPS2001], and the design of the protocol using
thezero-knowledge proving systemmust take this into account.
•The terminology used in this specification is that we “validate” signatures, and “verify”zk-SNARK proofs.
Zcashuses threeproving systems:
•BCTV14 ( §5.4.10.1 ‘BCTV14’ on p. 113) is used with theBN-254 pairing ( §5.4.9.1 ‘BN-254’ on p. 102), to prove and
verify the SproutJoinSplit statement( §4.18.1 ‘JoinSplit Statement (Sprout)’ on p. 63) before Sapling activation.
•Groth16 ( §5.4.10.2 ‘Groth16’ on p. 114) is used with the BLS12-381 pairing ( §5.4.9.2 ‘BLS12-381’ on p. 104), to
prove and verify the SaplingSpend statement( §4.18.2 ‘Spend Statement (Sapling)’ on p. 64) andOutput
statement( §4.18.3 ‘Output Statement (Sapling)’ on p. 65). It is also used to prove and verify theJoinSplit
statementafter Saplingactivation.
• [ NU5 onward] Halo 2 ( §5.4.10.3 ‘Halo 2’ on p. 115) is used with theVesta curve( §5.4.9.6 ‘Pallas and Vesta’ on
p.108) to prove and verify the OrchardAction statement( §4.18.4 ‘Action Statement (Orchard)’ on p.66).
These specializations are:
•ZKJoinSplitfor the SproutJoinSplit statement(withBCTV14andBN-254, orGroth16andBLS12-381);
•ZKSpendfor the SaplingSpend statementandZKOutputfor the SaplingOutput statement;
•[ NU5onward]ZKActionfor the OrchardAction statement.
We omit key subscripts onZKJoinSplit.Prove and ZKJoinSplit.Verify, taking them to be either the BCTV14 proving
keyandverifying keydefined in §5.7 ‘BCTV14 zk-SNARK Parameters’ on p. 123, or the sprout-groth16.params
Groth16 proving keyandverifying keydefined in §5.8 ‘Groth16 zk-SNARK Parameters’ on p. 123, according to
whether the proof appears in ablockbefore or after Saplingactivation.
We omit subscripts on ZKSpend.Prove, ZKSpend.Verify, ZKOutput.Prove, and ZKOutput.Verify, taking them to be the
relevantGroth16proving keysandverifying keysdefined in §5.8 ‘Groth16 zk-SNARK Parameters’ on p.123.
Subscripts are not omitted on ZKAction.Prove and ZKAction.Verify, since more than one version of the Orchard
circuit has been deployed. For Halo 2, parameters for a given circuit implementation are generated on the fly by the
halo2 library, and do not require parameter files.
37
4.2 Key Components #keycomponents
4.2.1SproutKey Components #sproutkeycomponents
Letℓ ask be as defined in §5.3 ‘Constants’ on p.77.
LetPRF addr be aPseudo Random Function, instantiated in §5.4.2 ‘Pseudo Random Functions’ on p.89.
LetKA Sprout be akey agreement scheme, instantiated in §5.4.5.1 ‘Sprout Key Agreement’ on p.91.
A new Sproutspending keya sk is generated by choosing abit sequenceuniformly at random fromB [ℓask].
apk,sk enc andpk enc are derived froma sk as follows:
apk :=PRF addrask (0)
skenc :=KA Sprout.FormatPrivate(PRFaddrask (1))
pkenc :=KA Sprout.DerivePublic(skenc,KA Sprout.Base).
4.2.2SaplingKey Components #saplingkeycomponents
Letℓ PRFexpand,ℓ sk,ℓ Saplingivk ,ℓ ovk, andℓ d be as defined in §5.3 ‘Constants’ on p.77.
Let J(𝑟), J(𝑟)*, J⋆(𝑟), reprJ, and 𝑟J be as defined in §5.4.9.3 ‘Jubjub’ on p. 105, and let FindGroupHashJ(𝑟)* be as defined in
§5.4.9.5 ‘Group Hash into Jubjub’ on p.107.
Let PRFexpand and PRFockSapling, instantiated in §5.4.2 ‘Pseudo Random Functions’ on p. 89, bePseudo Random
Functions.
LetKA Sapling, instantiated in §5.4.5.3 ‘Sapling Key Agreement’ on p.92, be akey agreement scheme.
LetCRH ivk, instantiated in §5.4.1.5 ‘CRHivk Hash Function’ on p.80, be ahash function.
Let DiversifyHashSapling, instantiated in §5.4.1.6 ‘DiversifyHashSapling andDiversifyHash Orchard Hash Functions’ on p. 81,
be ahash function.
Let SpendAuthSigSapling, instantiated in §5.4.7.1 ‘Spend Authorization Signature (Sapling and Orchard)’ on p. 98, be
asignature scheme with re-randomizable keys.
Let LEBS2OSP (ℓ N)×B [ℓ]→B Y Y[ceiling(ℓ/8)] and LEOS2IP (ℓ N|ℓmod 8 = 0)×B Y Y[ℓ/8]→{0..2 ℓ−1} be as
defined in §5.1 ‘Integers, Bit Sequences, and Endianness’ on p.76.
Defineℋ Sapling :=FindGroupHash J(𝑟)*(“Zcash_H_”,“ ”).
DefineToScalar Sapling(𝑥 BY Y[ℓPRFexpand/8]) :=LEOS2IP ℓPRFexpand(𝑥) (mod𝑟 J).
A new Saplingspending keyskis generated by choosing abit sequenceuniformly at random fromB [ℓsk].
From thisspending key, theSpend authorizing key ask F*𝑟J, theproof authorizing key nsk F𝑟J, and theoutgoing
viewing keyovk BY Y[ℓovk/8] are derived as follows:
ask:=ToScalar Sapling(︀PRFexpandsk ([0]))︀
nsk:=ToScalar Sapling(︀PRFexpandsk ([1]))︀
ovk:=truncate (ℓovk/8)
(︀
PRFexpandsk ([2]))︀
Ifask= 0, discard this key and repeat with a newsk.
ak J(𝑟)*,nk J(𝑟), and theincoming viewing keyivk {1..2 ℓSaplingivk −1}are then derived as:
ak:=SpendAuthSig Sapling.DerivePublic(ask)
nk:=[nsk]ℋ Sapling
ivk:=CRH ivk(︀reprJ(ak),repr J(nk))︀.
Ifivk= 0, discard this key and repeat with a newsk.
38
As explained in §3.1 ‘Payment Addresses and Keys’ on p. 14, Saplingallows the efficient creation of manydiversified
payment addresseswith the samespending authority. A group of such addresses shares the samefull viewing key
andincoming viewing key.
To create a newdiversified payment addressgiven anincoming viewing key ivk, repeatedly pick adiversifier d
uniformly at random from B[ℓd] until thediversified base gd =DiversifyHash Sapling(d) is not⊥. Then calculate the
diversified transmission keypk d:
pkd :=KA Sapling.DerivePublic(ivk,g d).
The resultingdiversified payment addressis(d B[ℓd],pk d KASapling.PublicPrimeOrder).
For eachspending key, there is also adefault diversified payment addresswith a “random-looking”diversifier.
This allows an implementation that does not expose diversified addresses as a user-visible feature, to use a default
address that cannot be distinguished (without knowledge of thespending key) from one with a randomdiversifier
as above. Note however that thezcashd wallet picksdiversifiersas in [ZIP-32], rather than using this procedure.
Letfirst (BY Y→𝑇∪{⊥})→𝑇∪{⊥}be as defined in §5.4.9.5 ‘Group Hash into Jubjub’ on p.107. Define:
CheckDiversifier(d B[ℓd]) :=
{︃
⊥,ifDiversifyHash Sapling(d) =⊥
d,otherwise
DefaultDiversifier(sk B[ℓsk]) :=first (︀𝑖 BY Y↦→CheckDiversifier(truncate (ℓd/8)(PRFexpandsk ([3, 𝑖]))) J(𝑟)*∪{⊥} )︀.
For a randomspending key, DefaultDiversifier returns⊥ with probability approximately2−256; if this happens, discard
the key and repeat with a differentsk.
Notes:
• The protocol does not prevent using thediversifier d to produce “vanity” addresses that start with a meaningful
string when encoded inBech32(see §5.6.3.1 ‘Sapling Payment Addresses’ on p. 119). Users and writers of
software that generates addresses should be aware that this provides weaker privacy properties than a
randomly chosendiversifier, s프로젝트로 돌아가기