go-colla-node

所属分类:Web3.0
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2023-08-17 20:21:01
上 传 者sh-1993
说明:  Colla网络的主干——一个不可阻挡的Web3去中心化对等通信和存储网络。,
(The backbone of the Colla Network - an unstoppable Web3 decentralized peer-to- peer communication and storage network.,)

文件列表:
.idea/ (0, 2023-12-31)
.idea/go-colla-node.iml (322, 2023-12-31)
.idea/modules.xml (278, 2023-12-31)
.idea/vcs.xml (180, 2023-12-31)
LICENSE (34523, 2023-12-31)
conf/ (0, 2023-12-31)
conf/camsi-server-ec.crt (912, 2023-12-31)
conf/camsi-server-ec.key (359, 2023-12-31)
conf/ed25519_private_key.pem (64, 2023-12-31)
conf/ed25519_public_key.pem (32, 2023-12-31)
conf/peer1.yml (2066, 2023-12-31)
conf/pushSetting.json (627, 2023-12-31)
consensus/ (0, 2023-12-31)
consensus/action/ (0, 2023-12-31)
consensus/action/consensus.go (2159, 2023-12-31)
consensus/default.go (5397, 2023-12-31)
consensus/pbft/ (0, 2023-12-31)
consensus/pbft/default.go (16807, 2023-12-31)
consensus/raft/ (0, 2023-12-31)
consensus/raft/default.go (16029, 2023-12-31)
consensus/std/ (0, 2023-12-31)
consensus/std/default.go (8887, 2023-12-31)
go.mod (11806, 2023-12-31)
go.sum (141889, 2023-12-31)
libp2p/ (0, 2023-12-31)
libp2p/bootstrap.go (3524, 2023-12-31)
libp2p/connmgr.go (2901, 2023-12-31)
libp2p/datastore/ (0, 2023-12-31)
libp2p/datastore/elastic/ (0, 2023-12-31)
libp2p/datastore/elastic/elastic.go (1707, 2023-12-31)
libp2p/datastore/handler/ (0, 2023-12-31)
libp2p/datastore/handler/default.go (691, 2023-12-31)
libp2p/datastore/handler/dispatch.go (5102, 2023-12-31)
libp2p/datastore/xorm/ (0, 2023-12-31)
libp2p/datastore/xorm/default.go (23134, 2023-12-31)
libp2p/default.go (21255, 2023-12-31)
libp2p/dht.go (15294, 2023-12-31)
libp2p/dht/ (0, 2023-12-31)
... ...

### The backbone of the Colla Network - an unstoppable Web3 decentralized peer-to-peer communication and storage network. [![use](https://img.shields.io/badge/use-go--libp2p-yellowgreen.svg)](https://github.com/libp2p/go-libp2p) [![use](https://img.shields.io/badge/use-go--ipfs-blue.svg)](https://github.com/ipfs/go-ipfs) [![use](https://img.shields.io/badge/use-pion-red.svg)](https://github.com/pion) # Table of Contents - [Introduction](#introduction) - [Build](#Build) - [Installation](#installation) - [License](#license) # Introduction Colla Network is an unstoppable Web3 decentralized peer-to-peer communication and storage network, Colla DApp (e.g. [CollaChat](https://github.com/curltech/collachat)) connects to it via Colla Node. There is no centralized storage and control of user data, users can specify which Node(s) or even easily setup own Node(s) to connect to. Learn more at https://curltech.io/#/collachat/. # Build ## Optimized Settings It's recommended to optimize following settings before building your own executable file: No | Package | File | Default Setting | Recommended Setting ---- | ----- | ------ | ----- | ------ 1 | go-mplex@v0.7.0 | multiplex.go | MaxMessageSize = 1 << 20, BufferSize = 4096 | MaxMessageSize = 1 << 30, BufferSize = 1 << 20 2 | go-libp2p-kad-dht@v0.15.0 | internal\net\massage_manager.go | var dhtReadMessageTimeout = 10 * time.Second | var dhtReadMessageTimeout = 300 * time.Second 3 | go-libp2p-core@v0.15.1 | network\network.go | const MessageSizeMax = 1 << 22 | const MessageSizeMax = 1 << 30 4 | go-msgio@v0.2.0 | msgio.go | defaultMaxSize = 8 * 1024 * 1024 | defaultMaxSize = 1024 * 1024 * 1024 # Installation Get ready your server, domain and certificate first. You may rent a cloud server from CSP (or try on from a free instance), buy a domain or get a free one, use [ACME](https://github.com/acmesh-official/acme.sh) to automatically issue & renew the free certificates from Let's Encrypt. ## Tested OS No | OS | Version and Spec. ---- | ----- | ------ 1 | Ubuntu | 16.04/18.04/20.04, minimal 1vCPUs + 1GiB 2 | Windows | Windows Server 2016 ## Linux 1. Download and uncompress ``` azureuser@myVM:~$ sudo wget https://github.com/curltech/go-colla-node/releases/download/v0.0.3/go-colla-node-linux-0.0.3.tar.gz azureuser@myVM:~$ sudo tar zxvf go-colla-node-linux-0.0.3.tar.gz ``` 2. Configure and run ``` azureuser@myVM:~$ cd go-colla-node azureuser@myVM:~/go-colla-node$ vi conf/peer1.yml azureuser@myVM:~/go-colla-node$ ./main (or ./main -appname peer1) ``` 3. Use custom node in Colla DApp (e.g. [CollaChat](https://github.com/curltech/collachat)) ``` azureuser@myVM:~/go-colla-node$ sqlite3 peer1.db sqlite> select discoveryaddress from blc_myselfpeer; /dns4/peer1.curltech.cc/tcp/5720/wss/p2p/12D3KooWNwQ9pHZzmfjk8rZp4a1k5gXhibKxZMBdkdg1mTJEAYse ``` ![login](https://github.com/curltech/go-colla-node/blob/main/readmeImg/customNode-login.png) ![accountInformation](https://github.com/curltech/go-colla-node/blob/main/readmeImg/customNode-accountInformation.png) ## Windows Use zip file for Windows instead of tar.gz file for Linux, and follow the same steps as above. # License Copyright 2020-2021 CURL TECH PTE. LTD. Licensed under the AGPLv3: https://www.gnu.org/licenses/agpl-3.0.html

近期下载者

相关文件


收藏者