Zcash 백서

Zcash

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 35쪽 중 27쪽

c andzcashd implementation for the first PoWAveragingWindow−1 blocksof theblock chain. This inconsistency was pointed out by NCC Group in theirBlossomspecification audit. •Revert changes forfunding streamsfrom Withdrawn ZIP 207. 2019.0-beta-392019-04-18 #2019.0-beta-39 •Change author affiliations from “Zerocoin Electric Coin Company” to “Electric Coin Company” . • Add acknowledgement to Mary Maller for the observation thatdiversified payment addressunlinkability can be proven in the same way askey privacyfor ElGamal. 2019.0-beta-382019-04-18 #2019.0-beta-38 •Update the following sections to match the current draft of [ZIP-208]: – §7.7.3 ‘Difficulty adjustment’ on p.140 – §7.8 ‘Calculating Block Subsidy, Funding Streams, Lockbox Disbursement, and Founders’ Reward’ on p.142 •Specifyfunding streams, along with the draftfunding streamsdefined in the current draft of ZIP 207. •Update the following sections to match the current draft of ZIP 207: – §3.10 ‘Block Subsidy, Funding Streams, and Founders’ Reward’on p.24 – §3.11 ‘Coinbase Transactions’ on p.24 – §7.8 ‘Calculating Block Subsidy, Funding Streams, Lockbox Disbursement, and Founders’ Reward’ on p.142 – §7.9 ‘Payment of Founders’ Reward’ on p.143 •Correct the generators𝒫 S1 and𝒫 S2 for BLS12-381. •Update README.rst to include Makefile targets forBlossom. • Makefile updates: –Fix a typo for the pvcblossom target. –Update the pinned git hashes for sam2p and pdfsizeopt. 2019.0-beta-372019-02-22 #2019.0-beta-37 • The rule that minersSHOULD NOTmineblocksthat chain to otherblockswith ablock version number greater than 4, has been removed. This is because suchblocks(mined nonconformantly) exist in the current Mainnetconsensusblock chain. •Clarify thatEquihashis based on a variation of the Generalized Birthday Problem, and cite [AR2017]. •Update reference [BGG2017] (previously [BGG2016]). •Clarify which transaction fields are added byOverwinterand Sapling. •Correct the rule about when atransactionis permitted to have notransparentinputs. •Explain the differences between the system in [Groth2016] and what we refer to asGroth16. •Reference Mary Maller’s security proof forGroth16[Maller2018]. •Correct [BGM2018] to [BGM2017]. 177 •Fix a typo in §B.2 ‘Groth16 batch verification’ on p.228 and clarify the costs ofGroth16batch verification. •Add macros and Makefile support for building theBlossomspecification. 2019.0-beta-362019-02-09 #2019.0-beta-36 •Correct isis agora lovecruft’s name. 2019.0-beta-352019-02-08 #2019.0-beta-35 •Cite [Gabizon2019] and acknowledge Ariel Gabizon. •Correct [SBB2019] to [SWB2019]. •The [Gabizon2019] vulnerability affected Soundness ofBCTV14as well as Knowledge Soundness. •Clarify the history of the [Parno2015] vulnerability and acknowledge Bryan Parno. •Specify the difficulty adjustment change that occurred onTestnetatblock height299188. •Add Eirik Ogilvie-Wigley and Benjamin Winston to acknowledgements. • Renamezk-SNARKParameters sections to be named according to theproving system( BCTV14 or Groth16), not theshielded protocolconstruction ( Sproutor Sapling). •In §6 ‘Network Upgrades’ on p.124, say when Saplingactivated. 2019.0-beta-342019-02-05 #2019.0-beta-34 • Disclose a security vulnerability in BCTV14 that affected Sproutbefore activation of the Sapling network upgrade(see §5.4.10.1 ‘BCTV14’ on p.113). •Rename PHGR13 to BCTV2014. •Rename reference [BCTV2015] to [BCTV2014a], and [BCTV2014] to [BCTV2014b]. 2018.0-beta-332018-11-14 #2018.0-beta-33 •Complete §A.4 ‘The Sapling Spend circuit’ on p.224. •Add §A.5 ‘The Sapling Output circuit’ on p.226. • Change the description of window lookup in §A.3.3.7 ‘Fixed-base Affine-ctEdwards scalar multiplication’ on p.215 to match sapling-crypto. •Describe2-bit window lookup with conditional negation in §A.3.3.9 ‘Pedersen hash’ on p.217. •Fix or complete various calculations of constraint costs. •Adjust the notation used for scalar multiplication in Appendix A to allowbit sequencesas scalars. 2018.0-beta-322018-10-24 #2018.0-beta-32 • Correct the input toH⊛ used to derive the nonce𝑟 in RedDSA.Sign, from 𝑇||𝑀 to 𝑇||vk ||𝑀 . This matches the sapling-crypto implementation; the specification of this input was unintentionally changed inv2018.0-beta-20. •Clarify the description of the Merkle path check in §A.3.4 ‘Merkle path check’ on p.220. 178 2018.0-beta-312018-09-30 #2018.0-beta-31 •Correct some uses of𝑟 J that should have been𝑟 S or𝑞. • Correct uses of LEOS2IPℓ in RedDSA.Validate and RedDSA.BatchValidate to ensure that ℓ is a multiple of 8 as required. • Minor changes to avoid clashing notation for Edwards curves 𝐸Edwards(𝑎,𝑑),Montgomery curves 𝐸Mont(𝐴,𝐵), and extractorsℰ𝒜. • Correct a use of J that should have been M in the proof of Theorem A.3.4 on p. 213, and make a minor tweak to the theorem statement (𝑘2̸=±𝑘 1 instead of 𝑘1̸=±𝑘 2) to make the contradiction derived by the proof clearer. •Clarify notation in the proof of Theorem A.3.3 on p.213. •Address some of the findings of the QED-it report: –Improved cross-referencing in §5.4.1.7 ‘Pedersen Hash Function’ on p.82. – Clarify the notes concerning domain separation of prefixes in §5.4.1.3 ‘MerkleCRHSapling Hash Function’ on p.79 and §5.4.8.2 ‘Windowed Pedersen commitments’ on p.99. –Correct the statement and proof of Theorem A.3.2 on p.213. •Add the QED-it report to the acknowledgements. 2018.0-beta-302018-09-02 #2018.0-beta-30 • Give an informal security argument for Unlinkability ofdiversified payment addressesbased on reduction to key privacyof ElGamal encryption, for which a security proof is given in [BBDP2001]. (This argument has gaps which will be addressed in a future version.) •Add a reference to [BGM2017] for the Saplingzk-SNARKparameters. •Write §A.4 ‘The Sapling Spend circuit’ on p.224 (draft). • Add a reference to the ristretto_bulletproofs design notes [Dalek-notes] for the synthetic blinding factor technique. • Ensure that the constraint costs in §A.3.3.1 ‘Checking that Affine-ctEdwards coordinates are on the curve’ on p. 212 and §A.3.3.6 ‘Affine-ctEdwards nonsmall-order check’ on p. 215 accurately reflect the implementa- tion in sapling-crypto. •Minor correction to the non-normative note in §A.3.2.2 ‘Range check’ on p.210. • Clarify non-normative note in §4.1.8 ‘Commitment’ on p. 32 about the definitions ofValueCommitSapling.Output andNoteCommit Sapling.Output. • Clarify that the signer of aspend authorization signatureis supposed to choose thespend authorization randomizer, 𝛼, itself. Only step 4 in §4.15 ‘Spend Authorization Signature (Sapling and Orchard)’ on p. 59 may securely be delegated. • Add a non-normative note to §5.4.7 ‘RedDSA,RedJubjub, andRedPallas’ on p. 95 explaining that RedDSA key randomization may interact with other uses of additive properties of Schnorr keys. •Add dates to Change History entries. (These are the dates of the git tags in local, i.e. UK, time.) 2018.0-beta-292018-08-15 #2018.0-beta-29 •Finish §A.3.2.2 ‘Range check’ on p.210. • Change §A.3.7 ‘BLAKE2s hashes’ on p. 221 to correct the constraint count and to describe batched equality checks performed by the sapling-crypto implementation. 179 2018.0-beta-282018-08-14 #2018.0-beta-28 •Finish §A.3.7 ‘BLAKE2s hashes’ on p.221. •Minor corrections to §A.3.3.8 ‘Variable-base Affine-ctEdwards scalar multiplication’ on p.216. 2018.0-beta-272018-08-12 #2018.0-beta-27 •Notational changes: –Use a superscript (𝑟) to mark the subgroup order, instead of a subscript. –UseG (𝑟)* for the set of𝑟 G-order points inG. –Mark the subgroup order in pairing groups, e.g. useG (𝑟)1 instead ofG 1. –Make the bit-representation indicator⋆an affix instead of a superscript. • Clarify that when validating a Groth16 proof, it is necessary to perform a subgroup check for 𝜋𝐴 and 𝜋𝐶 as well as for𝜋 𝐵. • Correct the description of Groth16 batch verification to explicitly take account of how verification depends on primary inputs. • Add Charles Rackoff, Rafail Ostrovsky, and Amit Sahai to the acknowledgements section for their work on zero-knowledge proofs. 2018.0-beta-262018-08-05 #2018.0-beta-26 •Add §B.2 ‘Groth16 batch verification’ on p.228. 2018.0-beta-252018-08-05 #2018.0-beta-25 •Add the hashes of parameter files for Sapling. •Add cross references for parameters and functions used inRedDSAbatch validation. • Makefile changes: name the PDF file for the Sproutversion of the specification as sprout.pdf, and make protocol.pdf link to the Saplingversion. 2018.0-beta-242018-07-31 #2018.0-beta-24 • Add a missing consensus rule for version 4transactions: if there are no Sapling-pool Spends or Outputs, then valueBalanceSapling MUSTbe0. 2018.0-beta-232018-07-27 #2018.0-beta-23 • Update RedDSA validation to use cofactor multiplication. This is necessary in order for the output of batch validation to match that of unbatched validation in all cases. •Add §B.1 ‘RedDSAbatch validation’ on p.227. 180 2018.0-beta-222018-07-18 #2018.0-beta-22 •Update §6 ‘Network Upgrades’ on p.124 to take account thatOverwinterhas activated. • The recommendation fortransactionswithoutJoinSplit descriptionsto be version 1 applies only before Overwinter, not before Sapling. •Complete the proof of Theorem A.3.5 on p.218. •Add a note about redundancy in the nonsmall-order checking ofrk. •Clarify the use ofcv new andcm new, and the selection ofoutgoing viewing key, in sendingSapling-poolnotes. • Delete the description of optimizations for the affine twisted Edwards nonsmall-order check, since the Sapling circuit does not use them. Also clarify that some other optimizations are not used. 2018.0-beta-212018-06-22 #2018.0-beta-21 • Remove the consensus rule “If nJoinSplit >0 , thetransactionMUST NOTuseSIGHASH typesother than SIGHASH_ALL. ” , which was never implemented. •Add section on signature hashing. •Briefly describe the changes to computation ofSIGHASH transaction hashesin Sprout. •Clarify that interstitialtreestatesform a tree for eachtransactioncontainingJoinSplit descriptions. • Correct the description ofP2PKH addressesin §5.6.1.1 ‘Transparent Addresses’ on p. 116 — they use a hash of a compressed, not an uncompressedECDSAkey representation. •Clarify the wording of the caveat 4 about the claimed security of shieldedtransactions. •Correct the definition of set difference (𝑆∖𝑇). •Add a note concerning malleability ofzk-SNARK proofs. •Clarify attribution of theZcashprotocol design. •Acknowledge Alex Biryukov and Dmitry Khovratovich as the designers ofEquihash. • Acknowledge Shafi Goldwasser, Silvio Micali, Oded Goldreich, Rosario Gennaro, Bryan Parno, Jon Howell, Craig Gentry, Mariana Raykova, and Jens Groth for their work onzero-knowledge proving systems. •Acknowledge Tomas Sander and Amnon Ta-Shma for [ST1999]. •Acknowledge Kudelski Security’s audit. •Use the more precise subgroup typesG (𝑟) andJ (𝑟) in preference toGandJwhere applicable. • Change the types ofauxiliary inputsto theSpend statementandOutput statement, to be more faithful to the implementation. • Rename the cm field of anOutput descriptionto cmu, reflecting the fact that it is aJubjub curve 𝑢-coordinate. • Add explicit consensus rules that theanchorSapling field of aSpend descriptionand the cmu field of anOutput descriptionmust be canonical encodings. •Enforce thateskin outCiphertext is a canonical encoding. • Add consensus rules that cv in aSpend description, and cv and epk in anOutput description, are not ofsmall order. Exclude0from the range ofeskwhen encryptingSapling-poolnotes. •Add a consensus rule that valueBalanceSapling is in the range{−MAX_MONEY..MAX_MONEY}. •Enforce stronger constraints on the types of key componentspk d,ak, andnk. • Correct the conformance rule for fOverwintered (it must not be set beforeOverwinterhas activated, not before Saplinghas activated). •Correct the argument thatv * is in range in §4.13 ‘Balance and Binding Signature (Sapling)’ on p.55. 181 • Correct an error in the algorithm for RedDSA.Validate: thevalidating key vk is given directly to this algorithm and should not be computed from the unknownsigning keysk. • Correct or improve the types of GroupHashJ(𝑟)*, FindGroupHashJ(𝑟)*, ExtractJ(𝑟), PRFexpand, PRFockSapling, and CRHivk. •InstantiatePRF ockSapling usingBLAKE2b-256. • Change the syntax of acommitment schemeto add COMM.GenTrapdoor. This is necessary because the intended distribution ofcommitment trapdoorsmay not be uniform on all values that are acceptabletrapdoor inputs. •Add notes on the purpose ofoutgoing viewing keys. •Correct the encoding of afull viewing key(ovkwas missing). •Ensure that Sproutfunctions and values are given Sprout-specific types where appropriate. •Improve cross-referencing. •Clarify the use ofBCTV14vsGroth16proofs inJoinSplit statements. • Clarify that the +√𝑎 notation refers to the positive square root. (This matters for the conversion in §A.3.3.3 ‘ctEdwards↔Montgomery conversion’ on p.212.) • Model the group hash as arandom oracle. This appears to be unavoidable in order to allow proving unlink- ability of DiversifyHashSapling. Explain how this relates to the Discrete Logarithm Independence assumption used previously, and justify this modelling by showing that it follows from treating BLAKE2s-256 as arandom oraclein the instantiation ofGroupHash J(𝑟)*. • Rename CRS (Common Random String) to URS (Uniform Random String), to match the terminology adopted at the first ZKProof workshop held in Boston, Massachusetts on May 10–11, 2018. • Generalize PRFexpand to accept an arbitrary-length input. (This specification does not use that generalization, but [ZIP-32] does.) • Change the notation for a multiplication constraint in Appendix §A ‘Circuit Design’ on p. 207 to avoid potential confusion with cartesian product. •Clarify the wording of the abstract. •Correct statements about which algorithms are instantiated byBLAKE2sandBLAKE2b. •Add a note explaining which conformance requirements of BIP 173 (definingBech32) apply. • Add the Jubjub bird image to the title page. This image has been edited from a scan of Peter Newell’s original illustration (as it appeared in [Carroll1902]) to remove the background and Bandersnatch, and to restore the bird’s clipped right wing. • Change the light yellow background to white (indicating that thisOverwinterand Sapling specification is no longer a draft). 2018.0-beta-202018-05-22 #2018.0-beta-20 •Add Michael Dixon and Andrew Poelstra to acknowledgements. •Minor improvements to cross-references. •Correct the order of arguments toRedDSA.RandomizePrivateandRedDSA.RandomizePublic. •Correct a reference toRedDSA.RandomizePrivatethat was intended to beRedDSA.RandomizePublic. • Fix the description of theSapling-pool balancing valuein §4.13 ‘Balance and Binding Signature (Sapling)’ on p.55. •Correct a type error in §5.4.9.5 ‘Group Hash into Jubjub’ on p.107. •Correct a type error inRedDSA.Signin §5.4.7 ‘RedDSA,RedJubjub, andRedPallas’ on p.95. 182 •Ensure𝒢 Sapling is defined in §5.4.7.1 ‘Spend Authorization Signature (Sapling and Orchard)’ on p.98. •Make thevalidating keyprefix part of the input to thehash functioninRedDSA, not part of the message. •Correct the statement aboutFindGroupHash J(𝑟)* never returning⊥. •Correct an error in the computation of generators forPedersen hashes. • Change the order in which NoteCommitSapling commits to its inputs, to match the sapling-crypto implementa- tion. •Fail Saplingkey generation ifivk= 0. (This has negligible probability.) • Change the notation H⋆ to H⊛ in §5.4.7 ‘RedDSA,RedJubjub, andRedPallas’ on p. 95, to avoid confusion with the ⋆ convention for representations of group elements. • cmu encodes only the𝑢-coordinate of thenote commitment, not the full curve point. •rkis checked to be not ofsmall orderoutside theSpend statement, not in theSpend statement. •Change terminology describing constraint systems. 2018.0-beta-192018-04-23 #2018.0-beta-19 •Minor clarifications. 2018.0-beta-182018-04-23 #2018.0-beta-18 •Clarify the security argument for balance in Sapling. • Correct a subtle problem with the type of the value input to ValueCommitSapling: although it is only directly used to commit to values in{0..2 ℓvalue−1}, the security argument depends on a sum of commitments being bindingon {︀ − 𝑟J−12 .. 𝑟J−12 }︀. •Fix the loss of tightness in the use ofPRF nfSapling by specifying the keyspace more precisely. •Correct type ambiguities forρ. •Specify the representation of𝑖in groupG 2 ofBLS12-381. 2018.0-beta-172018-04-21 #2018.0-beta-17 •Correct an error in the definition ofDefaultDiversifier. 2018.0-beta-162018-04-21 #2018.0-beta-16 •Explicitly note that outputs fromcoinbase transactionsincludeFounders’ Rewardoutputs. • The point represented by 𝑅 in anEd25519signature is checked to not be ofsmall order; this is not the same as checking that it is ofprime orderℓ. •Specify support for [BIP-111] (the NODE_BLOOM service bit) inpeer-to-peer protocolversion170004. •Give references [Vercauter2009] and [AKLGL2010] for the optimal ate pairing. •Give references for BLS [BLS2002] and BN [BN2005] curves. •DefineKA Sprout.DerivePublicforCurve25519. • Caveat the claim aboutnote traceability setin §1.2 ‘High-level Overview’ on p. 9 and link to [Peterson2017] and [Quesnelle2017]. • Do not require a generator as part of the specification of arepresented group; instead, define it in the represented pairingor scheme using the group. 183 • Refactor the abstract definition of asignature schemeto allow derivation ofvalidating keysindependent of key pair generation. •Correct the explanation in §1.2 ‘High-level Overview’ on p.9 to apply to Sapling. •Add the definition of asigning keytovalidating keyhomomorphism forsignature schemes. •Remove the output index as an input toKDF Sapling. •Allow dummySapling-poolinputnotes. •SpecifyRedDSAandRedJubjub. •SpecifySapling binding signaturesandspend authorization signatures. •Specify the randomness beacon. •Addoutgoing ciphertextsandock. •DefineDefaultDiversifier. • Change theSpend circuitandOutput circuitspecifications to remove unintended differences from sapling- crypto. •Useℎ J to refer to theJubjub curvecofactor, rather than8. • Correct an error in the 𝑦-coordinate formula for addition in §A.3.3.4 ‘Affine-Montgomery arithmetic’ on p.213 (the constraints were correct). •Add acknowledgements for Brian Warner, Mary Maller, and the Least Authority audit. • Makefile improvements. 2018.0-beta-152018-03-19 #2018.0-beta-15 •Clarify the bit ordering of SHA-256. •Drop _t from the names of representation types. •Remove functions from the Sproutspecification that it does not use. •Updates to transaction format and consensus rules for Overwinter and Sapling. •Add specification of theOutput statement. •ChangeMerkleDepth Sapling from29to32. • Updates to Saplingconstruction, changing how thenullifieris computed and separating it from therandomized Spend validating key(rk). •Clarify conversions betweenbit sequencesandbyte sequencesforsk,repr J(ak), andrepr J(nk). •Change the Makefile to avoid multiple reloads in PDF readers while rebuilding the PDF. •Spacing and pagination improvements. 2018.0-beta-142018-03-11 #2018.0-beta-14 •Only cosmetic changes to Sprout. •SimplifyFindGroupHash J(𝑟)* to use a single-byte index. •Changes to diversification forPedersen hashesandPedersen commitments. •Improve security definitions for signatures. 184 2018.0-beta-132018-03-11 #2018.0-beta-13 •Only cosmetic changes to Sprout. •Change how(ask,nsk)are derived from thespending keyskto ensure they are on the full range ofF 𝑟J. •ChangePRF nr to produce output computationally indistinguishable from uniform onF𝑟J. •ChangeUncommitted Sapling to be a𝑢-coordinate for which there is no point on the curve. •Appendix A updates: –categorize components into larger sections –fill in the [de]compression and validation algorithm –more precisely state the assumptions for inputs and outputs –delete not-all-one component which is no longer needed –factor out xor into its own component –specify [un]packing more precisely; separate it from boolean constraints –optimize checkin
프로젝트로 돌아가기