scuttlebutt-discovery / org.apache.tuweni.scuttlebutt.discovery / LocalIdentity / fromString

fromString

static fun fromString(str: String): LocalIdentity (source)

Create a local identity from a String of the form net:IP address:port~shs:base64 of public key

Parameters

str - the String to interpret

Return
the identity or null if the string doesn't match the format.