Remove artifacts for serai-processor-ethereum-contracts

This commit is contained in:
Luke Parker
2024-09-15 12:04:57 -04:00
parent 3f0f4d520d
commit 39be23d807
15 changed files with 5501 additions and 69 deletions

View File

@@ -13,6 +13,8 @@ use frost::{
curve::{Ciphersuite, Secp256k1},
};
pub use ethereum_schnorr_contract::*;
use alloy_core::primitives::{Parity, Signature as AlloySignature};
use alloy_consensus::{SignableTransaction, Signed, TxLegacy};
@@ -77,11 +79,3 @@ impl Hram<Secp256k1> for EthereumHram {
<Scalar as Reduce<KU256>>::reduce_bytes(&keccak256(&data).into())
}
}
impl From<&Signature> for AbiSignature {
fn from(sig: &Signature) -> AbiSignature {
let c: [u8; 32] = sig.c.to_repr().into();
let s: [u8; 32] = sig.s.to_repr().into();
AbiSignature { c: c.into(), s: s.into() }
}
}