Address
Address
An address is a unique identifier that is used to send and receive transactions on the Pactus blockchain. It is represented as a string of 42 alphanumeric characters and always begins with the letters “pc1”. Here is an example of an address on the Pactus blockchain:
pc1p4e92hx0erqyx939crndvthvpn7qcdhefc9r6s7
Address Structure
An address in the Pactus blockchain is made up of 21 bytes and it is derived from the public key. The first byte of the address specifies the address type, while the remaining 20 bytes represent the hash of the public key. The hash function used is RIPEMD-160, which is applied after Blake2b): The resulting byte array is then converted into a bech32m1 string.
Address Type
The address type specifies the type of the address and its defined as below:
- 0: Treasury address
- 1: Validator address
- 2: Account address
Treasury Address
The Treasury address on the Pactus blockchain is a fixed address that is defined as follows:
TreasuryAddress: 000000000000000000000000000000000000000000
The address type for the Treasury address is set to zero, which means there is no key associated with the Treasury address. The remaining characters of the address are all zeros.