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

upgrade package crypto and support KZG cryptography #751

Merged
merged 39 commits into from
Dec 9, 2024
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d3fc08d
update golang.org/x/crypto to v0.29.0
gzliudan Nov 29, 2024
92fc843
crypto: switch over to upstream sha3 package (#18390)
gzliudan Nov 29, 2024
9d9bd65
crypto/ecies: remove unused function (#19096)
gzliudan Nov 29, 2024
d2ac7d0
crypto: fix build when CGO_ENABLED=0 (#19121)
gzliudan Nov 29, 2024
66dd846
crypto/bn256/cloudflare: fix comments to describe the updated curve p…
gzliudan Nov 29, 2024
b9054b2
crypto: replace fmt.Println calls with t.Log in tests (#19670)
gzliudan Nov 29, 2024
8dcea8d
crypto: replace t.Log(); t.FailNow() with t.Fatal() (#19849)
gzliudan Nov 29, 2024
ad5e7d6
crypto: add SignatureLength constant and use it everywhere (#19996)
gzliudan Nov 29, 2024
e1eb00e
crypto: make unit tests work with Go 1.13 (#20053)
gzliudan Nov 29, 2024
6033722
crypto: use golangci-lint (#20295)
gzliudan Nov 29, 2024
b2be754
crypto/bn256: fix import line (#20723)
gzliudan Nov 29, 2024
ee303c9
crypto/ecies: improve concatKDF (#20836)
gzliudan Nov 29, 2024
f948466
crypto: less allocations when hashing and tx handling (#21265)
gzliudan Nov 29, 2024
a2eb855
crypto/bn256: better comments for u, P and Order (#21836)
gzliudan Nov 29, 2024
a64e424
crypto/bn256: refine comments according to #19577, #21595, and #21836…
gzliudan Nov 29, 2024
ddc5e61
crypto/bn256: fix bn256Mul fuzzer to not hang on large input (#21872)
gzliudan Nov 29, 2024
b1c7190
crypto: improve trie updates (#21047)
gzliudan Nov 29, 2024
ae95cea
bn256: added consensys/gurvy bn256 implementation (#21812)
gzliudan Nov 29, 2024
7711f4b
tests/fuzzers: crypto/bn256 tests against gnark-crypto (#22755)
gzliudan Nov 29, 2024
5ee26e0
crypto/secp256k1: fix undefined behavior in BitCurve.Add (#22621)
gzliudan Nov 29, 2024
9dab065
crypto: gofuzz build directives (#23137)
gzliudan Nov 29, 2024
146bc2b
crypto: add go:build lines (#23468)
gzliudan Nov 29, 2024
949fa63
crypto/ecies: use AES-192 for curve P384 (#24139)
gzliudan Nov 29, 2024
cb3edac
crypto: use btcec/v2 for no-cgo (#24533)
gzliudan Nov 29, 2024
797efe7
crypto: more linters and fix typo (#24783)
gzliudan Nov 29, 2024
bedd571
crypto/kzg4844: pull in the C and Go libs for KZG cryptography (#27155)
gzliudan Nov 29, 2024
ed03a99
crypto/kzg4844: upgrade c-kzg-4844 to v0.2.0 (#27257)
gzliudan Nov 29, 2024
bd93c59
crypto: replace noarg fmt.Errorf with errors.New (#27333)
gzliudan Nov 29, 2024
17c0480
tests/fuzzers/bn256: add PairingCheck fuzzer (#27252)
gzliudan Nov 29, 2024
541ddee
go.mod: update kzg libraries to use big-endian (#27510)
gzliudan Nov 29, 2024
247ebd6
crypto/kzg4844: do lazy init in all ckzg funcs (#27679)
gzliudan Nov 29, 2024
8f57d6c
go.mod: upgrade c-kzg-4844 (#27907)
gzliudan Nov 29, 2024
f7b6ad6
crypto, tests: update fuzzers to native go fuzzing (#28352)
gzliudan Nov 29, 2024
b5cc7e6
crypto/blake2b: put architecture-dependent features behind build-tag …
gzliudan Nov 29, 2024
824dea6
crypto/kzg4844: use the new trusted setup file and format (#28383)
gzliudan Nov 29, 2024
cae53aa
crypto/kzg4844: add helpers for versioned blob hashes (#28827)
gzliudan Nov 29, 2024
fabfcc7
crypto: fix docstring names (#28923)
gzliudan Nov 29, 2024
7278557
crypto: add support for blobs in eth_fillTransaction (#28839)
gzliudan Nov 29, 2024
3fbbc9d
crypto: fix typos in comments (#29186)
gzliudan Nov 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
crypto: replace fmt.Println calls with t.Log in tests (ethereum#19670)
  • Loading branch information
gzliudan committed Dec 9, 2024
commit b9054b220c7a9b284e1da806f96e4b55befc1b2f
8 changes: 4 additions & 4 deletions crypto/ecies/ecies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,24 +101,24 @@ func TestSharedKey(t *testing.T) {

prv2, err := GenerateKey(rand.Reader, DefaultCurve, nil)
if err != nil {
fmt.Println(err.Error())
t.Log(err.Error())
t.FailNow()
}

sk1, err := prv1.GenerateShared(&prv2.PublicKey, skLen, skLen)
if err != nil {
fmt.Println(err.Error())
t.Log(err.Error())
t.FailNow()
}

sk2, err := prv2.GenerateShared(&prv1.PublicKey, skLen, skLen)
if err != nil {
fmt.Println(err.Error())
t.Log(err.Error())
t.FailNow()
}

if !bytes.Equal(sk1, sk2) {
fmt.Println(ErrBadSharedKeys.Error())
t.Log(ErrBadSharedKeys.Error())
t.FailNow()
}
}
Expand Down