toBytes method
Method to convert the public key to a list of bytes
Implementation
List<int> toBytes([PubKeyModes mode = PubKeyModes.compressed]) {
if (mode == PubKeyModes.uncompressed) {
return _publicKey.uncompressed;
}
return _publicKey.compressed;
}