mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: use secp fns directly (#13675)
This commit is contained in:
@ -13,6 +13,7 @@ workspace = true
|
||||
|
||||
[dependencies]
|
||||
reth-primitives = { workspace = true, features = ["secp256k1", "arbitrary"] }
|
||||
reth-primitives-traits = { workspace = true, features = ["secp256k1", "arbitrary"] }
|
||||
|
||||
alloy-genesis.workspace = true
|
||||
alloy-primitives.workspace = true
|
||||
|
||||
@ -12,9 +12,11 @@ use rand::{
|
||||
distributions::uniform::SampleRange, rngs::StdRng, seq::SliceRandom, thread_rng, SeedableRng,
|
||||
};
|
||||
use reth_primitives::{
|
||||
proofs, sign_message, Account, BlockBody, Log, Receipt, SealedBlock, SealedHeader,
|
||||
StorageEntry, Transaction, TransactionSigned,
|
||||
proofs, Account, BlockBody, Log, Receipt, SealedBlock, SealedHeader, StorageEntry, Transaction,
|
||||
TransactionSigned,
|
||||
};
|
||||
|
||||
use reth_primitives_traits::crypto::secp256k1::sign_message;
|
||||
use secp256k1::{Keypair, Secp256k1};
|
||||
use std::{
|
||||
cmp::{max, min},
|
||||
@ -469,8 +471,10 @@ mod tests {
|
||||
use alloy_consensus::TxEip1559;
|
||||
use alloy_eips::eip2930::AccessList;
|
||||
use alloy_primitives::{hex, PrimitiveSignature as Signature};
|
||||
use reth_primitives::public_key_to_address;
|
||||
use reth_primitives_traits::SignedTransaction;
|
||||
use reth_primitives_traits::{
|
||||
crypto::secp256k1::{public_key_to_address, sign_message},
|
||||
SignedTransaction,
|
||||
};
|
||||
use std::str::FromStr;
|
||||
|
||||
#[test]
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
use alloy_genesis::GenesisAccount;
|
||||
use alloy_primitives::{Address, Bytes, B256, U256};
|
||||
use reth_primitives::public_key_to_address;
|
||||
use reth_primitives_traits::crypto::secp256k1::public_key_to_address;
|
||||
use secp256k1::{
|
||||
rand::{thread_rng, RngCore},
|
||||
Keypair, Secp256k1,
|
||||
|
||||
Reference in New Issue
Block a user