sign abstract method

Future<Signature> sign(
  1. List<int> message
)

Signs bytes.

Example

import 'package:cryptography_plus/cryptography_plus.dart';

Future<void> main() async {
  final ed25519 = Ed25519();
  final aliceWand = await ed25519.newKeyExchangeWand();
  final signedMessage = [1,2,3];
  final signature = await aliceWand.sign(signedMessage);
  print('Signature: ${signature.bytes}');
  print('Public key: ${signature.publicKey}');
}

Implementation

Future<Signature> sign(List<int> message);