Skip to content

Commit

Permalink
added TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
reklatsmasters committed Jun 30, 2020
1 parent 4f039dd commit ce0a87d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# architecture

* class Resolver, public interface, hold private ref to dnscrypt client
* class DNSCryptClient, private interface, implements dns api methods
* receive certificate using something like `_construct`.
* drop state management using `next-state`, recreate client when certificate expired.
* class Session used to store session sensitive data, like certificate.
* implement TCP and UDP transport using different classes, hide impl details there.
* do not use global default resolver due to it's need explicit state management.
* leave encrypt / decrypt / verify in a module, just rename it.

0 comments on commit ce0a87d

Please sign in to comment.