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

Method from_fields

wasm/src/programs/data/ciphertext.rs:173–177  ·  view source on GitHub ↗
(fields: Array)

Source from the content-addressed store, hash-verified

171 /// @returns {Ciphertext} The ciphertext object.
172 #[wasm_bindgen(js_name = "fromFields")]
173 pub fn from_fields(fields: Array) -> Result<Ciphertext, String> {
174 let native_fields = from_wasm_field_array!(fields, Field)?;
175 let native = CiphertextNative::from_fields(&native_fields).map_err(|e| e.to_string())?;
176 Ok(Self(native))
177 }
178
179 /// Get the field array representation of the ciphertext.
180 #[wasm_bindgen(js_name = "toFields")]

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected