Discover Packages
github.com/agent-network-protocol/anp/golang
examples
direct_e2ee
command
Version:
v0.8.4
Opens a new window with list of versions in this module.
Published: Apr 14, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
Direct E2EE Alice/Bob Example
This example demonstrates a complete two-party direct E2EE flow using the Go SDK.
What it covers
create Alice and Bob DID documents with E2EE keys
publish Bob's prekey bundle through an in-memory RPC boundary
let Alice initiate a direct E2EE session
send a follow-up encrypted message from Alice to Bob
process Bob's inbox out of order to demonstrate pending-message handling
send a reply from Bob back to Alice over the established session
decrypt Alice's history page
Run
go run ./examples/direct_e2ee
Output
The example prints each major step in English, including:
bundle publication
init-message send
follow-up send
pending state for out-of-order delivery
successful decryption results for Bob and Alice
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.