Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/pymc_core/protocol/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,15 @@
# ---------------------------------------------------------------------------
# Misc sizes
# ---------------------------------------------------------------------------
MAX_ADVERT_DATA_SIZE = 96
MAX_ADVERT_DATA_SIZE = 32
PUB_KEY_SIZE = 32
SIGNATURE_SIZE = 64
PATH_HASH_SIZE = 1
CIPHER_MAC_SIZE = 32 # SHA‑256 HMAC
CIPHER_BLOCK_SIZE = 16
MAX_PACKET_PAYLOAD = 256 # firmware's default
MAX_PACKET_PAYLOAD = 184 # firmware's default

MAX_PATH_SIZE = 64
MAX_PACKET_PAYLOAD = 256
MAX_HASH_SIZE = 32 # SHA-256 truncated

NAME_MAX_LEN = 16 # Max length of a contact name
Expand Down