From 3fbfe3c1dbfdfd1efeec7bc2afcbc163beeb485d Mon Sep 17 00:00:00 2001 From: Marco Stronati Date: Thu, 28 Jun 2018 08:55:16 +0200 Subject: [PATCH] Doc/PoS: how to compute seed --- docs/whitedoc/proof_of_stake.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/whitedoc/proof_of_stake.rst b/docs/whitedoc/proof_of_stake.rst index 7601d1a76..befe2e094 100644 --- a/docs/whitedoc/proof_of_stake.rst +++ b/docs/whitedoc/proof_of_stake.rst @@ -288,6 +288,9 @@ the blocks in the cycle are sufficient to include all revelations. The revelations are hashed together to generate a random seed at the very end of cycle ``(n-PRESERVED_CYCLES-1)``. +The seed of cycle ``(n-PRESERVED_CYCLES-2)`` is hashed with a constant +and then with each revelation of cycle ``(n-PRESERVED_CYCLES-1)``. +Once computed, this new seed is stored and used during cycle ``n``. Denunciations -------------