(bytes: Uint8Array)
| 136 | /// @returns {Ciphertext} The Ciphertext object. |
| 137 | #[wasm_bindgen(js_name = fromBytesLe)] |
| 138 | pub fn from_bytes_le(bytes: Uint8Array) -> Result<Ciphertext, String> { |
| 139 | Ok(Ciphertext(CiphertextNative::from_bytes_le(&bytes.to_vec()).map_err(|e| e.to_string())?)) |
| 140 | } |
| 141 | |
| 142 | /// Get the left endian byte array representation of the ciphertext. |
| 143 | #[wasm_bindgen(js_name = toBytesLe)] |
nothing calls this directly
no test coverage detected