dusk-blockchain
dusk-blockchain copied to clipboard
Sortition Hash is not compliant with specification
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:
- Leave the code unchanged and update the specifications accordingly
- Adapt the code to the specification