PublicKey
Class representing a public key model. Preferred to use this over plain public key string
class PublicKey(value: bytearray | bytes | int | str | List[int])
The class requires one value argument which can be string, bytes, bytearray or int array form of the public key.
Methods
Attributes
Methods
.base58_encode
Converts the public key into base 58 form
def base58_encode()
.base58_decode
Decodes a base58 encoded public key
def base58_decode()
Attributes
.byte_value
Returns the byte value of the public key. Recommended to use bytes()
function and passing to public key to get the byte value over this attribute.