ID calculation
For the account
Similar to EON 1 ([TestNet3 - EON Peer API / Retrieving account identifier]):
Taking the public key.
Calculating the SHA-512 hash.
The hash is reduced to 8 bytes (using XOR).
The resulting 8 bytes form an 8-byte character number (the least significant bytes of the array are the least significant bytes of the number).
This number is the identifier.
The numeric format can be reduced to a string (similar to EON-1).
For transaction / command
Similar to EON 1 ([TestNet3 - EON Peer API / Retrieving transaction/block identifier], but instead of the EDS it takes a SHA-512 hash of the transaction or command data):
Taking the bytes that are used to calculate the EDS.
They are used to count the SHA-512 hash.
Reducing the hash to 4 bytes (using XOR).
The resulting 4 bytes form a 4-byte character number (the least significant bytes of the array are the least significant bytes of the number).
This number is combined with timestamp to form an 8-byte character number (the lower part is timestamp, the higher is the number from the previous step).
This number is the identifier.
The numeric format can be reduced to a string similar to EON-1.
TX-
prefix is used for transactions.CMD-
prefix is used for commands.
Last updated