Commit Graph

31 Commits

Author SHA1 Message Date
Ravin Perera
cb364cc420 Compilation time improvements. (#52)
* Precompiled header for all common library headers (with cmake 3.16rc3).
* Divided cmake build into shared libraries.
* Added gold linker support.
* Separated websockets lambda expressions to an independent file.
2019-11-02 14:46:21 +05:30
Asanka Indrajith
b598025346 Loading and saving ledger and lcl consensus. (#51)
* Ledger saving, loading, consensus with ledger sequence number.
* std terminate exception handler.
2019-11-01 15:21:25 +05:30
Ravin Perera
a51ec4a030 Restructured user message handling. 2019-10-31 14:23:01 +05:30
Asanka Indrajith
d6acee4e09 Basic consensus implementation (#45)
Consensus for user connections, user inputs, contract outputs and time.
2019-10-26 11:46:32 -04:00
Ravin Perera
b4237f1285 Added npl channel to contract process. 2019-10-21 19:25:45 +05:30
Asanka Indrajith
7ed1466ad9 p2p connection, message handling, validation and serialization (#38)
Implement basic peer to peer connection establishment and maintenance.
Message serialization and parsing using FlatBuffer(Including defining message schema).
Validating incoming proposal messages.
2019-10-21 08:32:25 -04:00
Ravin Perera
f77dae2f28 Added file log. 2019-10-21 14:01:16 +05:30
Ravin Perera
2d5d8960c0 Boost log integration. (#37) 2019-10-20 21:45:59 +05:30
Ravin Perera
fb236d44be Implemented hp-sc comm channel. (#32) 2019-10-17 16:06:35 +05:30
Ravin Perera
7c068ecb85 Enabled -fno-exceptions 2019-10-17 11:16:37 +05:30
Ravin Perera
8a22748c8d Implemented sending contract output back to the user. 2019-10-16 19:23:19 +05:30
Ravin Perera
8b003aeaa2 Switched to binary pubkeys from base64 for internal user data (#29)
* String copy optmisations.
* User pubkey binary.
2019-10-16 06:45:49 +05:30
Ravin Perera
db99d94902 vmsplice and other optmizations for user pipes I/O (#28) 2019-10-15 23:26:22 +05:30
Ravin Perera
ebf13209e1 Code consistency improvements (#21)
Fully-qualified namespace accessors
Updated function out param order
reinterpret_cast
2019-10-11 20:08:53 +05:30
Ravin Perera
f64cdc6ad0 Implemented user connection challenge handshake (#20)
Implemented user connection challenge handshake.
Optimized user challenge message processing.
2019-10-11 17:29:45 +05:30
Ravidu Lashan
11489de7a1 Fixed issue in node client closing the connection (#16)
* Fixed timeout issue of client

* Fixed issue in node client

* Removed unused files
2019-10-10 13:08:46 +05:30
Ravin Perera
d8581f7ce9 General code optmisations and cleanup. (#15)
Updated `version_compare` based on this issue: #13 
Got rid of `replace_string_contents` helper func.
Replaced #define macros with static consts.
Moved comments from headers to source files.
2019-10-10 12:57:46 +05:30
Ravin Perera
374424f98f Code comments and consistency improvements. (#12) 2019-10-09 22:26:08 +05:30
Ravidu Lashan
ab06c272d3 Websocket initial implementation (#9)
* Added listener and session classes.

* Added client session class.

* Fixed minor code issues.

* Initial server implementation p2p connection

* Added a seperate thread to run the two servers

* Implemented basic web socket architecture

* Implemented basic peer to peer socket network

* Added a sample message

* Initial socket architecture completed

* Improved code readability

* Improved comments
2019-10-09 14:31:20 +05:30
Ravin Perera
22a140c543 Added npl fields to the contract input. (#7)
* Added npl fields to the contract input.
* Made parameter passing optimisations.
2019-10-07 10:59:34 +05:30
Ravin Perera
d1d59ddf63 Refactored conf and crypto namespaces. 2019-10-05 09:42:47 +05:30
Ravin Perera
e109e1be47 Improved contract loading validation. 2019-10-04 17:02:17 +05:30
Ravin Perera
8c8793da21 Added user challenge generation and verification. 2019-10-04 15:12:46 +05:30
Ravin Perera
e3c1f85034 Reogranised usr files and updated readme. 2019-10-03 18:21:46 +05:30
Ravin Perera
1e855bf1b2 Added user list sub system. 2019-10-03 17:35:43 +05:30
Ravin Perera
0fecafe52e Added contract process execution functions. (#6) 2019-10-03 11:53:30 +05:30
Ravin Perera
5003e1b898 Added version compatibility infrstructure. 2019-09-29 09:04:44 +05:30
Ravin Perera
1a8672b656 Added base64 sign/verify methods. 2019-09-27 17:17:54 +05:30
Ravin Perera
36fae44008 Added contract-based config file. (#4)
Added contract-based config file and command line flow. Added contract creation and rekey support.
2019-09-27 15:55:49 +05:30
Ravin Perera
0382475de1 Implemented config and crypto infrastructure (#2)
Added config file read/write infrastructure with RapidJSON.
Added key pair generation and sign/verify helper with libsodium.
2019-09-26 19:05:23 +05:30
Richard Holland
2b8b9dd267 inital commit 2019-09-24 15:01:44 +10:00