bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 35쪽 중 26쪽
finition of𝑐in §5.4.1.9 ‘Sinsemilla Hash Function’ on p.84.
–Propagate⊥intermediate results to the output of Sinsemilla primitives.
– Change the output types ofNoteCommitOrchard and Commitivk to reflect that these can return⊥, and change
theAction statementto be satisfied if they do.
– Propagate⊥ from the inputs of MerkleCRHOrchard to its output, and add an explicit consensus rule that
rtOrchardPool computed from appending anote commitmentis not⊥.
– Correct the definition ofPRFnfOrchard in §5.4.2 ‘Pseudo Random Functions’ on p. 89 by changingPoseidon
toPoseidonHash.
– Restrict the definition of ashort Weierstrass elliptic curvein §5.4.9.6 ‘Pallas and Vesta’ on p. 108 to base
fields of characteristic greater than3.
–DefineGin §5.4.9.8 ‘Group Hash into Pallas and Vesta’ on p.110.
– Fix type confusion between integers and field elements (including additional cases not found in the
audit, involvingnullifiersandcm 𝑥).
– Fix a discrepancy between §5.4.9.8 ‘Group Hash into Pallas and Vesta’ on p. 110 and [ID-hashtocurve]:
the zero padding in expand_message_xmd should be 128 bytes (matching the input block size ofBLAKE2b),
rather than64bytes.
– Document that the use of 𝑘= 256 when extracting field elements in hash_to_field is intentional, despite
thePallas curveonly having126-bit conjectured security against generic attacks.
–Correct the output type ofsqrt_ratio F𝑞G.
– Document that the choice of nonsquare for 𝜆G in §5.4.9.8 ‘Group Hash into Pallas and Vesta’ on p. 110
makes no difference to the output ofmap_to_curve_simple_swu iso-G.
–Document the limitation on the domain separation string for thegroup hashintoPallasandVesta.
– Correct the sizes of SpendDescriptionV5Onward and OutputDescriptionV5Onward in the version 5trans-
actionformat.
– Make the description of when fields are included in v5transactionsconsistent between the protocol
specification and [ZIP-225].
–Make the naming ofenableSpendsandenableOutputsconsistent.
• Change the specifications ofnotedecryption in §4.19 ‘In-band secret distribution (Sprout)’ on p. 68 and
§4.20 ‘In-band secret distribution (Sapling and Orchard)’ on p. 70 to return thenoteandmemo field, rather
than anote plaintext.
• Generalize theblock chainscanning algorithm in §4.22 ‘Block Chain Scanning (Sapling and Orchard)’ on
p.75 to support Orchard.
169
•Update the hashFinalSaplingRoot/hashLightClientRoot/hashBlockCommitments field for NU5.
•Update specification ofPoseidon.
•Fix errors in Orcharddue to cut-and-paste from Sapling.
•Add references to [Zcash-halo2].
•Correct the description of length in §5.6.4.1 ‘Unified Payment Addresses and Viewing Keys’ on p.121.
•Correct the type signature ofDiversifyHash Orchard in §4.1.1 ‘Hash Functions’ on p.26.
•Various rationale updates for NU5.
•Other fixes to the Orchardspecification, including generation ofdummy notesand outputnotes.
•Describe the recommended way to encode a Saplingor unifiedpayment addressas a QR code.
•Move the definition of⊥to before its first use.
•Delete a confusing part of the definition ofconcat B that we don’t rely on.
•Add a definition for the § symbol in §1 ‘Introduction’ on p.8, before its first use.
•Remove specification ofmemo fieldcontents, which will be in [ZIP-302].
•Remove support for building the Sprout-only specification (sprout.pdf).
•Remove magenta highlighting of differences fromZerocash.
2021.1.192021-03-17 #2021.1.19
• Correct the range of input to ValueCommitOrchard in theAction statement, and the corresponding security
argument in §4.14 ‘Balance and Binding Signature (Orchard)’ on p.57.
• Update the consensus rules that prevent trivial transactions (with no inputs or outputs) to take into account
Action transfersin the v5transactionformat.
•MakeDiversifyHash Orchard total, by replacing an output of𝒪 P with another base.
•Fix a type error in the non-normative note at the end of §5.4.8.4 ‘Sinsemilla commitments’ on p.101.
2021.1.182021-03-17 #2021.1.18
•Defineunified payment addressesin place of theBech32form of Orchardshielded payment addresses.
•Remove Sprout-specific fields from the v5transactionformat.
• The ρ value for an Orchard-pool outputnotewas incorrectly described as being derived from rseed, instead of
being set to the nullifier from the sameAction descriptionas intended.
•Theψvalue is now derived using thePRF expand input[9], instead of[10].
•Correct a note about the range of the Merkle hash inputs in §4.18.4 ‘Action Statement (Orchard)’ on p.66.
•Correct the validity condition forakin §5.6.4.4 ‘Orchard Raw Full Viewing Keys’ on p.122.
•Add a definition for𝒦 Orchard in §4.16 ‘Computingρvalues and Nullifiers’ on p.60.
•Correct the number of full and partial rounds forPoseidon.
•Add a note explaining the origin of the2 65 constant in the definition ofPoseidonHash.
• The subgroup check added to §4.20.3 ‘Decryption using an Outgoing Viewing Key (Sapling and Orchard)’
on p. 73 for Saplingin v2021.1.17 was applied to the wrong variable (gd, when it should have been pkd), despite
being described correctly in the Change History entry below.
170
2021.1.172021-03-15 #2021.1.17
•Draft NU5specification.
• In the consensus rule that atransactionwith one or moretransparentinputs fromcoinbase transactions
MUSThave notransparentoutputs, explicitly say that inputs fromcoinbase transactionsincludefunding
streamoutputs.
• The definition of an abstraction function in §4.1.9 ‘Represented Group’ on p. 34 incorrectly required canon-
icity, i.e. that abstG does not accept inputs outside the range of reprG. While this was originally intended, it
is not true of abstJ. (It is also not true of abstBytesEd25519, butEd25519is not strictly defined as arepresented
groupin this specification.)
• Correct Theorem 5.4.5 on p. 99, which was proving the wrong thing. It needs to prove that NoteCommitSapling
does not returnUncommitted Sapling, but was previously proving thatPedersenHashdoes not return that value.
• The note aboutnon-canonicalencodings in §5.4.9.3 ‘Jubjub’ on p. 105 gave incorrect values for the encodings
of the point of order2, by omitting a𝑞 J term.
• The specification of decryption in §4.20.3 on p. 73 differed from the zcashd implementation in two respects:
– The specification had a type error in that it failed to check whether abstJ(pk⋆d)=⊥ , which is needed in
order for its use as input toKA Sapling.Agreeto be well-typed.
– The specification did not require pkd to be in the subgroup J(𝑟), while the implementation in zcashd
did. This check is not needed for security; however, since Jubjub public keys are normally of type
KASapling.PublicPrimeOrder, we change the specification to match zcashd.
• Correct the procedure for generatingdummy Sapling-pool notesin §4.8.2 ‘Dummy Notes (Sapling)’ on p. 50.
• Add a note in §5.4.10.1 ‘BCTV14’ on p. 113 describing conditions under which an implementation that check-
points on Saplingcan omit verifyingBCTV14proofs.
• Rename “hash extractor” tocoordinate extractor. This is a more accurate name since it is also used on
commitments.
•Rename char to byte in field type declarations.
2021.1.162021-01-11 #2021.1.16
•Add macros and Makefile support for building the NU5draft specification.
• Clarify the encoding ofblock heightsfor the “height in coinbase” rule. The description of this rule has also
moved from §7.6 on p.137 to §7.1.2 ‘Transaction Consensus Rules’ on p.128.
•Include the activation dates ofHeartwoodandCanopyin §6 ‘Network Upgrades’ on p.124.
• Section links in theHeartwoodandCanopyversions of the specification now go to the correct document
URL.
•Attempt to improve search and cut-and-paste behaviour for ligatures in some PDF readers.
2020.1.152020-11-06 #2020.1.15
• Add a missing consensus rule that has always been implemented in zcashd: there must be at least one
transparent output,Output description, orJoinSplit descriptionin atransaction.
• Add a consensus rule that the (zero-valued)coinbase transactionoutput of thegenesis blockcannot be spent.
• Define ChainValuePoolBalanceSproutPool and ChainValuePoolBalanceSaplingPool, and include consensus rules from
[ZIP-209].
•Correct theSapling-poolnotedecryption algorithms:
– ephemeralKey is kept as abyte sequencerather than immediately converted to a curve point; this matters
because ofnon-canonicalencoding.
171
– The representation of pkd in anote plaintextmay also benon-canonicaland need not be in theprime-
order subgroup.
– Move checking of cm𝑢 in decryption with ivk to the end of the algorithm, to more closely match the
implementation.
–The note about decryption of outputs inmempool transactionsshould have been normative.
•Reservetransaction version number 0x7FFFFFFF andversion group ID 0xFFFFFFFF for experimental use.
• Remove a statement that the language consisting of key and address encoding possibilities is prefix-free. (The
human-readable forms are prefix-free but the raw encodings are not; for example, theraw encodingof a
Saplingspending keycan be a prefix of several of the other encodings.)
•Use “let mutable” to introduce mutable variables in algorithms.
•Include a reference to [BFIJSV2010] for batch pairing verification techniques.
•Acknowledge Jack Gavigan as a co-designer of Saplingand of theZcashprotocol.
•Acknowledge Izaak Meckler, Zac Williamson, Vitalik Buterin, and Jakub Zalewski.
•Acknowledge Alexandra Elbakyan.
2020.1.142020-08-19 #2020.1.14
• The consensus rule that acoinbase transactionmust not spend more than is available from theblock subsidy
andtransaction fees, was not explicitly stated. (This rule was correctly implemented in zcashd.)
• Fix a type error in the output ofPRFnfSapling; a Sapling-pool nullifieris a sequence of 32 bytes, not abit sequence.
• Correct an off-by-one in an expression used in the definition of 𝑐 in §5.4.1.7 ‘Pedersen Hash Function’ on
p.82 (this does not change the value of𝑐).
2020.1.132020-08-11 #2020.1.13
• Rename the type of Saplingtransmission keysfrom KASapling.PublicPrimeOrder to KASapling.PublicPrimeSubgroup.
This type is defined as J(𝑟), which reflects the implementation in zcashd (subject to the next point below); it
was never enforced that atransmission key(pk d) cannot be𝒪 J.
• Add a non-normative note saying that zcashd does not fully conform to the requirement to treattransmission
keysnot inKA Sapling.PublicPrimeSubgroupas invalid when importingshielded payment addresses.
• Retrospective note:Changing KASapling.PublicPrimeOrder to KASapling.PublicPrimeSubgroup was a mistake and
has since been reverted in specification version v2025.6.0. As discussed in notes added in version v2023.4.0
at §4.20.3 ‘Decryption using an Outgoing Viewing Key (Sapling and Orchard)’ on p. 73, librustzcash changed
in [librustzcash-109] to enforce that pkd is not𝒪J. zcashd also used a different implementation for a consensus
check onshieldedcoinbase outputs. The missing check on pkd for the latter was corrected in [zcashd-6459],
and simplified when it was observed to be retrospectively valid in [zcashd-6725]. However [ZIP-216] was only
corrected later [Zips-Issue664], at the same time as the publication of v2025.6.0.
•SetCanopyActivationHeightforTestnet.
•Modify the tables and notes in §7.10.1 ‘ZIP 214 Funding Streams’ on p.146 to reflect changes in [ZIP-214].
• Updates to reflect [ZIP-211]: add a consensus rule on voldpub in §4.3 ‘JoinSplit Descriptions’ on p. 41, and a rule
about node and wallet support for sending to Sproutaddresses in §4.7.1 ‘Sending Notes (Sprout)’ on p.46.
•Refine the domain ofHeightForHalvingfromNtoN +.
• Make Halving(height) return 0 (rather than−1) for height<SlowStartShift . This has no effect on consensus
since the Halving function is not used in that case, but it makes the definition match the intuitive meaning of
the function.
• Rename sections under §7 ‘Consensus Changes from Bitcoin Bitcoin Bitcoin Bitcoin’ on p. 125 to clarify that these sections do not
only concern encoding, but also consensus rules.
172
•Make theCanopyspecification the default.
2020.1.122020-08-03 #2020.1.12
•IncludeSHA-512in §5.4.1.1 ‘SHA-256,SHA-256d,SHA256Compress, andSHA-512Hash Functions’ on p.78.
•Add a reference to [BCCGLRT2014] in §4.1.13 ‘Zero-Knowledge Proving System’ on p.36.
• Use abstBytesEd25519 and reprBytesEd25519 for conversions in §B.3 ‘Ed25519batch validation’ on p. 230, and fix
a missing requirement that𝑆 𝑗 < ℓfor all signatures.
2020.1.112020-07-13 #2020.1.11
• Change instances of “the production network” to “Mainnet” , and “the test network” toTestnet. This follows
the terminology used in ZIPs.
•Update stale references toBitcoindocumentation.
•Add changes for [ZIP-207] and [ZIP-214].
2020.1.102020-07-05 #2020.1.10
•Corrections to a note in §5.4.6 ‘Ed25519’ on p.93.
2020.1.92020-07-05 #2020.1.9
•Add §3.12 ‘Mainnet and Testnet’ on p.24.
•Acknowledge Jane Lusby and teor.
•Precisely specify the encoding and decoding ofEd25519points.
• Correct an error introduced in v2020.1.8; “−𝒪J” was incorrectly used when the point (0,−1) on Jubjub was
meant.
•Precisely specify the conversion from abit sequenceinabst J.
2020.1.82020-07-04 #2020.1.8
•Add Ying Tong Lai and Kris Nuttycombe asZcashprotocol designers.
•Change the specification ofabst J in §5.4.9.3 ‘Jubjub’ on p.105 to match the implementation.
• Repair the argument for GroupHashJ(𝑟)*URS being usable as arandom oracle, which previously depended on abstJ
being injective.
• In RedDSA verification, clarify that 𝑅 used as part of the input to H⊛ MUSTbe exactly as encoded in the
signature.
• Specify thatshielded outputsofcoinbase transactionsMUSTuse v2note plaintextsafterCanopyactivation.
•Correct a bug in §4.20.3 ‘Decryption using an Outgoing Viewing Key (Sapling and Orchard)’ on p.73:
esk is only to be checked against ToScalar
(︀
PRFexpandrseed ([4]))︀ when leadByte̸= 0x01. [Later edit: this should have
beenToScalar
(︀
PRFexpandrseed ([5]))︀.]
173
2020.1.72020-06-26 #2020.1.7
•Delete some ‘new’ superscripts that only added notational clutter.
• Add an explicit lead byte field to Sprout-pool note plaintexts, and clearly specify the error handling when it is
invalid.
• Define a Sapling-pool note plaintext lead byteas having type BY Y (so that decoding to anote plaintextalways
succeeds, and error handling is more explicit).
• Fix a sign error in the fixed-base term of the batch validation equation in §B.1 ‘RedDSAbatch validation’ on
p.227.
• Fix a sign error in the fixed-base term of the batch validation equation in §B.3 ‘Ed25519batch validation’ on
p.230.
2020.1.62020-06-17 #2020.1.6
•Incorporate changes to Saplingnoteencryption from [ZIP-212].
• Correct an error in the specification ofEd25519validating keys: they should not have been specified to be
checked againstPreCanopyExcludedPointEncodings, since libsodium v1.0.15 does not do so.
•IncorporateEd25519changes forCanopyfrom [ZIP-215].
•Add Appendix §B.3 ‘Ed25519batch validation’ on p.230.
•Consistently use “validating” for signatures and “verifying” for proofs.
•Use the symbol +√∙ for positive square root.
2020.1.52020-06-02 #2020.1.5
•Reference [ZIP-173] instead of BIP 173.
•Mark more index entries as definitions.
2020.1.42020-05-27 #2020.1.4
•Reference [BIP-32] and [ZIP-32] when describing keys and their encodings.
•Network Upgrade 4 has been given the nameCanopy.
•Reference [ZIP-211], [ZIP-212], and [ZIP-215] for theCanopyupgrade.
•Improve LaTeX portability of this specification.
2020.1.32020-04-22 #2020.1.3
• Correct a wording error transposingtransparent inputsandtransparent outputsin §4.12 ‘Balance (Sprout)’
on p.54.
•Minor wording clarifications.
•Reference [ZIP-251], [ZIP-207], and [ZIP-214] for theCanopyupgrade.
174
2020.1.22020-03-20 #2020.1.2
• The implementation of SproutEd25519signature validation in zcashd differed from what was specified in §5.4.6
‘Ed25519’ on p.93. The specification has been changed to match the implementation.
•Add consensus rules forHeartwood.
•Remove “pvc” Makefile targets.
•Make theHeartwoodspecification the default.
•Add macros and Makefile support for building theCanopyspecification.
2020.1.12020-02-13 #2020.1.1
•Resolve conflicts in the specification ofmemo fieldsby deferring to [ZIP-302].
2020.1.02020-02-06 #2020.1.0
• Specify a retrospective soft fork implemented inzcashd v2.1.1-1 that limits the nTime field of ablockrelative
to itsmedian-time-past.
•Correct the definition ofmedian-time-pastfor the firstPoWMedianBlockSpanblocksin ablock chain.
•Add acknowledgements to Henry de Valence, Deirdre Connolly, Chelsea Komlo, and Zancas Wilcox.
•Add an acknowledgement to Trail of Bits for their security audit.
•Change indices in theincremental Merkle treediagram to be zero-based.
• Use the term “monomorphism” for an injective homomorphism, in the context of asignature scheme with
key monomorphism.
2019.0.92019-12-27 #2019.0.9
•No changes to Sproutor Sapling.
•Specify the height at whichBlossomactivated.
•AddBlossomto §6 ‘Network Upgrades’ on p.124.
•Add a non-normative note giving the explicit value ofFoundersRewardLastBlockHeight.
•Clarify the effect ofBlossomonSIGHASH transaction hashes.
• Makefile updates forHeartwood.
2019.0.82019-09-24 #2019.0.8
•Fix a typo in the generator𝒫 S1 in §5.4.9.2 ‘BLS12-381’ on p.104 found by magrady.
•Clarify the type ofv new in §4.7.2 ‘Sending Notes (Sapling)’ on p.47.
2019.0.72019-09-24 #2019.0.7
•Fix a discrepancy in the number of constraints for BLAKE2s found by QED-it.
• Fix an error in the expression for Δ in §A.3.3.9 ‘Pedersen hash’ on p. 217, and add acknowledgement to Kobi
Gurkan.
•Fix a typo in §4.9 ‘Merkle Path Validity’ on p.52 and add acknowledgement to Weikeng Chen.
•Update references to ZIPs and to the Electric Coin Company blog.
• Makefile improvements to suppress unneeded output.
175
2019.0.62019-08-23 #2019.0.6
•No changes to Sproutor Sapling.
•Replace dummyBlossomactivation block heightwith theTestnetheight, and a reference to [ZIP-206].
2019.0.52019-08-23 #2019.0.5
•Note the change to the minimum-difficulty threshold time onTestnetforBlossom.
•Correct the packing ofnf old into input elements in §A.4 ‘The Sapling Spend circuit’ on p.224.
•Add an epigraph from [Carroll1876] to the start of §5.4.9.3 ‘Jubjub’ on p.105.
•Clarify how the constant𝑐in §5.4.1.7 ‘Pedersen Hash Function’ on p.82 is obtained.
• Add a footnote that zcashd uses [ZIP-32] extended spending keysinstead of the derivation from sk in §3.1
‘Payment Addresses and Keys’ on p.14.
•Remove “optimized” Makefile targets (which actually produced a larger PDF, with TeXLive 2019).
•Remove “html” Makefile targets.
•Make theBlossomspec the default.
2019.0.42019-07-23 #2019.0.4
•Clicking on a section heading now shows section labels.
•Add aList of Theorems and Lemmata.
•Changes needed to support TeXLive 2019.
2019.0.32019-07-08 #2019.0.3
•Experimental support for building using LuaT EX and XeTEX.
•Add anIndex.
2019.0.22019-06-18 #2019.0.2
• Correct a misstatement in the security argument in §4.13 ‘Balance and Binding Signature (Sapling)’ on p. 55:
bindingfor acommitment schemedoes not imply that the commitment determines its randomness. The
rest of the security argument did not depend on this; it is simpler to rely on knowledge soundness of the
Spend and Output proofs.
•Give a definition forcomplete twisted Edwards elliptic curvesin §5.4.9.3 ‘Jubjub’ on p.105.
•Clarify that Theorem 5.4.5 on p.99 depends on the parameters of theJubjub curve.
•Ensure that this document builds correctly and without missing characters on recent versions of T EXLive.
•Update the Makefile to use Ghostscript for PDF optimization.
• Ensure that hyperlinks are preserved, and available as “Destination names” in URL fragments and links from
other PDF documents.
2019.0.12019-05-20 #2019.0.1
•No changes to Sproutor Sapling.
•Minor fix to the list of integer constants in §2 ‘Notation’ on p.11.
•UseIsBlossomActivatedin the definition ofFounderAddressAdjustedHeightfor consistency.
176
2019.0.02019-05-01 #2019.0.0
•Fix a specification error in theFounders’ Rewardcalculation during the slow start period.
• Correct an inconsistency in difficulty adjustment between the spe프로젝트로 돌아가기