Crate nym_sdk

Crate nym_sdk 

Source
Expand description

Rust SDK for the Nym platform

The main component currently is mixnet. tcp_proxy is probably a good place to start for anyone wanting to integrate with existing app code and read/write from a socket. client_pool is a configurable client pool.

Modules§

bandwidth
The coconut bandwidth component of the Rust SDK for the Nym platform
client_pool
A variable-size pool of ephemeral Nym Clients to quickly grab and use.
mixnet
The mixnet component of the Rust SDK for the Nym platform
tcp_proxy
The TcpProxy Module of the Nym SDK which exposes a socket interface for the Mixnet

Structs§

ChainDetails
DebugConfig
DenomDetails
DenomDetailsOwned
ErasedGatewayError
LocalGateway
Gateway running within the same process.
MockGateway
MockGatewayError
NymApiTopologyProvider
NymApiTopologyProviderConfig
NymContracts
NymNetworkDetails
PacketRouter
RememberMe
RemoteGateway
Gateway to which the client is connected through a socket. Most likely through a websocket.
ShutdownToken
A wrapped CancellationToken that is used for signalling and listening for cancellation requests.
ShutdownTracker
Extracted TaskTracker and ShutdownToken to more easily allow tracking nested tasks without having to pass whole ShutdownManager around.
UserAgent
Characteristic elements sent to the API providing basic context information of the requesting client.
ValidatorDetails

Enums§

Error
Top-level Error enum for the mixnet client and its relevant types.
LocalGatewayError

Traits§

GatewayPacketRouter
GatewayReceiver
this trait defines the functionality of being able to correctly route packets received from the mixnet, i.e. acks and ‘proper’ messages.
GatewaySender
This trait defines the functionality of sending MixPacket into the mixnet, usually through a gateway.
GatewayTransceiver
This combines the functionalities of being able to send and receive mix packets.
TopologyProvider

Type Aliases§

Result