Commit Graph

19 Commits

Author SHA1 Message Date
Dan Cline
c13d7da68d chore: move pk2id and id2pk to primitives (#7382) 2024-03-29 21:43:52 +00:00
Dan Cline
82ec589dee fix: panic conditions for concat kdf in ecies (#7171) 2024-03-16 07:33:26 +00:00
Dan Cline
eb6828350d fix: check that data is large enough to fit header and mac (#7118) 2024-03-12 16:09:15 +00:00
Dan Cline
f75bebd8d5 fix: use checked math for read_body (#7117) 2024-03-12 16:01:36 +00:00
Dan Cline
074747a419 fix: refactor ecies message parsing to check bounds (#7108) 2024-03-12 15:00:18 +00:00
Dan Cline
99711550d8 fix: use concat_kdf crate instead of hand rolled NIST SP 800-56A KDF (#7106) 2024-03-12 14:52:46 +00:00
Dan Cline
79452eadaf chore: make clippy happy (#6666) 2024-02-19 06:31:47 +00:00
DaniPopes
b1b059fe9b chore: clean up lints (#5881) 2023-12-28 16:23:50 +00:00
DaniPopes
5f9a917fb1 feat: Alloy migration (#4737)
Co-authored-by: Alessandro Mazza <121622391+alessandromazza98@users.noreply.github.com>
Co-authored-by: Supernovahs.eth <91280922+supernovahs@users.noreply.github.com>
Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
2023-09-28 15:55:39 +00:00
Roman Krasiuk
f979c6c1fb chore: reexport bytes & bump version to 1.4 (#1395) 2023-02-16 10:33:28 -08:00
Dan Cline
b6c9886b09 chore: document parts of ECIES and MAC (#1260) 2023-02-10 01:14:53 +01:00
joshieDo
6407b5087e chore: use B160, B256 and U256 coming from revm and ruint (#676)
* use B256, B160 and U256 from revm

* fix U256 from_str

* use U256::ZERO

* use temporary commit for revm and interpreter

* more U256::ZERO

* more changes for revm/ruint types

* clippy

* change revm and revm-interpreter repo

* remove H160 wrap

* minor cleanup

* remove unused

* fix MIN_PROTOCOL_BASE_FEE
2023-01-04 11:11:48 +02:00
Matthias Seitz
3a67809cb7 test: test ack encoding (#699) 2023-01-03 18:09:00 +02:00
Matthias Seitz
35a41a29f9 style: unify slice access and bytes (#437) 2022-12-14 16:26:08 +02:00
Georgios Konstantopoulos
d5d876b286 fix(headers-stage): do not exit stage on downloader error (#439)
* fix: return ctrl to pipeline on header dl error

* chore: adjust log levels

* ecies: improve tag check error granularity

* chore: instrument read_ack/read_auth

Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
2022-12-14 16:25:54 +02:00
Matthias Seitz
0b8d50127c refactor(net): box ecies error (#337) 2022-12-06 18:02:04 -08:00
Dan Cline
75879b2027 chore(ecies): remove body size check (#328)
* remove body size check

* cargo fmt
2022-12-06 18:02:04 -08:00
joshieDo
2a8189d7c9 chore(db): Add tests and fuzz target to BlockNumHash (#130)
* add tests and fuzz target for BlockNumHash

* use block 1 for test_block_num_hash

* new clippy stds

* fmt
2022-10-25 01:23:10 -07:00
Dan Cline
5dfe5ac29b feat(net): add Framed ECIES implementation (#80)
* feat(net): add ecies crate

* cargo fmt

* add hex-literal and proptest to dev-dependencies

 * adds std feature to reth-rlp

* document util

* document more

* chore: allow missing docs in ecies/algorith.rs

* feat(ecies): improve error handling

remove anyhow and strictly type all errors

* refactor(ecies): movem ingress/egress to lib.rs

* chore(ecies): allow missing docs in mac

* chore(ecies): cleanup utils

* refactor(ecies): move ECIES Codec to separate file

* refactor(ecies): rename proto to stream

* add test scaffold

* implement server/client read/write test

* chore: clippy / fmt

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-10-15 18:20:17 -07:00