Crates.io | monero-epee |
lib.rs | monero-epee |
version | 0.1.0 |
created_at | 2025-09-15 23:59:33.287178+00 |
updated_at | 2025-09-15 23:59:33.287178+00 |
description | A library for working with `epee`-encoded data |
homepage | |
repository | |
max_upload_size | |
id | 1840713 |
size | 16,694 |
epee
is a bespoke serialization format seen within the Monero project without any official
documentation. The best specification is available here.
This library implements the epee
'portable storage' encoding, with the following exceptions:
Array
type (type 13) as it's unused and lacking documentationepee
library itself due to slight differences
in depth limits on nested objectsWe do not support:
Instead, we support iterating through epee
-encoded values and finding all instances of a
field. This lets the caller jump to the binary blob representing an encoded value, and decode
it themselves, without us actually deserializing the entire object. If we were to do that, we'd
presumably require something akin to serde_json::Value
or a proc macro. This is sufficient
for basic needs, much simpler, and should be trivial to verify it won't panic/face various
exhaustion attacks. This library is implemented without recursion.
Because of this, we are also able to support no-std
and no-alloc
, without any dependencies other
than core
, while only consuming approximately a kibibyte of memory on the stack.
For a more functional library, please check out to
cuprate-epee-encoding
.