GithubHelp home page GithubHelp logo

libp2p-node's Introduction

libp2p-node

libp2p node

架构

libp2p + IPFS + Stable Diffusion

开发环境:

  • Windows: Go 1.21.6 (at least 1.19)

对外提供接口: Gin + Gorilla WebSocket

功能

  1. 节点发现 Discovery

  2. 节点连接 Connect

  3. NAT 穿越 NAT traversal

  4. 私有 DHT 网络

  5. 要有 Route 才能使用 PeerID 来连接,否则只能使用 /ip4/127.0.0.1/tcp/53724/p2p/<peer-id>

  6. 要支持 TCP/QUIC 协议,如果要支持从浏览器发起连接,需要支持 WebSocket 协议或者 WebRTC 协议。

  7. 要支持 Relay ,或者公网服务器上的节点自带 Relay 功能,否则家用电脑无法跨域 NAT 和防火墙。

编译和打包

编译:

  1. go mod tidy
  2. go build -o go-libp2p-tutorial.exe go-libp2p-tutorial\main.go

go build -o libp2p-address.exe app1\main.go go test -v -timeout 30s -count=1 -run TestPeerKey github.com/Jerry-se/libp2p-node/pkg/config

参考资料

libp2p-node's People

Contributors

jerry-se avatar ytvchsy avatar

Watchers

 avatar

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.