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

Method from_string

wasm/src/programs/data/ciphertext.rs:193–195  ·  view source on GitHub ↗
(ciphertext: String)

Source from the content-addressed store, hash-verified

191 /// @returns {Ciphertext} The Ciphertext object.
192 #[wasm_bindgen(js_name = fromString)]
193 pub fn from_string(ciphertext: String) -> Result<Ciphertext, String> {
194 CiphertextNative::from_str(&ciphertext).map_err(|e| e.to_string()).map(Ciphertext)
195 }
196
197 /// Serialize a Ciphertext object into a byte array.
198 ///

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected