1#![doc = include_str!("../README.md")]
2#![doc(
3 html_logo_url = "https://raw.githubusercontent.com/op-rs/kona/main/assets/square.png",
4 html_favicon_url = "https://raw.githubusercontent.com/op-rs/kona/main/assets/favicon.ico",
5 issue_tracker_base_url = "https://github.com/op-rs/kona/issues/"
6)]
7#![cfg_attr(not(test), warn(unused_crate_dependencies))]
8#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
9
10#[macro_use]
11extern crate tracing;
12
13pub type PeerId = alloy_primitives::B512;
17
18mod nodes;
19pub use nodes::{BootNodes, OP_RAW_BOOTNODES, OP_RAW_TESTNET_BOOTNODES};
20
21mod store;
22pub use store::BootStore;
23
24mod score;
25pub use score::PeerScoreLevel;
26
27mod enr;
28pub use enr::{EnrValidation, OpStackEnr, OpStackEnrError};
29
30mod any;
31pub use any::{AnyNode, DialOptsError};
32
33mod boot;
34pub use boot::BootNode;
35
36mod record;
37pub use record::{NodeRecord, NodeRecordParseError};
38
39mod utils;
40pub use utils::{
41 PeerIdConversionError, enr_to_multiaddr, local_id_to_p2p_id, peer_id_to_secp256k1_pubkey,
42};
43
44mod monitoring;
45pub use monitoring::PeerMonitoring;