openvm_stark_sdk/config/
baby_bear_keccak.rsuse p3_keccak::Keccak256Hash;
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 BabyBearKeccakConfig = BabyBearByteHashConfig<Keccak256Hash>;
pub type BabyBearKeccakEngine = BabyBearByteHashEngine<Keccak256Hash>;
assert_sc_compatible_with_serde!(BabyBearKeccakConfig);
pub fn default_engine() -> BabyBearKeccakEngine {
baby_bear_bytehash::default_engine(Keccak256Hash)
}
pub fn default_config() -> BabyBearKeccakConfig {
let fri_params = FriParameters::standard_fast();
config_from_byte_hash(Keccak256Hash, fri_params)
}
impl BabyBearByteHashEngineWithDefaultHash<Keccak256Hash> for BabyBearKeccakEngine {
fn default_hash() -> Keccak256Hash {
Keccak256Hash
}
}