PublicKey
Class representing a public key model. Ideal to use this class over plain public key string
class PublicKey(value: bytearray | bytes | int | str | List[int])
The class requires one value argument to initialize which can be string, bytes, bytearray or int array form of the public key. The public key must be exactly 32 bytes in length.
Methods
Attributes
Methods
.base58_encode
Returns the public key in base58 encoding (the type we see in wallets)
def base58_encode()
Attributes
.byte_value
Returns the byte value of the public key