roughtime 0.1.0

A no_std-capable Roughtime secure time-sync client with pluggable crypto backends
Documentation
//! The set of well-known public Roughtime servers.

/// A public Roughtime server: its network address and Ed25519 root public key.
#[derive(Debug, Clone, Copy)]
pub struct RoughtimeServer {
    /// A short human-readable name for the server.
    pub name: &'static str,
    /// The server's hostname.
    pub host: &'static str,
    /// The server's UDP port.
    pub port: u16,
    /// The server's base64-encoded Ed25519 root public key.
    pub pubkey_base64: &'static str,
}

/// A list of well-known public Roughtime servers.
pub const ROUGHTIME_SERVERS: &[RoughtimeServer] = &[
    RoughtimeServer {
        name: "cloudflare",
        host: "roughtime.cloudflare.com",
        port: 2003,
        pubkey_base64: "0GD7c3yP8xEc4Zl2zeuN2SlLvDVVocjsPSL8/Rl/7zg=",
    },
    RoughtimeServer {
        name: "roughtime.se",
        host: "roughtime.se",
        port: 2002,
        pubkey_base64: "S3AzfZJ5CjSdkJ21ZJGbxqdYP/SoE8fXKY0+aicsehI=",
    },
    RoughtimeServer {
        name: "roughtime.int08h.com",
        host: "roughtime.int08h.com",
        port: 2002,
        pubkey_base64: "AW5uAoTSTDfG5NfY1bTh08GUnOqlRb+HVhbJ3ODJvsE=",
    },
    RoughtimeServer {
        name: "sth1.roughtime.netnod.se",
        host: "sth1.roughtime.netnod.se",
        port: 2002,
        pubkey_base64: "9l1JN4HakGnG44yyqyNNCb0HN0XfsysBbnl/kbZoZDc=",
    },
    RoughtimeServer {
        name: "sth2.roughtime.netnod.se",
        host: "sth2.roughtime.netnod.se",
        port: 2002,
        pubkey_base64: "T/xxX4ERUBAOpt64Z8phWamKsASZxJ0VWuiPm3GS/8g=",
    },
    RoughtimeServer {
        name: "rough.time.nl",
        host: "rough.time.nl",
        port: 2002,
        pubkey_base64: "v2CievhgKsxzlWPwIkYFUXeA51Akhkv5uhJCj1/kbiY=",
    },
    RoughtimeServer {
        name: "time.teax.dev",
        host: "time.teax.dev",
        port: 2002,
        pubkey_base64: "84pMADvKUcSOq5RNbVRjVrjiU16Dxo2XV2Qkm+4DRTg=",
    },
    RoughtimeServer {
        name: "roughtime.sturdystatistics.com",
        host: "roughtime.sturdystatistics.com",
        port: 2002,
        pubkey_base64: "NqIjwLopQn6yQChtE21Mb97dAbAPe5UOuTa0tOakgD8=",
    },
    RoughtimeServer {
        name: "ilimit-rt01.ilimit.cat",
        host: "ilimit-rt01.ilimit.cat",
        port: 2002,
        pubkey_base64: "Oj8AxjzCYMlBicllTdeiJOEluLHdxijGd6sSaS993eo=",
    },
    RoughtimeServer {
        name: "ilimit-rt02.ilimit.cat",
        host: "ilimit-rt02.ilimit.cat",
        port: 2002,
        pubkey_base64: "XTNZR7TIw4iMV2mNOVNPYzmWxXxg1DA16o2SYLp1k8k=",
    },
];