vrfHash2 static method

RistrettoPoint vrfHash2(
  1. MerlinTranscript script,
  2. List<int> keyBytes
)

Implementation

static RistrettoPoint vrfHash2(MerlinTranscript script, List<int> keyBytes) {
  script.additionalData("vrf-nm-pk".codeUnits, keyBytes);
  final hashPoint =
      RistrettoPoint.fromUniform(script.toBytes("VRFHash".codeUnits, 64));
  return hashPoint;
}