Evgeny Poberezkin
a3990ea170
Types.hs -> Protocol.hs ( #62 )
2021-02-28 17:00:14 +00:00
Evgeny Poberezkin
7570ef9e22
SMP heartbeat to maintain the connection ( #59 )
...
* SMP heartbeat to maintain the connection
* separate SMP commands into sections
* update SMP command sections
* update SMP commands comment
Co-authored-by: Efim Poberezkin <efim.poberezkin@gmail.com >
2021-02-27 15:24:05 +00:00
Efim Poberezkin
469f84bb74
use cryptographic key pairs for encryption keys ( #39 )
...
* use cryptographic key pairs for encryption keys
* use speaking key types
* fix key types
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2021-02-26 18:14:22 +04:00
Evgeny Poberezkin
0fe41dbf16
Sign / verify SMP commands ( #37 )
...
* generate key pair
* crypto: sign/verify functions
* remove extension
* parse/serialize keys
* use RSA recipient/sender keys (TODO sign/verify)
* make PublicKey newtype, assign 0s to private_p & private_q
* replace SMP command parsing with Attoparsec
* rename types: Signed->Transmission, Transmission->SignedTransmission
* sign and verify commands (server tests skipped, agent tests pass)
* SMP client: avoid seralizing transmission twice when sending commands
* update SMP server tests to use command signatures
* remove support for "SEND :msg" syntax from SMP server protocol
* rename RSA module name to R to avoid confusion with C used for S.M.Crypto
* update key sizes to use bits `div` 8
* tidy up
2021-02-26 18:14:22 +04:00
Efim Poberezkin
f50da16d0a
reorganize Protocol and Agent Store ( #25 )
...
* chore: move members from Server/Transmission.hs to Protocol.hs
* chore: revert qualified SMP import for server and client
* chore: fix corrId call
* chore: move common types to Common.hs
* chore: decompose SQLite.hs
* chore: rename Agent/Transmission.hs ErrorType -> AgentErrorType
* chore: move Protocol ErrorType -> Common SMPErrorType
* chore: rename Common -> Types
* chore: revert SMPErrorType -> ErrorType
2021-02-26 18:11:22 +04:00
Evgeny Poberezkin
70fe7616f2
Sending messages end to end ( #21 )
...
* duplex connection end-to-end (working, debug logs)
* agent: send, receive, acknowledge messages
* logging proposal
* logging: client/server (dis)connections
* agent scenario testing framework
* add tests, remove logs
* clean up
2021-02-26 18:11:22 +04:00
Evgeny Poberezkin
f3cd3eac58
add protocol version in TCP welcome
2020-12-30 18:50:50 +00:00
Evgeny Poberezkin
cdf8695bef
send NEW command to SMP server (response is not received for some reason...)
2020-12-29 20:51:09 +00:00
Evgeny Poberezkin
87f2c20ee4
type CorrelationId -> newtype CorrId (to avoid incorrect order in tuple)
2020-12-28 17:41:30 +00:00
Evgeny Poberezkin
7f1d3da202
refactor msgResp helper function
2020-12-28 16:24:58 +00:00
Evgeny Poberezkin
4b8f6417f8
add correlationId to SMP transmissions, fix tests
2020-12-28 13:55:53 +00:00
Evgeny Poberezkin
b234c0afee
started SMP agent
2020-12-25 16:46:18 +00:00
Evgeny Poberezkin
2ed24e683e
rename Config to ServerConfig
2020-12-25 16:46:17 +00:00
Evgeny Poberezkin
3cb2421373
move modules to folder Simplex.Messaging.Server
2020-11-22 18:22:20 +00:00