nk-core 0.16.0

Nostr protocol core: events, keys, filters, messages and NIP codecs; no_std, sans-IO.
Documentation
1
2
3
4
5
6
7
//! Protocol byte/character limits shared by the wire types.

/// Maximum length of a subscription id in characters (NIP-01: 1–64 chars).
pub const SUBSCRIPTION_ID_MAX_CHARS: usize = 64;

/// `Number.MAX_SAFE_INTEGER` — the inclusive upper bound for wire integers.
pub const MAX_SAFE_INTEGER: u64 = 9_007_199_254_740_991;