99 releases (15 breaking)

0.16.19 Feb 10, 2024
0.16.15 Dec 20, 2023
0.16.12 Nov 27, 2023
0.14.6 Jul 21, 2023
0.2.1 Mar 14, 2021

#1320 in Magic Beans

Download history 15052/week @ 2023-10-29 20477/week @ 2023-11-05 19089/week @ 2023-11-12 19095/week @ 2023-11-19 18085/week @ 2023-11-26 8165/week @ 2023-12-03 3250/week @ 2023-12-10 9375/week @ 2023-12-17 3052/week @ 2023-12-24 2172/week @ 2023-12-31 2999/week @ 2024-01-07 4451/week @ 2024-01-14 1805/week @ 2024-01-21 3142/week @ 2024-01-28 3980/week @ 2024-02-04 1451/week @ 2024-02-11

10,849 downloads per month
Used in 112 crates (24 directly)

Apache-2.0 and GPL-3.0 licenses

575KB
12K SLoC

snarkvm-curves

Crates.io Authors License: GPL v3

Overview

Aleo uses a tailored set of pairing-friendly elliptic curves to perform efficient proof generation and verification.

Edwards BLS12 BLS12-377
Curve Type Twisted Edwards Barreto-Lynn-Scott
Scalar Field Size 251 bits 253 bits
Base Field Size 253 bits 377 bits
G1 Compressed Size* 32 bytes 48 bytes
G2 Compressed Size* N/A 96 bytes

* rounded to multiples of 8 bytes.

Edwards BLS12

Scalar Field

Modulus

Integer Representation
2111115437357092606062206234695386632838870926408408195193685246394721360383
Hexadecimal Representation
04aad957a68b2955982d1347970dec005293a3afc43c8afeb95aee9ac33fd9ff
U64 Representation (Little-Endian)
[13356249993388743167, 5950279507993463550, 10965441865914903552, 336320092672043349]

Root of Unity

Integer Representation
319259817323897909850357899558356952867916286821886696195104543796545181129
Hexadecimal Representation
00b4b1d4c7e5e163b1af246173fdb411bdb82ac32901dcb9d289433ff2b7d5c9
U64 Representation (Little-Endian)
[15170730761708361161, 13670723686578117817, 12803492266614043665, 50861023252832611]

Base Field

Modulus

Integer Representation
8444461749428370424248824938781546531375899335154063827935233455917409239041
Hexadecimal Representation
12ab655e9a2ca55660b44d1e5c37b00159aa76fed00000010a11800000000001
U64 Representation (Little-Endian)
[725501752471715841, 6461107452199829505, 6968279316240510977, 1345280370688173398]

Root of Unity

Integer Representation
5928890464389279575069867463136436689218492512582288454256978381122364252082
Hexadecimal Representation
0d1ba211c5cc349cd7aacc7c597248269a14cda3ec99772b3c3d3ca739381fb2
U64 Representation (Little-Endian)
[4340692304772210610, 11102725085307959083, 15540458298643990566, 944526744080888988]

BLS12-377

Scalar Field

Modulus

Integer Representation
8444461749428370424248824938781546531375899335154063827935233455917409239041
Hexadecimal Representation
12ab655e9a2ca55660b44d1e5c37b00159aa76fed00000010a11800000000001
U64 Representation (Little-Endian)
[725501752471715841, 6461107452199829505, 6968279316240510977, 1345280370688173398]

Root of Unity

Integer Representation
5928890464389279575069867463136436689218492512582288454256978381122364252082
Hexadecimal Representation
0d1ba211c5cc349cd7aacc7c597248269a14cda3ec99772b3c3d3ca739381fb2
U64 Representation (Little-Endian)
[4340692304772210610, 11102725085307959083, 15540458298643990566, 944526744080888988]

Base Field

Modulus

Integer Representation
258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177
Hexadecimal Representation
01ae3a4617c510eac63b05c06ca1493b1a22d9f300f5138f1ef3622fba094800170b5d44300000008508c00000000001
U64 Representation (Little-Endian)
[9586122913090633729, 1660523435060625408, 2230234197602682880, 1883307231910630287, 14284016967150029115, 121098312706494698]

Root of Unity

Integer Representation
146552004846884389553264564610149105174701957497228680529098805315416492923550540437026734404078567406251254115855
Hexadecimal Representation
00f3c1414ef58c54f95564f4cbc1b61fee086c1fe367c33776da78169a7f3950f1bd15c3898dd1af1c104955744e6e0f
U64 Representation (Little-Endian)
[2022196864061697551, 17419102863309525423, 8564289679875062096, 17152078065055548215, 17966377291017729567, 68610905582439508]

Contributing

How to Update this README

This README is auto-generated during continuous integration. To update this README, submit a pull request updating the appropriate Markdown file in documentation and the configuration file.

Dependencies

~4–5.5MB
~113K SLoC