Accounts
from lto import LTO
account = LTO(chain_id).Account()
from lto import LTO
account = LTO(chain_id).Account(seed=my_seed)
from lto import LTO
account = LTO(chain_id).Account(public_key=my_pub_key)
from lto import LTO
account = LTO(chain_id).Account(provate_key=my_priv_key)
ed25519
account = LTO(chain_id).Account()
secp256k1
account = LTO(chain_id).Account(key_type = "secp256k1")
secp256r1
account = LTO(chain_id).Account(key_type = "secp256r1")
We first need to convert the string to bytes using our crypto library
from lto import crypto
message = crypto.str2bytes("test")
signature = account.sign(message)
account.verify_signature(message, signature)
Last modified 1yr ago