diff --git a/crates/node/src/backend/snark/browser.rs b/crates/node/src/backend/snark/browser.rs index 2e0517958..dbaecafb6 100644 --- a/crates/node/src/backend/snark/browser.rs +++ b/crates/node/src/backend/snark/browser.rs @@ -20,15 +20,13 @@ pub struct SNARKProofTaskRef { inner: Arc, } +#[wasm_bindgen] impl SNARKProofTaskRef { /// Make snark proof task ref splitable pub fn split(&self, n: usize) -> Vec { self.inner.split(n).into_iter().map(|t| t.into()).collect() } -} -#[wasm_bindgen] -impl SNARKProofTaskRef { /// serialize SNARKProofTaskRef to json pub fn to_json(&self) -> Result { Ok(serde_json::to_string(self)?)