direct_e2ee

command
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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