Nym Rust SDK

Nym
nymtech
Published in
3 min readApr 19, 2023

--

The Nym Rust SDK is now available, meaning devs can more easily integrate with the mixnet! The Nym mixnet puts the most advanced network privacy protections in the hands of developers to extend to their users.

When you integrate with the mixnet, you are offering your users protection for their IP addresses, as well as ensuring their network traffic is shielded from AI-driven metadata surveillance and large scale traffic analysis. In short, integrate with the mixnet to ensure your apps have default network level privacy, as it should be!

This is a pre-release, meaning it is not available on crates.io quite yet, but you can still import it from GitHub, so try it out!

What is an SDK useful for?

The Nym SDKs make it far easier for developers to integrate mixnet functionality into applications by being able to import Nym clients as dependencies, just like any other dependency or a crypto library. What this means in practice is that clients can connect to and communicate with the mixnet as part of the app process, instead of having to run as a separate process alongside it. This makes for both far smoother development and user experiences.

What does this mean for people wanting to integrate with Nym? It means it’s now easier to integrate Nym mixnet functionality into your development environment. You will be able to build or integrate your web apps (with the already released Typescript SDK) and now also Rust applications. You no longer need to run a client as a separate process on your machine. And the SDKs provide far more intuitive interfaces with which to interact with the mixnet, meaning you can focus on the logic of your own app instead of constructing messages to send through the mixnet.

Which SDKs are available for Nym?

The TypeScript SDK is available and was announced in a previous blog post. This SDK allows users to import the Nym Webassembly client into browser-based application frontends, and has been updated and now has an example with parcel as a bundler.

  • Coming soon: for NodeJS environment so you can use it in server environments as well as persistent identities / key storage.

The Rust SDK (pre-release) allows developers to embed either a Websocket or Socks5 client into applications to communicate with the mixnet. You can find examples here.

  • Coming soon: Nym Rust SDK tutorial!

Future SDK updates

Right now both SDKs allow devs to interact with the mixnet: send and receive messages, and create clients (the Rust SDK allows for persistent client identities / keypairs, the TS SDK will in a subsequent release). But there are many other features that will be supported once these are rolled out across the mixnet! Including the ability to create and use zk-nyms and sign and broadcast Nyx blockchain transactions and queries.

Bring the power of a global mixnet to your app, dapp or wallet!

What apps are already integrated with the Nym mixnet?

Not on the list? Get in touch…

Privacy loves company

Discord // Telegram // Element // Twitter

The internet is global and so is Nym: join the Nym Community wherever you are and help build the private internet today.

English // 中文 // Русский // Türkçe // Tiếng Việt // 日本 // Française // Español // Português // 한국인

Translations: Spanish // Turkish

--

--

Building the next generation of privacy infrastructure… Check our publication for more content: https://medium.com/nymtech