toBytes method
Convert the public key to bytes.
Implementation
List<int> toBytes([bool prefix = true]) {
// If prefix is false, return compressed key without prefix.
if (!prefix) return _ed25519publicKey.compressed.sublist(1);
// Otherwise, return compressed key with prefix.
return _ed25519publicKey.compressed;
}