Daniel Liu
66da805ccd
Merge pull request #759 from gzliudan/fix_double_metrics
...
cmd/XDC: fix double metrics collect process issue
2024-12-13 13:56:26 +08:00
Daniel Liu
11b74151bd
cmd/XDC: fix double metrics collect process issue
2024-12-13 13:56:09 +08:00
Wanwiset Peerapatanapokin
b794f6a849
recover devnet by increasing timeout ( #760 )
2024-12-12 20:28:46 -08:00
Daniel Liu
d4444878bc
Merge pull request #751 from gzliudan/upgrade-crypto
...
upgrade package crypto and support KZG cryptography
2024-12-09 18:42:26 +08:00
Daniel Liu
3fbbc9da9f
crypto: fix typos in comments ( #29186 )
2024-12-09 17:49:00 +08:00
Daniel Liu
727855752c
crypto: add support for blobs in eth_fillTransaction ( #28839 )
2024-12-09 17:49:00 +08:00
Daniel Liu
fabfcc7f6c
crypto: fix docstring names ( #28923 )
2024-12-09 17:49:00 +08:00
Daniel Liu
cae53aa7fd
crypto/kzg4844: add helpers for versioned blob hashes ( #28827 )
2024-12-09 17:49:00 +08:00
Daniel Liu
824dea669c
crypto/kzg4844: use the new trusted setup file and format ( #28383 )
2024-12-09 17:49:00 +08:00
Daniel Liu
b5cc7e6fc0
crypto/blake2b: put architecture-dependent features behind build-tag ( #28381 )
...
This change to fixes a compilation-flaw on master, by putting architecture-specific functions behind corresponding build tags.
2024-12-09 17:49:00 +08:00
Daniel Liu
f7b6ad67a7
crypto, tests: update fuzzers to native go fuzzing ( #28352 )
2024-12-09 17:49:00 +08:00
Daniel Liu
8f57d6caea
go.mod: upgrade c-kzg-4844 ( #27907 )
2024-12-09 17:49:00 +08:00
Daniel Liu
247ebd6a6d
crypto/kzg4844: do lazy init in all ckzg funcs ( #27679 )
...
* crypto/kzg4844: remove unnecessary init call & fix typo
* Fix kzg4844 tests/benchmarks
* Make init lazy & revert changes to tests
2024-12-09 17:49:00 +08:00
Daniel Liu
541ddee235
go.mod: update kzg libraries to use big-endian ( #27510 )
2024-12-09 17:49:00 +08:00
Daniel Liu
17c048092e
tests/fuzzers/bn256: add PairingCheck fuzzer ( #27252 )
...
* tests/fuzzers/bn256: scale gnark result by constant
* tests/fuzzers/bn256: scale gnark result by constant
2024-12-09 17:49:00 +08:00
Daniel Liu
bd93c59bae
crypto: replace noarg fmt.Errorf with errors.New ( #27333 )
2024-12-09 17:49:00 +08:00
Daniel Liu
ed03a99770
crypto/kzg4844: upgrade c-kzg-4844 to v0.2.0 ( #27257 )
2024-12-09 17:49:00 +08:00
Daniel Liu
bedd571091
crypto/kzg4844: pull in the C and Go libs for KZG cryptography ( #27155 )
2024-12-09 17:49:00 +08:00
Daniel Liu
797efe74af
crypto: more linters and fix typo ( #24783 )
2024-12-09 17:49:00 +08:00
Daniel Liu
cb3edac2c7
crypto: use btcec/v2 for no-cgo ( #24533 )
2024-12-09 17:49:00 +08:00
Daniel Liu
949fa6358e
crypto/ecies: use AES-192 for curve P384 ( #24139 )
...
Using curve P384 for encryption causes the error "ecies: shared key params
are too big". Also, readme.md says curve P384 should use AES192 not AES256.
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2024-12-09 17:49:00 +08:00
Daniel Liu
146bc2be7b
crypto: add go:build lines ( #23468 )
2024-12-09 17:49:00 +08:00
Daniel Liu
9dab065373
crypto: gofuzz build directives ( #23137 )
2024-12-09 17:49:00 +08:00
Daniel Liu
5ee26e04ed
crypto/secp256k1: fix undefined behavior in BitCurve.Add ( #22621 )
2024-12-09 17:49:00 +08:00
Daniel Liu
7711f4b76d
tests/fuzzers: crypto/bn256 tests against gnark-crypto ( #22755 )
2024-12-09 17:49:00 +08:00
Daniel Liu
ae95ceac41
bn256: added consensys/gurvy bn256 implementation ( #21812 )
2024-12-09 17:49:00 +08:00
Daniel Liu
b1c719029c
crypto: improve trie updates ( #21047 )
2024-12-09 17:49:00 +08:00
Daniel Liu
ddc5e618a7
crypto/bn256: fix bn256Mul fuzzer to not hang on large input ( #21872 )
...
* crypto/bn256: fix bn256Mul fuzzer to not hang on large input
* Update crypto/bn256/bn256_fuzz.go
Co-authored-by: ligi <ligi@ligi.de>
Co-authored-by: ligi <ligi@ligi.de>
2024-12-09 17:49:00 +08:00
Daniel Liu
a64e42463a
crypto/bn256: refine comments according to #19577 , #21595 , and #21836 ( #21847 )
2024-12-09 17:49:00 +08:00
Daniel Liu
a2eb8553e8
crypto/bn256: better comments for u, P and Order ( #21836 )
2024-12-09 17:49:00 +08:00
Daniel Liu
f948466976
crypto: less allocations when hashing and tx handling ( #21265 )
2024-12-09 17:49:00 +08:00
Daniel Liu
ee303c9f3d
crypto/ecies: improve concatKDF ( #20836 )
2024-12-09 17:48:59 +08:00
Daniel Liu
b2be754647
crypto/bn256: fix import line ( #20723 )
2024-12-09 17:48:59 +08:00
Daniel Liu
6033722b72
crypto: use golangci-lint ( #20295 )
2024-12-09 17:48:59 +08:00
Daniel Liu
e1eb00ef99
crypto: make unit tests work with Go 1.13 ( #20053 )
2024-12-09 17:48:59 +08:00
Daniel Liu
ad5e7d6db3
crypto: add SignatureLength constant and use it everywhere ( #19996 )
2024-12-09 17:48:59 +08:00
Daniel Liu
8dcea8ddf8
crypto: replace t.Log(); t.FailNow() with t.Fatal() ( #19849 )
2024-12-09 17:48:59 +08:00
Daniel Liu
b9054b220c
crypto: replace fmt.Println calls with t.Log in tests ( #19670 )
2024-12-09 17:48:59 +08:00
Daniel Liu
66dd846d46
crypto/bn256/cloudflare: fix comments to describe the updated curve parameters ( #19577 )
...
* Removed comment section referring to Cloudflare's bn curve parameters
* Added comment to clarify the nature of the parameters
* Changed value of xi to i+9
2024-12-09 17:48:59 +08:00
Daniel Liu
d2ac7d0987
crypto: fix build when CGO_ENABLED=0 ( #19121 )
...
Package crypto works with or without cgo, which is great. However, to make it
work without cgo required setting the build tag `nocgo`. It's common to disable
cgo by instead just setting the environment variable `CGO_ENABLED=0`. Setting
this environment variable does _not_ implicitly set the build tag `nocgo`. So
projects that try to build the crypto package with `CGO_ENABLED=0` will fail. I
have done this myself several times. Until today, I had just assumed that this
meant that this package requires cgo.
But a small build tag change will make this case work. Instead of using `nocgo`
and `!nocgo`, we can use `!cgo` and `cgo`, respectively. The `cgo` build tag is
automatically set if cgo is enabled, and unset if it is disabled.
2024-12-09 17:48:59 +08:00
Daniel Liu
9d9bd65a01
crypto/ecies: remove unused function ( #19096 )
2024-12-09 17:48:59 +08:00
Daniel Liu
92fc843683
crypto: switch over to upstream sha3 package ( #18390 )
2024-12-09 17:48:59 +08:00
Daniel Liu
d3fc08db1d
update golang.org/x/crypto to v0.29.0
2024-12-09 17:48:59 +08:00
Daniel Liu
0dbe81936b
Merge pull request #676 from gzliudan/evm-reuse
...
core/vm: improve EVM reusability
2024-12-09 17:48:06 +08:00
Daniel Liu
733c298b0e
core/vm: improve EVM reusability ( #26341 )
2024-12-09 17:47:05 +08:00
Daniel Liu
db1fd59268
Merge pull request #677 from gzliudan/eip-3651
...
implement EIP-3651(warm coinbase)
2024-12-09 17:45:52 +08:00
Daniel Liu
0d0ea46bfa
core: implement EIP-3651, warm coinbase ( #25819 )
2024-12-09 17:44:30 +08:00
Daniel Liu
b0ec10473d
Merge pull request #754 from gzliudan/use_replace_all
...
all: replace strings.Replace with string.ReplaceAll
2024-12-08 11:52:00 +08:00
Daniel Liu
02a59e8d84
all: replace strings.Replace with string.ReplaceAll ( #24835 )
2024-12-08 11:51:14 +08:00
Daniel Liu
fee2577701
Merge pull request #755 from gzliudan/http_method
...
all: use http package to replace http method names
2024-12-08 11:49:28 +08:00