Skip to content

feat: 128 bit UUIDs for client & device auth IDs#16

Merged
cococry merged 1 commit into
mainfrom
client-auth-uuid
Jul 2, 2026
Merged

feat: 128 bit UUIDs for client & device auth IDs#16
cococry merged 1 commit into
mainfrom
client-auth-uuid

Conversation

@cococry

@cococry cococry commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

Added 128 bit client-generated IDs for user authentication and device authentication identifiers. RAND_bytes from OpenSSL is used for the random generation. The Protocol header and envelope data now serialize/deserialize 128 bit IDs instead of the temporary 32 bit integer IDs. The routing hashmap in faithd now keys by the 128 bit structure instead of a simple uint32_t.

client_id_t and device_id_t are now typedefed as:

typedef struct {
  uint8_t bytes[FAITH_CLIENT_ID_SIZE];
} client_id_t;

typedef struct {
  uint8_t bytes[FAITH_DEVICE_ID_SIZE];
} device_id_t;

Testing

Describe how you tested this change.

  • scripts/check.sh passes locally
  • CI passes for this pull request

@cococry cococry merged commit 35dfd03 into main Jul 2, 2026
4 of 5 checks passed
@cococry cococry deleted the client-auth-uuid branch July 2, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant