#affinidi #ssi

bin+lib affinidi-messaging-helpers

Affinidi Messaging Helpers

28 releases

Uses new Rust 2024

0.11.3 Dec 22, 2025
0.11.1 Oct 23, 2025
0.10.8 Jun 10, 2025
0.10.3 Mar 31, 2025
0.8.7 Dec 21, 2024

#777 in Configuration

Apache-2.0

1.5MB
24K SLoC

Affinidi Messaging Helpers

Tools to help with setting up, managing and running examples for Affinidi Messaging.

This crate contains the following helpers:

  1. setup-environment - Configures the initial environment for either local or remote mediators.

Debug Logging

To enable logging at the DEBUG level just for this crate:

export RUST_LOG=none,affinidi_messaging_helpers=debug,affinidi_messaging_sdk=info

Set Profile When Running Examples

You can have multiple environment profiles to switch between different mediators easily.

The configuration file for profiles is generated from the setup-environment helper. It stores the profile information in affinidi-messaging-helpers/conf/profiles.json file.

To set the profile, you can either set an environment variable or specify a profile at run-time.

Using environment variable:

export TDK_ENVIRONMENT=local

cargo run --example mediator_ping

Using run-time option:

cargo run --example mediator_ping -- -e local

Go to the examples folder to explore and run other examples.

Dependencies

~138MB
~3M SLoC