Skip to main content

Crate doldskrift

Crate doldskrift 

Source
Expand description

§Doldskrift

Machine-native typography and representation for software agents.

Doldskrift is not encryption. It is a deterministic encoding and typography system that can make text visually opaque to humans while remaining exactly recoverable by Doldskrift-aware software.

use doldskrift::{Decoder, Encoder, Mode};

let encoder = Encoder::new(Mode::Encoded);
let payload = encoder.encode("Hello, agent!").unwrap();
let decoder = Decoder::new();
let message = decoder.decode(&payload).unwrap();
assert_eq!(message, "Hello, agent!");

Re-exports§

pub use errors::byte_to_symbol;
pub use errors::checksum_bytes;
pub use errors::is_control_symbol;
pub use errors::is_project_mark;
pub use errors::is_symbol;
pub use errors::symbol_id_of;
pub use errors::symbol_to_byte;
pub use errors::verify_checksum;
pub use errors::Capability;
pub use errors::ControlSymbol;
pub use errors::Error;
pub use errors::Mode;
pub use errors::ProtocolVersion;
pub use errors::Result;
pub use errors::ALPHABET_SIZE;
pub use errors::CHECKSUM_ALGORITHM;
pub use errors::CONTROL_BASE;
pub use errors::DSK_PROJECT_MARK;
pub use errors::DSK_PROJECT_MARK_NAME;
pub use errors::FONT_VERSION;
pub use errors::FONT_VERSION_MGE2;
pub use errors::GLYPH_ENGINE_VERSION;
pub use errors::HANDSHAKE_QUERY;
pub use errors::HANDSHAKE_REPLY;
pub use errors::MAGIC;
pub use errors::MAGIC_DSK2;
pub use errors::MIME_BINARY;
pub use errors::MIME_TEXT;
pub use errors::PROTOCOL_NAME;
pub use errors::PROTOCOL_VERSION;
pub use errors::PROTOCOL_VERSION_PROTECTED;
pub use errors::PUA_BASE;
pub use protected::gate_open;
pub use protected::ProtectedInspect;
pub use codec::decode;
pub use codec::decode_auto;
pub use codec::encode;
pub use codec::encode_with_mode;
pub use codec::identity_symbol;
pub use codec::Decoder;
pub use codec::Encoder;
pub use codec::Mapping;
pub use codec::MappingId;
pub use codec::StaticMapping;
pub use document::DocumentFlags;
pub use document::DocumentHeader;
pub use document::DskDocument;
pub use document::InspectReport;
pub use document::ValidateCheck;
pub use document::ValidateReport;
pub use protocol::detect_from_attrs;
pub use protocol::detect_from_html_meta;
pub use protocol::detect_pua_heuristic;
pub use protocol::negotiate;
pub use protocol::CapabilityProfile;
pub use protocol::CapabilitySet;
pub use protocol::Detection;
pub use protocol::DetectionSource;
pub use protocol::HandshakeOffer;
pub use protocol::HandshakeReply;
pub use protocol::DEFAULT_CAPABILITIES;
pub use session::Session;
pub use session::SessionBuilder;
pub use session::SessionManifest;
pub use stream::StreamingDecoder;
pub use stream::StreamingEncoder;

Modules§

address
Content addressing for canonical Doldskrift payloads.
alphabet
Byte alphabet helpers for DOLDSKRIFT/1 PUA symbols.
armor
Textual armor for binary Doldskrift payloads (base64 lines).
canonical
Canonical form helpers for deterministic encoding.
capture
Capture helpers for acquiring visual / textual Doldskrift inputs.
codec
Encoding, decoding, and mappings for DOLDSKRIFT/1 (and helpers for DSK/2).
compatibility
Protocol / font version compatibility checks.
document
.dsk container format for DOLDSKRIFT/1.
ecc
Lightweight error-correction helpers for visual frames.
errors
Errors, modes, versions, checksums, and symbol constants (canonical core).
frame
DSK Visual Frames — rectangular machine-readable regions.
glyph
Glyph-facing helpers that do not pull in the font engine.
limits
Resource limits for parsers and streams.
neural
DSK/3 Neural — latent structure grammar, readers, and profile metadata.
protected
Protected Visual Objects — ADR-0006 milestone 1–2 stubs.
protocol
Discovery, handshake, and DSK/2 capability negotiation.
query
Simple path queries over semantic maps.
registry
Named schema / capability registries.
runtime
Runtime feature detection and build metadata.
schema
Top-level schema re-exports (DSK/2).
semantic
Semantic value layer for DSK/2 — structured machine information.
session
Session mode: seeded dynamic mappings + manifests.
stream
Incremental / streaming encode and decode.
textform
Text-form helpers (plain / encoded / armored).
transport
Logical transport framing (not a network stack).