fromPrivateKey

fun fromPrivateKey(privateKey: PrivateKey, address: AccountAddressInput? = null): Account

Create an account from a private key, inferring the correct account authentication scheme. Ed25519 uses the legacy authenticator; other locally signable keys use SingleKey.