Skip to main content

Crate hns_chat_protocol

Crate hns_chat_protocol 

Source
Expand description

Owner-bound HNS Chat identity and opaque HIP-78 mailbox values.

Structs§

ChatAcknowledgementV1
ChatEnvelopeV1
ChatIdentityBindingV1
VerifiedOwnerBindingV1

Enums§

ChatIdentityTrust
ChatKeyMode
ChatProtocolError

Constants§

HNS_CHAT_PROFILE_NAME
Human-readable HNSR profile label; this is not an HNSA service name.
HNS_CHAT_PROFILE_V1
Canonical HNSR service profile allocated by the HNSR profile registry.
HNS_CHAT_SERVICE_NAME
HIP-compliant HNSA service name for owner-bound HNS Chat.
HNS_CHAT_WIRE_VERSION
Version byte used by both canonical HNS Chat wire values.
MAX_CHAT_ACKNOWLEDGEMENT_SIZE
Maximum encrypted acknowledgement payload.
MAX_CHAT_ACKNOWLEDGEMENT_WIRE_SIZE
Maximum canonical encoded acknowledgement size, including CompactSize.
MAX_CHAT_CIPHERTEXT_SIZE
Maximum opaque NIP-59 gift-wrap payload.
MAX_CHAT_ENVELOPE_SIZE
Maximum canonical encoded envelope size, including a three-byte CompactSize.
MAX_CHAT_EXPIRATION_WINDOW
Maximum difference between envelope creation and expiration timestamps.

Functions§

encode_chat_binding
owner_authority_record
parse_chat_binding
resolve_compressed_owner_key
select_chat_binding
select_chat_binding_from_resource
validate_unique_message_ids
verify_current_owner_binding
xonly_from_compressed_public_key