toBytes method
The toBytes
method converts the Schnorrkel secret key into a byte representation.
Returns:
A List<int>
containing the byte representation of the Schnorrkel secret key, including both the secret key
and the nonce components.
Implementation
List<int> toBytes() {
return List<int>.from([..._key, ..._nonce]);
}