infra_did_comm_dart 0.7.2
infra_did_comm_dart: ^0.7.2 copied to clipboard
Communication Protocol using Infra DID
Examples #
This repository contains examples that demonstrate the usage of the infra-did-comm-dart
library.
Example 1: Communication with ephmeral key #
This example contains a simple demonstration of how to communicate with an ephmeral key.
- Initialize Alice and Bob
- Alice generate ephemeral key pair
- Alice make JWS with alice's private key
- Alice encrypts a message with shared key that is derived from ephemeral private key and Bob's public key
- Bob decrypts the message with shared key that is derived from ephemeral public key and Bob's private key
- Bob verifies the JWS with Alice's public key
dart run communicate_with_ephmeral_key.dart
Example 2: Convert Ed25519 key to X25519 key #
This example contains a simple demonstration of how to convert Ed25519 key to X25519 key.
dart run ed25519_to_x25519.dart
Example 3: Connect to websocket server #
See example