| Crates.io | enigma-node-types |
| lib.rs | enigma-node-types |
| version | 0.0.1 |
| created_at | 2025-12-15 14:35:31.966995+00 |
| updated_at | 2025-12-15 14:35:31.966995+00 |
| description | Canonical node-facing types and strict codecs for Enigma (UserId hashing, identities, presence, relay envelopes). |
| homepage | https://github.com/Gladius33/enigma-node-types |
| repository | https://github.com/Gladius33/enigma-node-types |
| max_upload_size | |
| id | 1986191 |
| size | 35,881 |
Canonical node-facing types and strict codecs for Enigma components. Endpoints exchange hashed user identifiers instead of raw usernames, keeping registry, relay, and SFU traffic aligned while limiting metadata exposure.
Highlights:
UserId hashing from usernames using BLAKE3 with a fixed domain separation string.username_hint field; omit it when privacy matters.Usage:
PublicIdentity::validate, RelayEnvelope::validate).to_json_string and from_json_str; unknown fields are rejected.UserId over plaintext usernames in network endpoints; hints are optional.