Setting up an Account
Last updated
Last updated
Ensure Olatte is installed correctly:
If this command fails, see
A Signer is capable of signing transactions, serving as a foundational element for accounts within OlaVM. The creation of a Signer necessitates the private key of your smart wallet, from which the public key can be inferred.
Olatte is designed with the capability to generate a keystore file. This file securely stores wallet's private key, protected by an individual password. Accounts maintained within this keystore file can utilize Olatte to authenticate transactions. The primary benefit of this methodology lies in its ability to avert the storage of private keys in unencrypted text format on your local machine. Instead, it employs a password to generate an encrypted file, which can be placed in a directory of your choosing.
The keystore file is stored in the default location of the Olatte CLI.
You can create the directory ~/.ola-wallets/deployer
and generate a keystore within this folder.
Create a directory:
Create a new keystore file within the directory:
Note:
In the password prompt, enter a password.
You will need this password to sign transactions using Olatte.
Create a keystore using your private key:
Note:
In the private key prompt, paste the private key of your ola wallet.
In the password prompt, enter a password.
You will need this password to sign transactions using Olatte.
Inspect your keystore:
Or view your private key:
You now have a default wallet. Before sending transactions, you need to register your publicKey with the system contract:
--network pre-alpha is for Ola pre-alpha test net, can be omitted.
Registering the Public Key in the system contract is for signature verification. Ola natively supports AA (Account Abstraction); you can also define your own Account logic by deploying AA. We will collaborate with wallet developers to build the AA ecosystem, and the documentation for this section will be updated subsequently.
If you have already variable, you can omit the keystore parameter here.