Accounts

Creation

Create an account

from lto import LTO

account = LTO(chain_id).Account()

Create an account from seed

from lto import LTO

account = LTO(chain_id).Account(seed=my_seed)

Create an account from public key

from lto import LTO

account = LTO(chain_id).Account(public_key=my_pub_key)

Create an account from private key

from lto import LTO

account = LTO(chain_id).Account(provate_key=my_priv_key)

Different encryption algorithms

If not specified EdDSA is default:

ed25519

For ECDSA we have two available curves:

secp256k1

secp256r1

Signing

Signing a message

We first need to convert the string to bytes using our crypto library

Verifying a message

Last updated