Skip to content
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

[Snyk] Upgrade @chainsafe/bls-keygen from 0.3.0 to 0.4.0 #4786

Closed

Conversation

snyk-bot
Copy link
Contributor

Snyk has created this PR to upgrade @chainsafe/bls-keygen from 0.3.0 to 0.4.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 1 version ahead of your current version.
  • The recommended version was released 9 months ago, on 2022-02-22.
Release notes
Package name: @chainsafe/bls-keygen from @chainsafe/bls-keygen GitHub release notes
Commit messages
Package name: @chainsafe/bls-keygen

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@snyk-bot snyk-bot requested a review from a team as a code owner November 20, 2022 03:08
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions
Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 0d6dea7 Previous: f74462e Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 2.2206 ms/op 2.2135 ms/op 1.00
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 71.464 us/op 83.163 us/op 0.86
BLS verify - blst-native 1.8767 ms/op 2.2073 ms/op 0.85
BLS verifyMultipleSignatures 3 - blst-native 3.8030 ms/op 4.5370 ms/op 0.84
BLS verifyMultipleSignatures 8 - blst-native 8.1974 ms/op 9.7452 ms/op 0.84
BLS verifyMultipleSignatures 32 - blst-native 29.698 ms/op 34.876 ms/op 0.85
BLS aggregatePubkeys 32 - blst-native 39.321 us/op 49.570 us/op 0.79
BLS aggregatePubkeys 128 - blst-native 153.73 us/op 181.05 us/op 0.85
getAttestationsForBlock 91.854 ms/op 105.02 ms/op 0.87
isKnown best case - 1 super set check 419.00 ns/op 508.00 ns/op 0.82
isKnown normal case - 2 super set checks 409.00 ns/op 497.00 ns/op 0.82
isKnown worse case - 16 super set checks 407.00 ns/op 497.00 ns/op 0.82
CheckpointStateCache - add get delete 9.0410 us/op 10.134 us/op 0.89
validate gossip signedAggregateAndProof - struct 4.2531 ms/op 5.0212 ms/op 0.85
validate gossip attestation - struct 2.0252 ms/op 2.3755 ms/op 0.85
pickEth1Vote - no votes 2.0797 ms/op 2.4624 ms/op 0.84
pickEth1Vote - max votes 20.321 ms/op 22.356 ms/op 0.91
pickEth1Vote - Eth1Data hashTreeRoot value x2048 11.245 ms/op 12.508 ms/op 0.90
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 19.789 ms/op 23.943 ms/op 0.83
pickEth1Vote - Eth1Data fastSerialize value x2048 1.5481 ms/op 1.9171 ms/op 0.81
pickEth1Vote - Eth1Data fastSerialize tree x2048 14.522 ms/op 15.373 ms/op 0.94
bytes32 toHexString 1.1070 us/op 1.1540 us/op 0.96
bytes32 Buffer.toString(hex) 693.00 ns/op 760.00 ns/op 0.91
bytes32 Buffer.toString(hex) from Uint8Array 946.00 ns/op 1.0210 us/op 0.93
bytes32 Buffer.toString(hex) + 0x 696.00 ns/op 786.00 ns/op 0.89
Object access 1 prop 0.37200 ns/op 0.40900 ns/op 0.91
Map access 1 prop 0.28900 ns/op 0.34200 ns/op 0.85
Object get x1000 17.890 ns/op 20.419 ns/op 0.88
Map get x1000 0.96800 ns/op 1.1440 ns/op 0.85
Object set x1000 116.33 ns/op 127.52 ns/op 0.91
Map set x1000 71.488 ns/op 82.194 ns/op 0.87
Return object 10000 times 0.37210 ns/op 0.43980 ns/op 0.85
Throw Error 10000 times 5.9179 us/op 6.8949 us/op 0.86
fastMsgIdFn sha256 / 200 bytes 4.2070 us/op 4.7980 us/op 0.88
fastMsgIdFn h32 xxhash / 200 bytes 536.00 ns/op 612.00 ns/op 0.88
fastMsgIdFn h64 xxhash / 200 bytes 702.00 ns/op 769.00 ns/op 0.91
fastMsgIdFn sha256 / 1000 bytes 13.209 us/op 15.095 us/op 0.88
fastMsgIdFn h32 xxhash / 1000 bytes 683.00 ns/op 769.00 ns/op 0.89
fastMsgIdFn h64 xxhash / 1000 bytes 778.00 ns/op 900.00 ns/op 0.86
fastMsgIdFn sha256 / 10000 bytes 112.25 us/op 126.76 us/op 0.89
fastMsgIdFn h32 xxhash / 10000 bytes 2.3960 us/op 2.7450 us/op 0.87
fastMsgIdFn h64 xxhash / 10000 bytes 1.7860 us/op 2.1000 us/op 0.85
enrSubnets - fastDeserialize 64 bits 2.6950 us/op 2.9060 us/op 0.93
enrSubnets - ssz BitVector 64 bits 775.00 ns/op 822.00 ns/op 0.94
enrSubnets - fastDeserialize 4 bits 381.00 ns/op 425.00 ns/op 0.90
enrSubnets - ssz BitVector 4 bits 773.00 ns/op 872.00 ns/op 0.89
prioritizePeers score -10:0 att 32-0.1 sync 2-0 96.953 us/op 105.66 us/op 0.92
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 123.72 us/op 145.36 us/op 0.85
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 216.91 us/op 242.88 us/op 0.89
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 466.60 us/op 516.50 us/op 0.90
prioritizePeers score 0:0 att 64-1 sync 4-1 462.64 us/op 504.90 us/op 0.92
RateTracker 1000000 limit, 1 obj count per request 195.38 ns/op 224.66 ns/op 0.87
RateTracker 1000000 limit, 2 obj count per request 145.92 ns/op 172.85 ns/op 0.84
RateTracker 1000000 limit, 4 obj count per request 124.42 ns/op 143.96 ns/op 0.86
RateTracker 1000000 limit, 8 obj count per request 112.13 ns/op 128.27 ns/op 0.87
RateTracker with prune 4.8410 us/op 4.7630 us/op 1.02
array of 16000 items push then shift 3.2015 us/op 3.5780 us/op 0.89
LinkedList of 16000 items push then shift 17.186 ns/op 19.216 ns/op 0.89
array of 16000 items push then pop 244.25 ns/op 261.45 ns/op 0.93
LinkedList of 16000 items push then pop 16.388 ns/op 19.191 ns/op 0.85
array of 24000 items push then shift 4.5699 us/op 5.3116 us/op 0.86
LinkedList of 24000 items push then shift 20.835 ns/op 22.403 ns/op 0.93
array of 24000 items push then pop 213.20 ns/op 236.86 ns/op 0.90
LinkedList of 24000 items push then pop 17.867 ns/op 20.110 ns/op 0.89
intersect bitArray bitLen 8 11.680 ns/op 13.418 ns/op 0.87
intersect array and set length 8 170.33 ns/op 186.47 ns/op 0.91
intersect bitArray bitLen 128 72.151 ns/op 71.531 ns/op 1.01
intersect array and set length 128 2.2613 us/op 2.6161 us/op 0.86
Buffer.concat 32 items 1.9390 ns/op 2.1890 ns/op 0.89
pass gossip attestations to forkchoice per slot 3.9901 ms/op 4.9457 ms/op 0.81
computeDeltas 5.9115 ms/op 7.0619 ms/op 0.84
computeProposerBoostScoreFromBalances 922.33 us/op 1.0677 ms/op 0.86
altair processAttestation - 250000 vs - 7PWei normalcase 3.9790 ms/op 4.2034 ms/op 0.95
altair processAttestation - 250000 vs - 7PWei worstcase 6.1319 ms/op 6.6795 ms/op 0.92
altair processAttestation - setStatus - 1/6 committees join 213.11 us/op 246.22 us/op 0.87
altair processAttestation - setStatus - 1/3 committees join 405.00 us/op 471.10 us/op 0.86
altair processAttestation - setStatus - 1/2 committees join 567.98 us/op 678.98 us/op 0.84
altair processAttestation - setStatus - 2/3 committees join 732.27 us/op 863.19 us/op 0.85
altair processAttestation - setStatus - 4/5 committees join 1.0139 ms/op 1.1697 ms/op 0.87
altair processAttestation - setStatus - 100% committees join 1.1937 ms/op 1.4223 ms/op 0.84
altair processBlock - 250000 vs - 7PWei normalcase 30.538 ms/op 30.740 ms/op 0.99
altair processBlock - 250000 vs - 7PWei normalcase hashState 37.219 ms/op 41.368 ms/op 0.90
altair processBlock - 250000 vs - 7PWei worstcase 80.648 ms/op 103.37 ms/op 0.78
altair processBlock - 250000 vs - 7PWei worstcase hashState 106.07 ms/op 108.54 ms/op 0.98
phase0 processBlock - 250000 vs - 7PWei normalcase 3.6589 ms/op 4.1445 ms/op 0.88
phase0 processBlock - 250000 vs - 7PWei worstcase 45.853 ms/op 55.728 ms/op 0.82
altair processEth1Data - 250000 vs - 7PWei normalcase 819.65 us/op 980.51 us/op 0.84
Tree 40 250000 create 799.35 ms/op 918.35 ms/op 0.87
Tree 40 250000 get(125000) 289.71 ns/op 348.65 ns/op 0.83
Tree 40 250000 set(125000) 2.5985 us/op 2.7763 us/op 0.94
Tree 40 250000 toArray() 32.176 ms/op 36.421 ms/op 0.88
Tree 40 250000 iterate all - toArray() + loop 32.613 ms/op 36.417 ms/op 0.90
Tree 40 250000 iterate all - get(i) 110.64 ms/op 128.49 ms/op 0.86
MutableVector 250000 create 16.458 ms/op 17.667 ms/op 0.93
MutableVector 250000 get(125000) 14.755 ns/op 15.410 ns/op 0.96
MutableVector 250000 set(125000) 686.21 ns/op 733.78 ns/op 0.94
MutableVector 250000 toArray() 7.4119 ms/op 8.7205 ms/op 0.85
MutableVector 250000 iterate all - toArray() + loop 7.7042 ms/op 8.5947 ms/op 0.90
MutableVector 250000 iterate all - get(i) 3.4378 ms/op 3.9225 ms/op 0.88
Array 250000 create 6.7588 ms/op 7.8033 ms/op 0.87
Array 250000 clone - spread 3.8831 ms/op 4.3960 ms/op 0.88
Array 250000 get(125000) 1.6220 ns/op 1.8360 ns/op 0.88
Array 250000 set(125000) 1.6090 ns/op 1.8920 ns/op 0.85
Array 250000 iterate all - loop 167.84 us/op 205.88 us/op 0.82
effectiveBalanceIncrements clone Uint8Array 300000 90.232 us/op 106.92 us/op 0.84
effectiveBalanceIncrements clone MutableVector 300000 696.00 ns/op 1.5110 us/op 0.46
effectiveBalanceIncrements rw all Uint8Array 300000 252.61 us/op 304.51 us/op 0.83
effectiveBalanceIncrements rw all MutableVector 300000 162.89 ms/op 236.23 ms/op 0.69
phase0 afterProcessEpoch - 250000 vs - 7PWei 198.37 ms/op 234.29 ms/op 0.85
phase0 beforeProcessEpoch - 250000 vs - 7PWei 71.618 ms/op 78.695 ms/op 0.91
altair processEpoch - mainnet_e81889 582.04 ms/op 676.61 ms/op 0.86
mainnet_e81889 - altair beforeProcessEpoch 161.81 ms/op 175.98 ms/op 0.92
mainnet_e81889 - altair processJustificationAndFinalization 30.094 us/op 40.336 us/op 0.75
mainnet_e81889 - altair processInactivityUpdates 10.978 ms/op 12.351 ms/op 0.89
mainnet_e81889 - altair processRewardsAndPenalties 91.322 ms/op 103.79 ms/op 0.88
mainnet_e81889 - altair processRegistryUpdates 5.1460 us/op 8.3300 us/op 0.62
mainnet_e81889 - altair processSlashings 1.3330 us/op 1.8580 us/op 0.72
mainnet_e81889 - altair processEth1DataReset 1.4430 us/op 2.3550 us/op 0.61
mainnet_e81889 - altair processEffectiveBalanceUpdates 2.4954 ms/op 3.1250 ms/op 0.80
mainnet_e81889 - altair processSlashingsReset 8.0630 us/op 13.497 us/op 0.60
mainnet_e81889 - altair processRandaoMixesReset 9.5470 us/op 12.481 us/op 0.76
mainnet_e81889 - altair processHistoricalRootsUpdate 1.0910 us/op 2.0030 us/op 0.54
mainnet_e81889 - altair processParticipationFlagUpdates 4.4420 us/op 8.0530 us/op 0.55
mainnet_e81889 - altair processSyncCommitteeUpdates 1.1600 us/op 1.7740 us/op 0.65
mainnet_e81889 - altair afterProcessEpoch 196.42 ms/op 228.00 ms/op 0.86
phase0 processEpoch - mainnet_e58758 528.17 ms/op 610.51 ms/op 0.87
mainnet_e58758 - phase0 beforeProcessEpoch 230.07 ms/op 264.81 ms/op 0.87
mainnet_e58758 - phase0 processJustificationAndFinalization 27.529 us/op 34.165 us/op 0.81
mainnet_e58758 - phase0 processRewardsAndPenalties 135.56 ms/op 148.44 ms/op 0.91
mainnet_e58758 - phase0 processRegistryUpdates 11.654 us/op 19.914 us/op 0.59
mainnet_e58758 - phase0 processSlashings 1.2530 us/op 1.8800 us/op 0.67
mainnet_e58758 - phase0 processEth1DataReset 1.3270 us/op 1.9620 us/op 0.68
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 2.1330 ms/op 2.8269 ms/op 0.75
mainnet_e58758 - phase0 processSlashingsReset 6.4840 us/op 8.6730 us/op 0.75
mainnet_e58758 - phase0 processRandaoMixesReset 11.383 us/op 14.475 us/op 0.79
mainnet_e58758 - phase0 processHistoricalRootsUpdate 1.1910 us/op 2.5510 us/op 0.47
mainnet_e58758 - phase0 processParticipationRecordUpdates 7.0950 us/op 12.467 us/op 0.57
mainnet_e58758 - phase0 afterProcessEpoch 161.18 ms/op 190.01 ms/op 0.85
phase0 processEffectiveBalanceUpdates - 250000 normalcase 2.6011 ms/op 3.1003 ms/op 0.84
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 3.4411 ms/op 4.1763 ms/op 0.82
altair processInactivityUpdates - 250000 normalcase 37.168 ms/op 46.340 ms/op 0.80
altair processInactivityUpdates - 250000 worstcase 45.199 ms/op 58.000 ms/op 0.78
phase0 processRegistryUpdates - 250000 normalcase 11.566 us/op 17.994 us/op 0.64
phase0 processRegistryUpdates - 250000 badcase_full_deposits 446.06 us/op 596.47 us/op 0.75
phase0 processRegistryUpdates - 250000 worstcase 0.5 208.72 ms/op 242.56 ms/op 0.86
altair processRewardsAndPenalties - 250000 normalcase 124.75 ms/op 144.67 ms/op 0.86
altair processRewardsAndPenalties - 250000 worstcase 84.618 ms/op 98.235 ms/op 0.86
phase0 getAttestationDeltas - 250000 normalcase 13.398 ms/op 15.439 ms/op 0.87
phase0 getAttestationDeltas - 250000 worstcase 13.652 ms/op 15.378 ms/op 0.89
phase0 processSlashings - 250000 worstcase 5.5784 ms/op 6.3625 ms/op 0.88
altair processSyncCommitteeUpdates - 250000 288.48 ms/op 324.85 ms/op 0.89
BeaconState.hashTreeRoot - No change 506.00 ns/op 584.00 ns/op 0.87
BeaconState.hashTreeRoot - 1 full validator 63.205 us/op 73.329 us/op 0.86
BeaconState.hashTreeRoot - 32 full validator 741.02 us/op 937.52 us/op 0.79
BeaconState.hashTreeRoot - 512 full validator 6.3654 ms/op 7.6245 ms/op 0.83
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 77.421 us/op 95.943 us/op 0.81
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.1754 ms/op 1.3951 ms/op 0.84
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 15.717 ms/op 18.297 ms/op 0.86
BeaconState.hashTreeRoot - 1 balances 57.049 us/op 73.570 us/op 0.78
BeaconState.hashTreeRoot - 32 balances 613.18 us/op 700.71 us/op 0.88
BeaconState.hashTreeRoot - 512 balances 5.8476 ms/op 6.7207 ms/op 0.87
BeaconState.hashTreeRoot - 250000 balances 83.529 ms/op 110.76 ms/op 0.75
aggregationBits - 2048 els - zipIndexesInBitList 28.806 us/op 38.978 us/op 0.74
regular array get 100000 times 67.380 us/op 79.439 us/op 0.85
wrappedArray get 100000 times 67.410 us/op 79.088 us/op 0.85
arrayWithProxy get 100000 times 28.832 ms/op 34.407 ms/op 0.84
ssz.Root.equals 491.00 ns/op 578.00 ns/op 0.85
byteArrayEquals 465.00 ns/op 594.00 ns/op 0.78
shuffle list - 16384 els 11.272 ms/op 12.598 ms/op 0.89
shuffle list - 250000 els 166.33 ms/op 188.20 ms/op 0.88
processSlot - 1 slots 12.363 us/op 13.745 us/op 0.90
processSlot - 32 slots 1.7381 ms/op 1.9910 ms/op 0.87
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 388.41 us/op 447.05 us/op 0.87
getCommitteeAssignments - req 1 vs - 250000 vc 5.3251 ms/op 6.4763 ms/op 0.82
getCommitteeAssignments - req 100 vs - 250000 vc 7.3230 ms/op 8.8883 ms/op 0.82
getCommitteeAssignments - req 1000 vs - 250000 vc 7.7715 ms/op 9.2415 ms/op 0.84
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 11.030 ns/op 11.820 ns/op 0.93
state getBlockRootAtSlot - 250000 vs - 7PWei 1.1666 us/op 1.3108 us/op 0.89
computeProposers - vc 250000 17.173 ms/op 18.850 ms/op 0.91
computeEpochShuffling - vc 250000 169.48 ms/op 192.64 ms/op 0.88
getNextSyncCommittee - vc 250000 281.89 ms/op 323.51 ms/op 0.87

by benchmarkbot/action

@wemeetagain
Copy link
Member

@nazarhussain can we configure snyk to also update our yarn.lock? otherwise every bot PR will need manual intervention by us to update it.

@nazarhussain
Copy link
Contributor

Close to update after configurations.

@nazarhussain nazarhussain deleted the snyk-upgrade-166c16faa58c2a21075d68302dc417f6 branch November 24, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants