Commit Graph

511 Commits

Author SHA1 Message Date
Dmitry Zuikov 557e0f1b90 hbs2 metadata create preformance fix 2024-06-17 06:34:38 +03:00
Dmitry Zuikov 26a023d60d hbs2-peer refchan cat && hbs2-peer reflog cat 2024-04-09 12:04:13 +03:00
Dmitry Zuikov d2082de4bf patch 0.24.1.1 2024-04-02 06:39:50 +03:00
Dmitry Zuikov da6bb6bcb4 0.24.1 2024-03-20 08:17:22 +03:00
Dmitry Zuikov e9c7c9dbae merged new download and some intermediate changes 2024-03-06 16:10:24 +03:00
Dmitry Zuikov cc7f2dd948 download fixes 2024-02-21 05:55:13 +03:00
Dmitry Zuikov a45cbbd575 fix? 2024-02-14 12:53:37 +03:00
Dmitry Zuikov 802609200e wtf 2024-02-14 12:22:42 +03:00
Dmitry Zuikov 83b4d8bff8 boosted download 2024-02-14 12:02:03 +03:00
Dmitry Zuikov f049f36d42 tuning tree params 2024-02-07 17:13:29 +03:00
Dmitry Zuikov 656933720b tree parameters optimization 2024-02-07 13:52:21 +03:00
Dmitry Zuikov e6ae5fb593 version command
commit 9df07ae34a6d1c7f53cee3abe2304ff81eb0a26c
Author: Sergey Ivanov <ivanovs-4@yandex.ru>
Date:   Tue Oct 24 22:25:34 2023 +0400

    `version` command for hbs2, hbs2-peer, git-hbs2
2024-01-28 07:52:08 +03:00
Dmitry Zuikov 00a316b786 basic hbs2-share 2024-01-07 10:01:12 +03:00
Dmitry Zuikov 835a0322e0 refchan refactoring 2023-12-28 06:21:57 +03:00
Dmitry Zuikov 5820b808c5 refactor: removing Proxy in HasDeferred 2023-12-27 06:48:18 +03:00
Dmitry Zuikov f0d469766e small-encrypted-block wip 2023-12-26 07:34:23 +03:00
Dmitry Zuikov 09f9eed01f basic key manager 2023-12-23 07:25:54 +03:00
Dmitry Zuikov 2ef2bb493c collect own messages in rechannotify log 2023-12-20 06:48:29 +03:00
Dmitry Zuikov 24272ad4d9 refchannotify log 2023-12-20 05:54:13 +03:00
Dmitry Zuikov 18bb821dfd timestamp-to-refchan-accept 2023-12-16 07:28:51 +03:00
Dmitry Zuikov f3a4082099 new encryption format 2023-12-01 10:59:07 +03:00
Dmitry Zuikov be55aa55e7 fixme 2023-11-28 07:00:17 +03:00
Dmitry Zuikov cd1b6ddf77 minor fix 2023-11-24 06:19:01 +03:00
Dmitry Zuikov 79efb093bf refchan head with reades
- added readers field into refchan  head

 - introduced "sigil" PUBLIC artefact (sign-pk, (encrypt-pk, metadata))

 - partial ccompatibility (new version reads older heads,
   old version wan't read new heads with readers (but will read new heads
   without readers)

 - RefChanHeadBlockSmall is to delete in nearest future

 - RefChanHeadBlock1 is to be a single RefChanHeadBlock

 - Yes, absense of readers initially was a fuckup

 - Object's versioning approaches are in their way of
   tries and failes
2023-11-24 05:35:47 +03:00
Dmitry Zuikov acd36a513c polling-to-separate-module 2023-11-12 07:43:47 +03:00
Dmitry Zuikov 1fb6ba8df4 Squashed commit of the following:
commit ce28d07e466a60336decf27cfb19d589ba7f4009
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Fri Nov 3 19:36:33 2023 +0300

    Fixme

commit 74aad5cf91261a279e5f8f238f9abb5d6b834c8d
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Fri Nov 3 19:35:48 2023 +0300

    PR edit

commit aa391ccdb3684311ec04905d03d9d6e405427f81
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Fri Nov 3 19:26:50 2023 +0300

    Fix

commit ce99526f417de3c9795cae23307a3503ed5bf3fd
Merge: c25e65ea 88df87a1
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Fri Nov 3 19:03:09 2023 +0300

    Merge remote-tracking branch 'origin/master' into fastpok-file-logger

commit c25e65ea1a7858881746191c554e03752a612e58
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Fri Nov 3 19:01:35 2023 +0300

    Fixme

commit 347f0ef7a54791d6f6d9059c89f0fd1be8529772
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Fri Nov 3 18:59:58 2023 +0300

    PR

commit 0903e591c76774cd9255911e4b1aebdda8f6763d
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Fri Nov 3 17:54:09 2023 +0300

    Add ANSI styles to logger

