fix: Make TychoEncode Send + Sync

Took 10 minutes
This commit is contained in:
Diana Carvalho
2025-10-16 16:39:13 +01:00
parent 82891881fe
commit ef0f9ab959

View File

@@ -25,7 +25,7 @@ use crate::encoding::{
/// Tycho is only responsible for generating the internal swap plan. **The user must encode the /// Tycho is only responsible for generating the internal swap plan. **The user must encode the
/// outer function call arguments themselves** and verify that they enforce correct and secure /// outer function call arguments themselves** and verify that they enforce correct and secure
/// behavior. /// behavior.
pub trait TychoEncoder { pub trait TychoEncoder: Send + Sync {
/// Encodes a list of [`Solution`]s into [`EncodedSolution`]s, which include the function /// Encodes a list of [`Solution`]s into [`EncodedSolution`]s, which include the function
/// signature and internal swap call data. /// signature and internal swap call data.
/// ///