stellar-baselib 0.5.7

A low level Rust library that offers a comprehensive set of functions for reading, writing, hashing, and signing primitive XDR constructs utilized in the Stellar network
Documentation
//! Contains passphrases for common networks
/// - `Networks::PUBLIC`: `Public Global Stellar Network ; September 2015`
/// - `Networks::TESTNET`: `Test SDF Network ; September 2015`
pub trait NetworkPassphrase {
    fn public() -> &'static str;
    fn testnet() -> &'static str;
    fn futurenet() -> &'static str;
    fn sandbox() -> &'static str;
    fn standalone() -> &'static str;
}

#[derive(Debug)]
pub struct Networks;
impl NetworkPassphrase for Networks {
    /// Passphrase for the Public Global Stellar Network, created in September 2015.
    fn public() -> &'static str {
        "Public Global Stellar Network ; September 2015"
    }

    /// Passphrase for the Test SDF Network, created in September 2015.
    fn testnet() -> &'static str {
        "Test SDF Network ; September 2015"
    }

    fn futurenet() -> &'static str {
        "Test SDF Future Network ; October 2022"
    }

    fn sandbox() -> &'static str {
        "Local Sandbox Stellar Network ; September 2022"
    }

    fn standalone() -> &'static str {
        "Standalone Network ; February 2017"
    }
}