libp2p-autorelay 0.1.0-alpha.0

(WIP) Implementation of autorelay for libp2p
Documentation
1
2
3
4
5
6
7
8
9
10
// use libipld::{Cid, multihash::{Code, MultihashDigest}, IpldCodec};

// pub fn ns_to_cid(string: &str) -> Cid {
//     let hash = Code::Sha2_256.digest(string.as_bytes());
//     Cid::new_v1(IpldCodec::Raw.into(), hash)
// }

// pub fn cid_to_ns(cid: Cid) -> String {
//     format!("/provider/{cid}")
// }