Skip to content

Commit 93b31a4

Browse files
committed
revert changes to rbuilder
1 parent c0fc337 commit 93b31a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/rbuilder/src/utils/tx_signer.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use alloy_consensus::SignableTransaction;
2-
use alloy_primitives::{Address, PrimitiveSignature, B256, U256};
2+
use alloy_primitives::{Address, PrimitiveSignature as Signature, B256, U256};
33
use reth_primitives::{public_key_to_address, Recovered, Transaction, TransactionSigned};
44
use secp256k1::{Message, SecretKey, SECP256K1};
55

@@ -20,12 +20,12 @@ impl Signer {
2020
Ok(Self { address, secret })
2121
}
2222

23-
pub fn sign_message(&self, message: B256) -> Result<PrimitiveSignature, secp256k1::Error> {
23+
pub fn sign_message(&self, message: B256) -> Result<Signature, secp256k1::Error> {
2424
let s = SECP256K1
2525
.sign_ecdsa_recoverable(&Message::from_digest_slice(&message[..])?, &self.secret);
2626
let (rec_id, data) = s.serialize_compact();
2727

28-
let signature = PrimitiveSignature::new(
28+
let signature = Signature::new(
2929
U256::try_from_be_slice(&data[..32]).expect("The slice has at most 32 bytes"),
3030
U256::try_from_be_slice(&data[32..64]).expect("The slice has at most 32 bytes"),
3131
i32::from(rec_id) != 0,

0 commit comments

Comments
 (0)