VRFPreOut constructor

VRFPreOut(
  1. List<int> bytes
)

Implementation

factory VRFPreOut(List<int> bytes) {
  if (bytes.length != SchnorrkelKeyCost.vrfPreOutLength) {
    throw ArgumentException(
        "Invalid VRFPreOut bytes length. excepted: ${SchnorrkelKeyCost.vrfPreOutLength} got: ${bytes.length}");
  }
  return VRFPreOut._(output: bytes);
}