Crate cuprate_levin

Source
Expand description

§Rust Levin

A crate for working with the Levin protocol in Rust.

The Levin protocol is a network protocol used in the Monero cryptocurrency. It is used for peer-to-peer communication between nodes. This crate provides a Rust implementation of the Levin header serialization and allows developers to define their own bucket bodies, for a complete monero protocol crate see: monero-wire.

§License

This project is licensed under the MIT License.

Re-exports§

pub use header::BucketHead;
pub use message::LevinMessage;
pub use codec::*;

Modules§

codec
A tokio-codec for levin buckets
header
This module provides a struct BucketHead for the header of a levin protocol message.
message
Levin Messages

Structs§

Bucket
A levin Bucket
BucketBuilder
Protocol
Levin protocol settings, allows setting custom parameters.

Enums§

BucketError
Possible Errors when working with levin buckets
MessageType
An enum representing if the message is a request, response or notification.

Traits§

LevinBody
A levin body
LevinCommand
The levin commands.