From cbd0511f5dac86c5c650e9558cfcac7b16ee6fa0 Mon Sep 17 00:00:00 2001 From: schimih Date: Tue, 10 Jun 2025 16:23:45 +0300 Subject: [PATCH 1/2] Fix Randomness description in consensus --- docs/learn/consensus.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/learn/consensus.md b/docs/learn/consensus.md index 118cc276d..039f9eded 100644 --- a/docs/learn/consensus.md +++ b/docs/learn/consensus.md @@ -18,13 +18,12 @@ Below is a step‑by‑step walk‑through of *one* six‑second block cycle (ro ### 1.2 Round randomness -Randomness must be unpredictable yet verifiable. For round `r` the seed is: - ``` -rand_r = BLS_sign(prev_block_hash, proposer_{r-1}) +newRandSeed = currentProposer.Sign(lastRandSeed) +randomness = hash(randSeed, currentRound) ``` - -Because the identity of the previous proposer is only revealed at the end of round `r – 1`, no one can bias or predict `rand_r` ahead of time. +* `newRandSeed` - VUF (Verifiable Unpredictable Function). It allows the generate seeds that are verifiable, unpredictable but not uniform. +* `randomness` - VRF (Verifiable Random Function) ### 1.3 Proposer election From e9aeb7eb3375bd671f03febc99c7235862f6683e Mon Sep 17 00:00:00 2001 From: schimih Date: Thu, 26 Jun 2025 13:57:26 +0300 Subject: [PATCH 2/2] fix rand description in consensus and cli fixes --- docs/learn/consensus.md | 2 +- docs/validators/node-cli.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/learn/consensus.md b/docs/learn/consensus.md index 039f9eded..73ac40b67 100644 --- a/docs/learn/consensus.md +++ b/docs/learn/consensus.md @@ -20,7 +20,7 @@ Below is a step‑by‑step walk‑through of *one* six‑second block cycle (ro ``` newRandSeed = currentProposer.Sign(lastRandSeed) -randomness = hash(randSeed, currentRound) +randomness = hash(newRandSeed, currentRound) ``` * `newRandSeed` - VUF (Verifiable Unpredictable Function). It allows the generate seeds that are verifiable, unpredictable but not uniform. * `randomness` - VRF (Verifiable Random Function) diff --git a/docs/validators/node-cli.md b/docs/validators/node-cli.md index 327cf7be6..e247de479 100644 --- a/docs/validators/node-cli.md +++ b/docs/validators/node-cli.md @@ -15,11 +15,11 @@ Command Line Interface for the Node and the associated Tools The **Command Line Interface** of the **Node** and its associated **Tools** is described at the following locations: -- [Node](https://github.com/multiversx/mx-chain-go/blob/master/cmd/node/CLI) -- [SeedNode](https://github.com/multiversx/mx-chain-go/blob/master/cmd/seednode/CLI) -- [Keygenerator](https://github.com/multiversx/mx-chain-go/blob/master/cmd/keygenerator/CLI) -- [TermUI](https://github.com/multiversx/mx-chain-go/blob/master/cmd/termui/CLI) -- [Logviewer](https://github.com/multiversx/mx-chain-go/blob/master/cmd/logviewer/CLI) +- [Node](https://github.com/multiversx/mx-chain-go/blob/master/cmd/node/CLI.md) +- [SeedNode](https://github.com/multiversx/mx-chain-go/blob/master/cmd/seednode/CLI.md) +- [Keygenerator](https://github.com/multiversx/mx-chain-go/blob/master/cmd/keygenerator/CLI.md) +- [TermUI](https://github.com/multiversx/mx-chain-go/blob/master/cmd/termui/CLI.md) +- [Logviewer](https://github.com/multiversx/mx-chain-go/blob/master/cmd/logviewer/CLI.md) [comment]: # (mx-context-auto)