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
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.
The Address Type specifies the type of public key used to generate the address. This makes it easy to add support for new signature algorithms in the future. Currently, the Pactus blockchain only supports BLS signature algorithm, with the type set to one.
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.