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

Method from_bytes_le

wasm/src/programs/data/ciphertext.rs:138–140  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

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)]

Callers

nothing calls this directly

Calls 2

CiphertextClass · 0.85
to_stringMethod · 0.45

Tested by

no test coverage detected