diversifyHash<SCALAR extends JubJubScalar<SCALAR>, E extends BaseJubJubPoint<SCALAR, E>> static method

E? diversifyHash<SCALAR extends JubJubScalar<SCALAR>, E extends BaseJubJubPoint<SCALAR, E>>({
  1. required List<int> d,
  2. required E fromBytes(
    1. List<int> bytes
    ),
})

Implementation

static E? diversifyHash<
  SCALAR extends JubJubScalar<SCALAR>,
  E extends BaseJubJubPoint<SCALAR, E>
>({required List<int> d, required E Function(List<int> bytes) fromBytes}) {
  return groupHash<SCALAR, E>(
    fromBytes: fromBytes,
    tag: d.exc(
      operation: "diversifyHash",
      name: "d",
      reason: "Invalid d bytes length.",
      length: 11,
    ),
    personalization: "Zcash_gd".codeUnits,
  );
}