CID.create constructor

CID.create(
  1. String input, [
  2. Multicodec codec = Multicodec.dagPb
])

Returns the CID representation of specific string input.

Implementation

factory CID.create(
  final String input, [
  final Multicodec codec = Multicodec.dagPb,
]) =>
    CID.fromList(_toV1(_toMultihash(input), codec));