Remove ethereum-serai/serai-processor-ethereum-contracts

contracts was smashed out of ethereum-serai. Both have now been smashed into
individual crates.

Creates a TODO directory with left-over test code yet to be moved.
This commit is contained in:
Luke Parker
2024-09-18 00:57:10 -04:00
parent 433beac93a
commit bdc3bda04a
26 changed files with 35 additions and 6193 deletions

View File

@@ -40,8 +40,12 @@ impl Action {
fn message(&self) -> Vec<u8> {
match self {
Action::SetKey { chain_id, nonce, key } => Router::update_serai_key_message(*chain_id, *nonce, key),
Action::Batch { chain_id, nonce, outs } => Router::execute_message(*chain_id, *nonce, OutInstructions::from(outs.as_ref())),
Action::SetKey { chain_id, nonce, key } => {
Router::update_serai_key_message(*chain_id, *nonce, key)
}
Action::Batch { chain_id, nonce, outs } => {
Router::execute_message(*chain_id, *nonce, OutInstructions::from(outs.as_ref()))
}
}
}
@@ -129,9 +133,17 @@ impl PreprocessMachine for ClonableTransctionMachine {
self,
rng: &mut R,
) -> (Self::SignMachine, Self::Preprocess) {
let (machine, preprocess) = AlgorithmMachine::new(IetfSchnorr::<Secp256k1, EthereumHram>::ietf(), self.0.clone())
.preprocess(rng);
(ActionSignMachine(PublicKey::new(self.0.group_key()).expect("signing with non-representable key"), self.1, machine), preprocess)
let (machine, preprocess) =
AlgorithmMachine::new(IetfSchnorr::<Secp256k1, EthereumHram>::ietf(), self.0.clone())
.preprocess(rng);
(
ActionSignMachine(
PublicKey::new(self.0.group_key()).expect("signing with non-representable key"),
self.1,
machine,
),
preprocess,
)
}
}
@@ -157,7 +169,7 @@ impl SignMachine<Transaction> for ActionSignMachine {
params: Self::Params,
keys: Self::Keys,
cache: CachedPreprocess,
) -> (Self, Self::Preprocess) {
) -> (Self, Self::Preprocess) {
unimplemented!()
}