Skip to content

number571/hidden-echo-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hidden-echo-service

Example of simple application in the «Hidden Lake» anonymity network. The configuration file of the production environment is used.

Download HLS

$ wget https://github.com/number571/hidden-lake/releases/latest/download/hlc_amd64_linux && \
    mv hlc_amd64_linux hlc && \
    chmod +x hlc && \
    cp hlc client/hlc

Running

Terminal 1 (running echo-service):

$ go run ./main.go

Terminal 2 (running HLC service-node):

$ ./hlc

Terminal 3 (running HLC client-node):

$ cd client && ./hlc

Request

Do request:

curl -i -X POST http://localhost:9532/api/network/request --data '{
    "receiver":"service-node",
    "req_data":{
        "method":"POST",
        "host":"hidden-echo-service",
        "path":"/echo",
        "body":"aGVsbG8sIHdvcmxkIQ=="
    }
}'

Get response:

HTTP/1.1 200 OK
Content-Type: text/plain
Date: Sun, 04 Aug 2024 09:59:50 GMT
Content-Length: 102

{"code":200,"head":{"Content-Type":"text/plain; charset=utf-8"},"body":"ZWNobyhoZWxsbywgd29ybGQhKQ=="}
echo "ZWNobyhoZWxsbywgd29ybGQhKQ==" | base64 -d
# echo(hello, world!)

About

Example of simple app in the «Hidden Lake» anonymous network

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages