direct_e2ee

command
v0.8.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2026 License: Apache-2.0 Imports: 9 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.

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL