A library providing an ACN (Anonymous Communication Network) abstraction and a tor (for now) implementation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Sarah Jamie Lewis dedcbdd3cb
continuous-integration/drone/push Build is pending Details
Merge pull request 'Fix errorAcn reference issues + add support for Tor specific shared library path' (#43) from tor-updates into master
5 days ago
testing drone use go 1.19.1 8 months ago
tor Fix errorAcn reference issues + add support for Tor specific shared library path 5 days ago
.drone.yml drone use go 1.19.1 8 months ago
.gitignore Fix errorAcn reference issues + add support for Tor specific shared library path 5 days ago
LICENSE import libricochet-go connectivity package as stand alone repo 3 years ago
README.md update readme 5 days ago
acn.go Get x Callbacks 10 months ago
error_acn.go Fix errorAcn reference issues + add support for Tor specific shared library path 5 days ago
go.mod Upgrade Bine 2 months ago
go.sum Upgrade Bine 2 months ago
localProvider.go Get x Callbacks 10 months ago
proxy_acn.go Get x Callbacks 10 months ago

README.md

connectivity

A library providing an ACN (Anonymous Communication Network ) networking abstraction

Supported ACNs

  • Tor v3 Onion Services

Environment Variables

  • TOR_LD_LIBRARY_PATH - override the library path given to the Tor process as different from the one given to the parent process.

Requirements for ACN Support

  • Reference an EndPoint via a string / hostname
  • Maintain an endpoint via a PublicKey (the underlying crypto is the responsibility of the implementation)

Using

Each ACN implementation provides a specific start function that takes in the required parameters to e.g. find a specific binary on the system, attempt to talk to a specific system service or launch an in-memory networking manager:

    acn, err := NewTorACN(".", "", 9051, HashedPasswordAuthenticator{"examplehasedpassword"})
    if err != nil {
        t.Error(err)
        return
    }

At this point the ACN is responsible for setting up the networking interface, the result of which can be checked via the Status callback:

    acn.SetStatusCallback(getStatusCallback(progChan))

    progress := 0
    for progress < 100 {
        progress = <-progChan
    }

Once initialized the ACN can be used to open new connections:

    conn,err := acn.Open(hostname);

Or host a service on the ACN:

    ls,err := acn.Listen(identity, port) ;

We also provide closing and restart functionality for managing the networking service:

    acn.Restart()

and

    acn.Close()