Seed.fromBytes constructor

Seed.fromBytes(
  1. Uint8List buffer
)

create a Seed by taking ownership of the given array

Implementation

factory Seed.fromBytes(Uint8List buffer) {
  if (buffer.length != SEED_SIZE) {
    throw InvalidSeedSize(
        'Invalid Seed Size, expected $SEED_SIZE bytes, but received ${buffer.length} bytes.');
  }
  return Seed(buffer);
}