-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove web3signer block signing V1 (phase0 only) support #5014
Conversation
@@ -425,55 +425,6 @@ suite "Nimbus remote signer/signing test (web3signer)": | |||
finally: | |||
await client.closeWait() | |||
|
|||
asyncTest "Signing phase0 block": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks like the only block signing test we have - can we turn it into a more recent-version-test instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nimbus-eth2/tests/test_signing_node.nim
Lines 750 to 923 in 5add10b
asyncTest "Signing BeaconBlock (getBlockSignature(phase0))": | |
let | |
forked = getBlock(ConsensusFork.Phase0) | |
blockRoot = withBlck(forked): hash_tree_root(blck) | |
sres1 = | |
await validator1.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
sres2 = | |
await validator2.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
sres3 = | |
await validator3.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres1 = | |
await validator4.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres2 = | |
await validator5.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres3 = | |
await validator6.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
check: | |
sres1.isOk() | |
sres2.isOk() | |
sres3.isOk() | |
rres1.isOk() | |
rres2.isOk() | |
rres3.isOk() | |
sres1.get() == rres1.get() | |
sres2.get() == rres2.get() | |
sres3.get() == rres3.get() | |
asyncTest "Signing BeaconBlock (getBlockSignature(altair))": | |
let | |
forked = getBlock(ConsensusFork.Altair) | |
blockRoot = withBlck(forked): hash_tree_root(blck) | |
sres1 = | |
await validator1.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
sres2 = | |
await validator2.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
sres3 = | |
await validator3.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres1 = | |
await validator4.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres2 = | |
await validator5.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres3 = | |
await validator6.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
check: | |
sres1.isOk() | |
sres2.isOk() | |
sres3.isOk() | |
rres1.isOk() | |
rres2.isOk() | |
rres3.isOk() | |
sres1.get() == rres1.get() | |
sres2.get() == rres2.get() | |
sres3.get() == rres3.get() | |
asyncTest "Signing BeaconBlock (getBlockSignature(bellatrix))": | |
let | |
forked = getBlock(ConsensusFork.Bellatrix) | |
blockRoot = withBlck(forked): hash_tree_root(blck) | |
sres1 = | |
await validator1.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
sres2 = | |
await validator2.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
sres3 = | |
await validator3.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres1 = | |
await validator4.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres2 = | |
await validator5.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres3 = | |
await validator6.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
check: | |
sres1.isOk() | |
sres2.isOk() | |
sres3.isOk() | |
rres1.isOk() | |
rres2.isOk() | |
rres3.isOk() | |
sres1.get() == rres1.get() | |
sres2.get() == rres2.get() | |
sres3.get() == rres3.get() | |
asyncTest "Signing BeaconBlock (getBlockSignature(capella))": | |
let | |
forked = getBlock(ConsensusFork.Capella) | |
blockRoot = withBlck(forked): hash_tree_root(blck) | |
sres1 = | |
await validator1.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
sres2 = | |
await validator2.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
sres3 = | |
await validator3.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres1 = | |
await validator4.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres2 = | |
await validator5.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres3 = | |
await validator6.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
check: | |
sres1.isOk() | |
sres2.isOk() | |
sres3.isOk() | |
rres1.isOk() | |
rres2.isOk() | |
rres3.isOk() | |
sres1.get() == rres1.get() | |
sres2.get() == rres2.get() | |
sres3.get() == rres3.get() | |
asyncTest "Signing BeaconBlock (getBlockSignature(deneb))": | |
let | |
forked = getBlock(ConsensusFork.Deneb) | |
blockRoot = withBlck(forked): hash_tree_root(blck) | |
sres1 = | |
await validator1.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
sres2 = | |
await validator2.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
sres3 = | |
await validator3.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres1 = | |
await validator4.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres2 = | |
await validator5.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
rres3 = | |
await validator6.getBlockSignature(SigningFork, GenesisValidatorsRoot, | |
Slot(1), blockRoot, forked) | |
check: | |
sres1.isOk() | |
sres2.isOk() | |
sres3.isOk() | |
rres1.isOk() | |
rres2.isOk() | |
rres3.isOk() | |
sres1.get() == rres1.get() | |
sres2.get() == rres2.get() | |
sres3.get() == rres3.get() |
have tests using the BlockV2
interface for all supported forks.
No description provided.