HelloZeroNet 39413b9755 Rev452, Auto hide no peers found info message, Raise error on invalid file location, Test PEX, Test invalid file downloads, Test peer download and ping | 9 年之前 | |
---|---|---|
plugins | 9 年之前 | |
src | 9 年之前 | |
tools | 9 年之前 | |
.gitignore | 9 年之前 | |
.travis.yml | 9 年之前 | |
Dockerfile | 9 年之前 | |
LICENSE | 9 年之前 | |
README.md | 9 年之前 | |
Vagrantfile | 9 年之前 | |
requirements.txt | 9 年之前 | |
start.py | 9 年之前 | |
update.py | 9 年之前 | |
zeronet.py | 9 年之前 |
Decentralized websites using Bitcoin crypto and the BitTorrent network - http://zeronet.io
zeronet.py
you will be able to visit zeronet sites using
http://127.0.0.1:43110/{zeronet_address}
(eg.
http://127.0.0.1:43110/1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr
).site.json
which holds all other files in a sha512 hash
and a signature generated using site's private key.content.json
and publishes it to the peers.
After the peers have verified the content.json
integrity (using the
signature), they download the modified files and publish the new content to
other peers.zeronet.cmd
It downloads the latest version of ZeroNet then starts it automatically.
start.py
sudo apt-get update
sudo apt-get install msgpack-python python-gevent
wget https://github.com/HelloZeroNet/ZeroNet/archive/master.tar.gz
tar xvpfz master.tar.gz
cd ZeroNet-master
python zeronet.py
python --version
if the returned version is not Python 2.7.X
then try python2
or python2.7
command and use it from nowwget https://bootstrap.pypa.io/get-pip.py
python get-pip.py --user gevent msgpack-python
python zeronet.py
brew install python
pip install gevent msgpack-python
python zeronet.py
vagrant up
vagrant ssh
cd /vagrant
python zeronet.py --ui_ip 0.0.0.0
docker run -p 15441:15441 -p 43110:43110 nofish/zeronet
Shut down zeronet if you are running it already
$ zeronet.py siteCreate
...
- Site private key: 23DKQpzxhbVBrAtvLEc2uvk7DZweh4qL3fn3jpM3LgHDczMK2TtYUq
- Site address: 13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2
...
- Site created!
$ zeronet.py
...
Congratulations, you're finished! Now anyone can access your site using
http://localhost:43110/13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2
Next steps: ZeroNet Developer Documentation
Modify files located in data/13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2 directory. After you're finished:
$ zeronet.py siteSign 13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2
- Signing site: 13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2...
Private key (input hidden):
Enter the private key you got when you created the site, then:
$ zeronet.py sitePublish 13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2
...
Site:13DNDk..bhC2 Publishing to 3/10 peers...
Site:13DNDk..bhC2 Successfuly published to 3 peers
- Serving files....
That's it! You've successfully signed and published your modifications.
Bitcoin: 1QDhxQ6PraUZa21ET5fYUCPgdrwBomnFgX