From 1eb211dbd4b523ecb9f7265b8b38b722046d715a Mon Sep 17 00:00:00 2001 From: Dave Hrycyszyn Date: Thu, 16 Apr 2020 13:43:04 +0100 Subject: [PATCH] nym-sphinx-wasm: including provider encoding in the packet --- nym-sphinx-wasm/www/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nym-sphinx-wasm/www/index.js b/nym-sphinx-wasm/www/index.js index 4c7620d72f..0e5e6cfaa0 100644 --- a/nym-sphinx-wasm/www/index.js +++ b/nym-sphinx-wasm/www/index.js @@ -48,10 +48,12 @@ async function main() { let n = new NodeData(node.host, node.pubKey); nodes.push(n); }); + let p = new NodeData(provider.mixnetListener, provider.pubKey) + nodes.push(p); let route = new Route(nodes); // Create the packet - let packet = wasm.create_sphinx_packet(JSON.stringify(route), "THIS IS THE MESSAGE", "2ub7f2s5en4Pn2nhY69uyWqGSMLZwhtPASjePq4gLxQs"); + let packet = wasm.create_sphinx_packet(JSON.stringify(route), "THIS IS THE MESSAGE", "C2fdNoUybRuGrVYUM6QRejiELPQCohGbxjhKpU4UZ4ci"); // Set up a websocket connection to the gateway node var port = "1793" // gateway websocket listens on 1793 by default, change if yours is different