multiformats/cid/v1

Types

pub type Cid {
  Cid(content_type: Int, content: hashes.Multihash)
}

Constructors

Values

pub fn from_bytes(
  cid: BitArray,
) -> Result(#(Cid, BitArray), String)
pub fn from_string(
  cid: String,
) -> Result(#(Cid, BitArray), String)
pub fn to_bytes(cid: Cid) -> BitArray

Convert a decoded CID to it’s binary representation

pub fn to_string(cid: Cid) -> String

Convert a decoded CID to it’s string representation

Search Document