(ciphertext: String)
| 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 | /// |