In Thru, all accounts are identified by 32-byte addresses. These addresses can be generated in two distinct ways: derived from keypairs using ED25519 cryptography, or computed deterministically by programs using SHA256 hashing.Documentation Index
Fetch the complete documentation index at: https://docs.thru.org/llms.txt
Use this file to discover all available pages before exploring further.
Keypair-Derived Addresses
Externally owned accounts (EOAs), also known as user accounts, are accounts that are controlled by users with their private keys. They are owned by the externally owned account program, which is located at the address0 (all zeros). The keypair is
generated using ED25519 public key cryptography. Both the private
and public keys are 32 bytes.
Program-Derived Addresses
When programs create accounts, their addresses are computed deterministically using SHA256 hashing.Address Computation
Program-derived addresses (PDAs) are computed using the following formula:program_pubkey- The 32-byte public key of the program creating the accountis_ephemeral- A single byte (0 or 1) indicating whether the account is ephemeralseed- A 32-byte seed provided by the program