Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
number571 committed Oct 13, 2024
1 parent 0ffdd7b commit 5a80265
Show file tree
Hide file tree
Showing 649 changed files with 212,005 additions and 258,121 deletions.
13 changes: 3 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ _TEST_PPROF_PATH=./test/pprof
_CHECK_ERROR=if [ $$? != 0 ]; then exit 1; fi
_GO_TEST_LIST=\
go list ./... | \
grep -vsE '/cmd/' | \
grep -vsE '/examples/'

.PHONY: default \
Expand All @@ -26,17 +27,9 @@ _GO_TEST_LIST=\

default: lint-run test-run
build:
make -C ./cmd/service build
make -C ./cmd/composite build
make -C ./cmd/applications build
make -C ./cmd/helpers build
make -C ./cmd/adapters build
make -C ./cmd build
clean:
make -C ./cmd/service clean
make -C ./cmd/composite clean
make -C ./cmd/applications clean
make -C ./cmd/helpers clean
make -C ./cmd/adapters clean
make -C ./cmd clean

go-fmt-vet:
go fmt ./...
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The anonymous Hidden Lake network is an `abstract` network. This means that rega
4. If there is no message for the period T, then an `empty message` without a recipient is sent to the network,
5. Each participant `tries to decrypt` the message they received from the network.

<p align="center"><img src="cmd/service/images/hls_queue.jpg" alt="hls_queue.jpg"/></p>
<p align="center"><img src="cmd/hls/images/hls_queue.jpg" alt="hls_queue.jpg"/></p>
<p align="center">Figure 1. Queue and message generation in HLS.</p>

According to the interaction of nodes with each other, the Hidden Lake network scheme can be represented in the form of three layers: `network` (N), `friendly` (F), and `application` (A).
Expand Down Expand Up @@ -133,7 +133,7 @@ The anonymous Hidden Lake network is similar in the way it is used to client-sec

On the basis of this characteristic, methods of possible application also begin to be built:

