fn trusted_peer_from_json(json: &str) -> Result<TrustedPeer, Error>