From 3f9d54c2e8d1e52a417072e956a95d417bcd84b7 Mon Sep 17 00:00:00 2001 From: "Ryan.K" Date: Mon, 19 Feb 2024 22:51:13 +0800 Subject: [PATCH] export split --- crates/node/src/backend/snark/browser.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)?)