chore(ecies): replace reth-primitives with alloy-primitives (#8812)

This commit is contained in:
Matthias Seitz
2024-06-13 23:19:49 +02:00
committed by GitHub
parent a568535b85
commit a96884d670
8 changed files with 16 additions and 15 deletions

View File

@@ -7,16 +7,16 @@ use crate::{
ECIESError,
};
use aes::{cipher::StreamCipher, Aes128, Aes256};
use alloy_primitives::{
bytes::{BufMut, Bytes, BytesMut},
B128, B256, B512 as PeerId,
};
use alloy_rlp::{Encodable, Rlp, RlpEncodable, RlpMaxEncodedLen};
use byteorder::{BigEndian, ByteOrder, ReadBytesExt};
use ctr::Ctr64BE;
use digest::{crypto_common::KeyIvInit, Digest};
use rand::{thread_rng, Rng};
use reth_network_peers::{id2pk, pk2id};
use reth_primitives::{
bytes::{BufMut, Bytes, BytesMut},
B128, B256, B512 as PeerId,
};
use secp256k1::{
ecdsa::{RecoverableSignature, RecoveryId},
PublicKey, SecretKey, SECP256K1,
@@ -735,7 +735,7 @@ impl ECIES {
#[cfg(test)]
mod tests {
use super::*;
use reth_primitives::{b256, hex};
use alloy_primitives::{b256, hex};
#[test]
fn ecdh() {