1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! Common types and data for the ssb ecosystem
#![deny(missing_docs)]
#![feature(try_from)]

extern crate sodiumoxide;
extern crate base64;
extern crate regex;
#[macro_use]
extern crate lazy_static;

/// The default tcp port of an ssb server.
pub const DEFAULT_TCP_PORT: u16 = 8008;
/// The default websocket port of an ssb server.
pub const DEFAULT_WS_PORT: u16 = 8989;
/// The default blobs port of of an ssb server.
pub const DEFAULT_BLOBS_PORT: u16 = 7777;

/// The network identifier of the main ssb network.
pub const MAINNET_IDENTIFIER: [u8; 32] = [212, 161, 203, 136, 166, 111, 2, 248, 219, 99, 92, 226,
                                          100, 65, 204, 93, 172, 27, 8, 66, 12, 234, 172, 35, 8,
                                          57, 183, 85, 132, 90, 159, 251];

pub mod keys;
pub mod directory;