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

Method to_bytes_le

wasm/src/programs/data/ciphertext.rs:144–147  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

to_bytesMethod · 0.45

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected