Entropy.fromBytes constructor

Entropy.fromBytes(
  1. Uint8List bytes
)

Retrieve an Entropy from the given byteArray.

Error

This function may fail if the given byteArray's length is not one of the supported entropy length.

Implementation

factory Entropy.fromBytes(Uint8List bytes) {
  final t = from_entropy_size(bytes.length * 8);
  return Entropy.newEntropy(t, bytes);
}