go-ethereum/p2p/rlpx
Marius van der Wijden 29a7673986 crypto: remove references to deprecated elliptic package
This PR removes all references to the elliptic functions that were deprecated in golang 1.22.
Instead this PR does the following:

We change S256() to return the raw bitcurve instead of the elliptic.Curve, this has two effects:
- Every instance of S256() can call the unmarshall and marshall operations
- The package is not neatly abstracted away anymore, which we can debate if we want to change that

We also modify the behavior in the ecies (and rlpx) package a bit.
Previously all curves were acceptable, now only curves that implement the marshaller and unmarshaller
interface are allowed. All common curves have this, so its not an issue in our code.
Dependencies maybe need to implement the (un-)marshaller interfaces though.
2024-03-15 11:42:50 +01:00
..
buffer.go p2p/rlpx: reduce allocation and syscalls (#22899) 2021-05-27 10:19:13 +02:00
buffer_test.go p2p/rlpx: reduce allocation and syscalls (#22899) 2021-05-27 10:19:13 +02:00
rlpx.go crypto: remove references to deprecated elliptic package 2024-03-15 11:42:50 +01:00
rlpx_test.go all: fix typos in comments (#28682) 2023-12-18 09:35:12 +01:00