Skip to content

Commit

Permalink
chore: fix stressnet with new BLS keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok committed Dec 13, 2024
1 parent d312475 commit 742a1a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions p2p/integrationtest/provider/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"
"log/slog"
"math/big"
"math/rand"
"time"

"github.com/cloudflare/circl/sign/bls"
Expand Down Expand Up @@ -133,6 +134,7 @@ func (b *ProviderClient) CheckAndStake() (string, error) {

hashedMessage := crypto.Keccak256(common.HexToAddress(ethAddress).Bytes())
ikm := make([]byte, 32)
_, _ = rand.Read(ikm)

Check failure on line 137 in p2p/integrationtest/provider/client.go

View workflow job for this annotation

GitHub Actions / Test and Build Go Modules

SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used: For almost all use cases, [crypto/rand.Read] is more appropriate. If a deterministic source is required, use [math/rand/v2.ChaCha8.Read]. (staticcheck)
privateKey, err := bls.KeyGen[bls.G1](ikm, nil, nil)
if err != nil {
b.logger.Error("failed to generate private key", "error", err)
Expand Down

0 comments on commit 742a1a0

Please sign in to comment.