Trait cuprate_consensus_rules::blocks::RandomX
source · pub trait RandomX {
type Error;
// Required method
fn calculate_hash(&self, buf: &[u8]) -> Result<[u8; 32], Self::Error>;
}
Expand description
A trait to represent the RandomX VM.