miden-gpu 0.5.0

GPU acceleration for the Miden VM prover
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(all(target_arch = "aarch64", target_os = "macos"))]
pub mod metal;

/// Supported Hash functions
#[derive(Copy, Clone, PartialEq)]
pub enum HashFn {
    Rpo256,
    Rpx256,
}

impl std::fmt::Display for HashFn {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            HashFn::Rpo256 => write!(f, "rpo_256"),
            HashFn::Rpx256 => write!(f, "rpx_256"),
        }
    }
}