1 2 3 4 5 6 7 8 9 10 11 12 13
pub mod attached_signature_code; pub mod basic; pub mod self_addressing; pub mod self_signing; pub trait DerivationCode { fn code_len(&self) -> usize; fn derivative_b64_len(&self) -> usize; fn prefix_b64_len(&self) -> usize { self.code_len() + self.derivative_b64_len() } fn to_str(&self) -> String; }