lib.rs (2036B)
1 #![cfg_attr(not(feature = "std"), no_std)] 2 #![forbid(unsafe_code)] 3 4 extern crate alloc; 5 6 pub mod codec; 7 pub mod error; 8 pub mod model; 9 pub mod short_link; 10 11 pub mod prelude { 12 pub use crate::codec::{ 13 decode_agent_message_frame, decode_connection_link, decode_decrypted_message, 14 decode_envelope, encode_agent_message_frame, encode_connection_link, 15 encode_decrypted_message, encode_envelope, 16 }; 17 pub use crate::error::{ 18 RadrootsSimplexAgentProtoError, RadrootsSimplexAgentUnsupportedLinkKind, 19 }; 20 pub use crate::model::{ 21 RADROOTS_SIMPLEX_AGENT_CURRENT_VERSION, RadrootsSimplexAgentConnectionLink, 22 RadrootsSimplexAgentConnectionMode, RadrootsSimplexAgentConnectionStatus, 23 RadrootsSimplexAgentDecryptedMessage, RadrootsSimplexAgentEncryptedPayload, 24 RadrootsSimplexAgentEnvelope, RadrootsSimplexAgentMessage, 25 RadrootsSimplexAgentMessageFrame, RadrootsSimplexAgentMessageHeader, 26 RadrootsSimplexAgentMessageId, RadrootsSimplexAgentMessageReceipt, 27 RadrootsSimplexAgentQueueAddress, RadrootsSimplexAgentQueueDescriptor, 28 RadrootsSimplexAgentQueueUseDecision, 29 }; 30 pub use crate::short_link::{ 31 RADROOTS_SIMPLEX_AGENT_SHORT_LINK_ID_LENGTH, RADROOTS_SIMPLEX_AGENT_SHORT_LINK_KEY_LENGTH, 32 RADROOTS_SIMPLEX_AGENT_SHORT_LINK_SERVER_KEY_HASH_LENGTH, 33 RadrootsSimplexAgentShortInvitationFixedData, RadrootsSimplexAgentShortInvitationLink, 34 RadrootsSimplexAgentShortInvitationUserData, RadrootsSimplexAgentShortLinkScheme, 35 decode_short_invitation_fixed_data, decode_short_invitation_user_data, 36 encode_short_invitation_fixed_data, encode_short_invitation_user_data, 37 parse_short_invitation_link, 38 }; 39 pub use radroots_simplex_smp_crypto::prelude::{ 40 RadrootsSimplexOfficialX3dhParams, RadrootsSimplexSmpRatchetHeader, 41 RadrootsSimplexSmpRatchetState, decode_official_x3dh_params_uri, 42 encode_official_x3dh_params_uri, official_x448_keypair_from_seed, 43 }; 44 }