#![forbid(unsafe_code)]
#![allow(clippy::too_many_arguments)]
pub mod v0;
pub use v0::*;
use snarkvm_circuit_collections::merkle_tree::MerklePath;
use snarkvm_circuit_types::{environment::Environment, Boolean, Field, Group, Scalar};
pub trait Aleo: Environment {
const MAX_DATA_SIZE_IN_FIELDS: u32 = <Self::Network as console::Network>::MAX_DATA_SIZE_IN_FIELDS;
fn bcm_domain() -> Field<Self>;
fn encryption_domain() -> Field<Self>;
fn graph_key_domain() -> Field<Self>;
fn randomizer_domain() -> Field<Self>;
fn r_bcm_domain() -> Field<Self>;
fn serial_number_domain() -> Field<Self>;
fn g_scalar_multiply(scalar: &Scalar<Self>) -> Group<Self>;
fn commit_bhp256(input: &[Boolean<Self>], randomizer: &Scalar<Self>) -> Field<Self>;
fn commit_bhp512(input: &[Boolean<Self>], randomizer: &Scalar<Self>) -> Field<Self>;
fn commit_bhp768(input: &[Boolean<Self>], randomizer: &Scalar<Self>) -> Field<Self>;
fn commit_bhp1024(input: &[Boolean<Self>], randomizer: &Scalar<Self>) -> Field<Self>;
fn commit_ped64(input: &[Boolean<Self>], randomizer: &Scalar<Self>) -> Group<Self>;
fn commit_ped128(input: &[Boolean<Self>], randomizer: &Scalar<Self>) -> Group<Self>;
fn hash_bhp256(input: &[Boolean<Self>]) -> Field<Self>;
fn hash_bhp512(input: &[Boolean<Self>]) -> Field<Self>;
fn hash_bhp768(input: &[Boolean<Self>]) -> Field<Self>;
fn hash_bhp1024(input: &[Boolean<Self>]) -> Field<Self>;
fn hash_ped64(input: &[Boolean<Self>]) -> Field<Self>;
fn hash_ped128(input: &[Boolean<Self>]) -> Field<Self>;
fn hash_psd2(input: &[Field<Self>]) -> Field<Self>;
fn hash_psd4(input: &[Field<Self>]) -> Field<Self>;
fn hash_psd8(input: &[Field<Self>]) -> Field<Self>;
fn hash_many_psd2(input: &[Field<Self>], num_outputs: u16) -> Vec<Field<Self>>;
fn hash_many_psd4(input: &[Field<Self>], num_outputs: u16) -> Vec<Field<Self>>;
fn hash_many_psd8(input: &[Field<Self>], num_outputs: u16) -> Vec<Field<Self>>;
fn hash_to_group_psd2(input: &[Field<Self>]) -> Group<Self>;
fn hash_to_group_psd4(input: &[Field<Self>]) -> Group<Self>;
fn hash_to_group_psd8(input: &[Field<Self>]) -> Group<Self>;
fn hash_to_scalar_psd2(input: &[Field<Self>]) -> Scalar<Self>;
fn hash_to_scalar_psd4(input: &[Field<Self>]) -> Scalar<Self>;
fn hash_to_scalar_psd8(input: &[Field<Self>]) -> Scalar<Self>;
#[allow(clippy::ptr_arg)]
fn verify_merkle_path_bhp<const DEPTH: u8>(
path: &MerklePath<Self, DEPTH>,
root: &Field<Self>,
leaf: &Vec<Boolean<Self>>,
) -> Boolean<Self>;
#[allow(clippy::ptr_arg)]
fn verify_merkle_path_psd<const DEPTH: u8>(
path: &MerklePath<Self, DEPTH>,
root: &Field<Self>,
leaf: &Vec<Field<Self>>,
) -> Boolean<Self>;
}