refresh method

  1. @override
BuBytes refresh({
  1. required List<int> sid,
  2. required List<int> sharesBlob,
  3. required List<int> seeds,
})
override

Rotate shares (group key unchanged) → framed shares blob.

Implementation

@override
BuBytes refresh({
  required List<int> sid,
  required List<int> sharesBlob,
  required List<int> seeds,
}) {
  if (sid.isEmpty) {
    throw CoreErrors.invalidOperationArguments(
      '$_tag.refresh',
      name: 'sid',
      reason: 'session id must not be empty.',
    );
  }
  if (sharesBlob.isEmpty) {
    throw CoreErrors.invalidOperationArguments(
      '$_tag.refresh',
      name: 'sharesBlob',
      reason: 'must not be empty',
    );
  }
  return ApiValidate.call(
    '$_tag.refresh',
    () => inner.refresh(sid: sid, sharesBlob: sharesBlob, seeds: seeds),
  );
}