openvm_stark_sdk/config/
baby_bear_blake3.rsuse p3_blake3::Blake3;
use super::{
baby_bear_bytehash::{
self, config_from_byte_hash, BabyBearByteHashConfig, BabyBearByteHashEngine,
},
FriParameters,
};
use crate::{
assert_sc_compatible_with_serde,
config::baby_bear_bytehash::BabyBearByteHashEngineWithDefaultHash,
};
pub type BabyBearBlake3Config = BabyBearByteHashConfig<Blake3>;
pub type BabyBearBlake3Engine = BabyBearByteHashEngine<Blake3>;
assert_sc_compatible_with_serde!(BabyBearBlake3Config);
pub fn default_engine() -> BabyBearBlake3Engine {
baby_bear_bytehash::default_engine(Blake3)
}
pub fn default_config() -> BabyBearBlake3Config {
let fri_params = FriParameters::standard_fast();
config_from_byte_hash(Blake3, fri_params)
}
impl BabyBearByteHashEngineWithDefaultHash<Blake3> for BabyBearBlake3Engine {
fn default_hash() -> Blake3 {
Blake3
}
}