The LBRY SDK for building decentralized, censorship resistant, monetized, digital content apps.
Find a file
Job Evers‐Meltzer 0f4fee475f Merge pull request #201 from lbryio/reflect-my-unavailable-streams
Upload unavailable streams to reflector on startup
2016-10-28 17:29:28 -05:00
lbrynet Merge remote-tracking branch 'origin/master' into reflect-my-unavailable-streams 2016-10-28 17:16:39 -05:00
packaging Merge pull request #204 from lbryio/cleanup-logging 2016-10-28 15:56:54 -05:00
scripts Forget about trying to set a label. 2016-07-18 09:14:50 -05:00
tests move settings into conf file 2016-10-27 14:31:27 -05:00
.appveyor.yml appveyor updates 2016-09-28 07:38:12 -07:00
.bumpversion.cfg Bump version: 0.6.9 → 0.6.10 2016-10-28 12:29:15 -05:00
.gitignore ignore DS_Store files 2016-08-16 12:26:19 -05:00
.gitmodules remove submodule 2016-06-20 20:43:47 -05:00
.pylintrc Refactor jsonrpc_get. 2016-07-15 11:32:46 -05:00
.travis.yml Updates the deployment process and the version check associated with it 2016-07-25 11:13:47 -05:00
app.icns update status bar app 2016-03-02 02:00:45 -05:00
ez_setup.py initial commit 2015-08-20 11:27:15 -04:00
FAQ.md Need to have git installed. 2016-07-15 20:01:25 +02:00
INSTALL.md Update Installation instructions 2016-10-27 09:25:06 -05:00
LICENSE MIT license 2016-09-13 22:10:12 -04:00
MANIFEST.in remove lbrynet_gui include 2016-08-28 17:33:30 -04:00
README.md update readme 2016-06-10 18:39:35 -04:00
requirements.txt updates from master, more refactoring 2016-10-26 03:16:33 -04:00
setup.py include jsonschema.schemas files 2016-10-16 02:49:19 -04:00

Build Status

LBRYnet

LBRYnet is a fully decentralized network for distributing data. It consists of peers uploading and downloading data from other peers, possibly in exchange for payments, and a distributed hash table, used by peers to discover other peers.

Installation

Download the latest release or see INSTALL.md for manual installation.

Overview

On LBRYnet, data is broken into chunks, and each chunk is specified by its sha384 hash sum. This guarantees that peers can verify the correctness of each chunk without having to know anything about its contents, and can confidently re-transmit the chunk to other peers. Peers wishing to transmit chunks to other peers announce to the distributed hash table that they are associated with the sha384 hash sum in question. When a peer wants to download that chunk from the network, it asks the distributed hash table which peers are associated with that sha384 hash sum. The distributed hash table can also be used more generally. It simply stores IP addresses and ports which are associated with 384-bit numbers, and can be used by any type of application to help peers find each other. For example, an application for which clients don't know all of the necessary chunks may use some identifier, chosen by the application, to find clients which do know all of the necessary chunks.

For Developers

The bundled LBRY application uses the lbrynet JSONRPC api found in lbrynet.lbrynet_daemon.LBRYDaemon. This api allows for applications and web services like the lbry browser UI to interact with lbrynet. If you've installed lbrynet, you can run lbrynet-daemon without running the app. While the app or lbrynet-daemon is running, you can use the following to show the help for all the available commands:

from jsonrpc.proxy import JSONRPCProxy

try:
  from lbrynet.conf import API_CONNECTION_STRING
except:
  print "You don't have lbrynet installed!"
  API_CONNECTION_STRING = "http://localhost:5279/lbryapi"
  
api = JSONRPCProxy.from_url(API_CONNECTION_STRING)
if not api.is_running():
  print api.daemon_status()
else:
  for func in api.help():
    print "%s:\n%s" % (func, api.help({'function': func}))

If you've installed lbrynet, it comes with a file sharing application, called lbrynet-daemon, which breaks files into chunks, encrypts them with a symmetric key, computes their sha384 hash sum, generates a special file called a 'stream descriptor' containing the hash sums and some other file metadata, and makes the chunks available for download by other peers. A peer wishing to download the file must first obtain the 'stream descriptor' and then may open it with his lbrynet-daemon client, download all of the chunks by locating peers with the chunks via the DHT, and then combine the chunks into the original file, according to the metadata included in the 'stream descriptor'.

For detailed instructions, see INSTALL.md and RUNNING.md.

Documentation: doc.lbry.io (may be out of date)

Source code: https://github.com/lbryio/lbry

To contribute, join us on Slack or contact josh@lbry.io. Pull requests are also welcome.

Support

Please open an issue and describe your situation in detail. We will respond as soon as we can.

For private issues, contact josh@lbry.io.

License

See LICENSE