Zcash 백서

Zcash

원문

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

the post-Canopyrules forEd25519signatures are a relaxation of the pre-Canopyrules, afull validatorimplementation that checkpoints on theCanopyactivation blockMAY validate using the post-Canopyrules for the whole chain (and zcashd does so since zcashd v4.2.0). We retain the pre-Canopyrules in the specification in order to accurately document the history of consensus changes. 5.4.7RedDSA,RedJubjub, andRedPallas #concretereddsa RedDSA is a Schnorr-basedsignature scheme, optionally supporting keyre-randomizationas described in §4.1.7.1 ‘Signature with Re-Randomizable Keys’ on p. 31. It also supports a Secret Key to Public Key Monomorphism as described in §4.1.7.2 ‘Signature with Signing Key to Validating Key Monomorphism’ on p. 32. It is based on a scheme from [FKMSSS2016, section 3], with some ideas from EdDSA [BJLSY2015]. RedJubjub is a specialization of RedDSA to theJubjub curve( §5.4.9.3 ‘Jubjub’ on p. 105), using the BLAKE2b-512 hash function. Thespend authorization signature scheme SpendAuthSigSapling is instantiated byRedJubjub, using parameters defined in §5.4.7.1 ‘Spend Authorization Signature (Sapling and Orchard)’ on p.98. Thebinding signature scheme BindingSigSapling is instantiated by RedJubjub without keyre-randomization, using parameters defined in §5.4.7.2 ‘Binding Signature (Sapling and Orchard)’ on p.98. RedPallas is a specialization of RedDSA to thePallas curvedefined in §5.4.9.6 ‘Pallas and Vesta’ on p. 108, using the BLAKE2b-512hash function. Thespend authorization signature scheme SpendAuthSigOrchard is instantiated byRedPallas, using parameters defined in §5.4.7.1 ‘Spend Authorization Signature (Sapling and Orchard)’ on p.98. Thebinding signature scheme BindingSigOrchard is instantiated by RedPallas without keyre-randomization, using parameters defined in §5.4.7.2 ‘Binding Signature (Sapling and Orchard)’ on p.98. Let I2LEBSP, I2LEOSP, LEOS2IP, and LEBS2OSP be as defined in §5.1 ‘Integers, Bit Sequences, and Endianness’ on p.76. We first describe the schemeRedDSAover a generalrepresented group. Its parameters are: • arepresented group G, which also defines a subgroup G(𝑟) of order 𝑟G, a cofactor ℎG, a group operation +, an additive identity𝒪G, a bit-length ℓG, a representation function reprG, and an abstraction function abstG, as specified in §4.1.9 ‘Represented Group’ on p.34; •𝒫 G, a generator ofG (𝑟); •a bit-lengthℓ H Nsuch that2 ℓH−128≥𝑟 G andℓ H mod 8 = 0; •a cryptographichash functionH BY Y[N]→B Y Y[ℓH/8]. 95 Its associated types are defined as follows: RedDSA.Message:=B Y Y[N] RedDSA.Signature:=B Y Y[ceiling(ℓG /8) +ceiling(bitlength(𝑟G)/8)] RedDSA.Public:=G RedDSA.Private:=F 𝑟G. RedDSA.Random:=F 𝑟G. DefineH ⊛ BY Y[N]→F 𝑟G by: H⊛(𝐵) =LEOS2IP ℓH(︀H(𝐵))︀ (mod𝑟 G) DefineRedDSA.GenPrivate ()→R RedDSA.Privateas: Returnsk←R F𝑟G. DefineRedDSA.DerivePublic RedDSA.Private→RedDSA.Publicby: RedDSA.DerivePublic(sk) :=[sk]𝒫 G. DefineRedDSA.GenRandom ()→R RedDSA.Randomas: Choose abyte sequence𝑇uniformly at random onB Y Y[(ℓH+128)/8]. ReturnH ⊛(𝑇). Define𝒪 RedDSA.Random := 0 (mod𝑟 G). DefineRedDSA.RandomizePrivate RedDSA.Random×RedDSA.Private→RedDSA.Privateby: RedDSA.RandomizePrivate(𝛼,sk) :=sk+𝛼(mod𝑟 G). DefineRedDSA.RandomizePublic RedDSA.Random×RedDSA.Public→RedDSA.Publicas: RedDSA.RandomizePublic(𝛼,vk) :=vk+[𝛼]𝒫 G. DefineRedDSA.Sign (sk RedDSA.Private)×(𝑀 RedDSA.Message)→R RedDSA.Signatureas: Choose abyte sequence𝑇uniformly at random onB Y Y[(ℓH+128)/8]. Letvk =LEBS2OSP ℓG (︀ reprG(RedDSA.DerivePublic(sk)) )︀ . Let𝑟=H ⊛(𝑇||vk ||𝑀). Let𝑅=[𝑟]𝒫 G. Let𝑅 =LEBS2OSP ℓG (︀ reprG(𝑅) )︀ . Let𝑆= (𝑟+H ⊛(𝑅||vk||𝑀)·sk) mod𝑟 G. Let𝑆 =I2LEOSP bitlength(𝑟G)(𝑆). Return𝑅||𝑆 . DefineRedDSA.Validate (vk RedDSA.Public)×(𝑀 RedDSA.Message)×(𝜎 RedDSA.Signature)→Bas: Let𝑅 be the firstceiling (︀ ℓG /8 )︀ bytes of𝜎, and let𝑆 be the remainingceiling(bitlength(𝑟 G)/8)bytes. Let𝑅=abst G (︀ LEOS2BSPℓG (𝑅) )︀ , and let𝑆=LEOS2IP 8·length(𝑆)(𝑆). Letvk =LEBS2OSP ℓG (︀ reprG(vk) )︀ . Let𝑐=H ⊛(𝑅||vk||𝑀). [ NU5onward] Ifrepr G(𝑅)̸=𝑅 , return0. Return1if𝑅̸=⊥and𝑆 < 𝑟 G and[ℎ G] (︀ −[𝑆]𝒫 G +𝑅+[𝑐]vk )︀ =𝒪 G, otherwise0. 96 Notes: •The validation algorithm does not check that𝑅is a point of order at least𝑟 G. • After the activation of [ZIP-216] with NU5, validation returns 0 if 𝑅 is anon-canonicalcompressed point encoding. This change is also retrospectively valid onMainnetandTestnetbefore NU5. •The value𝑅 used as part of the input toH ⊛ MUSTbe exactly as encoded in the signature. • Appendix §B.1 ‘RedDSAbatch validation’ on p. 227 describes an optimization thatMAYbe used to speed up validation of batches ofRedDSAsignatures. Non-normative notes: • The randomization used in RedDSA.RandomizePrivate and RedDSA.RandomizePublic may interact with other uses of additive properties of keys for Schnorr-based signature schemes. In theZcashprotocol, such properties are used forbinding signaturesbut not at the same time as key randomization. They are also used in [ZIP-32] when deriving child extended keys, but this does not result in any practical security weakness as long as the security recommendations of ZIP 32 are followed. If RedDSA is reused in other protocols making use of these additive properties, careful analysis of potential interactions is required. • It isRECOMMENDEDthat, for deployments of RedDSA in other protocols thanZcash, the requirement for 𝑅 to be canonically encoded is always enforced (which was the original intent of the design). The two abelian groups specified in §4.1.7.2 ‘Signature with Signing Key to Validating Key Monomorphism’ on p.32 are instantiated forRedDSAas follows: •𝒪 := 0 (mod𝑟 G) •sk 1 sk2 :=sk 1 +sk 2 (mod𝑟 G) •𝒪 :=𝒪 G •vk 1 vk2 :=vk 1 +vk 2. As required,RedDSA.DerivePublicis a group monomorphism, since it is injective and: RedDSA.DerivePublic(sk1 sk2) =[sk 1 +sk 2 (mod𝑟 G)]𝒫 G =[sk 1]𝒫 G +[sk 2]𝒫 G (since𝒫 G has order𝑟 G) =RedDSA.DerivePublic(sk 1) RedDSA.DerivePublic(sk2). A RedDSA validating key vk can be encoded as abit sequence reprG(vk) of length ℓG bits (or as a correspondingbyte sequencevk by then applyingLEBS2OSP ℓG ). The schemeRedJubjubspecializesRedDSAwith: •G:=Jas defined in §5.4.9.3 ‘Jubjub’ on p.105; •ℓ H := 512; •H(𝑥) :=BLAKE2b-512(“ Zcash_RedJubjubH”, 𝑥)as defined in §5.4.1.2 ‘BLAKE2 Hash Functions’ on p.79. The schemeRedPallasspecializesRedDSAwith: •G:=Pas defined in §5.4.9.6 ‘Pallas and Vesta’ on p.108; •ℓ H := 512; •H(𝑥) :=BLAKE2b-512(“ Zcash_RedPallasH”, 𝑥)as defined in §5.4.1.2 ‘BLAKE2 Hash Functions’ on p.79. The generator𝒫G G(𝑟) is left as an unspecified parameter, different between BindingSigSapling, SpendAuthSigSapling, BindingSigOrchard, andSpendAuthSig Orchard. 97 5.4.7.1 Spend Authorization Signature (SaplingandOrchard) #concretespendauthsig LetRedJubjubbe as defined in §5.4.7 ‘RedDSA,RedJubjub, andRedPallas’ on p.95. Define𝒢 Sapling :=FindGroupHash J(𝑟)*(“Zcash_G_”,“ ”). Thespend authorization signature scheme SpendAuthSigSapling is instantiated asRedJubjub with keyre-randomization and with generator𝒫 G =𝒢 Sapling. LetRedPallasbe as defined in §5.4.7 ‘RedDSA,RedJubjub, andRedPallas’ on p.95. Define𝒢 Orchard :=GroupHash P(“z.cash:Orchard”,“ G”). Thespend authorization signature scheme SpendAuthSigOrchardis instantiated asRedPallas with keyre-randomization and with generator𝒫 G =𝒢 Orchard. See §4.15 ‘Spend Authorization Signature (Sapling and Orchard)’ on p. 59 for details on the use of thissignature scheme. Security requirement:Each instantiation of SpendAuthSig must be a SURK-CMA-securesignature scheme with re-randomizable keysas defined in §4.1.7.1 ‘Signature with Re-Randomizable Keys’ on p.31. 5.4.7.2 Binding Signature (SaplingandOrchard) #concretebindingsig LetRedJubjubandRedPallasbe as defined in §5.4.7 ‘RedDSA,RedJubjub, andRedPallas’ on p.95. The Saplingbinding signature scheme, BindingSigSapling, is instantiated as RedJubjub without keyre-randomization, using generator𝒫G =ℛ Sapling defined in §5.4.8.3 ‘Homomorphic Pedersen commitments (Sapling and Orchard)’ on p. 99. See §4.13 ‘Balance and Binding Signature (Sapling)’ on p. 55 for details on the use of thissignature scheme. The Orchardbinding signature scheme, BindingSigOrchard, is instantiated as RedPallas without keyre-randomization, using generator𝒫G =ℛ Orchard defined in §5.4.8.3 ‘Homomorphic Pedersen commitments (Sapling and Orchard)’ on p. 99. See §4.14 ‘Balance and Binding Signature (Orchard)’ on p. 57 for details on the use of thissignature scheme. Security requirement:Each instantiation of BindingSig must be a SUF-CMA-securesignature scheme with key monomorphismas defined in §4.1.7.2 ‘Signature with Signing Key to Validating Key Monomorphism’ on p. 32. A signature must prove knowledge of thediscrete logarithmof thevalidating keywith respect to the base ℛSapling or ℛOrchard. 5.4.8 Commitment schemes #concretecommit 5.4.8.1 Note Commitments (Sprout) #concretesproutnotecommit Thenote commitment scheme NoteCommitSprout specified in §4.1.8 ‘Commitment’ on p. 32 is instantiated using SHA-256as follows: NoteCommitSproutrcm (apk,v,ρ) :=SHA-256 (︁ 1 0 1 1 0 0 0 0 256-bita pk 64-bitv 256-bitρ 256-bitrcm )︁ NoteCommitSprout.GenTrapdoor()generates the uniform distribution onNoteCommit Sprout.Trapdoor. Note:The leading byte of theSHA-256input is 0xB0. Security requirements: •SHA256Compressmust becollision-resistant. •SHA256Compress must be aPRFwhen keyed by the bits corresponding to the position of rcm in the second block ofSHA-256input, with input to thePRFin the remaining bits of the block and the chaining variable. 98 5.4.8.2 Windowed Pedersen commitments #concretewindowedcommit §5.4.1.7 ‘Pedersen Hash Function’ on p. 82 defines aPedersen hashconstruction. We construct “windowed” Pedersen commitmentsby reusing that construction, and adding a randomized point on theJubjub curve(see §5.4.9.3 ‘Jubjub’ on p.105): WindowedPedersenCommit𝑟(𝑠) :=PedersenHashToPoint(“ Zcash_PH”, 𝑠) +[𝑟]FindGroupHashJ(𝑟)*(“Zcash_PH”,“ r”) See §A.3.5 ‘Windowed Pedersen Commitment’ on p. 220 for rationale and efficient circuit implementation of this function. Thenote commitment scheme NoteCommitSapling specified in §4.1.8 ‘Commitment’ on p. 32 is instantiated as follows usingWindowedPedersenCommit: NoteCommitSaplingrcm (g⋆d,pk⋆ d,v) :=WindowedPedersenCommit rcm (︁ [1]6||I2LEBSP 64(v)||g⋆ d||pk⋆ d )︁ NoteCommitSapling.GenTrapdoor()generates the uniform distribution onF 𝑟J. Security requirements: •WindowedPedersenCommit , and hence NoteCommitSapling, must be computationallybindingand at least com- putationallyhiding commitment schemes. (They are in fact unconditionallyhiding commitment schemes.) Notes: •MerkleCRH Sapling is also defined in terms ofPedersenHashToPoint(see §5.4.1.3 ‘MerkleCRHSapling Hash Function’ on p. 79). The prefix [1]6 distinguishes the use of WindowedPedersenCommit in NoteCommitSapling from the layer prefix used in MerkleCRHSapling. That layer prefix is a 6-bitlittle-endianencoding of an integer in the range {0..MerkleDepth Sapling−1}; becauseMerkleDepth Sapling <64, it cannot collide with[1] 6. • The arguments to NoteCommitSapling are in a different order to their encodings in WindowedPedersenCommit. There is no particularly good reason for this. Theorem 5.4.5.Uncommitted Sapling is not in the range ofNoteCommit Sapling. #thmuncommittedsapling Proof.Uncommitted Sapling is defined as I2LEBSPℓSaplingMerkle (1). By injectivity of I2LEBSPℓSaplingMerkle and definitions of ExtractJ(𝑟), WindowedPedersenCommit, and NoteCommitSapling, I2LEBSPℓSaplingMerkle (1) can be in the range of NoteCommitSapling only if there existrcm NoteCommitSapling.Trapdoor, 𝐷 BY Y[8], and 𝑀 B[N+] such that𝑢(WindowedPedersenCommitrcm(𝐷, 𝑀)) = 1. The latter can only be theaffine-ctEdwards 𝑢-coordinate of a point in J. We show that there are no points in J withaffine-ctEdwards 𝑢-coordinate 1. Suppose for a contradiction that (𝑢,v)∈J for 𝑢= 1 and some v F𝑟S. By writing the curve equation as v2 = (1−𝑎 J·𝑢2)/(1−𝑑 J·𝑢2), and noting that 1−𝑑 J·𝑢2̸= 0 because 𝑑J is nonsquare, we have v2 = (1−𝑎 J)/(1−𝑑 J). The right-hand-side is a nonsquare in F𝑟S (for theJubjub curveparameters), so there are no solutions forv(contradiction). 5.4.8.3 Homomorphic Pedersen commitments (SaplingandOrchard) #concretehomomorphiccommit The windowed Pedersen commitments defined in the preceding section are highly efficient, but they do not support the homomorphic property we need when instantiatingValueCommit. For more details on the use of this property, see §4.13 ‘Balance and Binding Signature (Sapling)’ on p. 55 and §4.14 ‘Balance and Binding Signature (Orchard)’ on p.57. Useful background is given in §3.6 ‘Spend Transfers, Output Transfers, and their Descriptions’on p. 21 and §3.7 ‘Action Transfers and their Descriptions’ on p.22. 99 In order to support this property, we also definehomomorphic Pedersen commitmentsfor Sapling: HomomorphicPedersenCommitSaplingrcv (𝐷,v) :=[v]FindGroupHash J(𝑟)*(𝐷,“ v”)+[rcv]FindGroupHash J(𝑟)*(𝐷,“ r”) ValueCommitSapling.GenTrapdoor()generates the uniform distribution onF 𝑟J. See §A.3.6 ‘Homomorphic Pedersen Commitment’ on p. 220 for rationale and efficient circuit implementation of this function. We also definehomomorphic Pedersen commitmentsfor Orchard: HomomorphicPedersenCommitOrchardrcv (𝐷,v) :=[v]GroupHash P(𝐷,“ v”)+[rcv]GroupHash P(𝐷,“ r”) ValueCommitOrchard.GenTrapdoor()generates the uniform distribution onF 𝑟P. Define: 𝒱Sapling :=FindGroupHash J(𝑟)*(“Zcash_cv”,“ v”) ℛSapling :=FindGroupHash J(𝑟)*(“Zcash_cv”,“ r”) 𝒱Orchard :=GroupHash P(“z.cash:Orchard-cv”,“ v”) ℛOrchard :=GroupHash P(“z.cash:Orchard-cv”,“ r”) Thecommitment scheme ValueCommitSapling specified in §4.1.8 ‘Commitment’ on p. 32 is instantiated as follows usingHomomorphicPedersenCommit Sapling on theJubjub curve: ValueCommitrcv(v) :=HomomorphicPedersenCommit Saplingrcv (“Zcash_cv”,v). which is equivalent to: ValueCommitSaplingrcv (v) :=[v]𝒱 Sapling +[rcv]ℛ Sapling. Thecommitment scheme ValueCommitOrchard specified in §4.1.8 ‘Commitment’ on p. 32 is instantiated as follows usingHomomorphicPedersenCommit Orchard on thePallas curve: ValueCommitOrchardrcv (v) :=HomomorphicPedersenCommit Orchardrcv (“z.cash:Orchard-cv”,v). which is equivalent to: ValueCommitOrchardrcv (v) :=[v]𝒱 Orchard +[rcv]ℛ Orchard. Security requirements: •HomomorphicPedersenCommit Sapling and HomomorphicPedersenCommitOrchard must be computationallybinding and at least computationallyhiding commitment schemes, for a given personalization input𝐷. •ValueCommit Sapling and ValueCommitOrchardmust be computationallybindingand at least computationallyhiding commitment schemes. (They are in fact unconditionallyhiding commitment schemes.) Non-normative note:The output of HomomorphicPedersenCommitSapling may (with negligible probability for a randomly chosencommitment trapdoor) be the zero point of the curve,𝒪J. This would be rejected by consensus if it appeared as the cv field of aSpend description( §4.4 ‘Spend Descriptions’ on p. 42) orOutput description ( §4.5 ‘Output Descriptions’ on p. 43). An implementation of HomomorphicPedersenCommitSapling MAYresample the commitment trapdooruntil the resulting commitment is not𝒪 J. 100 5.4.8.4 Sinsemilla commitments #concretesinsemillacommit Letℓ Orchardbase be as defined in §5.3 ‘Constants’ on p.77. LetPand𝑟 P be as defined in §5.4.9.6 ‘Pallas and Vesta’ on p.108. LetExtract⊥P be as defined in §5.4.9.7 ‘Coordinate Extractor for Pallas’ on p.109. LetSinsemillaHashToPointbe as defined in §5.4.1.9 ‘Sinsemilla Hash Function’ on p.84. We constructSinsemilla commitmentsby reusing theSinsemilla hashconstruction, and adding a randomized point on thePallas curve(see §5.4.9.6 ‘Pallas and Vesta’ on p.108): SinsemillaCommit𝑟(𝐷, 𝑀) := {︃ 𝑀′ +[𝑟]GroupHash P(𝐷||“ -r”,“ ”),if𝑀 ′̸=⊥ ⊥,otherwise where𝑀′ =SinsemillaHashToPoint(𝐷||“ -M”, 𝑀). SinsemillaShortCommit𝑟(𝐷, 𝑀) :=Extract⊥P(︀SinsemillaCommit𝑟(𝐷, 𝑀))︀. See [Zcash-Orchard, section 3.7.1.2] for rationale and efficient circuit implementation of this function. The probability of SinsemillaHashToPoint returning⊥ is insignificant (and would yield a nontrivialdiscrete logarithm relation). Thebindingproperty of SinsemillaCommit follows fromcollision resistanceof SinsemillaHashToPoint proven in Theorem 5.4.3 on p. 86, given that GroupHashP(𝐷||“ -r”,“ ”)is independent of any of the bases used in SinsemillaHashToPoint. Thebindingproperty of SinsemillaShortCommit can be proven by a similar argument to that used forSinsemillaHash. Provided that SinsemillaHashToPoint does not return⊥, SinsemillaCommit is perfectlyhidingbecause the output distribution is perfectly indistinguishable from a random point in P, given that 𝑟 is a uniformly random scalar on [0, 𝑞). It follows that SinsemillaShortCommit is also perfectlyhidingunder the same condition, sincehidingcannot be affected by applying any fixed function to the output ofSinsemillaCommit. Thenote commitment scheme NoteCommitOrchardspecified in §4.1.8 ‘Commitment’ on p. 32 is instantiated as follows usingSinsemillaCommit: NoteCommitOrchardrcm (g⋆d,pk⋆ d,v,ρ,ψ) := SinsemillaCommitrcm (︀ “z.cash:Orchard-NoteCommit”, g⋆d||pk⋆ d||I2LEBSP 64(v)||I2LEBSP ℓOrchardbase (ρ)||I2LEBSP ℓOrchardbase (ψ) )︀ NoteCommitOrchard.GenTrapdoor()generates the uniform distribution onF 𝑟P. Note:The arguments to NoteCommitOrchard are the same order as their encodings in the input to SinsemillaCommit; this is different toNoteCommit Sapling. Thecommitment scheme Commitivk specified in §4.1.8 ‘Commitment’ on p. 32 is instantiated as follows using SinsemillaShortCommit: Commitivkrivk(ak,nk) :=SinsemillaShortCommit rivk(︀“z.cash:Orchard-CommitIvk”, I2LEBSPℓOrchardbase (ak)||I2LEBSP ℓOrchardbase (nk) )︀ Commitivk.GenTrapdoor()generates the uniform distribution onF 𝑟P. Security requirements: •SinsemillaCommit and SinsemillaShortCommit, and hence NoteCommitOrchard and Commitivk, must be computa- tionallybindingand at least computationallyhiding commitment schemes. They are in fact unconditionally hiding commitment schemesprovided that no⊥output is observed. 101 Theorem 5.4.6.Uncommitted Orchard is not in the range ofNoteCommit Orchard. #thmuncommittedorchard Proof.Uncommitted Orchardis defined as2. By the definitions ofExtract⊥P, SinsemillaShortCommit, and NoteCommitOrchard, 2 can be in the range ofNoteCommitOrchardonly if there existrcm NoteCommitOrchard.Trapdoor, 𝐷 BY Y[N], and 𝑀 B[N+] such that Extract⊥P(︀SinsemillaCommitrcm(𝐷, 𝑀))︀ = 2. Extract⊥P(︀SinsemillaCommitrcm(𝐷, 𝑀))︀ can only be⊥ or 0 or the affine-short-Weierstrass 𝑥-coordinate of a point in P. But 0̸= 2 (mod𝑞 P), and there are no points in P with affine-short-Weierstrass𝑥-coordinate2 (mod𝑞 P), since2 3 +𝑏 P = 13is not square inF 𝑞P. Non-normative notes: • Although the given theorem is correct for the definition of NoteCommitOrchard in this specification, the imple- mentation in theAction circuitconstrains the result to an unspecified set of values when an input results in an exceptional case for any incomplete addition. If this occurs then it yields a nontrivialdiscrete logarithm relation for thePallas curve, as proven in Theorem 5.4.4 on p. 87. We can therefore assume that it is infeasible to find such inputs with nonnegligible probability. • There are also no points in P withaffine-short-Weierstrass 𝑥-coordinate 0 (mod𝑞 P), as shown in a note at §5.4.9.7 ‘Coordinate Extractor for Pallas’ on p. 109. We do not choose UncommittedOrchard = 0 because MerkleCRHOrchard returns 0 in exceptional cases. Although thehash valuesofleaf nodesare separated from thehash valuesat otherlayersby the layer input to MerkleCRHOrchard, it would arguably be confusing to rely on that. 5.4.9 Represented Groups and Pairings #concretepairing 5.4.9.1BN-254 #bnpairing Therepresented pairingBN-254is defined in this section. Let𝑞 G := 21888242871839275222246405745257275088696311157297823662689037894645226208583. Let𝑟 G := 21888242871839275222246405745257275088548364400416034343698204186575808495617. Let𝑏 G := 3. (𝑞 G and𝑟 G are prime.) Let G(𝑟)1 be the group (of order 𝑟G) of rational points on a Barreto–Naehrig ( [BN2005]) curve
프로젝트로 돌아가기