AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
The HOPR protocol ensures everyone has control of their privacy and data.
Developer toolsRust · NixGitHub @hoprnetOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Common high-level API traits used by hopr-lib to implement the HOPR protocol
Translation pending
Taken from the repository README
Loading the full README. The saved excerpt is shown below.
Common high-level API traits for the HOPR protocol.
This crate defines the public API surface as traits only — no concrete implementations.
Implementations live in the main hoprnet repository.
Choose the smallest feature set you need:
Then import the traits your component implements:
Requires Nix with flakes enabled.Read the full README ↗Common high-level API traits for the HOPR protocol.
This crate defines the public API surface as traits only — no concrete implementations. Implementations live in the main hoprnet repository.
Choose the smallest feature set you need:
[dependencies]
hopr-api = { version = "4.0.0", features = ["chain", "network"] }
or enable the complete API surface:
[dependencies]
hopr-api = { version = "4.0.0", features = ["full"] }
Then import the traits your component implements:
use hopr_api::chain::{ChainReadAccountOperations, ChainValues};
use hopr_api::network::NetworkView;
All modules are feature-gated:
| Feature | Module | Description |
|---|---|---|
chain | chain | On-chain operation APIs (accounts, channels, tickets…) |
ct | ct | Cover traffic and probing API traits |
graph | graph | Network graph topology, QoS, routing costs |
network | network | Network state, peer observations, connectivity |
node | node | High-level HOPR node API traits and state machine |
node-session-client | node::session | Session client for establishing HOPR sessions |
node-session-server | node::session | Session server for processing incoming sessions |
tickets | tickets | Winning ticket management and redemption |
full | all | Enables all of the above + serde |
[dependencies]
hopr-api = { version = "1.7.0", features = ["full"] }
Requires Nix with flakes enabled.
# Enter development shell
nix develop
# Build
cargo build
# Test
cargo test --lib
# Lint
cargo clippy
# Format
nix fmt