1. Due to the property of abstracting from network communications, the anonymous Hidden Lake network can be `integrated` into any other network (including a centralized one) where group communication is possible. In such a case, the HL software implementation provides for the essence of [adapters](https://github.com/number571/hidden-lake/cmd/adapters) that must be able to adapt to a specific execution environment, hiding and obscuring the generated parasitic traffic,
1. Due to the property of abstracting from network communications, the anonymous Hidden Lake network can be `integrated` into any other network (including a centralized one) where group communication is possible. In such a case, the HL software implementation provides for the essence of [adapters](https://github.com/number571/hidden-lake/internal/adapters) that must be able to adapt to a specific execution environment, hiding and obscuring the generated parasitic traffic,
2. Due to the `theoretically provable anonymity` and independence of nodes among themselves in choosing the period of packet generation, the network can be used in military affairs, ensuring not only the confidentiality of transmitted data, but also the confidentiality of metadata in the face of the activity of actions,
3. The Hidden Lake network can be used as a `communication platform` for applications that are heterogeneous in nature. This is made possible by the `GP/12` protocol, which does not define any application use. As a result, you can create your own applications at several levels: either at the go-peer library level or at the HL services level ([example](https://github.com/number571/secpy-chat)),
4. Due to problems with scaling at the level of the `QB-problem` itself, the network is difficult to deploy in a global space, which nevertheless does not indicate a local field of action. Hidden Lake can protect `local networks` in a more efficient way due to the existence of small groups of participants that do not vary greatly in number. This may be a relevant solution in the context of the existence of critical areas of a local organization.
Expand All @@ -142,9 +142,9 @@ On the basis of this characteristic, methods of possible application also begin

Basic | Applied | Helpers
:-----------------------------:|:-----------------------------:|:------------------------------:
[HL Service](cmd/service) | [HL Messenger](cmd/applications/messenger) | [HL Traffic](cmd/helpers/traffic)
[HL Composite](cmd/composite) | [HL Filesharer](cmd/applications/filesharer) | [HL Loader](cmd/helpers/loader)
[HL Adapters](cmd/adapters) | [HL Remoter](cmd/applications/remoter) | [HL Encryptor](cmd/helpers/encryptor)
[HL Service](cmd/hls) | [HL Messenger](cmd/hlm) | [HL Traffic](cmd/hlt)
[HL Composite](cmd/hlc) | [HL Filesharer](cmd/hlf) | [HL Loader](cmd/hll)
[HL Adapters](cmd/hla) | [HL Remoter](cmd/hlr) | [HL Encryptor](cmd/hle)

## Possible launch modes

Expand Down Expand Up @@ -172,7 +172,7 @@ Launching an anonymous network is primarily the launch of an anonymizing HLS ser
### 1. Running from source code

```bash
$ go install github.com/number571/hidden-lake/cmd/service/cmd/hls@<tag-name>
$ go install github.com/number571/hidden-lake/cmd/hls@<tag-name>
$ hls
```

Expand Down
27 changes: 27 additions & 0 deletions cmd/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
N=1
GC=go build
ROOPATH=../
BINPATH=$(ROOPATH)/bin

.PHONY: default build clean

default: build
build:
for app in hls hlc hle hlt hll hlm hlf hlr; \
do \
$(GC) -o $(BINPATH)/$${app} ./$${app}; \
for arch in amd64 arm64; \
do \
for platform in linux windows darwin; \
do \
if [[ $$platform == "windows" ]] \
then \
CGO_ENABLED=0 GOOS=$${platform} GOARCH=$${arch} go build -o $(BINPATH)/$${app}_$${arch}_$${platform}.exe ./$${app}; \
else \
CGO_ENABLED=0 GOOS=$${platform} GOARCH=$${arch} go build -o $(BINPATH)/$${app}_$${arch}_$${platform} ./$${app}; \
fi; \
done; \
done; \
done;
clean:
make -C $(BINPATH) clean
8 changes: 0 additions & 8 deletions cmd/adapters/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/adapters/adapters_test.go

This file was deleted.

3 changes: 0 additions & 3 deletions cmd/adapters/chatingar/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/adapters/chatingar/cmd/chatingar/chatingar_test.go

This file was deleted.

3 changes: 0 additions & 3 deletions cmd/adapters/common/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/adapters/common/cmd/common/common_test.go

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/adapters/common/cmd/service/service_test.go

This file was deleted.

24 changes: 0 additions & 24 deletions cmd/applications/filesharer/Makefile

This file was deleted.

7 changes: 0 additions & 7 deletions cmd/applications/messenger/.gitignore

This file was deleted.

24 changes: 0 additions & 24 deletions cmd/applications/messenger/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/applications/remoter/.gitignore

This file was deleted.

24 changes: 0 additions & 24 deletions cmd/applications/remoter/Makefile

This file was deleted.

2 changes: 0 additions & 2 deletions cmd/composite/.gitignore

This file was deleted.

23 changes: 0 additions & 23 deletions cmd/composite/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/composite/cmd/hlc/hlc_test.go

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/helpers/encryptor/.gitignore

This file was deleted.

24 changes: 0 additions & 24 deletions cmd/helpers/encryptor/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/helpers/encryptor/cmd/hle/hle_test.go

This file was deleted.

24 changes: 0 additions & 24 deletions cmd/helpers/loader/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/helpers/loader/cmd/hll/hll_test.go

This file was deleted.

48 changes: 0 additions & 48 deletions cmd/helpers/loader/cmd/hll/main.go

This file was deleted.

7 changes: 0 additions & 7 deletions cmd/helpers/loader/pkg/app/init_pprof.go

This file was deleted.

4 changes: 0 additions & 4 deletions cmd/helpers/traffic/.gitignore

This file was deleted.

Loading

0 comments on commit 5a80265

Please sign in to comment.