Anonymity and Security without compromise
About project
[!WARNING]
The go-peer package and the Hidden Lake anonymous network are under active development
. New versions may not be compatible with the old ones. As a result, it is necessary to use the latest release versions in order to keep up to date.
The go-peer
library contains a large number of functions necessary to ensure the security of transmitted or stored information, as well as for the anonymity of nodes in the decentralized form. The library can be divided into several main pkg
modules:
- The
crypto
module represents cryptographic primitives: 1) asymmetric encryption, decryption; 2) asymmetric signing and signature verification; 3) symmetric encryption and decryption; 4) hashing; 5) key building; 6) computational problems (puzzles); 7) cryptographically stable pseudorandom number generator.
- The
client
module for encrypting and decrypting information with the attached data integrity (hash) and authentication (signature). It is a basic part of the network/anonymity
module.
- The
network
module is a decentralized communication between network nodes. Allows you to delimit networks and give information a random appearance using the network key.
- The
network/anonymity
module to ensure anonymity based on the fifth^ stage. Presents the main functions for working with the network on top of the network
and network/anonymity/queue
modules.
- The
network/anonymity/queue
module represents the generation, storage and issuance of encrypted messages every time the period specified by the application is reached. Uses the client
, client/message
and network/message
modules.
- The
storage/database
module is a key-value
database with the functions of value encryption and key hashing.
Examples of works in the directory github.com/number571/go-peer/examples;
Coverage map
Installation
$ go get github.com/number571/go-peer
Requirements
- Go version
>= 1.16
Releases
All programs are compiled for {amd64
, arm64
} ARCH and {windows
, linux
, darwin
} OS as pattern = appname_arch_os
. In total, one application is compiled into six versions. The entire list of releases can be found here: github.com/number571/go-peer/releases.
- Windows (x86_64, arm64)
- Linux (x86_64, arm64)
- MacOS (x86_64, arm64)
Dependencies
[!IMPORTANT]
All dependencies are loaded into the go-peer project once using the go mod vendor
command (for the Go language) or simply by installing (for other languages) and saved in it. This is done for security purposes, provided that dependency creators can modify the code in older versions.
- Go library go.etcd.io/bbolt (used by
pkg/database
);
- Go library golang.org/x/net (used by
cmd/hidden_lake/applications/messenger
);
- Go library golang.org/x/crypto (used by
pkg/crypto/keybuilder
);
- Go library gopkg.in/yaml.v2 (used by
pkg/encoding
);
- Go library github.com/g8rswimmer/error-chain (used by
pkg/utils
);
- CSS/JS library getbootstrap.com (used by
cmd/hidden_lake/applications/messenger|filesharer
);
Makefile
There are a number of dependencies that represent separate applications for providing additional information about the quality of the code. These applications are not entered into the project, but are loaded via the make install-deps
command. The list of applications is as follows:
- golangci-lint github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.2
- go-cover-treemap github.com/nikolaydubina/go-cover-treemap@v1.4.2
Theoretical works
- Theory of the structure of hidden systems
- Monolithic cryptographic protocol
- Abstract anonymous networks
- Decentralized key exchange protocol
- The Hidden Lake anonymous network
Also, the composition of these works (without "The Hidden Lake anonymous network") can be found in the book The general theory of anonymous communications
(Ridero). This book can be purchased in a tangible form on the Ozon and Wildberries marketplaces. You can download the book in digital form for free here.
How can you help the project
- Find bugs, vulnerabilities, and errors in the code
- Suggest improvements, ask questions, create issues
- Create anonymizing nodes (HLS) in the Hidden Lake network
- Create new relay nodes (HLT) in the Hidden Lake network
- Append new theoretical works or update current
- Create new secure / anonymity applications
- Popularize technology and applications
Library based applications
1. Hidden Lake Service
github.com/number571/go-peer/cmd/hidden_lake/service
The Hidden Lake Service
is a core of an anonymous network with theoretically provable anonymity. HLS is based on the fifth^ stage
of anonymity and is an implementation of an abstract
anonymous network based on queues
. It is a peer-to-peer
network communication with trusted friend-to-friend
participants. All transmitted and received messages are in the form of end-to-end
encryption.
Features / Anonymity networks |
QB-networks (5^stage) |
EI-networks (6stage) |
DC-networks (1^stage) |
Theoretical provability |
+ |
+ |
+ |
Anonymity has a cumulative effect |
- |
+ |
- |
Ease of software implementation |
+ |
- |
- |
Polymorphism of information |
- |
+ |
+ |
Static communication delay |
+/- |
- |
+ |
Sending parallel messages |
- |
+ |
- |
Network scales easily |
- |
- |
- |
A feature of HLS (compared to many other anonymous networks) is its easy adaptation to a hostile centralized environment. Anonymity can be restored literally from one node in the network, even if it is the only point of failure.
More information about HLS in the hidden_lake_anonymous_network.pdf and here habr.com/ru/post/696504
How it works
Each network participant sets a message generation period for himself (the period can be a network constant for all system participants). When one cycle of the period ends and the next begins, each participant sends his encrypted message to all his connections (those in turn to all of their own, etc.). If there is no true message to send, then a pseudo message is generated (filled with random bytes) that looks like a normal encrypted one. The period property ensures the anonymity of the sender.
Figure 1. Queue and message generation in HLS.
Since the encrypted message does not disclose the recipient in any way, each network participant tries to decrypt the message with his private key. The true recipient is only the one who can decrypt the message. At the same time, the true recipient acts according to the protocol and further distributes the received packet, even knowing the meaninglessness of the subsequent dispatch. This property makes it impossible to determine the recipient.
Simple example of the client
package (encrypt/decrypt functions) in the directory github.com/number571/go-peer/pkg/client/examples;
Figure 2. Two participants are constantly generating messages for their periods on the network. It is impossible to determine their real activity.
Data exchange between network participants is carried out using application services. HLS has a dual role: 1) packages traffic from pure to anonymizing and vice versa; 2) converts external traffic to internal and vice versa. The second property is the redirection of traffic from the network to the local service and back.
Figure 3. Interaction of third-party services with the traffic anonymization service.
As shown in the figure above, HLS acts as an anonymizer and handlers of incoming and outgoing traffic. The remaining parts in the form of applications and services depend on third-party components (as an example, HLM
).
Minimum system requirements
- Processor:
1x2.2GHz
(limit of communication = ~5-10 nodes)
- Memory:
0.5GB RAM
(~250MB of memory can be consumed)
- Storage:
5Gib available space
(~3.5GiB the size of hashes per year from one node)
Build and run
Default build and run
$ cd ./cmd/hidden_lake/service
$ make build # create hls, hls_[arch=amd64,arm64]_[os=linux,windows,darwin] and copy to ./bin
$ make run # run ./bin/hls
> [INFO] 2023/06/03 14:32:40 HLS is running...
> [INFO] 2023/06/03 14:32:42 service=HLS type=BRDCS hash=43A5E9C5...BA73DF43 addr=211494E4...EEA12BBC proof=0000000002256145 conn=127.0.0.1:
> [INFO] 2023/06/03 14:32:47 service=HLS type=BRDCS hash=EFDDC1D4...C47588AD addr=211494E4...EEA12BBC proof=0000000000090086 conn=127.0.0.1:
> [INFO] 2023/06/03 14:32:52 service=HLS type=BRDCS hash=8549E257...EDEB2748 addr=211494E4...EEA12BBC proof=0000000000634328 conn=127.0.0.1:
> ...
Service was running with random private key. Open ports 9571
(TCP, traffic) and 9572
(HTTP, interface).
Creates ./hls.yml
and ./hls.db
files.
The file hls.db
stores hashes of sent/received messages.
Default config hls.yml
settings:
message_size_bytes: 8192
key_size_bits: 4096
fetch_timeout_ms: 60000
queue_period_ms: 5000
logging:
- info
- warn
- erro
address:
tcp: 127.0.0.1:9571
http: 127.0.0.1:9572
services:
hidden-lake-messenger:
host: 127.0.0.1:9592
Example
There are five nodes in the network send_hls
, recv_hls
and middle_hlt1
, middle_hlt2
, middle_hlt3
. The send_his
and recv_hls
nodes connects to middle_hlt1
, middle_hlt3
. As a result, a link of the form send_his <-> middle_hlt1 <-> middle_hlt2 <-> middle_hlt3 <-> recv_hls
is created. Due to the specifics of HLS, the centralized middle_hlt
nodes does not violate the security and anonymity of the send_hls
and recv_hls
subjects in any way.
The recv_hls
node contains its echo_service
, which performs the role of redirecting the request body back to the client as a response. Access to this service is carried out by its alias hidden-echo-service
, put forward by the recv_hls node.
...
// handle: "/echo"
// return format: {"echo":string,"return":int}
func echoPage(w http.ResponseWriter, r *http.Request) {
if r.Method != "POST" {
response(w, 2, "failed: incorrect method")
return
}
res, err := io.ReadAll(r.Body)
if err != nil {
response(w, 3, "failed: read body")
return
}
response(w, 1, string(res))
}
...
Identification between recv_hls
and send_hls
nodes is performed using public keys. This is the main method of identification and routing in the HLS network. IP addresses are only needed to connect to such a network and no more. Requests and responses structure are HEX encoded.
Structure of request. The body hello, world!
is encoded base64.
PUSH_FORMAT='{
"receiver":"Bob",
"req_data":{
"method":"POST",
"host":"hidden-echo-service",
"path":"/echo",
"body":"aGVsbG8sIHdvcmxkIQ=="
}
}';
Build and run nodes
$ cd examples/anonymity/echo_service/routing
$ make
Logs from one another connected node. When sending requests and receiving responses, another node does not see the action. For him, all actions and moments of inaction are equivalent.
Figure 4. Output of all actions and all received traffic from the middle_hls node.
Send request
$ cd examples/anonymity/echo_service
$ make request # go run ./_request/main.go
# OR
$ ./_request/request.sh
Get response
HTTP/1.1 200 OK
Date: Mon, 22 May 2023 18:18:34 GMT
Content-Length: 113
Content-Type: text/plain; charset=utf-8
{"code":200,"head":{"Content-Type":"application/json"},"body":"eyJlY2hvIjoiaGVsbG8sIHdvcmxkISIsInJldHVybiI6MX0K"}
Request took 8 seconds
Return code 200 is HTTP code = StatusOK. Decode base64 response body
echo "eyJlY2hvIjoiaGVsbG8sIHdvcmxkISIsInJldHVybiI6MX0K" | base64 -d
> {"echo":"hello, world!","return":1}
Figure 5. Example of running HLS with internal service.
Simple examples of the anonymity
package in the directory github.com/number571/go-peer/pkg/network/anonymity/examples;
⬆ back to top
2. Hidden Lake Messenger
github.com/number571/go-peer/cmd/hidden_lake/applications/messenger;
The Hidden Lake Messenger
is a messenger based on the core of an anonymous network with theoretically provable anonymity of HLS. A feature of this messenger is the provision of anonymity of the fact of transactions (sending, receiving).
HLM is an application that implements a graphical user interface (GUI) on a browser-based HTML/CSS/JS display. Most of the code is based on the bootstrap library https://getbootstrap.com /. GUI is adapted to the size of the window, so it can be used both in a desktop and in a smartphone.
More information about HLM in the habr.com/ru/post/701488
How it works
Most of the code is a call to API functions from the HLS kernel. Thanks to this approach, implicit authorization of users is formed from the state of the anonymizing service.
Figure 6. Example of chat room in HLM.
Build and run
Default build and run
$ cd ./cmd/hidden_lake/applications/messenger
$ make build # create hlm, hlm_[arch=amd64,arm64]_[os=linux,windows,darwin] and copy to ./bin
$ make run # run ./bin/hlm
> [INFO] 2023/06/03 15:30:31 HLM is running...
> ...
Open ports 9591
(HTTP, interface) and 9592
(HTTP, incoming).
Creates ./hlm.yml
and ./hlm.db
files.
The file hlm.db
stores all sent/received messages in encrypted view.
Default config hlm.yml
settings:
messages_capacity: 2048
logging:
- info
- warn
- erro
address:
interface: 127.0.0.1:9591
incoming: 127.0.0.1:9592
connection: 127.0.0.1:9572
Example
The example will involve (as well as in HLS) five nodes node1_hlm, node2_hlm
and middle_hlt_1, middle_hlt_2, middle_hlt_3
. The three HLT nodes are only needed for communication between node1_hlm
and node2_hlm
nodes. Each of the remaining ones is a combination of HLS and HLM, where HLM plays the role of an application and services (as it was depicted in Figure 3
HLS readme).
Build and run nodes
$ cd examples/anonymity/messenger/routing
$ make
The output of the middle_hls
node is similar to Figure 4
.
Than open browser on localhost:8080
. It is a node1_hlm
. This node is a Bob.
Figure 7. Home page of the HLM application.
To see the success of sending and receiving messages, you need to do all the same operations, but with localhost:7070
as node2_hlm
. This node will be Alice.
Figure 8. Log of the three nodes with request/response actions.
More example images about HLM pages in the github.com/number571/go-peer/cmd/hidden_lake/applications/messenger/_images
⬆ back to top
3. Hidden Lake Filesharer
github.com/number571/go-peer/cmd/hidden_lake/applications/filesharer;
The Hidden Lake Filesharer
is a file sharing service based on the Anonymous Network Core (HLS) with theoretically provable anonymity. A feature of this file sharing service is the anonymity of the fact of transactions (file downloads), taking into account the existence of a global observer.
HLF is an application that implements a graphical user interface (GUI) on a browser-based HTML/CSS/JS display. Most of the code is based on the bootstrap library https://getbootstrap.com/. GUI is adapted to the size of the window, so it can be used both in a desktop and in a smartphone.
More information about HLF in the habr.com/ru/articles/789968
How it works
Most of the code is a call to API functions from the HLS kernel. Thanks to this approach, implicit authorization of users is formed from the state of the anonymizing service.
Unlike applications such as HLS, HLT, and HLM, the HLF application does not have a database. Instead, the storage is used, represented by the usual hlf.stg
directory.
Figure 9. Example of download file in HLF (x2 speed).
File transfer is limited by the bandwidth of HLS itself. If we take into account that the packet generation period is 5 seconds
, then it will take about 10 seconds to complete the request-response cycle. HLS also limits the size of transmitted packets. If we assume that the limit is 8KiB
, taking into account the existing ~4KiB headers, then the transfer rate is defined as 4KiB/10s
or 410B/1s
.
Build and run
Default build and run
$ cd ./cmd/hidden_lake/applications/filesharer
$ make build # create hlf, hlf_[arch=amd64,arm64]_[os=linux,windows,darwin] and copy to ./bin
$ make run # run ./bin/hlf
> [INFO] 2023/06/03 15:30:31 HLF is running...
> ...
Open ports 9541
(HTTP, interface) and 9542
(HTTP, incoming).
Creates ./hlf.yml
and ./hlf.stg
files.
The directory hlf.stg
stores all shared/loaded files.
Default config hlf.yml
settings:
retry_num: 2
page_offset: 10
logging:
- info
- warn
- erro
address:
interface: 127.0.0.1:9541
incoming: 127.0.0.1:9542
connection: 127.0.0.1:9572
Example
The example will involve three nodes node1_hlf, node2_hlf
and middle_hlt_1, middle_hlt_2, middle_hlt3_
. Both nodes are a combination of HLS and HLF, where HLF plays the role of an application and services (as shown in Figure 3
of the HLS readme). The three remaining nodes are used only for the successful connection of the two main nodes. In other words, HLT nodes are traffic relay nodes.
Build and run nodes
$ cd examples/anonymity/filesharer/routing
$ make
Than open browser on localhost:8080
. It is a node1_hlf
. This node is a Alice.
Figure 10. Home page of the HLF application.
To see the another side of communication, you need to do all the same operations, but with localhost:7070
as node2_hlf
. This node will be Bob.
More example images about HLF pages in the github.com/number571/go-peer/cmd/hidden_lake/applications/filesharer/_images
⬆ back to top
4. Hidden Lake Remoter
github.com/number571/go-peer/cmd/hidden_lake/applications/remoter;
The Hidden Lake Remoter
this is a service that provides the ability to make remote calls on the anonymous network core (HLS) with theoretically provable anonymity.
[!CAUTION]
This application can be extremely dangerous if the F2F option is disabled in the HLS application or if a private key known to many is used. Use HLR with caution.
More information about HLR in the habr.com/ru/articles/830130
How it works
Most of the code is a call to API functions from the HLS kernel. Thanks to this approach, implicit authorization of users is formed from the state of the anonymizing service.
The server providing the remote access service is waiting for a request in the form of a command. The command does not depend on the operating system and therefore should have a small additional syntax separating the launch of the main command and its arguments.
As an example, to create a file with the contents of "hello, world!" and then reading from the same file, you will need to run the following command:
bash[@remoter-separator]-c[@remoter-separator]echo 'hello, world' > file.txt && cat file.txt
The [@remoter-separator]
label means that the arguments are separated for the main command.
Build and run
Default build and run
$ cd ./cmd/hidden_lake/applications/remoter
$ make build # create hlr, hlr_[arch=amd64,arm64]_[os=linux,windows,darwin] and copy to ./bin
$ make run # run ./bin/hlr
> [INFO] 2023/06/03 15:30:31 HLR is running...
> ...
Open port 9532
(HTTP, incoming).
Creates ./hlr.yml
file.
Default config hlr.yml
settings:
exec_timeout_ms: 5000
password: 4otg9sohTw8Lv8PheDZ7fOD5j5v5sU
logging:
- info
- warn
- erro
address:
incoming: 127.0.0.1:9532
Example
The example will involve three nodes recv_hlc, send_hls
and three repeaters middle_hlt_1, middle_hlt_2, middle_hlt3_
. The three remaining nodes are used only for the successful connection of the two main nodes. In other words, HLT nodes are traffic relay nodes.
Build and run nodes
$ cd examples/anonymity/remoter/routing
$ make
Than run command
$ cd examples/anonymity/remoter
$ make request # go run ./_request/main.go
Got response
{"code":200,"head":{"Content-Type":"application/octet-stream"},"body":"aGVsbG8sIHdvcmxkCg=="}
⬆ back to top
5. Hidden Lake Traffic
github.com/number571/go-peer/cmd/hidden_lake/helpers/traffic;
The Hidden Lake Traffic
is an application that saves traffic passed through HLS. The saved traffic can be used by other applications when they were offline. HLT provides an API for loading and unloading messages. Messages are stored in the database based on the "ring" structure. Thus, new messages will overwrite the old ones after some time.
More information about HLT in the habr.com/ru/post/717184
How it works
HLT emulates HLS to receive messages. In this scenario, HLT has only the functions of accepting messages, without the ability to generate or send them via HLS or independently.
Figure 11. Example of running HLT client.
Minimum system requirements
- Processor:
1x2.2GHz
(characteristic for relayer mode)
- Memory:
0.5GB RAM
(~200MB of memory is consumed in relayer mode)
- Storage:
20Gib available space
(the size of messages per day from one node in storage mode)
Build and run
Default build and run
$ cd ./cmd/hidden_lake/helpers/traffic
$ make build # create hlt, hlt_[arch=amd64,arm64]_[os=linux,windows,darwin] and copy to ./bin
$ make run # run ./bin/hlt
> [INFO] 2023/06/03 15:39:13 HLT is running...
> ...
Open ports 9581
(HTTP, interface).
Creates ./hlt.yml
and ./hlt.db
files.
The file hlm.db
stores all sent/received messages as structure ring
from network HL.
Default config hlt.yml
settings:
message_size_bytes: 8192
key_size_bits: 4096
messages_capacity: 2048
logging:
- info
- warn
- erro
address:
tcp: 127.0.0.1:9581
http: 127.0.0.1:9582
connections:
- 127.0.0.1:9571
Example
Build and run service
$ cd examples/traffic_actions/keeper
$ make
Run client
$ cd client
$ go run ./main.go w 'hello, world!'
$ go run ./main.go h
$ go run ./main.go r cb3c6558fe0cb64d0d2bad42dffc0f0d9b0f144bc24bb8f2ba06313af9297be4 # hash get by 'h' option
⬆ back to top
6. Hidden Lake Loader
github.com/number571/go-peer/cmd/hidden_lake/helpers/loader
The Hidden Lake Loader
is a smallest service of the Hidden Lake network applications. It is used to redirect traffic from HLT producers (storages) to HLT consumers. Previously, it was used as a component of HLM, and then HLS applications.
How it works
HLL uses the HLT service interface to download and upload messages. This property is necessary to redirect multiple messages to HLT once, and then to HLS services.
Figure 12. Architecture of HLL.
Build and run
Default build and run
$ cd ./cmd/hidden_lake/helpers/loader
$ make build # create hll, hll_[arch=amd64,arm64]_[os=linux,windows,darwin] and copy to ./bin
$ make run # run ./bin/hll
> [INFO] 2023/12/03 02:12:51 HLL is running...
> ...
Open ports 9561
(HTTP).
Creates ./hll.yml
file.
Default config hll.yml
settings:
messages_capacity: 2048
logging:
- info
- warn
- erro
address:
http: 127.0.0.1:9561
Example
In the example, two HLT services are created, where one is a message producer, the other a consumer. First, messages are entered into the manufacturer, then the HLL (message transportation) function is turned on, and at the end, the delivery of all previously entered messages is checked, but already on the consumer's side.
Figure 13. Example of running HLL service.
Build and run HLT services
$ cd examples/traffic_actions/loader
$ make
Run transfer
$ cd examples/traffic_actions/loader/client_hll
$ go run ./main.go
Get valid response
messages have been successfully transported
⬆ back to top
7. Hidden Lake Encryptor
github.com/number571/go-peer/cmd/hidden_lake/helpers/encryptor
The Hidden Lake Encryptor
is a small service of the Hidden Lake network applications. It is used to encrypt and decrypt HL type messages.
How it works
HLE uses the pkg/client
and pkg/network/message
packages. Encrypted messages can then be sent to HLT for storage and distribution.
Build and run
Default build and run
$ cd ./cmd/hidden_lake/helpers/encryptor
$ make build # create hle, hle_[arch=amd64,arm64]_[os=linux,windows,darwin] and copy to ./bin
$ make run # run ./bin/hle
> [INFO] 2023/12/22 11:03:47 HLE is running...
> ...
Open ports 9551
(HTTP).
Creates ./hle.yml
file.
Default config hle.yml
settings:
message_size_bytes: 8192
key_size_bits: 4096
logging:
- info
- warn
- erro
address:
http: 127.0.0.1:9551
Example
Build and run HLE service
$ cd examples/encryptor
$ make
Encrypt and decrypt message
$ cd examples/encryptor/client_hle
$ go run ./main.go e 'hello, world!'
> 264412546dc14805...1802b47342f074d
$ go run ./main.go d '264412546dc14805...1802b47342f074d'
> hello, world!
⬆ back to top
8. Hidden Lake Adapters
github.com/number571/go-peer/cmd/hidden_lake/adapters
The Hidden Lake Adapters
are a way to exchange data between multiple HLS processes via third-party services. Thus, there is no need to use your own computing resources in the face of individual servers to store or distribute the traffic generated by HLS.
More information about HLA in the habr.com/ru/post/720544
How it works
Adapters in their full execution represent one design template - "Flyweight". They are based on the composition of HLS and HLT processes.
Adapters adapt to the interfaces of the service for reading/writing data and, thanks to this, are able to conduct anonymizing traffic through the service.
Figure 14. Architecture of HLA.
Example
Since the adapters are capable of performing the same functions as the source programs, without secret communication channels, then all the examples become similar. So, let's analyze one of the examples based on the echo service.
Build and run nodes
$ cd examples/anonymity/echo_service/secret_channel
$ make
Send request
$ cd examples/anonymity/echo_service
$ ./request.sh
Get response
HTTP/1.1 200 OK
Date: Mon, 22 May 2023 18:18:34 GMT
Content-Length: 113
Content-Type: text/plain; charset=utf-8
{"code":200,"head":{"Content-Type":"application/json"},"body":"eyJlY2hvIjoiaGVsbG8sIHdvcmxkISIsInJldHVybiI6MX0K"}
Request took 8 seconds
There are no external differences, but there are internal ones. While the original model assumed the presence of a middle_hls node through which all traffic was broadcast, there is no such intermediate node in the model based on secret communication channels, there is a service that performs its own logical functions that are in no way tied to traffic anonymization. And, thus, adapters use a third-party service in order to pass traffic through it.
Figure 15. Example of running HLA client.
Similarly, you can use a more complex composition, as shown in the example examples/anonymity/messenger/secret_channel
.
⬆ back to top
9. Hidden Lake Composite
github.com/number571/go-peer/cmd/hidden_lake/composite
The Hidden Lake Composite
combines several HL type's services into one application using startup config.
How it works
The application HLC includes the download of all Hidden Lake services, and runs only the configurations selected by names in the file. The exact names of the services can be found in their pkg/settings/settings.go
configuration files.
Build and run
Default build and run
$ cd ./cmd/hidden_lake/composite
$ make build # create hlc, hlc_[arch=amd64,arm64]_[os=linux,windows,darwin] and copy to ./bin
$ make run # run ./bin/hlc
> [INFO] 2023/12/03 02:12:51 HLC is running...
> ...
Creates ./hlc.yml
file.
Default config hlc.yml
logging:
- info
- warn
- erro
services:
- hidden-lake-service
- hidden-lake-messenger
- hidden-lake-filesharer
⬆ back to top
Deprecated applications
Previously, some applications (such as HL, HLS, HES) were developed separately from the go-peer platform. Currently, these applications are outdated because they did not keep up with go-peer updates and were based on poor architectural solutions.
The difference between the old version of Hidden Lake and the new one is in the following details:
- The new version is based on a model of theoretically provable anonymity (QB networks), while the old version was based on onion routing
- The old version was a monolith, incorporating both transport logic, anonymizing, and applied. The new version is already based on the micro service architecture
- The new version is located inside the go-peer framework (in the cmd directory), while the old one used go-peer as a library
- The main anonymizing and transport functions in the new version of Hidden Lake (at the level of the go-peer framework) have been covered by tests and verified for security. In the old version, there were no tests at all
⬆ back to top
Star History
⬆ back to top
License
Licensed under the MIT License. See LICENSE for the full license text.