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

Method from_fields

wasm/src/programs/data/plaintext.rs:206–210  ·  view source on GitHub ↗
(fields: Array)

Source from the content-addressed store, hash-verified

204 /// @returns {Plaintext} The plaintext object.
205 #[wasm_bindgen(js_name = "fromFields")]
206 pub fn from_fields(fields: Array) -> Result<Plaintext, String> {
207 let native_fields = from_wasm_field_array!(fields, Field)?;
208 let native = PlaintextNative::from_fields(&native_fields).map_err(|e| e.to_string())?;
209 Ok(Self(native))
210 }
211
212 /// Get the field array representation of the plaintext.
213 ///

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected