tuweni / org.apache.tuweni.scuttlebutt / Identity / fromSecretKey

fromSecretKey

open static fun fromSecretKey(secretKey: SecretKey!): Identity! (source)

Creates a new Ed25519 identity backed by this secret key.

Parameters

secretKey - SecretKey!: the secret key of the identity

Return
Identity!: a new Scuttlebutt identity

open static fun fromSecretKey(secretKey: SecretKey!): Identity! (source)

Creates a new SECP256K1 identity backed by this secret key.

Parameters

secretKey - SecretKey!: the secret key of the identity

Return
Identity!: a new Scuttlebutt identity