Skip to content

Conversation

@deavmi
Copy link
Owner

@deavmi deavmi commented Jan 24, 2024

No description provided.

- Added `crypto` dependency
- Added new module
- Marked as `const` (nothing should ever change herein)
- Now takes in an `Identity`

App

- Generate an `Identity`
- No need for `const` there
- Added encryption and decryption methods
- `sendData(byte[] payload, string to)` now encrypts data to the destination address
- Added `getPrivateKey()`
- `handle_DATA(Link link, string srcAddr, Message recvMesg)` now will decrypt data destined to it before passing it up the the user message handler

Router (unittests)

- Fixed to use new `Router` API which makes use of `Identity`
- We now generate the identities before instantiating the routers
@deavmi deavmi self-assigned this Jan 24, 2024
- Don't encrypt payloads destined to ourselvges
- This reworks the `sendData(byte[] payload, string to)` method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants