Download and Verify¶
deploy/scripts/storage.sh file get <author> <cid> out.bin
The tool asks the aggregator for the manifest, downloads through a Dragonfly peer, and checks digest and Merkle root before the output appears.
Any HTTP client¶
Dragonfly peers are HTTP proxies. Addresses with objects/sha256/ are downloaded through peers:
curl -x http://peer:4001 -o out.bin http://origin:8080/objects/sha256/<digest>
sha256sum out.bin
How peers share¶
A scheduler tells each peer from whom to download the pieces of a file. The first download comes from a seed peer, which was preheated or loads from the origin. Afterwards, peers serve each other.
The bridge assigns a file to schedulers with rendezvous hashing, so all peers of a region use the same scheduler for a file. Schedulers are probed every five seconds and left out after two failures.