extractPublicKeyBlock method

int extractPublicKeyBlock(
  1. int start,
  2. int expectedBlockLength
)

Implementation

int extractPublicKeyBlock(int start, int expectedBlockLength) {
  int current = start;
  _input.offset = current;
  final publicKeyLength = _input.readUint32();
  assert(
    publicKeyLength + 4 == expectedBlockLength,
    'PublicKey BlockLength is not correct',
  );
  current = current + 4;
  _input.offset = current;
  final publicKeyBytes = _input.readBytes(publicKeyLength);
  _publicKeys.add(publicKeyBytes.toUint8List());
  return current + publicKeyLength;
}