curves/detail/bls12/types.hpp
Go to the documentation of this file.
1 //---------------------------------------------------------------------------//
2 // Copyright (c) 2020-2021 Mikhail Komarov <nemo@nil.foundation>
3 // Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
4 //
5 // MIT License
6 //
7 // Permission is hereby granted, free of charge, to any person obtaining a copy
8 // of this software and associated documentation files (the "Software"), to deal
9 // in the Software without restriction, including without limitation the rights
10 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 // copies of the Software, and to permit persons to whom the Software is
12 // furnished to do so, subject to the following conditions:
13 //
14 // The above copyright notice and this permission notice shall be included in all
15 // copies or substantial portions of the Software.
16 //
17 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 // SOFTWARE.
24 //---------------------------------------------------------------------------//
25 
26 #ifndef CRYPTO3_ALGEBRA_CURVES_BLS12_TYPES_HPP
27 #define CRYPTO3_ALGEBRA_CURVES_BLS12_TYPES_HPP
28 
31 
34 
35 namespace nil {
36  namespace crypto3 {
37  namespace algebra {
38  namespace curves {
39  namespace detail {
40 
41  template<std::size_t Version, typename Form, typename Coordinates>
42  struct bls12_g1;
43 
44  template<std::size_t Version, typename Form, typename Coordinates>
45  struct bls12_g2;
46 
47  template<std::size_t Version, typename Form>
48  struct bls12_params;
49 
50  template<std::size_t Version, typename Form>
52 
53  template<std::size_t Version, typename Form>
55 
60  template<std::size_t Version>
61  struct bls12_types {
64 
68 
69  using integral_type = typename base_field_type::integral_type;
70 
71  template<typename Form, typename Coordinates>
73 
74  template<typename Form, typename Coordinates>
76  };
77 
78  } // namespace detail
79  } // namespace curves
80  } // namespace algebra
81  } // namespace crypto3
82 } // namespace nil
83 
84 #endif // CRYPTO3_ALGEBRA_CURVES_BLS12_TYPES_HPP
Definition: pair.hpp:31
Definition: curves/detail/bls12/types.hpp:51
A struct representing a group G1 of BLS12 curve.
Definition: bls12/g1.hpp:51
Definition: curves/detail/bls12/types.hpp:54
A struct representing a group G2 of BLS12 curve.
Definition: bls12/g2.hpp:51
Definition: curves/detail/bls12/types.hpp:48
A struct representing details about base and scalar fields.
Definition: curves/detail/bls12/types.hpp:61
typename base_field_type::integral_type integral_type
Definition: curves/detail/bls12/types.hpp:69
typename fields::fp12_2over3over2< base_field_type > gt_field_type
Definition: curves/detail/bls12/types.hpp:67
fields::bls12_base_field< Version > base_field_type
Definition: curves/detail/bls12/types.hpp:62
typename fields::fp2< base_field_type > g2_field_type
Definition: curves/detail/bls12/types.hpp:66
IETF IPsec groups.
Definition: bls12/base_field.hpp:46
Definition: bls12/scalar_field.hpp:46
Definition: fp12_2over3over2.hpp:51