Skip to content

Commit

Permalink
feat: fixed at_talk (#248)
Browse files Browse the repository at this point in the history
* feat: atclient_notify_params_create has const params now

* fix: atclietn_notify bug where ciphertext buffer wasn't large enough

* feat: at_talk working sending messages

* feat: colour code constants

* feat: working at_talk

* docs: at_talk description

* ci: add at_talk back to our CI
  • Loading branch information
JeremyTubongbanua authored May 11, 2024
1 parent 966d1e8 commit 70660ea
Show file tree
Hide file tree
Showing 9 changed files with 324 additions and 400 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
run: |
tools/install.sh
# - name: Build at_talk
# working-directory: examples/desktop/at_talk
# run: |
# cmake -S . -B build
# cmake --build build
- name: Build at_talk
working-directory: examples/desktop/at_talk
run: |
cmake -S . -B build
cmake --build build
- name: Build all CRUD examples
working-directory: examples/desktop/crud
Expand Down
46 changes: 46 additions & 0 deletions examples/desktop/at_talk/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# at_talk

## Description

at_talk is a simple demo of using notify/monitor for two atSigns to talk to each other end-to-end encrypted.

## Quick Start

Open two terminals. Replace `@bob` and `@alice` with your atSigns. It is assumed that each of the terminals has read access to the existing .atKeys files that are found in `~/.atsign/keys/`.

On terminal 1:

```sh
./run.sh -f @bob -t @alice
```

On terminal 2;

```sh
./run.sh -f @alice -t @bob
```

## Demo

Here's an example of two atSigns talking to each other. In this case, I have keys to `@soccer0` and `@soccer99`. My atKeys were placed in `~/.atsign/keys/` (so my key files were ~/.atsign/keys/@soccer_0_key.atKeys and ~/.atsign/keys/@soccer_99_key.atKeys).

Terminal 1:

```
$ ./run.sh -f @soccer0 -t @soccer99
Setup (1/3) .. (2/3) .. (3/3).
@soccer0 -> Here's an example of at_talk in action.
@soccer0 ->
@soccer99: Cool isn't it?
```

Terminal 2:

```
$ ./run.sh -f @soccer99 -t @soccer0
Setup (1/3) .. (2/3) .. (3/3).
@soccer99 ->
@soccer0: Here's an example of at_talk in action.
Cool isn't it?
@soccer99 ->
```
Loading

0 comments on commit 70660ea

Please sign in to comment.