nym-sphinx-wasm: noted that message chunking is not yet implemented

This commit is contained in:
Dave Hrycyszyn
2020-04-16 17:12:59 +01:00
parent 044b12cdf1
commit d7e4374054
+3
View File
@@ -50,6 +50,9 @@ pub struct NodeData {
///
/// The `wasm-pack build` command will cause this to output JS bindings and a
/// wasm executable in the `pkg/` directory.
///
/// Message chunking is currently not implemented. If the message exceeds the
/// capacity of a single Sphinx packet, the extra information will be discarded.
#[wasm_bindgen]
pub fn create_sphinx_packet(rout: String, msg: &str, destination: &str) -> Vec<u8> {
utils::set_panic_hook(); // nicer js errors.