signWithKeyRef method

  1. @override
Future<List<int>> signWithKeyRef(
  1. KeyRef keyRef,
  2. List<int> message,
  3. SignatureAlgorithm algorithm
)

Implementation

@override
Future<List<int>> signWithKeyRef(
  KeyRef keyRef,
  List<int> message,
  SignatureAlgorithm algorithm,
) async {
  final result = await _channel.invokeMethod<Uint8List>('signWithKeyRef', {
    'keyId': keyRef.keyId,
    'message': Uint8List.fromList(message),
    'algorithm': signatureAlgorithmName(algorithm),
  });
  return result ?? const [];
}