sign static method

Future<List<int>> sign(
  1. List<int> message,
  2. List<int>? privateKey,
  3. List<int> publicKey
)

Implementation

static Future<List<int>> sign(
    List<int> message, List<int>? privateKey, List<int> publicKey) {
  return ed25519.Ed25519.signature(
      Crypto._ed25519HashFunc,
      Uint8List.fromList(message),
      privateKey == null ? null : Uint8List.fromList(privateKey),
      Uint8List.fromList(publicKey));
}