cryptonote_basic/lib.rs
1// use std::clone::Clone;
2
3pub type Difficulty = u64;
4
5type Hash = [u8; 32];
6type KeyImage = Hash;
7
8#[derive(Clone)]
9pub struct Version {
10 pub major: u8,
11 pub minor: u8,
12 pub patch: u8,
13}
14
15#[cfg(test)]
16mod tests {
17 use super::*;
18 #[test]
19 fn it_works() {
20 let a: Hash = [0; 32];
21 let b: KeyImage = [0; 32];
22 assert_eq!(a, b);
23 }
24}