[][src]Crate ratman_identity

A Ratman network identity abstraction

Because Ratman is a userspace router with no concept of link layer identities, network IDs are chosen to be fixed size byte arrays. It's left to the implementing application to map these to some useful source of identity. This crate also provides a hashing constructor behind the digest feature flag which can be used to hash a secret to derive the identity value.

Whatever scheme is chosen, two principles about identity must not be violated:

  1. There are no identity collisions
  2. Identities don't change mid-route

This crate is part of the qaul.net project. The docs for this crate are propably lacking because currently Ratman/ libqaul are the only users of it. If you have questions, don't hesitate to contact us!

Structs

Identity

A Ratman network identity

Constants

ID_LEN

Lengthc of the identity buffer