From d7e4374054e15f3ca3a7bcc5a033c99b196529a4 Mon Sep 17 00:00:00 2001 From: Dave Hrycyszyn Date: Thu, 16 Apr 2020 17:12:59 +0100 Subject: [PATCH] nym-sphinx-wasm: noted that message chunking is not yet implemented --- nym-sphinx-wasm/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nym-sphinx-wasm/src/lib.rs b/nym-sphinx-wasm/src/lib.rs index 8454630995..0546a5558c 100644 --- a/nym-sphinx-wasm/src/lib.rs +++ b/nym-sphinx-wasm/src/lib.rs @@ -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 { utils::set_panic_hook(); // nicer js errors.