tuweni / org.apache.tuweni.scuttlebutt / Identity / fromKeyPair

fromKeyPair

open static fun fromKeyPair(keyPair: KeyPair!): Identity! (source)

Creates a new Ed25519 identity backed by this key pair.

Parameters

keyPair - KeyPair!: the key pair of the identity

Return
Identity!: a new Scuttlebutt identity

open static fun fromKeyPair(keyPair: KeyPair!): Identity! (source)

Creates a new SECP256K1 identity backed by this key pair.

Parameters

keyPair - KeyPair!: the key pair of the identity

Return
Identity!: a new Scuttlebutt identity