Companion

object Companion

Functions

Link copied to clipboard
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.

Link copied to clipboard
fun fromSingleKey(privateKey: PrivateKey, address: AccountAddressInput? = null): SingleKeyAccount

Explicitly wrap Ed25519 or Secp256k1 key material in a SingleKey account.

Link copied to clipboard

Generate the conventional legacy Ed25519 account used by most Aptos applications.