mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-03 03:25:01 -05:00
chore: clippy happy (#8362)
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
This commit is contained in:
@@ -45,8 +45,8 @@ fn ecdh_x(public_key: &PublicKey, secret_key: &SecretKey) -> B256 {
|
||||
/// # Panics
|
||||
/// * If the `dest` is empty
|
||||
/// * If the `dest` len is greater than or equal to the hash output len * the max counter value. In
|
||||
/// this case, the hash output len is 32 bytes, and the max counter value is 2^32 - 1. So the dest
|
||||
/// cannot have a len greater than 32 * 2^32 - 1.
|
||||
/// this case, the hash output len is 32 bytes, and the max counter value is 2^32 - 1. So the dest
|
||||
/// cannot have a len greater than 32 * 2^32 - 1.
|
||||
fn kdf(secret: B256, s1: &[u8], dest: &mut [u8]) {
|
||||
concat_kdf::derive_key_into::<Sha256>(secret.as_slice(), s1, dest).unwrap();
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ impl From<EthBroadcastMessage> for ProtocolBroadcastMessage {
|
||||
/// The ethereum wire protocol is a set of messages that are broadcast to the network in two
|
||||
/// styles:
|
||||
/// * A request message sent by a peer (such as [`GetPooledTransactions`]), and an associated
|
||||
/// response message (such as [`PooledTransactions`]).
|
||||
/// response message (such as [`PooledTransactions`]).
|
||||
/// * A message that is broadcast to the network, without a corresponding request.
|
||||
///
|
||||
/// The newer `eth/66` is an efficiency upgrade on top of `eth/65`, introducing a request id to
|
||||
|
||||
Reference in New Issue
Block a user