Skip to main content

Module broadcast_primitives

Module broadcast_primitives 

Source
Expand description

Broadcast crypto primitives preserved from the removed NotificationService.

These are reused by the WASM client (wasm_api.rs) and remain public so the browser binding is unaffected by the NotificationService removal (EV5/#605). The blind-relay broadcast service itself is gone; only the reusable crypto helpers (pubkey fingerprint, length-prefixed AAD, one-shot MAC, attestation message) remain here.

Functions§

build_attestation_message
Build the message signed by the publisher’s Ed25519 key for attestation.
build_payload_aad
Build length-prefixed AAD for payload encryption.
notification_mac
Compute a one-shot MAC: keyed_mac(mac_key, ciphertext).
notification_mac_verify
Verify a one-shot MAC in constant time.
pubkey_fingerprint
Compute a 128-bit fingerprint of a public key: Blake3(pubkey)[..16].

Type Aliases§

PubkeyFingerprint
128-bit pubkey fingerprint (Blake3 truncated).