[noise] JavaScript (WebAssembly) port of noise-c implementation

Nazar Mokrynskyi nazar at mokrynskyi.com
Wed Oct 4 04:30:22 PDT 2017


Hi folks,

Have some good news about WebAssembly port of noise-c!

I've worked on test vectors today and now noise-c.wasm passes all of the vectors included in noise-c repository, so in terms of spec compliance (v30 according to noise-c's website at the moment) it should be on par with noise-c.

While working on test vectors only single minor issue was found, so I've published version 0.1.0 on NPM: https://www.npmjs.com/package/noise-c.wasm

Performance comparison would be interesting indeed, I can do the work on my side in JavaScript if someone can write benchmark in C or any other language.

Sincerely, Nazar Mokrynskyi
github.com/nazar-pc

On 9/8/17 9:02 AM, Trevor Perrin wrote:
>
> On Wed, Sep 6, 2017 at 1:10 AM, Nazar Mokrynskyi <nazar at mokrynskyi.com <mailto:nazar at mokrynskyi.com>> wrote:
>
>     Hello everyone,
>
>     Recently I was looking for crypto protocol for upcoming project and found Noise, which seemed to fit in my use case, but didn't have existing JavaScript implementation.
>
>     So I took noise-c, compiled it with Emscripten to WebAssembly and wrote an OOP wrapper around it almost identically to specification.
>
>     Since I'm not a crypto expert and not familiar with Noise in real-world applications, it would be nice to get some feedback and review from wider community.
>
>     The project itself: https://github.com/nazar-pc/noise-c.wasm <https://github.com/nazar-pc/noise-c.wasm>
>
>
>
> Hi Nazar,
>
> Sweet!  I added it to the wiki:
>
> https://github.com/noiseprotocol/noise_wiki/wiki
>
> In the past we've kept new libraries there for awhile, then eventually linked them from main website once we build up a bit of confidence in them.
>
>
> I have no experience with WebAssembly, but it seems like a great idea (and a better approach to Javascript crypto than WebCrypto, IMO).  
>
> It would be interesting to see performance comparison between Noise-C compiled natively versus WebAssembly, if you or anyone wanted to run benchmarks.
>
> Trevor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://moderncrypto.org/mail-archive/noise/attachments/20171004/902a4223/attachment.html>


More information about the Noise mailing list