Commit Graph

19 Commits

Author SHA1 Message Date
Eric Mastro f4f5dc42e0 build: remove nim-stew
We are using `nim-stew` from `nim-waku/vendor`
2021-08-03 19:29:36 +10:00
Eric Mastro 7efda29028 build: Remove nim-result
We are currently using nim-stew/results, which comes from nim-waku/vendor.
2021-08-03 19:29:36 +10:00
Michael Bradley, Jr 3c4af4d9f3
feat: en/decode Status payloads when sending/receiving messages (first steps)
Copy protobuf specs from status-go, make necessary adjustments for use via
nim-protobuf-serialization. Many thanks to @richard-ramos for his help with
this aspect and others!

Implement "first steps" towards encoding and decoding Status payloads when
sending and receiving messages.

That consists of using an incomplete
`ProtocolMessage(ApplicationMetadataMessage(ChatMessage)))` wrapping of
messages, assuming all messages currently being sent correspond to public
chats. It's incomplete because there are many fields for which values are not
being derived, and there is no encryption performed.

A series of future pull requests will fill in the missing pieces and expand our
usage of the protobuf specs, i.e. allow nim-status to send and receive more
kinds of Status messages.

Note that the waku v2 content topics are not yet using a hash of the
user-supplied topic name; that will also be addressed in a future pull request.

It's also important to note that a refactor is pending re: moving the import
and usage of nim-waku inside the `nim_status` library, as well refactorings re:
exception handling, imports and exports, and other aspects that have been
commented upon in other recent pull requests. This commit builds on the work
done to date in the same way as before, but there is already awareness of what
should be changed and can be improved.

Ensure that joined waku v2 content topics (whether joined in the TUI or
specified on the command-line) conform to the recommendations in
[23/WAKU2-TOPICS](https://rfc.vac.dev/spec/23/).

Unrelated to the main focus of this commit: use a fixed-length array instead of
a sequence for collecting bytes of user input (keyboard and mouse) in the
`input` worker thread. It's more efficient to do it that way: less allocation
and garbage collection.

---

Closes #217.
2021-07-29 12:27:06 +03:00
Michael Bradley, Jr 78ba4759e5 feat: example client 2021-06-28 17:50:19 -04:00
Michael Bradley, Jr 21aebe41be refactor: remove status-go and shim/related modules in nim_status
Also adjust Makefile, GitHub Actions workflow, etc.
2021-03-18 10:36:21 -05:00
Michael Bradley, Jr b1a567708b build: remove unneeded nim-nat-traversal in top-level vendor
Also, clarify comment and pwd usage re: nat-libs-sub target in Makefile.
2021-02-16 14:36:09 -06:00
Vitaliy Vlasov f174adf3ff Remove duplicate module 2021-01-07 20:32:32 -06:00
Richard Ramos 2fff052482
fix: add missing module 2021-01-05 10:21:45 -04:00
Richard Ramos c58167c5eb
fix: adding missing lib 2021-01-05 09:42:37 -04:00
Richard Ramos 2ba3c35b96
feat: bip32 keys 2021-01-05 09:41:21 -04:00
RichΛrd 5a5e7532d6
feat: migrations (#83)
* feat: migrations
* Verify if there are more migrations executed in the db than in the code
* fix - code review
* fix: missing text
* test: cat content of sql_scripts.nim
* fix: unwanted stdout/stderr in sql_scripts.nim

Co-authored-by: Michael Bradley, Jr <michaelsbradleyjr@gmail.com>
2020-12-22 16:24:58 -04:00
Richard Ramos a727016068 feat: createSettings and getSettings 2020-11-26 11:49:43 +11:00
Michael Bradley, Jr b88f736a32 feat: integrate nim-sqlcipher 2020-11-18 13:34:24 -06:00
Richard Ramos d1f4fa39d7 feat: implement saveAccountAndLogin using nim-waku in nim_status/lib
For now don't export it at the top-level nor in lib/shim. Implement a basic
test for subscribe and send with waku.
2020-09-15 14:41:57 -05:00
Michael Bradley, Jr 46ffc74a1f feat: introduce Nim impl of identicon
Closes #33
2020-09-03 08:41:52 -05:00
Michael Bradley, Jr 6c2265f8c9 feat: introduce Nim impl of generateAlias
Closes #32
2020-08-31 14:05:29 -05:00
RichΛrd 4cb06e85d7
Add .git to .gitmodules 2020-07-17 20:42:09 -04:00
Richard Ramos a550df769b
feat: adds some utils functions to create/import accounts and login 2020-07-13 14:07:17 -04:00
Richard Ramos 3dda55a8a3
feat: include nimbus-build-system and initial version of the Makefile to generate a static library 2020-07-02 09:20:16 -04:00