Coder Social home page Coder Social logo

go-onion-transport's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

shehackedyou

go-onion-transport's Issues

Is there a full example somewhere?

Thank you for extracting this out of the go-bazaar repo!

The example in the README file is helpful, but I can't figure out the correct dependency versions. The example spits many error when running with latest dependencies, or with older IPFS versions (0.5). Could you please share a reasonable go.mod file that's compatible with the readme example?

Thank you!

panic: no good addresses

I cannot get passed this error when trying to connect two peers. There is also ERROR go-libp2p-swarm swarm_listen.go accept tcp 127.0.0.1:43553: use of closed network connection. Everything appears fine before the connection, Tor starts and create a hidden service, libp2p gets an identity and everything, I get a multiadder like this: /onion3/6ymbnuuu3z3ertz47edmsinxffuf2ofhasfxe3uklsdlh7ncy6ssgiad:53038/p2p/12D3KooWJPnpEUe74qcsUUHm6edQzQhvdGHWMBw2rqoCXznUiz8y

So when getting to the connect part here it breaks:

addr, err := multiaddr.NewMultiaddr("/onion3/6ymbnuuu3z3ertz47edmsinxffuf2ofhasfxe3uklsdlh7ncy6ssgiad:53038/p2p/12D3KooWJPnpEUe74qcsUUHm6edQzQhvdGHWMBw2rqoCXznUiz8y")
    if err != nil {
        onionService.Close()
        torClient.Close()
        panic(err)
    }

    peer, err := peerstore.AddrInfoFromP2pAddr(addr)
    if err != nil {
        onionService.Close()
        torClient.Close()
        panic(err)
    }

    if err := peerHost.Connect(context.Background(), *peer); err != nil {
        onionService.Close()
        torClient.Close()
        panic(err)
    }

    fmt.Println("sending 5 ping messages to", addr)
    ch := pingService.Ping(context.Background(), peer.ID)
    for i := 0; i < 5; i++ {
        res := <-ch
        fmt.Println("pinged", addr, "in", res.RTT)
    }
    onionService.Close()
    torClient.Close()
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.