class LocalIdentity
(source)
Representation of an identity associated with an IP and port, used for Scuttlebutt local discovery.
See https://ssbc.github.io/scuttlebutt-protocol-guide/ for a detailed description of this identity.
LocalIdentity(ip: String, port: String, id: Identity) LocalIdentity(ip: String, port: Int, id: Identity) LocalIdentity(addr: InetSocketAddress, id: Identity)
Constructor for a local identity |
fun equals(other: Any?): Boolean |
|
static fun fromString(str: String): LocalIdentity
Create a local identity from a String of the form net:IP address:port~shs:base64 of public key |
|
fun hashCode(): Int |
|
fun toCanonicalForm(): String |
|
fun toString(): String |