Companion
object Companion
Functions
Link copied to clipboard
fun fromMnemonic(mnemonic: MnemonicPhrase, path: AptosDerivationPath.Ed25519 = AptosDerivationPath.Ed25519(), passphrase: String = ""): SingleKeyAccount
Derive an Ed25519 SingleKey account from an Aptos hardened BIP-44 path.
Link copied to clipboard
fun fromSecp256k1Mnemonic(mnemonic: MnemonicPhrase, path: AptosDerivationPath.Ecdsa = AptosDerivationPath.Ecdsa(), passphrase: String = ""): SingleKeyAccount
Derive a Secp256k1 SingleKey account from an Aptos BIP-44 path.
Link copied to clipboard
Derives an account from a randomly generated private key. Default generation is using an Ed25519 key