zero-trust-rps 0.0.5

Online Multiplayer Rock Paper Scissors
Documentation
1
2
3
4
5
6
7
8
9
10
use super::{hex::OwnedHexStr, message::Round};

pub type B3Key = [u8; blake3::KEY_LEN];
const _: () = assert!(blake3::KEY_LEN == 32);

pub type B3Hash = OwnedHexStr<{ blake3::OUT_LEN }, { blake3::OUT_LEN * 2 }>;

pub trait Blake3Hash {
    fn hash_keyed(&self, key: &B3Key, round: &Round) -> B3Hash;
}