rekeyEngine method

Future<void> rekeyEngine(
  1. List<int> newKey
)

Re-encrypts the backing engine at rest under newKey (a no-op for the in-memory engine). Called by Database when the group key rotates. Awaits the initial load so the engine exists first.

Implementation

Future<void> rekeyEngine(List<int> newKey) async {
  await _ready;
  await _engine.rekey(newKey);
}