Commit Graph

1021 Commits

Author SHA1 Message Date
Dmitry Zuikov 9a2b9d8df7 introduced cookie to state db files
in order to make multi-repo work for single reference
and as a first step to join all states into one db
(here may be issues though)
2023-10-06 11:16:07 +03:00
Dmitry Zuikov 233c1445b1 introducing cookie 2023-10-06 09:30:48 +03:00
Dmitry Zuikov 78c99fcee4 new config location for hbs2-git
now it's under .hbs2 on the same level,
where .git/ directory is located.

migration should work automatically. probably.
2023-10-06 08:03:23 +03:00
Dmitry Zuikov 850354c529 done expose-all-new-rpc 2023-10-06 05:48:17 +03:00
Dmitry Zuikov f8421015ac todo 2023-10-06 05:00:11 +03:00
Dmitry Zuikov 5cd40a17dd StorageClient
... for RPC
2023-10-05 13:53:53 +03:00
Dmitry Zuikov 15d6a1d06f modular-rpc-api
1. Making the API modular
2. Running all via single socket, including storage
2023-10-05 11:54:36 +03:00
Dmitry Zuikov 2173f43bac fixed StorageAPI 2023-10-04 19:08:12 +03:00
Dmitry Zuikov 28163d0123 storage rpc 2023-10-04 16:52:25 +03:00
Dmitry Zuikov 613f26e418 moved to RPC2
New RPC works over a Unix socket and assumes synchronous
requests with callService.

A new protocol, 'ServiceProto,' is introduced.

New RPC operates over a Unix socket.

Note the setting: (rpc2 unix "/tmp/hbs2-rpc2.socket").

The default rpc2 socket is located at /tmp/hbs2-rpc2.socket.

In the future, TCP RPC may be introduced, requiring only:

1. Authorization/Authentication

This might be accomplished through another wrapped protocol, for instance.

"Dialog"-associated elements are commented out for now,
as they will likely require their own Unix socket.
2023-10-04 10:54:39 +03:00
Dmitry Zuikov 43bfbf3211 coc updated 2023-10-04 10:53:48 +03:00
Dmitry Zuikov eb449383a2 test-proto-service as test 2023-10-03 03:40:17 +03:00
Dmitry Zuikov 3c545b01fa service-protocol-proof-of-concept 2023-10-02 17:03:48 +03:00
Dmitry Zuikov 902125da75 unix sockets to support multiple clients 2023-10-01 09:51:27 +03:00
Dmitry Zuikov 00800e0867 todo 2023-10-01 09:51:09 +03:00
Dmitry Zuikov 4c1e111d92 todo 2023-09-28 08:45:52 +03:00
Dmitry Zuikov 9eff409b66 group-key-update 2023-09-27 12:43:16 +03:00
Dmitry Zuikov e22834f0f2 minor speedup 2023-09-27 11:24:56 +03:00
Dmitry Zuikov a3a5cf8f7f symm-group-encryption, schema changed
Accordingly to vulnerabilities review made by rblaze
2023-09-27 09:12:15 +03:00
Dmitry Zuikov 7572b3ffe9 symmetric, deterministic merkle-tree encryption
suckless-conf bumped
2023-09-26 18:19:33 +03:00
Dmitry Zuikov 0f0085d4b6 fix: hbs2-git. proper refval calculation
Now "git push --force" and "git push origing :branch" aka brancg
removing work.

Basing on "rank", where "rank" is a number
of transactions in reflog on  commit time,
It works, cause reflog is append-only and
transaction number is growing-only and there
is only one writer.

