dusk-blockchain icon indicating copy to clipboard operation
dusk-blockchain copied to clipboard

Sortition Hash is not compliant with specification

Open fed-franz opened this issue 2 years ago • 2 comments

Description createSortitionHash returns $H(round||iteration||step||seed)$, but the specification states it should be $H(seed||round||step||iteration)$.

Logically speaking, the concatenation order should follow round->step->iteration, like in the specification. Technically speaking, this does not affect correctness/security, as long as all nodes calculate the same hash.

Solutions There are two options:

  1. Leave the code unchanged and update the specifications accordingly
  2. Adapt the code to the specification

fed-franz avatar Feb 06 '23 17:02 fed-franz