MCPcopy Create free account
hub / github.com/ProvableHQ/sdk / to_fields

Method to_fields

wasm/src/programs/data/ciphertext.rs:181–185  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

179 /// Get the field array representation of the ciphertext.
180 #[wasm_bindgen(js_name = "toFields")]
181 pub fn to_fields(&self) -> Result<Array, String> {
182 let native = self.0.clone();
183 let native_fields = native.to_fields().map_err(|e| e.to_string())?;
184 Ok(js_array_from_fields!(&native_fields))
185 }
186
187 /// Deserialize a Ciphertext string into a Ciphertext object.
188 ///

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected