VRFPublicKey constructor

VRFPublicKey({
  1. required Uint8List bytes,
})

Implementation

VRFPublicKey({required Uint8List bytes}) {
  if (bytes.length != PUBLIC_KEY_LENGTH) {
    throw AlgorandException(message: 'VRF Public Key wrong length.');
  }

  _bytes = bytes;
}