bls_12_381/
lib.rs

1// Copyright (C) 2023-2024 Invers (JP) INC.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// 	http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#![no_std]
17#![doc = include_str!("../README.md")]
18#![allow(clippy::suspicious_arithmetic_impl)]
19#![allow(clippy::suspicious_op_assign_impl)]
20#![allow(dead_code)]
21
22mod error;
23mod fq;
24mod fqn;
25mod fr;
26mod g1;
27mod g2;
28mod gt;
29pub mod params;
30
31pub use fq::Fq;
32pub use fqn::{Fq12, Fq2, Fq6};
33pub use fr::{Fr, MULTIPLICATIVE_GENERATOR, ROOT_OF_UNITY, TWO_ADACITY};
34pub use g1::{G1Affine, G1Projective};
35pub use g2::{G2Affine, G2PairingAffine, G2Projective, PairingCoeff};
36pub use gt::Gt;
37pub use params::EDWARDS_D;