ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
public_key_t Struct Reference

The normalized public identity used by ascii-chat's crypto and key-management code. More...

#include <include/ascii-chat/crypto/key_types.h>

Data Fields

key_type_t type
uint8_t key [CRYPTO_PUBLIC_KEY_SIZE]
char comment [MAX_COMMENT_LEN]

Detailed Description

The normalized public identity used by ascii-chat's crypto and key-management code.

type records whether the key came from Ed25519, X25519, or GPG. key always holds the normalized 32-byte public value used by the protocol, and comment preserves the optional human-readable label from the source key.

Note
Key size: Always 32 bytes (simplifies protocol and key management)
Comment: Optional label for the key (max 256 chars including null terminator)
Conversion: Ed25519 and GPG keys are converted to X25519 for key exchange

Definition at line 72 of file key_types.h.


The documentation for this struct was generated from the following file: