sign abstract method

Uint8List sign(
  1. Uint8List message
)

Sign a given message with the private key.

The message is a Uint8List representing the data to be signed.

Example:

final keyPair = KeyPair.sr25519.fromSeed(seed); // Replace with your actual seed
final message = Uint8List.fromList([1, 2, 3, 4, 5]);
final signature = keyPair.sign(message);

Implementation

Uint8List sign(Uint8List message);