use strict_types::{CompileError, LibBuilder, TypeLib};
use crate::{mpc, MerkleHash, MerkleNode, ReservedBytes, StrictHash, LIB_NAME_COMMIT_VERIFY};
pub const LIB_ID_COMMIT_VERIFY: &str =
"stl:wH1wmGy2-0vBNWxL-MK~_eQb-Ayskv~e-oFmDrzI-O_IW_P0#biology-news-adam";
#[allow(clippy::result_large_err)]
fn _commit_verify_stl() -> Result<TypeLib, CompileError> {
LibBuilder::with(libname!(LIB_NAME_COMMIT_VERIFY), [
strict_types::stl::std_stl().to_dependency_types()
])
.transpile::<ReservedBytes<1>>()
.transpile::<ReservedBytes<2>>()
.transpile::<ReservedBytes<3>>()
.transpile::<ReservedBytes<4>>()
.transpile::<ReservedBytes<5>>()
.transpile::<ReservedBytes<6>>()
.transpile::<ReservedBytes<7>>()
.transpile::<ReservedBytes<8>>()
.transpile::<ReservedBytes<9>>()
.transpile::<ReservedBytes<10>>()
.transpile::<ReservedBytes<11>>()
.transpile::<ReservedBytes<12>>()
.transpile::<ReservedBytes<13>>()
.transpile::<ReservedBytes<14>>()
.transpile::<ReservedBytes<15>>()
.transpile::<ReservedBytes<16>>()
.transpile::<ReservedBytes<17>>()
.transpile::<ReservedBytes<18>>()
.transpile::<ReservedBytes<19>>()
.transpile::<ReservedBytes<20>>()
.transpile::<ReservedBytes<21>>()
.transpile::<ReservedBytes<22>>()
.transpile::<ReservedBytes<23>>()
.transpile::<ReservedBytes<24>>()
.transpile::<ReservedBytes<25>>()
.transpile::<ReservedBytes<26>>()
.transpile::<ReservedBytes<27>>()
.transpile::<ReservedBytes<28>>()
.transpile::<ReservedBytes<28>>()
.transpile::<ReservedBytes<29>>()
.transpile::<ReservedBytes<30>>()
.transpile::<ReservedBytes<31>>()
.transpile::<ReservedBytes<32>>()
.transpile::<mpc::MerkleConcealed>()
.transpile::<mpc::MerkleTree>()
.transpile::<mpc::MerkleBlock>()
.transpile::<mpc::MerkleProof>()
.transpile::<mpc::Leaf>()
.transpile::<mpc::Commitment>()
.transpile::<MerkleNode>()
.transpile::<MerkleHash>()
.transpile::<StrictHash>()
.compile()
}
pub fn commit_verify_stl() -> TypeLib {
_commit_verify_stl().expect("invalid strict type CommitVerify library")
}
#[cfg(test)]
mod test {
#![cfg_attr(coverage_nightly, coverage(off))]
use super::*;
#[test]
fn lib_id() {
let lib = commit_verify_stl();
assert_eq!(lib.id().to_string(), LIB_ID_COMMIT_VERIFY);
}
}