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
Daniel Liu
d55dca04b5
all: use http package to replace http method names (26535)
2024-12-05 10:59:42 +08:00
Wanwiset Peerapatanapokin
05a0f20009
Merge pull request #752 from XinFinOrg/devnet-statsserver-typo
...
fix typo and local script
2024-12-03 11:44:44 +04:00
wanwiset25
448fe9a746
fix typo and local script
2024-12-03 02:29:40 +04:00
Wanwiset Peerapatanapokin
9cf63d50e4
Merge pull request #749 from XinFinOrg/devnet-bootnode
...
Devnet bootnode
2024-12-02 12:27:44 +04:00
wanwiset25
e257b521ce
change devnetstats url
2024-12-02 09:06:48 +08:00
wanwiset25
f646ddd2db
add store-reward flag by default
2024-11-29 21:06:05 +08:00
wanwiset25
c369253b5c
update bootnode check script
2024-11-29 15:58:44 +04:00
wanwiset25
7d41e834e4
new devnet bootnodes
2024-11-29 15:58:44 +04:00
benjamin202410
a8560300a4
fix vote test and optimize log ( #750 )
...
Co-authored-by: liam.lai <liam.lai@us>
2024-11-29 03:14:25 -08:00
Daniel Liu
4278930885
Merge pull request #741 from gzliudan/cli-v2
...
cmd: migrate to urfave/cli/v2
2024-11-25 17:25:53 +08:00
Daniel Liu
ae56946690
internal/flags: remove low-use type TextMarshalerFlag ( #30707 )
2024-11-25 16:39:29 +08:00
Daniel Liu
a6192a5980
internal/flags: fix --miner.gasprice default listing ( #28932 )
2024-11-25 16:39:29 +08:00
Daniel Liu
ac611170d1
internal/flags: add missing flag types for auto-env-var generation ( #28692 )
...
Certain flags, such as `--rpc.txfeecap` currently do not have an env-var auto-generated for them. This change adds three missing cli flag types to the auto env-var helper function to fix this.
2024-11-25 16:39:29 +08:00
Daniel Liu
4e192a5172
cmd/XDC, internal/flags: print envvar config source and bad names ( #28119 )
2024-11-25 16:39:29 +08:00
Daniel Liu
87ddf502ce
internal/flags: fix loading env vars for custom flags ( #28117 )
2024-11-25 16:39:29 +08:00
Daniel Liu
197551c729
cmd/geth, internal/flags, go.mod: colorize cli help, support env vars ( #28103 )
2024-11-25 16:39:29 +08:00
Daniel Liu
bda88affe6
cmd/XDC: add version in --help output ( #26895 )
2024-11-25 16:39:29 +08:00
Daniel Liu
fa69900737
Use filepath.clean instead of path.clean ( #26404 )
...
* internal/flags: use filepath.Clean instead of path.Clean
* internal/flags: fix windows pipe issue
* internal/flags: modify test for windows
* internal/flags: use backticks, fix test
2024-11-25 16:39:29 +08:00