neo-modules icon indicating copy to clipboard operation
neo-modules copied to clipboard

Runtime secure random number for N3

Open Jim8y opened this issue 4 years ago • 3 comments

This pr implement secure random number for N3 at runtime.

#601 #637 #596 https://github.com/neo-project/neo/issues/2504

Jim8y avatar Oct 31 '21 23:10 Jim8y

our solution image

Others solution requires third party RNG and need two rounds to process: image

Jim8y avatar Nov 02 '21 19:11 Jim8y

Transaction list exchange will have serious performance consequences. And the worst thing is that it would affect the performance most exactly when we need it most, under some stress, because transaction pressure tends to lead to a greater deal of unsynchrony between the nodes. Notice also that for high-performing networks (which inevitably have to allow tens of thousands of transactions in a block) that could easily mean exchanging 1MB+ messages in this phase further complicating the situation.

I'd suggest trying this in neo-bench, four CNs and especially 7+2 scenario. 7+2 was added quite recently and it makes all nodes look bad because the network becomes highly unsynchronized, but that's exactly what makes this case more realistic and interesting (we've not optimized for it yet).

roman-khimov avatar Nov 02 '21 20:11 roman-khimov

@roman-khimov Thank you very much for your suggestion roman, that would be a great help.

Jim8y avatar Nov 02 '21 21:11 Jim8y