1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
//! # interledger-ildcp //! //! Client and server implementations of the [Interledger Dynamic Configuration Protocol (ILDCP)](https://github.com/interledger/rfcs/blob/master/0031-dynamic-configuration-protocol/0031-dynamic-configuration-protocol.md). //! //! This is used by clients to query for their ILP address and asset details such as asset code and scale. #[macro_use] extern crate lazy_static; #[macro_use] extern crate log; use bytes::Bytes; use interledger_service::Account; mod client; mod packet; mod server; pub use client::get_ildcp_info; pub use packet::*; pub use server::IldcpService; pub trait IldcpAccount: Account { fn client_address(&self) -> Bytes; fn asset_scale(&self) -> u8; fn asset_code(&self) -> &str; }