PeerId.fromString constructor
PeerId.fromString(
- String str
Creates a PeerId from a string representation (either legacy or CIDv1)
Implementation
PeerId.fromString(String str) : _multihash = _parseStringToMultihash(str);