cuprate_consensus_rules::blocks

Trait 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.

Required Associated Types§

Required Methods§

Source

fn calculate_hash(&self, buf: &[u8]) -> Result<[u8; 32], Self::Error>

Implementors§