#identity #serde #derive #driver #dictionary #secret #source #map

ratman-identity

Network identity abstraction for Ratman routers and drivers

8 releases (5 breaking)

0.6.2 Apr 4, 2021
0.6.1 Apr 4, 2021
0.6.0 Mar 2, 2021
0.5.1 Oct 30, 2020
0.1.0 Jan 30, 2020

#884 in Hardware support

Download history 68/week @ 2023-10-28 59/week @ 2023-11-04 63/week @ 2023-11-11 65/week @ 2023-11-18 95/week @ 2023-11-25 53/week @ 2023-12-02 62/week @ 2023-12-09 53/week @ 2023-12-16 67/week @ 2023-12-23 36/week @ 2023-12-30 50/week @ 2024-01-06 66/week @ 2024-01-13 49/week @ 2024-01-20 42/week @ 2024-01-27 43/week @ 2024-02-03 72/week @ 2024-02-10

218 downloads per month
Used in 16 crates (10 directly)

AGPL-3.0-or-later

13KB
283 lines

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 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!

Dependencies

~0.4–1.2MB
~27K SLoC