midnight_base_crypto/lib.rs
1// This file is part of midnight-ledger.
2// Copyright (C) 2025 Midnight Foundation
3// SPDX-License-Identifier: Apache-2.0
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// http://www.apache.org/licenses/LICENSE-2.0
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14#![deny(unreachable_pub)]
15//#![deny(warnings)]
16#![deny(missing_docs)]
17// Proptest derive triggers this.
18#![allow(non_local_definitions)]
19
20//! This crate collects cryptographic primitives used in Midnight's ledger.
21//! All primitives, including zero-knowledge, curve choice, and crypto-aware
22//! data structures are defined here, and should be added here to decouple from
23//! any specific implementation.
24
25pub mod cost_model;
26pub mod data_provider;
27pub mod fab;
28pub mod hash;
29pub mod repr;
30pub mod rng;
31pub mod signatures;
32pub mod time;
33
34pub use repr::*;