cpacia / go-onion-transport Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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!
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()
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.