(&self)
| 142 | /// Get the left endian byte array representation of the ciphertext. |
| 143 | #[wasm_bindgen(js_name = toBytesLe)] |
| 144 | pub fn to_bytes_le(&self) -> Result<Uint8Array, String> { |
| 145 | let rust_bytes = self.0.to_bytes_le().map_err(|e| e.to_string())?; |
| 146 | Ok(Uint8Array::from(rust_bytes.as_slice())) |
| 147 | } |
| 148 | |
| 149 | /// Get a ciphertext object from a series of bits represented as a boolean array. |
| 150 | /// |