toBytes method

List<int> toBytes()

Converts the Schnorrkel public key to a byte representation.

This method returns a byte array representing the Schnorrkel public key.

Returns: A List<int> containing the byte representation of the Schnorrkel public key.

Example Usage:

SchnorrkelPublicKey publicKey = ...;
List<int> publicKeyBytes = publicKey.toBytes();

Implementation

List<int> toBytes() {
  return List<int>.from(_publicKey);
}