WARNING: you **must** move to this commit right now.
2023-09-22 07:05:39 +03:00
Dmitry Zuikov a205b8a093 refchan-qblf example: balance caching fix 2023-09-21 12:52:29 +03:00
Sergey Ivanov 6d0cce9729 raft ptotocol 2023-09-21 11:57:32 +03:00
Dmitry Zuikov 18255c55f5 anyref commands 2023-09-21 11:57:32 +03:00
Dmitry Zuikov 7856129853 refchan-qblf example: cached balance 2023-09-21 11:57:32 +03:00
Sergey Ivanov 609ecf6364 raft ptotocol 2023-09-21 11:57:32 +03:00
Sergey Ivanov 282490671e raft ptotocol 2023-09-21 08:40:05 +03:00
Dmitry Zuikov 09e070e38f merged 2023-09-21 08:40:05 +03:00
Dmitry Zuikov bd2c0e0367 fixing-cpu-burning-and-further-optimizations 2023-09-21 08:40:05 +03:00
Dmitry Zuikov 21b951aaf9 fixed oopsie 2023-09-21 08:40:05 +03:00
Dmitry Zuikov a980569ce4 qblf merged
- Requires testing and bugfixing
- Needs high CPU usage investigation (polling/packet flood?)
- Bundles are downloading repeatedly, that is weird
2023-09-21 08:40:05 +03:00
Dmitry Zuikov a5628a19ed bundle-basic-implementation 2023-09-21 08:39:59 +03:00
Sergey Ivanov 67892fca02 Update command `export` 2023-09-21 08:10:16 +03:00
Dmitry Zuikov 51597c58cb Revert "merged"
This reverts commit eeb2735c4dc10409ba996b37cf83ba2fb178d392.
2023-09-21 08:10:16 +03:00
Dmitry Zuikov bd3d677d84 merged 2023-09-21 08:10:16 +03:00
Dmitry Zuikov ea57e24963 Revert "raft protocol:"
This reverts commit ea8edc1feddc44d76171f2888bc3d76d86b799a7.
2023-09-21 08:10:16 +03:00
Sergey Ivanov 08c95bc9a9 Typelevel dialog server spec 2023-09-15 20:18:15 +04:00
Sergey Ivanov b22dc35283 Move encryption keys to ProxyMessaging
Change key for encryption key map from PeerData to EncryptionKeyIDKey

Test for quasidistributiveness of the encodeFrames

Move Dialog to HBS2.Net

Fixes with hlint:   hbs2-peer/app/PeerMain/DialogCliCommand.hs
2023-09-15 18:43:21 +04:00
Sergey Ivanov d86a973e2d raft ptotocol 2023-09-15 17:42:05 +04:00
Dmitry Zuikov 80278834b8 minor-fix: extracted SignedBox and code sweeped 2023-09-15 10:59:54 +03:00
Dmitry Zuikov 93137d8f4c minor-fix: extracted SignedBox and code sweeped 2023-09-15 09:43:05 +03:00
Dmitry Zuikov ed279f1d34 HPoqtobDAT implement-create-bundle 2023-09-14 11:04:56 +03:00
Sergey Ivanov 5ffb44ac49 Revert "test PR ADibgyhKo6 hbs2-git-config-location"
This reverts commit 5b5639fc2b.
2023-08-23 16:38:46 +04:00
Sergey Ivanov 3a04d7f0ab use native Exception.handle to respawn 2023-08-16 16:54:45 +04:00
Sergey Ivanov b7079c2915 Revert "PR CG2C18TK8v "account asyncs, respawn node on errors""
This reverts commit 8904704edc.
2023-08-16 16:50:16 +04:00
Dmitry Zuikov 5b5639fc2b test PR ADibgyhKo6 hbs2-git-config-location
Squashed commit of the following:

commit a2652dfcb84e6318edbfd470284999ac55058a59
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Tue Aug 15 09:40:08 2023 +0300

    Fix: create ".hbs2-git" dir if missing

commit 5c76f287b457e1bf7199631b0035c541c44a0d3b
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Mon Aug 14 17:08:15 2023 +0300

    fixme

commit 721bed688408a02fb3e7bf9e9ea70fad73f2f665
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Mon Aug 14 17:07:21 2023 +0300

    PR

commit 82d5a30f4510b3f70bfbf2bc208b14df4ce2b17d
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Mon Aug 14 17:01:09 2023 +0300

    Changed hbs2-git config file location, refactoring

commit 84b0e7024afaaa892842b36b0d6691c9cb348ce1
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Mon Aug 14 16:46:31 2023 +0300

    Fix warnings

commit 916436fed8ee6c8f2eb25dd24acc5f616e5e31a0
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Wed Aug 9 17:04:34 2023 +0300

    Fix warnings
2023-08-15 10:20:52 +03:00
Dmitry Zuikov 1af58af2d6 fixme 2023-08-11 06:12:31 +03:00
Dmitry Zuikov 8904704edc PR CG2C18TK8v "account asyncs, respawn node on errors" 2023-08-11 06:10:09 +03:00
Dmitry Zuikov 40ba5fca68 RefLogKey moved to HBS2.Net.Proto.RefLog...
... since it is just one of many possible refs
2023-08-10 05:50:39 +03:00
Dmitry Zuikov 7274c6ceeb current refchan-notify and multiple fixes 2023-07-31 13:56:33 +03:00