lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

profile.rs (1030B)


      1 //! Assigned interoperable profile identities. Assignments alone do not qualify
      2 //! authoring, authenticate a participant or establish a capability grant.
      3 
      4 /// Regular unsigned rumor kind for NIP-59-wrapped structured commerce.
      5 pub const COMMERCE_KIND: u16 = 8890;
      6 /// Replaceable per-participant capability advertisement kind.
      7 pub const CAPABILITIES_KIND: u16 = 18890;
      8 /// Closed structured-commerce content profile.
      9 pub const COMMERCE_PROFILE: &str = "radroots.commerce";
     10 /// Closed capability-advertisement content profile.
     11 pub const CAPABILITIES_PROFILE: &str = "radroots.capabilities";
     12 /// Supported content version for these profiles.
     13 pub const PROFILE_VERSION: u32 = 1;
     14 
     15 /// Complete structured content, including its record identity and header.
     16 pub const PRIVATE_RECORD_MAX_BYTES: usize = 16_384;
     17 /// Complete private unsigned NIP-01 rumor representation.
     18 pub const UNSIGNED_RUMOR_MAX_BYTES: usize = 24_576;
     19 /// Complete signed private seal or outer event representation.
     20 pub const SIGNED_EVENT_MAX_BYTES: usize = 65_536;