Skip to main content

Crate wtrscape

Crate wtrscape 

Source
Expand description

§Wtrscape Protocol

Steganographic Agent Protocol (SAP) for private AI agent communication.

Wtrscape enables agents to communicate privately in public platforms like Moltbook by hiding encrypted messages within ordinary text using zero-width Unicode characters.

  • End-to-end encryption: X25519 key exchange + ChaCha20-Poly1305
  • Agent identity: Ed25519 signatures for message authentication
  • Access control: Messages readable only by authorized agents

§Example

use wtrscape::{Agent, Wtrscape};

// Create two agents
let alice = Agent::new("alice");
let bob = Agent::new("bob");

// Send hidden message
let cover_text = "Nice weather today!";
let secret = "Meet at coordinates 51.5074, -0.1278";
let encoded = Wtrscape::encode(&alice, &bob.public_identity(), cover_text, secret).unwrap();

// Decode on receiver side
let decoded = Wtrscape::decode(&bob, &alice.public_identity(), &encoded).unwrap();
assert_eq!(decoded, secret);

Re-exports§

pub use agent::Agent;
pub use protocol::WtrscapeChannel;
pub use protocol::Wtrscape;
pub use protocol::WtrscapeGroup;
pub use error::WtrscapeError;
pub use skill::WtrscapeSkill;
pub use skill::SkillAction;
pub use skill::SkillResponse;

Modules§

agent
Agent identity and key management
crypto
Cryptographic primitives for the Wtrscape protocol
error
Error types for the Wtrscape protocol
protocol
Wtrscape Protocol - Encrypted steganographic communication
skill
OpenClaw Skill integration for the Wtrscape protocol
stego
Steganographic encoding using zero-width Unicode characters

Type Aliases§

Result