@@ -228,7 +228,7 @@ impl Signature {
228228 /// Recovers an [`Address`] from this signature and the given prehashed message.
229229 /// e.g.: signature.recover_from(&tx.signature_hash())
230230 pub fn recover_from ( & self , signature_hash : & H256 ) -> Result < H160 , EvmError > {
231- let primitive_signature = alloy:: primitives:: PrimitiveSignature :: from ( self ) ;
231+ let primitive_signature = alloy:: primitives:: Signature :: from ( self ) ;
232232 let recovered_from = primitive_signature
233233 . recover_address_from_prehash ( & signature_hash. 0 )
234234 . map_err ( |err| EvmError :: SignatureError ( format ! ( "{err:?}" ) ) ) ?;
@@ -249,20 +249,20 @@ impl Signature {
249249 }
250250}
251251
252- impl From < Signature > for alloy:: primitives:: PrimitiveSignature {
252+ impl From < Signature > for alloy:: primitives:: Signature {
253253 fn from ( value : Signature ) -> Self {
254- alloy:: primitives:: PrimitiveSignature :: new ( value. r . 0 , value. s . 0 , value. y_parity . as_bool ( ) )
254+ alloy:: primitives:: Signature :: new ( value. r . 0 , value. s . 0 , value. y_parity . as_bool ( ) )
255255 }
256256}
257257
258- impl From < & Signature > for alloy:: primitives:: PrimitiveSignature {
258+ impl From < & Signature > for alloy:: primitives:: Signature {
259259 fn from ( value : & Signature ) -> Self {
260- alloy:: primitives:: PrimitiveSignature :: new ( value. r . 0 , value. s . 0 , value. y_parity . as_bool ( ) )
260+ alloy:: primitives:: Signature :: new ( value. r . 0 , value. s . 0 , value. y_parity . as_bool ( ) )
261261 }
262262}
263263
264- impl From < alloy:: primitives:: PrimitiveSignature > for Signature {
265- fn from ( value : alloy:: primitives:: PrimitiveSignature ) -> Self {
264+ impl From < alloy:: primitives:: Signature > for Signature {
265+ fn from ( value : alloy:: primitives:: Signature ) -> Self {
266266 Self {
267267 r : U256 ( value. r ( ) ) ,
268268 s : U256 ( value. s ( ) ) ,
@@ -514,7 +514,7 @@ impl TryFrom<Transaction> for alloy::rpc::types::Transaction {
514514 fn try_from ( tx : Transaction ) -> Result < Self , EvmError > {
515515 let signature = Signature :: new_from_rsv ( tx. r , tx. s , tx. v . as_u64 ( ) ) ?;
516516
517- let signature = alloy:: primitives:: PrimitiveSignature :: from ( signature) ;
517+ let signature = alloy:: primitives:: Signature :: from ( signature) ;
518518
519519 let tx_type = tx. transaction_type . unwrap_or_default ( ) . 0 . to :: < u64 > ( ) ;
520520 match tx_type {
@@ -1604,7 +1604,7 @@ mod test {
16041604
16051605 #[ test]
16061606 fn primitive_signature_roundtrip ( ) {
1607- let signature = alloy:: primitives:: PrimitiveSignature :: new (
1607+ let signature = alloy:: primitives:: Signature :: new (
16081608 alloy:: primitives:: U256 :: from ( random :: < u64 > ( ) ) ,
16091609 alloy:: primitives:: U256 :: from ( random :: < u64 > ( ) ) ,
16101610 random ( ) ,
@@ -1613,7 +1613,7 @@ mod test {
16131613 let roundtrip_signature = Signature :: from ( signature) ;
16141614 assert_eq ! (
16151615 signature,
1616- alloy:: primitives:: PrimitiveSignature :: from( roundtrip_signature)
1616+ alloy:: primitives:: Signature :: from( roundtrip_signature)
16171617 ) ;
16181618 }
16191619
0 commit comments