toCIDString method

String toCIDString()

Converts to the new CIDv1 format string (e.g., base32 encoded for v1)

Implementation

String toCIDString() {
  final cid = toCid(); // This can throw if _multihash is invalid
  // cid.toString() will produce the canonical string representation (base32 for CIDv1)
  return cid.toString();
}