midnight_transient_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
18//! This crate collects cryptographic primitives used in Midnight's ledger.
19//! All primitives, including zero-knowledge, curve choice, and crypto-aware
20//! data structures are defined here, and should be added here to decouple from
21//! any specific implementation.
22
23#[macro_use]
24extern crate tracing;
25
26pub mod commitment;
27pub mod curve;
28pub mod encryption;
29pub mod fab;
30pub mod hash;
31mod macros;
32pub mod merkle_tree;
33#[cfg(feature = "mock-verify")]
34pub mod mock_verify;
35pub mod proofs;
36pub mod repr;