Test Details Overview

Pin the signatures the ed25519 verifier accepts and test the burn account checks (#5306)

* Pin the signatures the ed25519 verifier accepts

Which signatures verify is a consensus rule, and the verifier is more
lenient than stricter ed25519 implementations: it takes a scalar at or
above the group order as long as it stays below 2^253, public keys of
small order and public keys in a non-canonical encoding, while the
point half of a signature has to be canonical. A change of library or a
tightening of the checks would make nodes disagree about valid blocks
and votes, so the ed25519 suite now states each of these in a test,
with fixed inputs and the verdict expected for each.

The suite moves out of the block tests into its own file with its one
old test rewritten, and the signature that takes no private key to make
becomes a test helper.

* Test the burn account checks with signatures that verify

The all-zero key of the burn account is a point of small order, so a
signature made without any private key verifies under it for about one
message in four. The explicit checks are what keep the account closed,
and only the epoch block one had a test. The legacy open block, the
state block and the vote the message dispatcher drops now each have a
test that carries such a signature, the blocks with the work they need
as well, so nothing but the check under test refuses them.

__________

Type: commit

Hash: bf32515e37fe3b14778df35f7e56681e1fc59b84

Created: yesterday

__________

gr0v1ty/nano-node:bf32515e37fe3b14778df35f7e56681e1fc59b84

Test Results

Test Case Status Duration Median Deviation Log Graph
5n4pr_conf_10k_bintree FAIL 190 s 85.0 s Test log Show
5n4pr_conf_10k_change FAIL 254 s 133.0 s Test log Show
5n4pr_conf_change_dependant PASS 98 s -7.0 s GitHub job logs -
5n4pr_conf_change_independant PASS 115 s 10.0 s GitHub job logs -
5n4pr_conf_send_dependant PASS 101 s 0.0 s GitHub job logs -
5n4pr_conf_send_independant PASS 118 s 8.0 s GitHub job logs -
5n4pr_rocks_10k_bintree FAIL 190 s 85.0 s Test log -
5n4pr_rocks_10k_change FAIL 289 s 132.0 s Test log -