Skip to main content

Crate deaddrop_core

Crate deaddrop_core 

Source
Expand description

DeadDrop core: protocol, crypto, identities, objects, storage. This crate MUST NOT depend on networking or applications.

Re-exports§

pub use sealed::SEAL_QUORUM_EXT;
pub use sealed::SEAL_UNTIL_EXT;

Modules§

carrier
USB / removable-media carrier bundles (.ddcarrier directory or .ddrop archive). Never includes private identity keys.
channel
Channel subscriptions. Nodes MUST NOT store every public channel by default.
chunk
config
crypto
Cryptographic policy lives here. Networking crates MUST go through CryptoProvider.
event
identity
protocol
receipt
rules
Intentionally limited automation. Not a general-purpose language.
sealed
Sealed Drops: application policy until a condition holds.
space
Signed Space membership records. Payload-agnostic shared namespaces.
store

Structs§

CapabilityDoc
ChunkId
ContentId
Digest
DropEnvelope
Extension
ManifestId
NegotiatedCaps
ObjectId
PeerId
Cryptographic node identifier. Text form: dd: + 64 hex characters of the digest.
PublicIdentity
RecipientWrap
RoutingPolicy
SecurityDescriptor

Enums§

DdError
Destination
DropState
ErrorCode
HashAlgorithm
NodeMode
NodeRole
Ownership
PayloadDescriptor
Priority
ReceiptKind
RelayCapacity
RoutingPolicyKind
SessionState
TrustState
Contact trust. Discovery never implies Known or Verified.

Constants§

APP_NAMESPACES
DEFAULT_HOP_LIMIT
DEFAULT_REPLICATION_BUDGET
DEFAULT_STORE_QUOTA
DEFAULT_TTL_SECS
DIGEST_LEN
FIXED_CHUNK_SIZE
MAX_CAPABILITIES
MAX_CHUNKS_PER_MANIFEST
MAX_CONTENT_TYPE_LEN
MAX_DROP_SIZE
MAX_EXTENSIONS
MAX_FILENAME_LEN
MAX_FRAME_SIZE
MAX_HOP_LIMIT
MAX_INLINE_PAYLOAD
MAX_INVENTORY_IDS
MAX_RECIPIENTS
MAX_TOPIC_LEN
MAX_TTL_SECS
MIN_TTL_SECS
NONCE_LEN
PROTOCOL_LABEL
PROTOCOL_VERSION
Wire protocol major version. Independent of the Cargo package version.
STORAGE_SCHEMA_VERSION
TAG_LEN

Functions§

ephemeral_discovery_id
Daily rotating discovery identifier. Does not replace the cryptographic PeerId.
hex_decode
hex_encode
peer_id_matches_prefix

Type Aliases§

Result