package octez-libs
A package that contains multiple base libraries used by the Octez suite
Install
Dune Dependency
Authors
Maintainers
Sources
octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/src/octez-libs.mec/babyjubjub.ml.html
Source file babyjubjub.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
(** https://eips.ethereum.org/EIPS/eip-2494#specification Base field: 21888242871839275222246405745257275088548364400416034343698204186575808495617 (253 bits - 32 bytes) Scalar field: 2736030358979909402780800718157159386076813972158567259200215660948447373041 (250 bits - 32 bytes) Base field multiplicative subgroup decomposition: 2^28 * 3^2 * 13 * 29 * 983 * 11003 * 237073 * 405928799 * 23088226308677670388631582763742451703676949 Prime field multiplication subgroup decomposition: 2^4 * 3 * 5 * 11^2 * 17 * 967 * 5731244081299119113329403448958138808514418469011002817495701323359 *) (* Check it is not a small order element *) module Base = Ff.MakeFp (struct let prime_order = Z.of_string "21888242871839275222246405745257275088548364400416034343698204186575808495617" end) module Scalar = Ff.MakeFp (struct let prime_order = Z.of_string "2736030358979909402780800718157159386076813972158567259200215660948447373041" end) module Affine = Ec.MakeAffineEdwards (Base) (Scalar) (struct let a = Base.of_string "168700" let d = Base.of_string "168696" let cofactor = Z.of_string "8" let bytes_generator = Bytes.concat Bytes.empty [ Base.( to_bytes (of_string "5299619240641551281634865583518297030282874472190772894086521144482721001553")); Base.( to_bytes (of_string "16950150798460657717958625567821834550301663161624707787222815936182638968203")); ] end)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>