tower-defense 0.2.0

Middleware utilities to authenticate RPC calls using libp2p node keys
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Signature: {0}")]
    Signature(#[from] ed25519_dalek::SignatureError),

    #[error("Invalid timestamp")]
    InvalidTimestamp,

    #[error("SystemTime error: {0}")]
    SystemTime(#[from] std::time::SystemTimeError),

    #[error("TryFromInt error: {0}")]
    TryFromInt(#[from] std::num::TryFromIntError),
}