(&self)
| 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 | /// |