A standardized Rust SDK and protocol for integrating any Fiber application with any Fiber watchtower implementation.
The SDK provides an integration interface—not a watchtower implementation itself. It serves as the reference implementation of the Fiber Watchtower Protocol (FWP).
We are NOT building:
- ❌ A watchtower
- ❌ A Fiber node
- ❌ A CKB node
- ❌ Monitoring logic
- ❌ Penalty logic
- ❌ Gossip logic
These belong to Fiber.
- ✅ Protocol specification
- ✅ Rust SDK
- ✅ Adapters (Fiber, Mock)
- ✅ Mock backend for testing
- ✅ Examples and CLI
- ✅ Integration tests
fiber-watchtower-sdk/
├── crates/
│ ├── protocol/ # Core protocol types
│ ├── types/ # Shared types
│ ├── transport/ # Transport abstraction
│ ├── server/ # Service traits
│ ├── client/ # Public SDK
│ ├── adapter-fiber/ # Fiber RPC adapter
│ ├── adapter-mock/ # In-memory mock
│ └── cli/ # CLI tool
├── examples/ # Runnable examples
├── docs/ # Documentation
└── tests/ # Integration & E2E tests
cargo buildcargo test# Wallet example
cargo run --example wallet
# Merchant example
cargo run --example merchant
# Mock server (interactive demo)
cargo run --example mock-server
# Subscriber
cargo run --example subscriberwatchtower register
watchtower login
watchtower watch
watchtower events
watchtower statusCommon tasks:
just test # Run tests
just fmt # Format code
just lint # Run clippy
just demo # Run mock-server exampleRequired components:
cargo install cargo-nextest
cargo install cargo-watch
cargo install cargo-deny
cargo install cargo-audit
cargo install bacon
cargo install justMIT