yabase/core/multibase

Values

pub fn decode(
  value: String,
) -> Result(encoding.Decoded, error.CodecError)

Decode a multibase-prefixed string, auto-detecting the encoding.

pub fn decode_bytes(
  value: String,
) -> Result(BitArray, error.CodecError)

Decode a multibase-prefixed string to raw bytes.

pub fn encode_with_prefix(
  enc: encoding.Encoding,
  data: BitArray,
) -> Result(String, error.CodecError)

Encode data with a multibase prefix.

Search Document