PeerId.fromString constructor

PeerId.fromString(
  1. String str
)

Creates a PeerId from a string representation (either legacy or CIDv1)

Implementation

PeerId.fromString(String str) : _multihash = _parseStringToMultihash(str);