sign method

  1. @override
SSHEd25519Signature sign(
  1. Uint8List data
)
override

Implementation

@override
SSHEd25519Signature sign(Uint8List data) {
  final signer = ed25519.SigningKey.fromValidBytes(privateKey);
  return SSHEd25519Signature(signer.sign(data).asTypedList.sublist(0, 64));
}