tuweni / org.apache.tuweni.scuttlebutt / Identity / fromPublicKey

fromPublicKey

open static fun fromPublicKey(publicKey: PublicKey!): Identity! (source)

Creates a new SECP256K1 identity backed by this public key.

Parameters

publicKey - PublicKey!: the public key of the identity

Return
Identity!: a new Scuttlebutt identity

open static fun fromPublicKey(publicKey: PublicKey!): Identity! (source)

Creates a new Ed25519 identity backed by this public key.

Parameters

publicKey - PublicKey!: the public key of the identity

Return
Identity!: a new Scuttlebutt identity