lib.rs (2511B)
1 #![doc = include_str!("../README.md")] 2 #![cfg_attr(not(feature = "std"), no_std)] 3 #![forbid(unsafe_code)] 4 5 extern crate alloc; 6 7 /// Closed known-kind chat command data and canonical digest input. These 8 /// values authenticate no principal and perform no command admission. 9 #[cfg(feature = "commands")] 10 pub mod command; 11 12 #[cfg(any(feature = "terms", feature = "private_rumor"))] 13 mod private_json; 14 15 #[cfg(any( 16 feature = "terms", 17 feature = "private_rumor", 18 feature = "advertisement" 19 ))] 20 mod json_array; 21 22 /// Bounded participant capability claims, without software or permission proof. 23 #[cfg(feature = "advertisement")] 24 pub mod advertisement; 25 26 /// Bounded private NIP-01 rumor data, without cryptographic admission. 27 #[cfg(feature = "private_rumor")] 28 pub mod private_rumor; 29 30 /// Explicit bounded private Terms encoding and its canonical v1 digest. 31 #[cfg(feature = "terms")] 32 pub mod terms; 33 34 /// Complete private record data, canonical identity and explicit carrier matching. 35 #[cfg(feature = "commerce")] 36 pub mod commerce; 37 38 #[cfg(any(feature = "listing", feature = "terms"))] 39 mod listing_values; 40 41 /// Pure exact v1 signing-commitment data, without execution authority. 42 #[cfg(feature = "intent")] 43 pub mod intent; 44 45 /// Exact canonical NIP-01 bytes and complete serialization budgets. 46 #[cfg(feature = "nip01")] 47 pub mod nip01; 48 49 /// Shared exact NIP44/NIP59 seal data and complete nested budgets. 50 #[cfg(any(feature = "chat", feature = "commerce"))] 51 pub mod nip59; 52 53 /// Bounded known-kind private-chat data; no admission or route authority. 54 #[cfg(feature = "chat")] 55 pub mod chat; 56 57 /// Assigned kind30402 quote-required listing preimages. Pure construction does 58 /// not authenticate a workspace, prepare a command or publish an event. 59 #[cfg(feature = "listing")] 60 pub mod listing; 61 62 /// Complete typed signing plans. Retention and provider declarations create no 63 /// signing authority, signature, installed result or publication evidence. 64 #[cfg(any(feature = "chat", feature = "listing"))] 65 pub mod plan; 66 67 #[cfg(all(test, not(feature = "std")))] 68 extern crate std; 69 70 /// Versioned capability catalog contracts. 71 pub mod capability; 72 73 /// Exact assigned commerce and capability wire identities. 74 pub mod profile; 75 76 /// Versioned stable error-report contracts. 77 pub mod error; 78 79 /// Versioned event wire contracts. 80 pub mod event; 81 82 /// Versioned daemon protocol contracts. 83 pub mod radrootsd; 84 85 /// Versioned runtime operation contracts. 86 pub mod runtime; 87 88 /// Schema identity and structural validation contracts. 89 pub mod schema;