commit e2e64c3e7118b4304d578b3d4a1adb8e457664a5
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Mon Oct 30 22:57:54 2023 +0300

    Set default logger to stdout

commit 22d437a4e9ab805c86efd0af61cbe29459386d72
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Mon Oct 30 16:14:19 2023 +0300

    Fixme

commit dc8bad7053635ba6899ab1db070486384467bda7
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Mon Oct 30 16:13:03 2023 +0300

    PR

commit c632d70886fc1f6368a39d4eb9d243c5b2c796c9
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Mon Oct 30 16:08:58 2023 +0300

    Reuse logger sets

commit 08aaa6c782b933c4e8ed79857382727ed4b6b4a5
Merge: d3c783bd eab3175d
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Mon Oct 30 16:08:15 2023 +0300

    Merge remote-tracking branch 'origin/master' into fastpok-file-logger

commit d3c783bd0db86ea6f46fb7143e42749d694b4304
Author: Vladimir Krutkin <krutkinvs@gmail.com>
Date:   Thu Oct 12 14:01:13 2023 +0300

    test
2023-11-08 14:43:35 +03:00
Dmitry Zuikov 002ecf7b3e merged notify-proto-debug fixes 2023-11-06 08:56:10 +03:00
Dmitry Zuikov 35905b94bd Notify proto + wiping resource-t in Messaging/Unix 2023-11-03 16:49:29 +03:00
Dmitry Zuikov 88df87a1d5 test-notify moved to hbs2-tests 2023-10-31 07:58:04 +03:00
Dmitry Zuikov 41ace9c87b Notify protocol 2023-10-31 07:33:29 +03:00
Dmitry Zuikov eab3175d52 fixed minor possible leak on callService 2023-10-29 07:46:15 +03:00
Dmitry Zuikov 9440b20753 fixme 2023-10-26 16:51:03 +03:00
Dmitry Zuikov 93a3be5a1f process-only-subscribed-reflogs 2023-10-26 10:30:29 +03:00
Dmitry Zuikov 58d0e9d256 experimental SOCKS5 support
- no authorization supported (bad for network-tcp-simple)
2023-10-26 09:10:41 +03:00
Dmitry Zuikov 0a55f1a732 optional messagings (TCP, UDP) + watchdog 2023-10-26 06:18:27 +03:00
Dmitry Zuikov 6ba53303f5 todo 2023-10-25 09:53:11 +03:00
Dmitry Zuikov f4c35c5f59 todo 2023-10-25 09:45:19 +03:00
Dmitry Zuikov de3000e1ae misc debug info 2023-10-25 09:39:33 +03:00
Dmitry Zuikov 67d2de563a misc debug info 2023-10-25 09:23:38 +03:00
Dmitry Zuikov c44a6b997b new protocol encryption + minor tuning 2023-10-25 09:01:23 +03:00
Dmitry Zuikov 0f69757813 multiple PEX fixes 2023-10-21 08:58:31 +03:00
Dmitry Zuikov 66ce6a659d Revert "faster-download-start"
This reverts commit 351ac97d44.
2023-10-20 21:28:18 +03:00
Dmitry Zuikov 351ac97d44 faster-download-start 2023-10-20 15:53:37 +03:00
Dmitry Zuikov 98e589fe6f fixed-block-download-control 2023-10-20 11:16:11 +03:00
Dmitry Zuikov 0f0eb2a494 fix(?) findMissedBlocks 2023-10-20 06:37:23 +03:00
Dmitry Zuikov efe9d2940a fix(?) walkTree for MerkleAnn 2023-10-20 06:07:01 +03:00
Dmitry Zuikov 6336a69252 minor fix + todo 2023-10-19 10:57:39 +03:00
Dmitry Zuikov 328275d14e bugfixes 2023-10-18 17:06:43 +03:00
Dmitry Zuikov 27e2a6f761 fixed (?) wtf 2023-10-18 16:02:32 +03:00
Dmitry Zuikov a1bbc634f4 QBLF regression fixed
Multi-client unix socket failure
2023-10-18 15:14:32 +03:00
Dmitry Zuikov 29fdd23602 fixed reflog sync bug 2023-10-18 10:16:11 +03:00
Dmitry Zuikov 246518cd34 ghc 9.4.6 2023-10-16 06:13:27 +03:00
Dmitry Zuikov d3c63ab8e4 accept reflogupdate only for subcribed refs or from friendly peers 2023-10-15 09:26:49 +03:00
Dmitry Zuikov 3bccfa2e98 minor refactoring 2023-10-15 09:01:45 +03:00
Vladimir Krutkin e411e29246 Add file logger 2023-10-12 12:54:56 +03:00
Dmitry Zuikov c829a6d37c group-keys / repository-encryption to test 2023-10-12 09:58:13 +03:00
Dmitry Zuikov 8842843ffb hbs2-git-to-new-rpc 2023-10-07 14:29:40 +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 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 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 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 a205b8a093 refchan-qblf example: balance caching fix 2023-09-21 12:52:29 +03:00
Dmitry Zuikov 7856129853 refchan-qblf example: cached balance 2023-09-21 11:57:32 +03:00
Dmitry Zuikov 09e070e38f merged 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
Dmitry Zuikov 51597c58cb Revert "merged"
This reverts commit eeb2735c4dc10409ba996b37cf83ba2fb178d392.
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
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 b7079c2915 Revert "PR CG2C18TK8v "account asyncs, respawn node on errors""
This reverts commit 8904704edc.
2023-08-16 16:50:16 +04: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
Dmitry Zuikov 71e325f8bc PR 3nmxU5Ro8b dialog-proto 2023-07-28 15:36:50 +03:00
Dmitry Zuikov 42309096e1 reduced noise in log 2023-07-27 11:21:15 +03:00
Dmitry Zuikov c52be7cf5e merged PR 8ey8Fnr4c4 remove-lref-commands 2023-07-27 10:00:01 +03:00
Dmitry Zuikov 8c9ea8408c wip, refchans+encryption, dev 2023-07-27 08:35:35 +03:00
Dmitry Zuikov 97f1bd2f8a added refchan-notify skeleton 2023-07-27 07:14:07 +03:00
Sergey Ivanov c60a0b4696 update after merge 2023-07-26 21:14:41 +04:00
Sergey Ivanov 75f03b9c95 Merge iv/integrate-encryption-test-dev2 into refchan-merge-2 (using imerge) 2023-07-25 16:11:47 +04:00
Dmitry Zuikov 23500ed822 ip, log merging, debug-30 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 29d12e7b4d wip, log merging, debug-23 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 308a0ce833 wip, log merging, debug-22 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 40f05a0051 wip, log merging, debug-21 2023-07-25 12:27:43 +03:00
Dmitry Zuikov a73c2c4659 wip, log merging, debug-20 2023-07-25 12:27:43 +03:00
Dmitry Zuikov baf0d6e3b6 wip, log merging, debug-18 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 9981d457e0 wip, log merging, debug-17 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 796a5a6f54 wip, log merging, debug-16 2023-07-25 12:27:43 +03:00
Dmitry Zuikov e1725987c9 wip, log merging, debug-14 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 003fc43cc1 wip, log merging, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 84c74c3b4f wip, log merging 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 126994720f wip, refchanrequest events 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 819cec6402 wip, refchanget proto skeleton, no log merge 2023-07-25 12:27:43 +03:00
Dmitry Zuikov d2141c304b wip, minor refactoring, before refchanget proto 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 204de9afc6 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 6dc3fc91f5 wip, wtf 2 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 6e690d038e wip, wtf 2023-07-25 12:27:43 +03:00
Dmitry Zuikov c28f5dee50 wip, cleanup round data 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 01c435ac5f wip, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 54da5a6530 wip, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 55679307f7 wip, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 3c46a14aa5 wip, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov d7a4d5cdf2 wip, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov a1f16efec3 wip, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 73d0fc6162 wip, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 7e1c115056 wip, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 9e68723fe3 wip, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 940248e99b wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 66d7444198 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 609551b43e wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 697c79133e wip, renamed some stuff 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 758efdd455 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 264f6842af wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 33478cdebd wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov e53c9fa995 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov f50aa24b4b wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov bb32e8b97c wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 7bd79453a6 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov ee934740ab wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 2d7a760a4c wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 95bcda9d8e wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 3e1b3917ee wip, receiving accept message 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 8b5d4522da wip, emitting accept message 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 2bb5b83eb9 wip, emitting accept message 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 07003409c3 wip, introduced typeclass for gossip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 3c10aad828 wip, hunting typeable-e-error 2023-07-25 12:27:43 +03:00
Dmitry Zuikov b304a514d7 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 5b052e8a56 wip, minor refactoring 2023-07-25 12:27:43 +03:00
Dmitry Zuikov bc39601fbc very basic acls work 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 781c9ded4b very basic acls work 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 51d03f2265 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 5689576368 wip, trying to gen transaction 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 075a28d9bf got rid of Block ByteString everywhere 2023-07-25 12:27:43 +03:00
Dmitry Zuikov e4c759a49d feed-up-with-block-bytestring 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 39c0ca71cc wip, polling function 2023-07-25 12:27:43 +03:00
Dmitry Zuikov e71ff57773 wip, tryin to fetch refchan head 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 8e567c87d0 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 0e1959dfe5 wip, tryin to fetch refchan head 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 42be590baa wip, respect only polled refchans 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 476ecddb6d wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov e68ee36429 wip 2023-07-25 12:27:43 +03:00