keep method

Future<void> keep(
  1. int start,
  2. Uint8List key
)

Keeps key for the service started at start and records the start in the index.

Implementation

Future<void> keep(int start, Uint8List key) async {
  await _write(tomSecretsAdminKeyHandle(start), base64.encode(key));
  final starts = await _starts();
  if (starts.add(start)) await _writeStarts(starts);
}