Accounts
LTO network supports multiple cryptographic algorithms for signatures and encryption.
1
EdDSA
curve25519
2
ECDSA
secp256k1
3
ECDSA
secp256r1
Creating the address
The public network address is obtained from the (signature) public key and network id. The method is the same regardless of the key type.
#
Field Name
Type
Length
1
Version (0x01)
Byte
1
2
Network id
Byte
1
3
Public key hash
Bytes
20
4
Checksum
Bytes
4
Because the address contains the network id, different networks result in a different address for the same seed / public key.
Testnet
T
0x54
Mainnet
L
0x4C
Example
For public key
for the mainnet network (network id 'T'), this key results in the following address
Derived identities
The blockchain address of derived identities is calculated from a public key, plus a secret. To calculate the public key hash, hmac is used, instead of a regular sha256 hash.
Last updated