diff --git a/blog/Post.class.php b/blog/Post.class.php
deleted file mode 100644
index 17d257a0..00000000
--- a/blog/Post.class.php
+++ /dev/null
@@ -1,60 +0,0 @@
-slug = $slug;
- $this->title = isset($frontMatter['title']) ? $frontMatter['title'] : null;
- $this->author = isset($frontMatter['author']) ? $frontMatter['author'] : null;
- $this->date = isset($frontMatter['date']) ? new DateTime($frontMatter['date']) : null;
- $this->contentHtml = ParsedownExtra::instance()->text(trim($markdown));
- }
-
- public function getSlug()
- {
- return $this->slug;
- }
-
- public function getTitle()
- {
- return $this->title;
- }
-
- public function getAuthor()
- {
- return $this->author;
- }
-
- public function getDate()
- {
- return $this->date;
- }
-
- public function getContentHtml()
- {
- return $this->contentHtml;
- }
-
- public function getPrevPost()
- {
- $slugs = array_keys(Blog::getSlugMap());
- $key = array_search($this->getSlug(), $slugs);
- return $key === false || $key === 0 ? null : Blog::getPost($slugs[$key-1]);
- }
-
- public function getNextPost()
- {
- $slugs = array_keys(Blog::getSlugMap());
- $key = array_search($this->getSlug(), $slugs);
- return $key === false || $key >= count($slugs)-1 ? null : Blog::getPost($slugs[$key+1]);
- }
-}
\ No newline at end of file
diff --git a/controller/Actions.class.php b/controller/Actions.class.php
index e974d2cf..eb7146e1 100644
--- a/controller/Actions.class.php
+++ b/controller/Actions.class.php
@@ -20,4 +20,15 @@ class Actions
Actions::returnError($error);
}
}
+
+ protected static function isForRobot()
+ {
+ $bots = [
+ 'bot', 'spider', 'crawler', 'siteexplorer', 'yahoo', 'slurp', 'dataaccessd', 'facebook', 'twitter', 'coccoc',
+ 'calendar', 'curl', 'wget', 'panopta', 'blogtrottr', 'zapier', 'newrelic', 'luasocket',
+ 'okhttp', 'python'
+ ];
+
+ return preg_match('/(' . join('|', $bots) . ')/i', $_SERVER['HTTP_USER_AGENT']);
+ }
}
\ No newline at end of file
diff --git a/controller/Controller.class.php b/controller/Controller.class.php
index 9df54d46..f2753837 100644
--- a/controller/Controller.class.php
+++ b/controller/Controller.class.php
@@ -11,7 +11,9 @@ class Controller
{
try
{
- list($viewTemplate, $viewParameters) = static::execute($uri);
+ $viewAndParams = static::execute($uri);
+ $viewTemplate = $viewAndParams[0];
+ $viewParameters = isset($viewAndParams[1]) ? $viewAndParams[1] : [];
if ($viewTemplate === null)
{
@@ -42,7 +44,12 @@ class Controller
case '/fund':
return CreditActions::executeFund();
case '/get':
- return ContentActions::executeGet();
+ case '/windows':
+ case '/ios':
+ case '/android':
+ case '/linux':
+ case '/osx':
+ return DownloadActions::executeGet();
case '/postcommit':
return OpsActions::executePostCommit();
case '/log-upload':
@@ -57,10 +64,14 @@ class Controller
return static::redirect('https://s3.amazonaws.com/files.lbry.io/osx/lbry.0.2.2.dmg', 307);
case '/lbry-linux-latest.deb':
return static::redirect('https://s3.amazonaws.com/files.lbry.io/linux/lbry_0.2.2_amd64.deb', 307);
+ case '/art':
+ return static::redirect('/what');
default:
- if (preg_match('#^/blog($|/)#', $uri))
+ $blogPattern = '#^/news(/|$)#';
+ if (preg_match($blogPattern, $uri))
{
- return BlogActions::execute($uri);
+ $slug = preg_replace($blogPattern, '', $uri);
+ return $slug ? BlogActions::executePost($slug) : BlogActions::executeIndex();
}
$noSlashUri = ltrim($uri, '/');
if (View::exists('page/' . $noSlashUri))
diff --git a/controller/action/BlogActions.class.php b/controller/action/BlogActions.class.php
index 10b9e3a6..792cae18 100644
--- a/controller/action/BlogActions.class.php
+++ b/controller/action/BlogActions.class.php
@@ -2,24 +2,16 @@
class BlogActions extends Actions
{
- public static function execute($uri)
- {
- $slug = preg_replace('#^/blog(/|$)#', '', $uri);
- if ($slug)
- {
- return static::executePost($slug);
- }
- return static::executeHome();
- }
+ const URL_STEM = '/news';
- public static function executeHome()
+ public static function executeIndex()
{
$posts = Blog::getPosts();
usort($posts, function(Post $a, Post $b) {
return strcasecmp($b->getDate()->format('Y-m-d'), $a->getDate()->format('Y-m-d'));
});
$page = isset($_GET['page']) ? (int)$_GET['page'] : 1;
- return ['blog/home', [
+ return ['blog/index', [
'posts' => $posts,
'page' => $page
]];
@@ -36,4 +28,14 @@ class BlogActions extends Actions
'post' => $post
]];
}
+
+ public static function prepareAuthorPartial(array $vars)
+ {
+ $post = $vars['post'];
+ return [
+ 'authorName' => $post->getAuthorName(),
+ 'photoImgSrc' => $post->getAuthorPhoto(),
+ 'authorBioHtml' => $post->getAuthorBioHtml()
+ ];
+ }
}
diff --git a/controller/action/ContentActions.class.php b/controller/action/ContentActions.class.php
index 0c07dfd4..d80cdd0e 100644
--- a/controller/action/ContentActions.class.php
+++ b/controller/action/ContentActions.class.php
@@ -14,51 +14,4 @@ class ContentActions extends Actions
'totalPeople' => CreditApi::getTotalPeople()
]];
}
-
- public static function executeGet()
- {
- if (isset($_GET['email']) && $_GET['email'] && Session::get(Session::KEY_LIST_SUB_ERROR))
- {
- Controller::redirect('/get');
- }
- return ['page/get', [
- 'isSubscribed' => (isset($_GET['email']) && $_GET['email']) || in_array(Mailchimp::LIST_GENERAL_ID, Session::get(Session::KEY_MAILCHIMP_LIST_IDS, []))
- ]];
- }
-//
-// protected static function validateDownloadAccess()
-// {
-// $seshionKey = 'has-download-access';
-// if (Session::get($seshionKey))
-// {
-// return true;
-// }
-//
-// if ($_SERVER['REQUEST_METHOD'] === 'POST')
-// {
-// $accessCodes = include ROOT_DIR . '/data/secret/access_list.php';
-// $today = date('Y-m-d H:i:s');
-// foreach($accessCodes as $code => $date)
-// {
-// if ($_POST['invite'] == $code && $today <= $date)
-// {
-// Session::set($seshionKey, true);
-// Controller::redirect('/get', 302);
-// }
-// }
-//
-// if ($_POST['invite'])
-// {
-// Session::set('invite_error', 'Please provide a valid invite code.');
-// }
-// else
-// {
-// Session::set('invite_error', 'Please provide an invite code.');
-// }
-//
-// Controller::redirect('/get', 401);
-// }
-//
-// return false;
-// }
}
diff --git a/controller/action/CreditActions.class.php b/controller/action/CreditActions.class.php
index 94692977..b9aed065 100644
--- a/controller/action/CreditActions.class.php
+++ b/controller/action/CreditActions.class.php
@@ -11,7 +11,7 @@ class CreditActions extends Actions
{
$fundStartTime = strtotime('2015-11-15');
$daysActive = floor((time() - $fundStartTime) / (60*60*24));
- return ['page/fund', [
+ return ['fund/fund', [
'creditsPerDollar' => CreditApi::getCreditsPerDollar($daysActive),
'creditsPerDollarTomorrow' => CreditApi::getCreditsPerDollar($daysActive + 1),
]];
diff --git a/controller/action/DownloadActions.class.php b/controller/action/DownloadActions.class.php
new file mode 100644
index 00000000..798190ef
--- /dev/null
+++ b/controller/action/DownloadActions.class.php
@@ -0,0 +1,127 @@
+ ['/windows', 'Windows', 'icon-windows', '_windows'],
+ static::OS_OSX => ['/osx', 'OS X', 'icon-apple', '_osx'],
+ static::OS_LINUX => ['/linux', 'Linux', 'icon-linux', '_linux'],
+ static::OS_ANDROID => ['/android', 'Android', 'icon-android', '_android'],
+ static::OS_IOS => ['/ios', 'iOS', 'icon-mobile', '_ios']
+ ];
+ }
+
+ public static function executeGet()
+ {
+ $osChoices = static::getOses();
+ $os = static::guessOs();
+
+ if ($os && isset($osChoices[$os]))
+ {
+ list($uri, $osTitle, $osIcon, $partial) = $osChoices[$os];
+ return ['download/get', [
+ 'os' => $os,
+ 'osTitle' => $osTitle,
+ 'osIcon' => $osIcon,
+ 'downloadHtml' => View::exists('download/' . $partial) ?
+ View::render('download/' . $partial) :
+ false
+ ]];
+ }
+
+ return ['download/get-no-os', [
+ 'isSubscribed' => in_array(Mailchimp::LIST_GENERAL_ID, Session::get(Session::KEY_MAILCHIMP_LIST_IDS, []))
+ ]];
+ }
+
+ public static function prepareListPartial(array $vars)
+ {
+ return $vars + ['osChoices' => isset($vars['excludeOs']) ?
+ array_diff_key(static::getOses(), [$vars['excludeOs'] => null]) :
+ static::getOses()
+ ];
+ }
+
+ protected static function guessOs()
+ {
+ //if exact OS is requested, use that
+ $uri = strtok($_SERVER['REQUEST_URI'], '?');
+ foreach(static::getOses() as $os => $osChoice)
+ {
+ if ($osChoice[0] == $uri)
+ {
+ return $os;
+ }
+ }
+
+ if (static::isForRobot())
+ {
+ return null;
+ }
+
+ //otherwise guess from UA
+ $ua = $_SERVER['HTTP_USER_AGENT'];
+ if (stripos($ua, 'OS X') !== false)
+ {
+ return strpos($ua, 'iPhone') !== false || stripos($ua, 'iPad') !== false ? static::OS_IOS : static::OS_OSX;
+ }
+ if (stripos($ua, 'Linux') !== false || strpos($ua, 'X11') !== false)
+ {
+ return strpos($ua, 'Android') !== false ? static::OS_ANDROID : static::OS_LINUX;
+ }
+ if (stripos($ua, 'Windows') !== false)
+ {
+ return static::OS_WINDOWS;
+ }
+ return null;
+ }
+
+// protected static function validateDownloadAccess()
+// {
+// $seshionKey = 'has-get-access';
+// if (Session::get($seshionKey))
+// {
+// return true;
+// }
+//
+// if ($_SERVER['REQUEST_METHOD'] === 'POST')
+// {
+// $accessCodes = include ROOT_DIR . '/data/secret/access_list.php';
+// $today = date('Y-m-d H:i:s');
+// foreach($accessCodes as $code => $date)
+// {
+// if ($_POST['invite'] == $code && $today <= $date)
+// {
+// Session::set($seshionKey, true);
+// Controller::redirect('/get', 302);
+// }
+// }
+//
+// if ($_POST['invite'])
+// {
+// Session::set('invite_error', 'Please provide a valid invite code.');
+// }
+// else
+// {
+// Session::set('invite_error', 'Please provide an invite code.');
+// }
+//
+// Controller::redirect('/get', 401);
+// }
+//
+// return false;
+// }
+}
diff --git a/controller/action/MailActions.class.php b/controller/action/MailActions.class.php
index a56e0415..9fb72235 100644
--- a/controller/action/MailActions.class.php
+++ b/controller/action/MailActions.class.php
@@ -21,11 +21,11 @@ class MailActions extends Actions
$email = $_POST['email'];
if (!$email|| !filter_var($email, FILTER_VALIDATE_EMAIL))
{
- Session::set('list_error', $email ? __('Please provide a valid email address.') : __('Please provide an email address.'));
+ Session::set(Session::KEY_LIST_SUB_ERROR, $email ? __('Please provide a valid email address.') : __('Please provide an email address.'));
}
elseif (!$_POST['listId'])
{
- Session::set('list_error', __('List not provided.'));
+ Session::set(Session::KEY_LIST_SUB_ERROR, __('List not provided.'));
}
else
{
@@ -42,7 +42,7 @@ class MailActions extends Actions
else
{
$error = $mcApi->errorMessage ?: __('Something went wrong adding you to the list.');
- Session::set('list_error', $error);
+ Session::set(Session::KEY_LIST_SUB_ERROR, $error);
}
}
@@ -56,8 +56,8 @@ class MailActions extends Actions
if (Session::get(Session::KEY_LIST_SUB_SIGNATURE) == $vars['listSig'])
{
- $vars['error'] = Session::get('list_error');
- Session::unsetKey('list_error');
+ $vars['error'] = Session::get(Session::KEY_LIST_SUB_ERROR);
+ Session::unsetKey(Session::KEY_LIST_SUB_ERROR);
$vars['success'] = Session::get(Session::KEY_LIST_SUB_SUCCESS) ? __('Great success! Welcome to LBRY.') : false;
$vars['fbEvent'] = Session::get(Session::KEY_LIST_SUB_FB_EVENT) ?: 'Lead';
@@ -72,5 +72,4 @@ class MailActions extends Actions
return $vars;
}
-
}
\ No newline at end of file
diff --git a/lib/exception/ErrorException.class.php b/lib/exception/ErrorException.class.php
deleted file mode 100644
index 81e2d9d1..00000000
--- a/lib/exception/ErrorException.class.php
+++ /dev/null
@@ -1,11 +0,0 @@
-slug = $slug;
+ $this->title = isset($frontMatter['title']) ? $frontMatter['title'] : null;
+ $this->author = isset($frontMatter['author']) ? $frontMatter['author'] : null;
+ $this->date = isset($frontMatter['date']) ? new DateTime($frontMatter['date']) : null;
+ $this->contentHtml = ParsedownExtra::instance()->text(trim($markdown));
+ }
+
+ public function getRelativeUrl()
+ {
+ return BlogActions::URL_STEM . '/' . $this->slug;
+ }
+
+ public function getSlug()
+ {
+ return $this->slug;
+ }
+
+ public function getTitle()
+ {
+ return $this->title;
+ }
+
+ public function getAuthor()
+ {
+ return $this->author;
+ }
+
+ public function getDate()
+ {
+ return $this->date;
+ }
+
+ public function getContentHtml()
+ {
+ return $this->contentHtml;
+ }
+
+ public function getPrevPost()
+ {
+ $slugs = array_keys(Blog::getSlugMap());
+ $key = array_search($this->getSlug(), $slugs);
+ return $key === false || $key === 0 ? null : Blog::getPost($slugs[$key-1]);
+ }
+
+ public function getNextPost()
+ {
+ $slugs = array_keys(Blog::getSlugMap());
+ $key = array_search($this->getSlug(), $slugs);
+ return $key === false || $key >= count($slugs)-1 ? null : Blog::getPost($slugs[$key+1]);
+ }
+
+ public function getAuthorName()
+ {
+ switch(strtolower($this->author))
+ {
+ case 'jeremy':
+ return 'Jeremy Kauffman';
+ case 'mike':
+ return 'Mike Vine';
+ case 'jimmy':
+ return 'Jimmy Kiselak';
+ case 'jack':
+ return 'Jack Robison';
+ case 'lbry':
+ default:
+ return 'Samuel Bryan';
+ }
+ }
+
+ public function getAuthorPhoto()
+ {
+ switch(strtolower($this->author))
+ {
+ case 'jeremy':
+ return 'jeremy-644x450.jpg';
+ case 'mike':
+ return 'mike-644x450.jpg';
+ case 'jimmy':
+ return 'jimmy-644x450.jpg';
+ case 'jack':
+ return 'jack-robison-644x450.jpg';
+ case 'lbry':
+ default:
+ return 'spooner-644x450.jpg';
+ }
+ }
+
+ public function getAuthorBioHtml()
+ {
+ switch(strtolower($this->author))
+ {
+ case 'jeremy':
+ return '
Jeremy is the creator of TopScore (usetopscore.com), LBRY (lbry.io), and that joke where the first two items in your list are serious while the third one is a run-on sentence.
';
+ case 'mike':
+ case 'jimmy':
+ return '
' . $this->getAuthorName() . ' is one of the founding members of LBRY.
';
+ case 'jack':
+ return '
Jack was one of the first people to discover LBRY and took to it so fast he may understand more about it than anyone. He has Asperger\'s Syndrome and is actively involved in the autism community.
';
+ case 'lbry':
+ default:
+ return '
Much of our writing is a collaboration between LBRY team members, so we use SamueL BRYan to share credit. Sam has become a friend... an imaginary friend... even though we\'re adults...
';
+ }
+ }
+}
\ No newline at end of file
diff --git a/view/37-art.md b/view/37-art.md
new file mode 100644
index 00000000..fbf8b099
--- /dev/null
+++ b/view/37-art.md
@@ -0,0 +1,236 @@
+---
+author: jeremy, zargham, jack
+title: Art in the Internet Age
+date: '2016-03-21 20:06:18'
+cover: /img/altamira-bison.jpg
+---
+
+## Introduction
+
+In 34,000 B.C., there were cave paintings. And that’s it. When you came home from a sweltering August day of foraging along the Vézère river, the only form of non-live art or entertainment available was something like the above buffalo.
+
+Today, we live in a world of near infinite choices. This is true not just for art but for all kinds of things (like potato chips). Since the era of cave art, humanity has incessantly and progressively trended towards interconnected, more efficient, and increasingly transparent markets. This undercurrent of connectedness and openness has affected everything human beings produce.
+
+Nerds like us like to speculate about the end-game of this trend with others on the internet. What will society be like when we have a "Star Trek"-like capacity to instantly and freely replicate anything that exists? The term for this society is _post-scarcity_[1](#note-post-scarcity).
+
+Generally, post-scarcity is regarded as fantastical; something that will never happen in our lifetimes. Except for one area: digital goods.
+
+Art in the internet age is infinitely reproducible and easily shared. This is a sea change from any prior time in history. Previously, vinyl records captured audio in physical grooves; tapes captured data on magnetic strips; compact disks held digital files read by lasers — in each of these cases physical, medium-specific hardware is required to both produce and recover the bits of data that made up the digital content.
+
+Today art is just data, a string of 1s and 0s, a _number_, and we no longer need any specialized hardware to decode and enjoy digital content. We use the same technological methods to access a personal photograph a single time as we do to watch a blockbuster on Netflix.
+
+This is a big step forward from the past. As production costs fall to zero, choices go up. Digital distributors provide virtually every song, film, photo or book for purchase and download to any internet enabled device. Technology has also decreased the cost of production — it has never been easier for aspirant artists to achieve a following through self-publishing.
+
+The digitization of art has added a lot of value to both content creators and consumers, reducing costs and increasing choice. This transition is still in its infancy. With LBRY, we’re going to make it a little more mature.
+
+
+
+## A People’s Marketplace
+
+LBRY is the first digital marketplace to be controlled by the market’s participants rather than a corporation or other 3rd-party. It is the most open, fair, and efficient marketplace for digital goods ever created, with an incentive design encouraging it to become the most complete.
+
+At the highest level, LBRY does something extraordinarily simple. LBRY creates an association between a unique name and a piece of digital content, such as a movie, book, or game. This is similar to the domain name system that you are most likely using to access this very post.
+
+

+
+
A user searches and prepares to stream and the film _It’s a Wonderful Life_, located at [lbry://wonderfullife](lbry://wonderfullife), via a completely decentralized network. Try it out for yourself at [lbry.io/get](http://lbry.io/get).
+
+
+
+However, LBRY does this not through a proprietary service or network, but as a _protocol_, or a method of doing things, much like HTTP, DNS and other specifications that make up the internet itself. Just as many different domains owned by many different companies all speak a shared language, so too can any person or company speak LBRY. No special access or permission is needed.
+
+LBRY differs from the status quo in three big ways:
+
+1. **Coupled payment and access**. If desired, the person who publishes to [lbry://wonderfullife](lbry://wonderfullife) can charge a fee to users that view the content.
+2. **Decentralized and distributed**. Content published to LBRY is not specific to one computer or network. No one party, including us, can unilaterally remove or block content on the LBRY network. (If it worries you that LBRY could facilitate unsavory content, this is discussed in its own section.)
+3. **Domain names are controlled via ongoing auction**. This facilitates names being controlled by the publishers that value them most. These transactions take place via an electronic currency called LBRY credits, or _LBC_. This is covered in more detail, below.
+
+While creating a protocol that we ourselves cannot control sounds chaotic, it is actually about establishing trust. Every other publishing system requires trusting an intermediary that can unilaterally change the rules on you. What happens when you build your business on YouTube or Amazon and they change fees? Or Apple drops your content because the Premier of China thought your comedy went to far?
+
+Only LBRY consists of a known, promised set of rules that no one can unilaterally change. LBRY provides this by doing something unique: leaving the _users_ in control rather than demanding that control for itself.
+
+## A Sample Use
+
+Let’s look at a sample use of LBRY, Ernest releasing a film on LBRY that is later purchased and viewed by Hilary.
+
+1. Ernest wants to release his comedy-horror film, _Ernie Goes To Guantanamo Bay_.
+2. The content is encrypted and sliced into many pieces. These pieces are stored by hosts.
+3. Ernest reserves [lbry://erniebythebay](lbry://erniebythebay), a name pointing to his content.
+4. When Ernest reserves the location, he also submits metadata, such as a description and thumbnail.
+5. Hillary, a user, browses the LBRY network and decides she wants to watch the film.
+6. Hillary issues a payment to Ernest for the decryption key, allowing her to watch the film.
+7. Hillary’s LBRY client collects the pieces from the hosts and reassembles them, using the key to decrypt the pieces (if necessary). This is transparent to Hillary, the film streams within a few seconds after purchase.
+
+This is a lot like an interaction that can happen on many different sites on the web, except that this one happens via a network that is completely decentralized. The data and technology that makes the entire interaction possible is not reliant on nor controlled by any single entity (as it would be via YouTube, Amazon, etc.).
+
+## The LBRY Network
+
+To understand precisely what LBRY is and why it matters, one must understand both LBRY as a protocol and the services the protocol enables. HTTP is the protocol that makes web browsing possible, but it would be of little interest without the service of a web browser!
+
+To understand LBRY, think of LBRY in terms of two layers: _protocol_ and _service._ The protocol provides a fundamental, underlying technological capability. The service layer utilizes the protocol to do something that a human being would actually find useful.
+
+For a user using LBRY at the service level, the magic of what the LBRY protocol does will be largely transparent, much as a typical internet user sees nothing of how HTTP works. Via a LBRY application, a user will be able to open a familiar interface to quickly and easily discover and purchase a piece of digital content published by anyone in the world.
+
+However, such an application would not be possible without the LBRY the underlying layer, the LBRY protocol.
+
+### Layer 1: Protocol
+
+While the protocol is one comprehensive set of rules, it is easier to understand as two parts.
+
+#### Part A: The LBRY Blockchain
+
+A _blockchain_, or _distributed ledger_ is the key innovation behind the Bitcoin network. Blockchains solved the very complicated technological problem of having a bunch of distributed, disparate entities all agree on a rivalrous state of affairs (like how much money they owe each other).
+
+Like Bitcoin, the LBRY blockchain maintain balances -- in this case, balances of _LBC_, LBRY’s unit of credit. More importantly, the LBRY blockchain also provides a decentralized lookup and metadata storage system. The LBRY blockchain supports a specific set of commands that allows anyone to bid (in LBC) to control a LBRY _name_, which is a lot like a domain name. Whoever controls a name gets to describe what it contains, what it costs to access, who to pay, and where to find it. These names are sold in a continuous running auction. We will talk more about this system a little later on.
+
+If you’re a programmer, you might recognize the LBRY blockchain as a _key-value store_. Each key, or name, corresponds to a value, or a metadata entry. Whichever party or parties bid the most LBC gets to control the metadata returned by a key lookup.
+
+Here is a sample key-value entry in the LBRY blockchain. Here, wonderfullife is the key, and the rest of the description is the value.
+
+
`
+
+
wonderfullife : {
+ title: "It’s a Wonderful Life",
+ description: "An angel helps a compassionate but despairingly frustrated businessman by showing what life would have been like if he never existed.",
+ thumbnail: "http://i.imgur.com/MW45x88.jpg",
+ license: "public domain",
+ price: 0, //free!
+ publisher: "A Fan Of George Bailey", //simplification
+ sources: { //extensible, variable list
+ lbry_hash : ,
+ url :
+ }
+ }
+
+`
+
+
+
+A slightly simplified sample entry of metadata in the LBRY blockchain. Whichever party or parties bid the most in an ongoing auction control what a name returns.
+
+
+
+Other than the usage of the LBRY blockchain to store names and metadata, there are only minor differences between the blockchains of LBRY and Bitcoin, and the changes are generally consensus improvements. We’ve buffed the hashing algorithm, smoothed the block reward function, increased the block size, increased the total number of credits, and prepared for offchain settlement.
+
+The LBRY blockchain simply maintains LBC balances and a content namespace/catalogue. The next part, LBRYnet, specifies what to do with this data. To compare to the existing web, the blockchain is like the domain system (it maintains a listing of what is available), while the next piece makes it possible to actually fetch and pay for content.
+
+
+
+#### Part B: The Data Network (LBRYNet)
+
+LBRYNet is the layer that makes the LBRY blockchain useful beyond a simple payment system. It says what to do with the information available in the LBRY blockchain, how to issue payments, how to look up a content identifier, and so on.
+
+To use the LBRY network, a user’s computer needs the capacity to speak LBRY. That layer is LBRYNet. Just as your computer has a library that enables it to understand HTTP, DNS, and other languages and protocols, LBRYNet is the piece of software that allows your computer to understand how to interact with the LBRY network.
+
+To understand what role LBRYNet plays, let’s drill a little more into a sample user interaction. Once a user has affirmed access and purchase, such as in step 5 of our Sample Use above, the following happens:
+
+1. LBRYNet issues a lookup for the name associated with the content. If the client does not have a local copy of the blockchain, this lookup is broadcast to miners or to a service provider. This lookup acquires the metadata associated with the name.
+2. LBRYNet issues any required payments, as instructed by metadata entries.
+ 1. If the content is set to free, nothing happens here.
+ 2. If the content is set to have a price in LBC, the client must issue a payment in LBC to the specified address. If the content is published encrypted, LBRYNet will not allow access until this payment has been issued.
+ 3. If the content is set to have another payment method, the seller must run or use a service that provides a private server enforcing payment and provisioning accessing keys.
+3. Simultaneous to #2, LBRYNet uses the metadata to download the content itself.
+ 1. The metadata allows chunks to be discovered and assembled in a BitTorrent-like fashion. However, unlike BitTorrent, chunks do not individually identify themselves as part of a greater whole. Chunks are just arbitrary pieces of data.
+ 2. If LBRYNet cannot find nodes offering chunks for free, it will offer payments for chunks to other hosts with those chunks.
+ 3. This payment is not done via proof-of-bandwidth, or third-party escrow. Instead, LBRYNet uses reputation, trust, and small initial payments to ensure reliable hosts.
+ 4. If content is not published directly to LBRY, the metadata can instruct other access methods, such as a Netflix URL. This allows us to catalogue content not yet available on LBRY as well as offer legacy and extensibility purposes.
+
+### Layer 2: Services
+
+Services are what actually make the LBRY protocol _useful._ While the LBRY protocol determines what is possible, it is the services that actually do things.
+
+While the protocol is determined, open, and fixed, the service layer is much more flexible. It is far easier to redesign a website than it is to revise the HTTP protocol itself. The same is true here.
+
+Additionally, just as in the early days of the internet the later direction of web would have been unfathomable, so too may the best uses of LBRY’s namespace or technology be undiscovered. However, here are some clear uses.
+
+#### Applications and Devices
+
+A LBRY application is how a user would actually have meaningful interactions with the LBRY network. A LBRY client packages the power of the LBRY protocol into a simple application that allows the user to simply search for content, pay for it when necessary, download and enjoy.
+
+Additionally, a LBRY client can allow users to passively participate in the network, allowing them to automatically earn rewards in exchange for contributing bandwidth, disk space, or processing power to the overall network.
+
+Applications beyond a traditional computer based browser are possible as well. A LBRY television dongle, a LBRY radio, and any number of existing content access mechanisms can be implemented via an analogous LBRY device.
+
+#### Content Discovery
+
+Although the namespace provided by the LBRY protocol is helpful towards discovery, much as the web would be much less useful without search engines or aggregators, LBRY needs it’s own discovery mechanisms.
+
+Search features can be constructed from the catalogue of metadata provided in the blockchain as well as the content transaction history available in the blockchain or observed on the network. All of this data, along with user history, allows for the creation of content recommendation engines and advanced search features.
+
+Discovery on LBRY can also take the form of featured content. Clients can utilize featured content to provide additional visibility for new content that consumers might not otherwise be looking for.
+
+#### Content Distribution
+
+Digital content distributors with server-client models are subject to the whims of internet service providers and hostile foreign governments. Traffic from the host servers can be throttled or halted altogether if the owners of cables and routers so choose. However, in case of the LBRY protocol content comes from anywhere and everywhere, and is therefore not so easily stifled.
+
+Additionally, the market mechanisms of LBRY create a strong incentive for efficient distribution, which will save the costs of producers and ISPs alike. These properties, along with LBRY’s infringement disincentivizing properties, make LBRY an appealing technology for large existing data or content distributors.
+
+#### Transaction Settlement
+
+While payments can be issued directly on the LBRY blockchain, the LBRY protocol encourages a volume of transactions that will not scale without usage of offchain settlement.
+
+Essentially, rather than issue a transaction to the core blockchain, transactions are issued to a 3rd-party provider. These providers have a substantial number of coins which are used to maintain balances internally and settle a smaller number of transactions to the core chain. In exchange, these providers earn a small fee, less than the fee required to issue the transaction directly to the blockchain.
+
+## LBRY Credits
+
+LBRY Credits, or _LBC_, are the unit of account for LBRY. Eventually 1,000,000,000 LBC will exist, according to a defined schedule over 20 years. The schedule decays exponentially, with around 100,000,000 in the first year.
+
+Additionally, some credits are awarded on a fixed basis. The total break down looks like this:
+
+* 10% are used to peg LBC to Bitcoin, likely via a sidechain. This will allow LBRY to leverage the security of the Bitcoin blockchain, and incentive adoption from Bitcoin users.
+* 10% for organizations, charities, and other strategic partners. Organizations the EFF, ACLU, and others that have fought for digital rights and the security and freedom of the internet.
+* 10% for adoption programs. We’ll be giving out lots of bonus credits, especially in the early days of LBRY, in order to encourage participation. We will also look to award credits broadly, ensuring the marketplace is egalitarian.
+* 10% for us. For operational costs as well as profit.
+* 60% earned by LBRY users, via mining the LBRY cryptocurrency.
+
+## More on Naming
+
+LBRY names are one of the most unique aspects of LBRY and one that we believe will play a big role in helping it succeed.
+
+Control of a LBRY name is awarded via a _continuous running auction_ in LBC. Bids are entered into a _trustless escrow_, marking the credits as unspendable, but leaving them intact. When a user looks up a name, the name resolves to the largest bid made by a party or parties. The ability for any number of people to have a say in where a name resolves is part of what makes LBRY a system controlled by its users. As the credits are distributed primarily among users and producers, it is community itself that has ultimate controls over the catalogue of what is available.
+
+Additionally, bids can also be retracted at any time, even if you’re the current winning bidder. To prevent a name from rapidly switching between multiple resolutions, the parties that have existing control of a name have a reasonable period of time to respond to counter bids before a name’s resolution switches.
+
+It’s possible this system sounds like chaos to you, but we’re betting on a Nobel-prize winning result that predicts the opposite. Economist Ronald Coase theorized that in a system with low transaction cost and clear rules, property will be held by those who value it the most. Since LBRY names are the equivalent to content storefronts, we believe that LBRY names will hold the most value to rightsholders who produce content associated with a given name.
+
+As names in demand on LBRY will be more expensive, the names themselves will also serve as a signal of reputation, legitimacy, and quality. If a user searches LBRY for _Spider Man_ and sees one at lbry://spiderman and one at lbry://spiderman_russhaxor, there will be little doubt that the latter is less legitimate.
+
+
+
+## Combatting The Ugly
+
+As neither naïfs nor knaves, we acknowledge that LBRY can be used for bad ends. Technology is frequently this way. Encryption protects our privacy -- as well as that of terrorists. Cars allow us to travel marvelous distances -- and kill millions per year.
+
+The downside to LBRY is that it can be used to exchange illegal content. However, several factors of LBRY make illicit usage less likely than it may seem at first consideration. On the whole, as with the car and encryption, the benefits of LBRY clearly outway nefarious uses.
+
+To evaluate a technology’s effect, we must consider where it moves us from the current state of affairs, not judge against a Platonic ideal or past eta. In assessing LBRY, we must compare it to a world in which BitTorrent already exists and is quite popular, not the 1950s. LBRY is an improvement over BitTorrent in combatting unsavory content in at least five ways:
+
+1. **More records.** LBRY contains a public ledger of transactions recording name purchases and content publishings. As many purchases make it onto the ledger as well, this means infringing actions are frequently recorded _forever,_ or are at a minimum widely observable.
+2. **Unilateral removal.** The LBRY naming system allows for quick, unilateral acquisition of infringing URIs. Once a BitTorrent magnet hash is in the wild, there is no mechanism to update or alter its resolution whatsoever. If a LBRY name is pointing to infringing content, it can be seized according to clear rules.
+3. **Blacklists**. LBRY will publish and maintain a blacklist of infringing names. All clients we release and all legal clients will have to follow our blacklist, or one like it, or face substantial penalties. Especially because…
+4. **Stiffer penalties.** Penalties for profiting off of infringement are far stronger and involve can involve jail time, while infringement without profit only results in statutory damages. This serves as a far stronger deterrent for all infringing uses than BitTorrent provides.
+5. **Expensive or impossible.** Offchain settlement will be a requirement for efficient purchases at any significant network size. Settlement providers, ourselves included, will be able to block purchases for infringing content. At significant traffic volume, if infringing content can’t be outright removed or blocked, transaction fees will make it prohibitively expensive.
+
+And of course, let’s not forget that LBRY users are still subject to the DMCA and other laws governing intellectual property. Users who publishing infringing content are still subject to penalties for doing so in exactly the same way they would be via BitTorrent. LBRY only adds to the suite of options available. This makes LBRY a strict improvement over BitTorrent with regards to illegal usages, which provides none of the mechanisms listed.
+
+## Our Values
+
+We want to be the first digital content marketplace to:
+
+1. **Treat users like adults** LBRY doesn’t play nanny. It encourages individual people to express their own preferences, rather than force our own onto them. We enable consumers to make their own choices about where and who they want to purchase digital content from.
+2. **Operate openly, inclusively, and transparently** Anyone can publish or interact with the LBRY network. No one needs permission from us or anyone else. LBRY encourages all parties to participate in the network, rather than the creation of walled gardens. LBRY is a completely open specification and all code is open source.
+3. **Prove decentralization doesn’t mean infringement** Existing decentralized publishing protocols offer no way for rightsholders to combat or capture profits from illegally shared content. LBRY’s service layer, blacklisting mechanisms, and naming system all improve the status quo.
+4. **Acknowledge modern digital realities and ethical norms** Prohibition has failed at every turn and in every iteration. Regulating human behavior only works when it aligns with moral norms that are shared by the majority of the population. If it is impossible to keep drugs out of prisons, it will never be possible to enforce copyright via analogous tactics on the infinitely less-controlled internet. Instead, focus on enticement. While legal compliance is paramount, concentrate as much as possible on making a system that relies more on giving people no excuse to do the wrong thing.
+5. **Collect no rent**. Whatever an artist or creator charges for their work should go to them. Distributing bits is exceedingly simple. There’s no need to give 45% to YouTube or 30% to Apple. Collecting no rent isn’t just a promise, it’s hard coded. The nature of LBRY means this could never be done -- by us or anyone else.
+
+## TL;DR
+
+Digital art is one of the first goods to evolve beyond scarcity. This evolution is changing the way content is discovered, publicized, paid for and delivered. Heretofore, the lack of transparency and monetization mechanisms in peer-to-peer sharing networks has largely enabled piracy. By equipping a peer-to-peer protocol with a digital currency and transparent decentralized ledger, the LBRY protocol opens the door to a new era of digital content distribution making peer-to-peer content distribution suitable for major publishing housing, self-publishers and everyone in between.
+
+If LBRY succeeds, we will enter a world that is even more creative, connected, and conservatory. We will waste less and we make more. We will create a world where a teenager in Kenya and a reality star in Los Angeles use the same tool to search the same network and have access to the same results -- a world where information, knowledge, and imagination know no borders.
+
+Build our dream with us. Download LBRY at [lbry.io/get](https://lbry.io/get).
diff --git a/view/View.class.php b/view/View.class.php
index ded5068f..9424e23e 100644
--- a/view/View.class.php
+++ b/view/View.class.php
@@ -29,8 +29,9 @@ class View
list($module, $view) = explode('/', $template);
+ $isPartial = $view[0] === '_';
$actionClass = ucfirst($module) . 'Actions';
- $method = 'prepare' . ucfirst($view);
+ $method = 'prepare' . ucfirst(ltrim($view, '_')) . ($isPartial ? 'Partial' : '');
if (method_exists($actionClass, $method))
{
@@ -62,7 +63,7 @@ class View
protected static function getFullPath($template)
{
- return ROOT_DIR . '/view/' . $template . '.php';
+ return ROOT_DIR . '/view/template/' . $template . '.php';
}
public static function imagePath($image)
diff --git a/view/blog/home.php b/view/blog/home.php
deleted file mode 100644
index ff8246ef..00000000
--- a/view/blog/home.php
+++ /dev/null
@@ -1,21 +0,0 @@
-
- false]) ?>
-
-
- Jeremy is the creator of TopScore (usetopscore.com), LBRY (lbry.io), and that joke where the first two items in your list are serious while the third one is a run-on sentence.
-
-
-
-
Mike Vine
-
-
-
Jimmy Kiselak
-
-
-
Jack Robison
-
- Jack was one of the first people to discover LBRY and took to it so fast he may understand more about it than anyone. He has Asperger's Syndrome and is actively involved in the autism community.
-
-
-
-
Samuel Bryan
-
- Much of our writing is a collaboration between LBRY team members, so we use SamueL BRYan to share credit. Sam has become a friend... an imaginary friend... even though we're adults...
-
- This is a pre-release, alpha version of LBRY. It is only designed to show what LBRY makes possible.
- Future releases will involve a full network reboot.
-
\ No newline at end of file
diff --git a/view/get/feedback-prompt.php b/view/get/feedback-prompt.php
deleted file mode 100644
index 6bf8cc23..00000000
--- a/view/get/feedback-prompt.php
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- Regardless of whether you got LBRY to run or not, your feedback is immensely valuable.
- Everyone who made any effort to install and complete the survey below will receive *.
-
-
- *What is this worth? Who knows! But it will be the largest reward we will ever offer to early adopters.
-
Or, view the source and compile instructions on
- GitHub.
-
-
- $html]) ?>
diff --git a/blog/posts/01-the-lbry-opens.md b/view/posts/01-the-lbry-opens.md
similarity index 100%
rename from blog/posts/01-the-lbry-opens.md
rename to view/posts/01-the-lbry-opens.md
diff --git a/blog/posts/02-as-reddit-burns-it-powers-the-world.md b/view/posts/02-as-reddit-burns-it-powers-the-world.md
similarity index 100%
rename from blog/posts/02-as-reddit-burns-it-powers-the-world.md
rename to view/posts/02-as-reddit-burns-it-powers-the-world.md
diff --git a/blog/posts/03-5-questions-about-lbry.md b/view/posts/03-5-questions-about-lbry.md
similarity index 100%
rename from blog/posts/03-5-questions-about-lbry.md
rename to view/posts/03-5-questions-about-lbry.md
diff --git a/blog/posts/04-meet-the-lbry-founders.md b/view/posts/04-meet-the-lbry-founders.md
similarity index 100%
rename from blog/posts/04-meet-the-lbry-founders.md
rename to view/posts/04-meet-the-lbry-founders.md
diff --git a/blog/posts/06-lbry-promo-video-raw-footage.md b/view/posts/06-lbry-promo-video-raw-footage.md
similarity index 100%
rename from blog/posts/06-lbry-promo-video-raw-footage.md
rename to view/posts/06-lbry-promo-video-raw-footage.md
diff --git a/blog/posts/09-introducing-lbry-the-bitcoin-of-content.md b/view/posts/09-introducing-lbry-the-bitcoin-of-content.md
similarity index 100%
rename from blog/posts/09-introducing-lbry-the-bitcoin-of-content.md
rename to view/posts/09-introducing-lbry-the-bitcoin-of-content.md
diff --git a/blog/posts/10-slides-from-media-demo.md b/view/posts/10-slides-from-media-demo.md
similarity index 100%
rename from blog/posts/10-slides-from-media-demo.md
rename to view/posts/10-slides-from-media-demo.md
diff --git a/blog/posts/11-testimony-to-subcommittee-on-hb552-to-legalize-bitcoin-for-payments-of-taxes-and-fees.md b/view/posts/11-testimony-to-subcommittee-on-hb552-to-legalize-bitcoin-for-payments-of-taxes-and-fees.md
similarity index 100%
rename from blog/posts/11-testimony-to-subcommittee-on-hb552-to-legalize-bitcoin-for-payments-of-taxes-and-fees.md
rename to view/posts/11-testimony-to-subcommittee-on-hb552-to-legalize-bitcoin-for-payments-of-taxes-and-fees.md
diff --git a/blog/posts/12-why-not-use-bitcoin-a-dialogue.md b/view/posts/12-why-not-use-bitcoin-a-dialogue.md
similarity index 100%
rename from blog/posts/12-why-not-use-bitcoin-a-dialogue.md
rename to view/posts/12-why-not-use-bitcoin-a-dialogue.md
diff --git a/blog/posts/13-mike-vine-joins-lbry-as-technology-evangelist-2.md b/view/posts/13-mike-vine-joins-lbry-as-technology-evangelist-2.md
similarity index 100%
rename from blog/posts/13-mike-vine-joins-lbry-as-technology-evangelist-2.md
rename to view/posts/13-mike-vine-joins-lbry-as-technology-evangelist-2.md
diff --git a/blog/posts/14-lbry-gets-content-creators-out-of-precarious-position-daily-decrypts-amanda-b-johnson.md b/view/posts/14-lbry-gets-content-creators-out-of-precarious-position-daily-decrypts-amanda-b-johnson.md
similarity index 100%
rename from blog/posts/14-lbry-gets-content-creators-out-of-precarious-position-daily-decrypts-amanda-b-johnson.md
rename to view/posts/14-lbry-gets-content-creators-out-of-precarious-position-daily-decrypts-amanda-b-johnson.md
diff --git a/blog/posts/15-renowned-ip-attorney-kinsella-joins-lbry-cryptoapp-as-legal-advisor.md b/view/posts/15-renowned-ip-attorney-kinsella-joins-lbry-cryptoapp-as-legal-advisor.md
similarity index 100%
rename from blog/posts/15-renowned-ip-attorney-kinsella-joins-lbry-cryptoapp-as-legal-advisor.md
rename to view/posts/15-renowned-ip-attorney-kinsella-joins-lbry-cryptoapp-as-legal-advisor.md
diff --git a/blog/posts/16-digging-into-lbry.md b/view/posts/16-digging-into-lbry.md
similarity index 100%
rename from blog/posts/16-digging-into-lbry.md
rename to view/posts/16-digging-into-lbry.md
diff --git a/blog/posts/17-rpi-hackers-meet-lbry-rcos-presentation.md b/view/posts/17-rpi-hackers-meet-lbry-rcos-presentation.md
similarity index 100%
rename from blog/posts/17-rpi-hackers-meet-lbry-rcos-presentation.md
rename to view/posts/17-rpi-hackers-meet-lbry-rcos-presentation.md
diff --git a/blog/posts/18-its-time-to-liberate-anne-franks-diary.md b/view/posts/18-its-time-to-liberate-anne-franks-diary.md
similarity index 100%
rename from blog/posts/18-its-time-to-liberate-anne-franks-diary.md
rename to view/posts/18-its-time-to-liberate-anne-franks-diary.md
diff --git a/blog/posts/19-free-lbry-credits-come-and-get-em.md b/view/posts/19-free-lbry-credits-come-and-get-em.md
similarity index 100%
rename from blog/posts/19-free-lbry-credits-come-and-get-em.md
rename to view/posts/19-free-lbry-credits-come-and-get-em.md
diff --git a/blog/posts/20-open-a-valve-to-gush-classic-movies.md b/view/posts/20-open-a-valve-to-gush-classic-movies.md
similarity index 100%
rename from blog/posts/20-open-a-valve-to-gush-classic-movies.md
rename to view/posts/20-open-a-valve-to-gush-classic-movies.md
diff --git a/blog/posts/21-gmu-economist-alex-tabarrok-joins-lbry.md b/view/posts/21-gmu-economist-alex-tabarrok-joins-lbry.md
similarity index 100%
rename from blog/posts/21-gmu-economist-alex-tabarrok-joins-lbry.md
rename to view/posts/21-gmu-economist-alex-tabarrok-joins-lbry.md
diff --git a/blog/posts/22-building-the-web-3-0-decentralizing-content-in-an-age-of-centralization.md b/view/posts/22-building-the-web-3-0-decentralizing-content-in-an-age-of-centralization.md
similarity index 100%
rename from blog/posts/22-building-the-web-3-0-decentralizing-content-in-an-age-of-centralization.md
rename to view/posts/22-building-the-web-3-0-decentralizing-content-in-an-age-of-centralization.md
diff --git a/blog/posts/23-bravenewcoin.md b/view/posts/23-bravenewcoin.md
similarity index 100%
rename from blog/posts/23-bravenewcoin.md
rename to view/posts/23-bravenewcoin.md
diff --git a/blog/posts/24-our-christmas-surprise.md b/view/posts/24-our-christmas-surprise.md
similarity index 100%
rename from blog/posts/24-our-christmas-surprise.md
rename to view/posts/24-our-christmas-surprise.md
diff --git a/blog/posts/25-huemer-joins-lbry-ethical-advisor.md b/view/posts/25-huemer-joins-lbry-ethical-advisor.md
similarity index 100%
rename from blog/posts/25-huemer-joins-lbry-ethical-advisor.md
rename to view/posts/25-huemer-joins-lbry-ethical-advisor.md
diff --git a/blog/posts/26-jack-robison-escaped-60-years-in-prison-now-hes-revolutionizing-the-internet.md b/view/posts/26-jack-robison-escaped-60-years-in-prison-now-hes-revolutionizing-the-internet.md
similarity index 100%
rename from blog/posts/26-jack-robison-escaped-60-years-in-prison-now-hes-revolutionizing-the-internet.md
rename to view/posts/26-jack-robison-escaped-60-years-in-prison-now-hes-revolutionizing-the-internet.md
diff --git a/blog/posts/27-lbry-adds-chief-growth-officer-josh-finer.md b/view/posts/27-lbry-adds-chief-growth-officer-josh-finer.md
similarity index 100%
rename from blog/posts/27-lbry-adds-chief-growth-officer-josh-finer.md
rename to view/posts/27-lbry-adds-chief-growth-officer-josh-finer.md
diff --git a/blog/posts/28-the-dmcas-chilling-effect-on-security-research-and-innovation.md b/view/posts/28-the-dmcas-chilling-effect-on-security-research-and-innovation.md
similarity index 100%
rename from blog/posts/28-the-dmcas-chilling-effect-on-security-research-and-innovation.md
rename to view/posts/28-the-dmcas-chilling-effect-on-security-research-and-innovation.md
diff --git a/blog/posts/29-lbry-app-sneak-peak-big-questions-answered-lbry-on-blocktalk-last-night.md b/view/posts/29-lbry-app-sneak-peak-big-questions-answered-lbry-on-blocktalk-last-night.md
similarity index 100%
rename from blog/posts/29-lbry-app-sneak-peak-big-questions-answered-lbry-on-blocktalk-last-night.md
rename to view/posts/29-lbry-app-sneak-peak-big-questions-answered-lbry-on-blocktalk-last-night.md
diff --git a/blog/posts/30-try-lbry-on-os-x-el-capitan.md b/view/posts/30-try-lbry-on-os-x-el-capitan.md
similarity index 100%
rename from blog/posts/30-try-lbry-on-os-x-el-capitan.md
rename to view/posts/30-try-lbry-on-os-x-el-capitan.md
diff --git a/blog/posts/31-annefrank2.md b/view/posts/31-annefrank2.md
similarity index 100%
rename from blog/posts/31-annefrank2.md
rename to view/posts/31-annefrank2.md
diff --git a/blog/posts/32-if-lbry-succeeds-humanity-wins-lbry-ceo-on-lions-of-liberty-podcast.md b/view/posts/32-if-lbry-succeeds-humanity-wins-lbry-ceo-on-lions-of-liberty-podcast.md
similarity index 100%
rename from blog/posts/32-if-lbry-succeeds-humanity-wins-lbry-ceo-on-lions-of-liberty-podcast.md
rename to view/posts/32-if-lbry-succeeds-humanity-wins-lbry-ceo-on-lions-of-liberty-podcast.md
diff --git a/blog/posts/33-zarghamjoins.md b/view/posts/33-zarghamjoins.md
similarity index 100%
rename from blog/posts/33-zarghamjoins.md
rename to view/posts/33-zarghamjoins.md
diff --git a/blog/posts/35-why-doesnt-lbry-just-use-bitcoin.md b/view/posts/35-why-doesnt-lbry-just-use-bitcoin.md
similarity index 95%
rename from blog/posts/35-why-doesnt-lbry-just-use-bitcoin.md
rename to view/posts/35-why-doesnt-lbry-just-use-bitcoin.md
index d387f2fe..c422e37b 100644
--- a/blog/posts/35-why-doesnt-lbry-just-use-bitcoin.md
+++ b/view/posts/35-why-doesnt-lbry-just-use-bitcoin.md
@@ -10,7 +10,7 @@ Perhaps the most-asked question we receive is: Why have you created LBC, rather
There are three important reasons why we must use LBC instead of Bitcoin. Some of it is highly technical, so please bear with us as we attempt to translate into plain English.
-**Reason #1 – Using LBC instead of Bitcoin makes verifying content ownership possible for lightweight clients.**
+### Reason #1 – Using LBC instead of Bitcoin makes verifying content ownership possible for lightweight clients.
In blockchain-based systems, data (in the case of Bitcoin, transactions) are grouped into multiple packages called blocks. These blocks are “chained” one after another to form the public ledger known as the blockchain. Each block starts with a block header, a comparatively tiny piece of data, which has some metadata about the block such as the time it was mined and a reference to the block that came before it. That metadata also includes a cryptographic value which can be used to prove to someone who doesn’t have (or want) the whole block, but has all of the block headers, that a given transaction was included in that block and therefore into the blockchain. This is used by so-called *lightweight clients*, which make it possible for people to use bitcoin on devices that wouldn’t be able to handle the full blockchain, like web browsers and smartphones.
@@ -18,7 +18,7 @@ LBC block headers contain an additional piece of information: a value which can
This is necessary for LBRY because unlike systems built on Bitcoin or other existing altcoins, LBRY’s naming system assigns ownership over content through an ongoing auction. Whoever pledges the most credits against a name holds it, subject to a defined window for a counter-bid. These bids are stored in a special tree-shaped data structure on the hard drives of all miners. Whenever the winning bid for a name changes, that change has an effect which spreads all the way up the tree and into the special piece of information stored in LBC block headers.
-**Reason #2 – LBRY could easily overwhelm the maximum transaction volume allowed by Bitcoin.**
+### Reason #2 – LBRY could easily overwhelm the maximum transaction volume allowed by Bitcoin.
LBRY intends to thrive on microtransactions that are looking increasingly implausible with Bitcoin. By now, everyone interested in cryptocurrency is all-too-intimately familiar with the limitations of Bitcoin’s current block size. Currently, Bitcoin has a limit of one megabyte of data per block. If enough transactions happen over the network that the one-megabyte limit is reached, all additional transactions are considerably delayed. That’s why we’re currently seeing reports of transaction times in the high double-digits.
@@ -26,7 +26,7 @@ The problem is a double bind. If the block size stays low, then transactions gri
If LBRY starts growing exponentially, we don’t want to worry about contributing to the delinquency of the Bitcoin blockchain by overwhelming it with microtransactions. And in the immediate future, we don’t want to see payments to artists eaten up by Bitcoin’s rising fees.
-**Reason #3 - Decentralization and independence are good for progress.**
+### Reason #3 - Decentralization and independence are good for progress.
One of the main draws of Bitcoin has always been its relative decentralization of control and independence from existing legal and financial systems. Similarly, using LBC as an “appcoin” gives LBRY some healthy autonomy from Bitcoin while allowing for the technical innovations explained above.
@@ -36,7 +36,7 @@ In the early days of our protocol, LBRY Inc. will be making a concerted effort t
Bitcoin was created as a grand experiment to demonstrate blockchain technology and liberate the world from legacy banking, but it couldn’t possibly have been designed to be all things to all applications. We believe our appcoin is the best tool to succeed at our mission of putting every film, song, book, and game ever made onto a blockchain – without trying to displace Bitcoin as a global currency.
-**Wait! This is also relevant to your interests:**
+### Wait! This is also relevant to your interests
Converting from fiat money to cryptocash is hard. But converting between cryptos is super-easy, especially since the launch of [ShapeShift.io](http://www.shapeshift.io/). So LBRYians can earn LBC and quickly convert it to BTC to save or spend. And Bitcoiners can easily convert a bit of their holdings to LBC to get great content on the LBRY network.
diff --git a/blog/posts/36-built-for-artists-by-autists-lbry-takes-autism-personally.md b/view/posts/36-built-for-artists-by-autists-lbry-takes-autism-personally.md
similarity index 94%
rename from blog/posts/36-built-for-artists-by-autists-lbry-takes-autism-personally.md
rename to view/posts/36-built-for-artists-by-autists-lbry-takes-autism-personally.md
index 7cff3663..0a3e8717 100644
--- a/blog/posts/36-built-for-artists-by-autists-lbry-takes-autism-personally.md
+++ b/view/posts/36-built-for-artists-by-autists-lbry-takes-autism-personally.md
@@ -6,7 +6,7 @@ date: '2016-03-21 20:06:18'
Understanding autism is personal for us.
-
+
A recent New York Times [op-ed](http://well.blogs.nytimes.com/2016/03/18/an-experimental-autism-treatment-cost-me-my-marriage/) by John Elder Robison tells the story of his life before and after taking part in a groundbreaking experiment into using an innovative electromagnetic therapy to perhaps remediate a core disability of autism. Robison, who is on the autism spectrum had a successful career and family life, but nevertheless faced personal challenges and decided to try TMS, or transcranial magnetic stimulation, to gain greater insight into the emotional cues and nonverbal communications of other people. Researchers hoped to gain better insight into how TMS might help address these challenges. Robison hopes these insights will one day form the basis of therapies, and he himself experienced great rewards - even from this early stage experiment. The treatment granted him the ability to better read and feel emotions, but it was quite a ride. His marriage fell apart, and many of his personal relationships became strained for years. Conversely, with new eyes, he formed many new relationships, he re-married, and many others relationships grew stronger.
diff --git a/view/analytics/track.php b/view/template/analytics/track.php
similarity index 100%
rename from view/analytics/track.php
rename to view/template/analytics/track.php
diff --git a/view/template/blog/_author.php b/view/template/blog/_author.php
new file mode 100644
index 00000000..e041b977
--- /dev/null
+++ b/view/template/blog/_author.php
@@ -0,0 +1,14 @@
+
+
+ This is a pre-release, beta version of LBRY.
+ It may crash, work unreliably, or inadvertently put a curse on your family for generations (a common programming error).
+ Use at your own risk.
+
\ No newline at end of file
diff --git a/view/template/download/_feedbackPrompt.php b/view/template/download/_feedbackPrompt.php
new file mode 100644
index 00000000..270463b8
--- /dev/null
+++ b/view/template/download/_feedbackPrompt.php
@@ -0,0 +1,8 @@
+
+
+ Earn * for completing the survey below after install.
+
+
+ *What is this worth? Who knows! But it is the largest reward we will ever offer to early adopters.
+
+
diff --git a/view/template/download/_linux.php b/view/template/download/_linux.php
new file mode 100644
index 00000000..5ac26155
--- /dev/null
+++ b/view/template/download/_linux.php
@@ -0,0 +1,18 @@
+
\ No newline at end of file
diff --git a/view/template/download/_osx.php b/view/template/download/_osx.php
new file mode 100644
index 00000000..dcb5ae57
--- /dev/null
+++ b/view/template/download/_osx.php
@@ -0,0 +1,6 @@
+
*/ ?>
\ No newline at end of file
diff --git a/view/template/download/_social.php b/view/template/download/_social.php
new file mode 100644
index 00000000..a957a479
--- /dev/null
+++ b/view/template/download/_social.php
@@ -0,0 +1,15 @@
+
+
Build With Us
+
+
+
Humans
+
Let's create a freer, more creative world.
+
+
+
+
Wanna Be Robots
+
Make with us. All LBRY code is open source.
+
+
+
+
\ No newline at end of file
diff --git a/view/template/download/_unavailable.php b/view/template/download/_unavailable.php
new file mode 100644
index 00000000..8813767f
--- /dev/null
+++ b/view/template/download/_unavailable.php
@@ -0,0 +1,14 @@
+
+
LBRY is coming out on your favorite platform soon. Join our list to know when.
- */ ?>
\ No newline at end of file
+
\ No newline at end of file
diff --git a/view/page/404.php b/view/template/page/404.php
similarity index 100%
rename from view/page/404.php
rename to view/template/page/404.php
diff --git a/view/template/page/docs.php b/view/template/page/docs.php
new file mode 100644
index 00000000..e2b632d0
--- /dev/null
+++ b/view/template/page/docs.php
@@ -0,0 +1,65 @@
+
+ false]) ?>
+
+
+
Docs
+
Layer 1: Protocol
+
While the protocol is one comprehensive set of rules, it is easier to understand as two parts.
+
Part A: The LBRY Blockchain
+
A blockchain, or distributed ledger is the key innovation behind the Bitcoin network. Blockchains solved the very complicated technological problem of having a bunch of distributed, disparate entities all agree on a rivalrous state of affairs (like how much money they owe each other).
+
+
Like Bitcoin, the LBRY blockchain maintain balances -- in this case, balances of LBC, LBRY’s unit of credit. More importantly, the LBRY blockchain also provides a decentralized lookup and metadata storage system. The LBRY blockchain supports a specific set of commands that allows anyone to bid (in LBC) to control a LBRY name, which is a lot like a domain name. Whoever controls a name gets to describe what it contains, what it costs to access, who to pay, and where to find it. These names are sold in a continuous running auction. We will talk more about this system a little later on.
+
+
If you’re a programmer, you might recognize the LBRY blockchain as a key-value store. Each key, or name, corresponds to a value, or a metadata entry. Whichever party or parties bid the most LBC gets to control the metadata returned by a key lookup.
+
+
Here is a sample key-value entry in the LBRY blockchain. Here, wonderfullife is the key, and the rest of the description is the value.
+
+
+ wonderfullife : {
+ title: "It’s a Wonderful Life",
+ description: "An angel helps a compassionate but despairingly frustrated businessman by showing what life would have been like if he never existed.",
+ thumbnail: "http://i.imgur.com/MW45x88.jpg",
+ license: "public domain",
+ price: 0, //free!
+ publisher: "A Fan Of George Bailey", //simplification
+ sources: { //extensible, variable list
+ lbry_hash : <unique id>,
+ url : <url>
+ }
+ }
+
+
A slightly simplified sample entry of metadata in the LBRY blockchain. Whichever party or parties bid the most in an ongoing auction control what a name returns.
+
+
Other than the usage of the LBRY blockchain to store names and metadata, there are only minor differences between the blockchains of LBRY and Bitcoin, and the changes are generally consensus improvements. We’ve buffed the hashing algorithm, smoothed the block reward function, increased the block size, increased the total number of credits, and prepared for offchain settlement.
+
+
The LBRY blockchain simply maintains LBC balances and a content namespace/catalogue. The next part, LBRYnet, specifies what to do with this data. To compare to the existing web, the blockchain is like the domain system (it maintains a listing of what is available), while the next piece makes it possible to actually fetch and pay for content.
+
+
+
Part B: The Data Network (LBRYNet)
+
LBRYNet is the layer that makes the LBRY blockchain useful beyond a simple payment system. It says what to do with the information available in the LBRY blockchain, how to issue payments, how to look up a content identifier, and so on.
+
+
To use the LBRY network, a user’s computer needs the capacity to speak LBRY. That layer is LBRYNet. Just as your computer has a library that enables it to understand HTTP, DNS, and other languages and protocols, LBRYNet is the piece of software that allows your computer to understand how to interact with the LBRY network.
+
+
To understand what role LBRYNet plays, let’s drill a little more into a sample user interaction. Once a user has affirmed access and purchase, such as in step 5 of our Sample Use above, the following happens:
+
+
+
LBRYNet issues a lookup for the name associated with the content. If the client does not have a local copy of the blockchain, this lookup is broadcast to miners or to a service provider. This lookup acquires the metadata associated with the name.
+
LBRYNet issues any required payments, as instructed by metadata entries.
+
+
If the content is set to free, nothing happens here.
+
If the content is set to have a price in LBC, the client must issue a payment in LBC to the specified address. If the content is published encrypted, LBRYNet will not allow access until this payment has been issued.
+
If the content is set to have another payment method, the seller must run or use a service that provides a private server enforcing payment and provisioning accessing keys.
+
+
+
Simultaneous to #2, LBRYNet uses the metadata to download the content itself.
+
+
The metadata allows chunks to be discovered and assembled in a BitTorrent-like fashion. However, unlike BitTorrent, chunks do not individually identify themselves as part of a greater whole. Chunks are just arbitrary pieces of data.
+
If LBRYNet cannot find nodes offering chunks for free, it will offer payments for chunks to other hosts with those chunks.
+
This payment is not done via proof-of-bandwidth, or third-party escrow. Instead, LBRYNet uses reputation, trust, and small initial payments to ensure reliable hosts.
+
If content is not published directly to LBRY, the metadata can instruct other access methods, such as a Netflix URL. This allows us to catalogue content not yet available on LBRY as well as offer legacy and extensibility purposes.
+
+
+
+
+
+
\ No newline at end of file
diff --git a/view/page/feedback.php b/view/template/page/feedback.php
similarity index 88%
rename from view/page/feedback.php
rename to view/template/page/feedback.php
index d805cddb..50b9d21c 100644
--- a/view/page/feedback.php
+++ b/view/template/page/feedback.php
@@ -7,12 +7,13 @@
-
+
-
+
+
diff --git a/view/page/fund-after.php b/view/template/page/fund-after.php
similarity index 100%
rename from view/page/fund-after.php
rename to view/template/page/fund-after.php
diff --git a/view/page/goals.php b/view/template/page/goals.php
similarity index 100%
rename from view/page/goals.php
rename to view/template/page/goals.php
diff --git a/view/template/page/home.php b/view/template/page/home.php
new file mode 100644
index 00000000..a2c4e50f
--- /dev/null
+++ b/view/template/page/home.php
@@ -0,0 +1,73 @@
+
+
+
+ true]) ?>
+
+
+ */ ?>
+
\ No newline at end of file
diff --git a/view/page/publish.php b/view/template/page/publish.php
similarity index 100%
rename from view/page/publish.php
rename to view/template/page/publish.php
diff --git a/view/template/page/slack.php b/view/template/page/slack.php
new file mode 100644
index 00000000..8ec3c158
--- /dev/null
+++ b/view/template/page/slack.php
@@ -0,0 +1,10 @@
+
+ false]) ?>
+
+
+
Chat With Us
+
Oops. You caught us. We haven't automated Slack invites yet. Please email Josh.
+
He answers email approximately as fast as a robot.
+
+
+
\ No newline at end of file
diff --git a/view/page/team.php b/view/template/page/team.php
similarity index 60%
rename from view/page/team.php
rename to view/template/page/team.php
index f9bc5e91..68aabb9a 100644
--- a/view/page/team.php
+++ b/view/template/page/team.php
@@ -3,55 +3,47 @@
false]) ?>
-
-
About Us
-
-
-
-
-
-
LBRY is so simple your Grandma can use it. I’m ready to see blockchain technology become useful for regular people.
-
- Mike Vine Technology Evangelist
-
-
-
-
The Team
+
The Team
+
LBRY is made possible by more people than we could ever list here. The founding team is listed below.
-
Jeremy Kauffman
-
Founder, Chief Executive Officer
-
- Jeremy knows how to build and scale a startup starting from day one. He knows how to deliver usable products and get those products in front of the right people.
-
-
- Jeremy is responsible for the packing, presentation, and strategy of LBRY, as well as some design aspects. He is a longtime BitTorrent community enthusiast.
-
-
- Jeremy founded TopScore, a startup that
- processes millions of dollars monthly in event and activity registrations.
- He also attended Rensselaer Polytechnic Institute, where he received degrees in physics and computer science.
-
+
+
Jeremy Kauffman
+
Founder, Chief Executive Officer
+
+ Jeremy knows how to build and scale a startup starting from day one. He knows how to deliver usable products and get those products in front of the right people.
+
+
+ Jeremy is responsible for the packing, presentation, and strategy of LBRY, as well as some design aspects. He is a longtime BitTorrent community enthusiast.
+
+
+ Jeremy founded TopScore, a startup that
+ processes millions of dollars monthly in event and activity registrations.
+ He also attended Rensselaer Polytechnic Institute, where he received degrees in physics and computer science.
+
+
-
Michael Zargham
-
Founder, Chief Technical Officer
-
- Michael has spent years managing, designing, and overseeing a data science team and framework used to make multi-million dollar
- purchasing decisions for a large media company. He brings knowledge of the media distribution business, software development
- expertise, business development experience, technical skill and a network of corporate contacts.
-
-
- Michael’s ability to rapidly adapt new skill sets makes him a technical and business pocketknife of our startup team. He has a
- PhD in systems engineering from the University of Pennsylvania, with a focus on distributed systems.
-
+
+
Michael Zargham
+
Founder, Chief Technical Officer
+
+ Michael has spent years managing, designing, and overseeing a data science team and framework used to make multi-million dollar
+ purchasing decisions for a large media company. He brings knowledge of the media distribution business, software development
+ expertise, business development experience, technical skill and a network of corporate contacts.
+
+
+ Michael’s ability to rapidly adapt new skill sets makes him a technical and business pocketknife of our startup team. He has a
+ PhD in systems engineering from the University of Pennsylvania, with a focus on distributed systems.
+
+
@@ -59,7 +51,8 @@
-
Josh Finer
+
+
Josh Finer
Founder, Chief Operations & Growth Officer
Josh's combination of an MBA, strong analytical skills, programming skills, advertising expertise, and a perceptive insight to
@@ -68,36 +61,39 @@
Josh has founded innovative financial companies (later acquired), run millions of dollars in Adwords campaigns, and been an early
actor in other crypto projects. Josh's contributions to LBRY will be as diverse as his background.
+
-
- Jimmy Kiselak
-
-
-
Founder, Chief Product Officer
-
- Jimmy is the second member of team LBRY to graduate from Rensselaer with degrees in computer science and physics.
- After, he found himself mired in government bureaucracy, spending too much time to get too little done.
-
-
- Ready to work on a project he believed in, Jimmy left a national security programming job to start LBRY.
- Jimmy created the LBRY protocol and the first LBRY application.
-
-
- Jimmy is a Bitcoin fanatic and has been since its early days. He has long been interested in the benefits of decentralization.
-
+
+
+ Jimmy Kiselak
+
+
+
Founder, Chief Product Officer
+
+ Jimmy is the second member of team LBRY to graduate from Rensselaer with degrees in computer science and physics.
+ After, he found himself mired in government bureaucracy, spending too much time to get too little done.
+
+
+ Ready to work on a project he believed in, Jimmy left a national security programming job to start LBRY.
+ Jimmy created the LBRY protocol and the first LBRY application.
+
+
+ Jimmy is a Bitcoin fanatic and has been since its early days. He has long been interested in the benefits of decentralization.
+
+
-
-
Mike Vine
+
+
Mike Vine
Founder, Evangelist
With a humble BA in Philosophy from Tulane University, Mike has
@@ -113,12 +109,14 @@
Now, he's ready to change the world by harnessing blockchain technology.
Mike heads up LBRY’s marketing efforts and serves as an ambassador for our platform to media, investors, and the public.
+
-
Alex Grin
+
+
Alex Grin
Founder, Chief Infrastructure Officer
One of Alex's job titles is Wizard, so named because he can seemingly understand and utilize
@@ -131,6 +129,7 @@
Alex is the 3rd dual-degree graduate from RPI on this team, receiving degrees in
Computer Science and Psychology. He is also an alumni of Stuyvesant High School.
+
@@ -139,7 +138,8 @@
-
Jack Robison
+
+
Jack Robison
Founder, Core Developer
Jack's path to developer with LBRY is fairly typical:
@@ -156,18 +156,21 @@
Autism Talk TV, has appeared on
National Public Radio, the New York Times, and presents around the country.
Do you think opening up information would facilitate human flourishing?
Do you want to join a bright core of people with an obsession for upending broken systems?
Say hello.
+
Advisory Team
@@ -176,6 +179,27 @@
+<<<<<<< HEAD:view/template/page/team.php
+
+
Alex Tabarrok
+
Economic Advisor
+
Alex Tabarrok is Bartley J. Madden Chair in Economics at the Mercatus Center
+ and a professor of economics at George Mason University. He specializes in intellectual property reform, the effectiveness of markets, and the justice system.
+
+
Tabarrok is the coauthor, with Mercatus colleague Tyler Cowen, of the popular economics blog Marginal Revolution
+ and cofounder of the online educational platform Marginal Revolution University.
+ He is the coauthor of
+ Modern Principles of Economics,
+ and author of the recent book
+ Launching the Innovation Renaissance.
+ His articles have appeared in the New York Times, the Washington Post, the Wall Street Journal, and many
+ other prestigious publications.
+
Michael Huemer is Professor of Philosophy and Ethics at the University of Colorado,
where he has taught since 1998. He has published three single-author scholarly books
(including Ethical Intuitionism),
one edited anthology, and more than fifty academic articles in epistemology, ethics, political philosophy, and metaphysics.
-
+
Huemer's articles have appeared in such journals as the Philosophical Review, Mind, the Journal of Philosophy, Ethics, and others.
His materials are used as readings in classrooms nationwide. He received a B.A. from UC Berkeley and a Ph.D. from Rutgers University.
+
-
You
+
+
You
Technical or Media Advisor
LBRY is seeking an extremely experienced technical advisor or an advisor with a strong background in the publishing and media space.
If you're that person or have a suggestion,
let us know.
-
+
diff --git a/view/page/what.php b/view/template/page/what-old.php
similarity index 98%
rename from view/page/what.php
rename to view/template/page/what-old.php
index 62f4b31f..53467ec4 100644
--- a/view/page/what.php
+++ b/view/template/page/what-old.php
@@ -2,9 +2,6 @@
false]) ?>
-
-
What is LBRY?
-
A revolution in accessing and publishing information.
@@ -37,8 +34,8 @@
+
What is LBRY?
-
Tell Me More
LBRY allows anyone to publish content to a location like this:
lbry://wonderfullife
Others can access this resource, either for free or for credits. Let's look at an example:
diff --git a/view/page/art.php b/view/template/page/what.php
similarity index 69%
rename from view/page/art.php
rename to view/template/page/what.php
index 27ab1745..6aec3e25 100644
--- a/view/page/art.php
+++ b/view/template/page/what.php
@@ -1,18 +1,21 @@
+
+
+ true, 'isAbsolute' => true]) ?>
-
Art in the Internet Age
+
Art in the Internet Age
- by Jeremy Kauffman, Michael Zargham, and Jack Robison
+ An introduction to LBRY.
-
Introduction
+
Introduction
In 34,000 B.C., there were cave paintings. And that’s it. When you came home from a sweltering August day of foraging along the Vézère river, the only form of non-live art or entertainment available was something like the above buffalo.
Today, we live in a world of near infinite choices. This is true not just for art but for all kinds of things (like potato chips). Since the era of cave art, humanity has incessantly and progressively trended towards interconnected, more efficient, and increasingly transparent markets. This undercurrent of connectedness and openness has affected everything human beings produce.
-
Nerds like us like to speculate about the end-game of this trend with others on the internet. What will society be like when we have a "Star Trek"-like capacity to instantly and freely replicate anything that exists? The term for this society is post-scarcity1.
+
Nerds like us like to speculate about the end-game of this trend with others on the internet. What will society be like when we have a "Star Trek"-like capacity to instantly and freely replicate anything that exists? The term for this society is post-scarcity1.
Generally, post-scarcity is regarded as fantastical; something that will never happen in our lifetimes. Except for one area: digital goods.
@@ -26,12 +29,12 @@
-
A People’s Marketplace
+
A People’s Marketplace
LBRY is the first digital marketplace to be controlled by the market’s participants rather than a corporation or other 3rd-party. It is the most open, fair, and efficient marketplace for digital goods ever created, with an incentive design encouraging it to become the most complete.
At the highest level, LBRY does something extraordinarily simple. LBRY creates an association between a unique name and a piece of digital content, such as a movie, book, or game. This is similar to the domain name system that you are most likely using to access this very post.
-
+
A user searches and prepares to stream and the film It’s a Wonderful Life, located at lbry://wonderfullife, via a completely decentralized network. Try it out for yourself at lbry.io/get.
@@ -43,32 +46,34 @@
Coupled payment and access. If desired, the person who publishes to lbry://wonderfullife can charge a fee to users that view the content.
-
Decentralized and distributed. Content published to LBRY is not specific to one computer or network. No one party, including us, can unilaterally remove or block content on the LBRY network.
-
- (If it worries you that LBRY could facilitate unsavory content, this is discussed in its own section.)
-
+
Decentralized and distributed. Content published to LBRY is not specific to one computer or network. No one party, including us, can unilaterally remove or block content on the LBRY network.2
Domain names are controlled via ongoing auction. This facilitates names being controlled by the publishers that value them most. These transactions take place via an electronic currency called LBRY credits, or LBC. This is covered in more detail, below.
While creating a protocol that we ourselves cannot control sounds chaotic, it is actually about establishing trust. Every other publishing system requires trusting an intermediary that can unilaterally change the rules on you. What happens when you build your business on YouTube or Amazon and they change fees? Or Apple drops your content because the Premier of China thought your comedy went to far?
Only LBRY consists of a known, promised set of rules that no one can unilaterally change. LBRY provides this by doing something unique: leaving the users in control rather than demanding that control for itself.
+
-
A Sample Use
-
Let’s look at a sample use of LBRY, Ernest releasing a film on LBRY that is later purchased and viewed by Hilary.
+
A Sample Use
+
Let’s look at a sample use of LBRY, Ernest releasing a film on LBRY that is later purchased and viewed by Hillary.
-
Ernest wants to release his comedy-horror film, Ernie Goes To Guantanamo Bay.
+
Ernest wants to release his comedy-horror film, Ernie Runs For President.
The content is encrypted and sliced into many pieces. These pieces are stored by hosts.
Ernest reserves lbry://ernieruns, a name pointing to his content.
When Ernest reserves the location, he also submits metadata, such as a description and thumbnail.
-
Hillary, a user, browses the LBRY network and decides she wants to watch the film.
+
Hillary, a user, opens her browser, searches the LBRY network, and decides she wants to watch the film.
Hillary issues a payment to Ernest for the decryption key, allowing her to watch the film.
Hillary’s LBRY client collects the pieces from the hosts and reassembles them, using the key to decrypt the pieces (if necessary). This is transparent to Hillary, the film streams within a few seconds after purchase.
-
This is a lot like an interaction that can happen on many different sites on the web, except that this one happens via a network that is completely decentralized. The data and technology that makes the entire interaction possible is not reliant on nor controlled by any single entity (as it would be via YouTube, Amazon, etc.).
+
From a user's perspective, interaction is extremely similar to those that happen on hundreds of different sites, similar to YouTube, Amazon and Netflix.
+ The key different is that this one happens via a network that is completely decentralized.
+ The data and technology that makes the entire interaction possible is not reliant on nor controlled by any single entity.
+
+
The LBRY Network
To understand precisely what LBRY is and why it matters, one must understand both LBRY as a protocol and the services the protocol enables. HTTP is the protocol that makes web browsing possible, but it would be of little interest without the service of a web browser!
@@ -77,6 +82,8 @@
For a user using LBRY at the service level, the magic of what the LBRY protocol does will be largely transparent, much as a typical internet user sees nothing of how HTTP works. Via a LBRY application, a user will be able to open a familiar interface to quickly and easily discover and purchase a piece of digital content published by anyone in the world.
However, such an application would not be possible without the LBRY the underlying layer, the LBRY protocol.
+
+
Layer 1: Protocol
While the protocol is one comprehensive set of rules, it is easier to understand as two parts.
Part A: The LBRY Blockchain
@@ -159,16 +166,17 @@
Transaction Settlement
While payments can be issued directly on the LBRY blockchain, the LBRY protocol encourages a volume of transactions that will not scale without usage of offchain settlement.
-
Essentially, rather than issue a transaction to the core blockchain, transactions are issued to a 3rd-party provider. These providers have a substantial number of coins which are used to maintain balances internally and settle a smaller number of transactions to the core chain. In exchange, these providers earn a small fee, less than the fee required to issue the transaction directly to the blockchain.
+
Essentially, rather than issue a transaction to the core blockchain, transactions are issued to a 3rd-party provider. These providers have a substantial number of coins which are used to maintain balances internally and settle a smaller number of transactions to the core chain. In exchange, these providers earn a small fee, less than the fee required to issue the transaction directly to the blockchain.
*
+
+
LBRY Credits
LBRY Credits, or LBC, are the unit of account for LBRY. Eventually 1,000,000,000 LBC will exist, according to a defined schedule over 20 years. The schedule decays exponentially, with around 100,000,000 in the first year.
Additionally, some credits are awarded on a fixed basis. The total break down looks like this:
-
10% are used to peg LBC to Bitcoin, likely via a sidechain. This will allow LBRY to leverage the security of the Bitcoin blockchain, and incentive adoption from Bitcoin users.
10% for organizations, charities, and other strategic partners. Organizations the EFF, ACLU, and others that have fought for digital rights and the security and freedom of the internet.
-
10% for adoption programs. We’ll be giving out lots of bonus credits, especially in the early days of LBRY, in order to encourage participation. We will also look to award credits broadly, ensuring the marketplace is egalitarian.
+
20% for adoption programs. We’ll be giving out lots of bonus credits, especially in the early days of LBRY, in order to encourage participation. We will also look to award credits broadly, ensuring the marketplace is egalitarian.
10% for us. For operational costs as well as profit.
60% earned by LBRY users, via mining the LBRY cryptocurrency.
@@ -186,7 +194,7 @@
As names in demand on LBRY will be more expensive, the names themselves will also serve as a signal of reputation, legitimacy, and quality. If a user searches LBRY for Spider Man and sees one at lbry://spiderman and one at lbry://spiderman_russhaxor, there will be little doubt that the latter is less legitimate.
-
Combatting The Ugly
+
Combatting The Ugly
As neither naïfs nor knaves, we acknowledge that LBRY can be used for bad ends. Technology is frequently this way. Encryption protects our privacy -- as well as that of terrorists. Cars allow us to travel marvelous distances -- and kill millions per year.
The downside to LBRY is that it can be used to exchange illegal content. However, several factors of LBRY make illicit usage less likely than it may seem at first consideration. On the whole, as with the car and encryption, the benefits of LBRY clearly outway nefarious uses.
@@ -228,8 +236,95 @@
If LBRY succeeds, we will enter a world that is even more creative, connected, and conservatory. We will waste less and we make more. We will create a world where a teenager in Kenya and a reality star in Los Angeles use the same tool to search the same network and have access to the same results -- a world where information, knowledge, and imagination know no borders.
-
Build our dream with us. Download LBRY at lbry.io/get.
+
Build our dream with us. Download LBRY at lbry.io/get.
+
+Layer 1: Protocol
+
While the protocol is one comprehensive set of rules, it is easier to understand as two parts.
+
Part A: The LBRY Blockchain
+
A blockchain, or distributed ledger is the key innovation behind the Bitcoin network. Blockchains solved the very complicated technological problem of having a bunch of distributed, disparate entities all agree on a rivalrous state of affairs (like how much money they owe each other).
+
+
Like Bitcoin, the LBRY blockchain maintain balances -- in this case, balances of LBC, LBRY’s unit of credit. More importantly, the LBRY blockchain also provides a decentralized lookup and metadata storage system. The LBRY blockchain supports a specific set of commands that allows anyone to bid (in LBC) to control a LBRY name, which is a lot like a domain name. Whoever controls a name gets to describe what it contains, what it costs to access, who to pay, and where to find it. These names are sold in a continuous running auction. We will talk more about this system a little later on.
+
+
If you’re a programmer, you might recognize the LBRY blockchain as a key-value store. Each key, or name, corresponds to a value, or a metadata entry. Whichever party or parties bid the most LBC gets to control the metadata returned by a key lookup.
+
+
Here is a sample key-value entry in the LBRY blockchain. Here, wonderfullife is the key, and the rest of the description is the value.
+
+
+ wonderfullife : {
+ title: "It’s a Wonderful Life",
+ description: "An angel helps a compassionate but despairingly frustrated businessman by showing what life would have been like if he never existed.",
+ thumbnail: "http://i.imgur.com/MW45x88.jpg",
+ license: "public domain",
+ price: 0, //free!
+ publisher: "A Fan Of George Bailey", //simplification
+ sources: { //extensible, variable list
+ lbry_hash : <unique id>,
+ url : <url>
+ }
+ }
+
+
A slightly simplified sample entry of metadata in the LBRY blockchain. Whichever party or parties bid the most in an ongoing auction control what a name returns.
+
+
Other than the usage of the LBRY blockchain to store names and metadata, there are only minor differences between the blockchains of LBRY and Bitcoin, and the changes are generally consensus improvements. We’ve buffed the hashing algorithm, smoothed the block reward function, increased the block size, increased the total number of credits, and prepared for offchain settlement.
+
+
The LBRY blockchain simply maintains LBC balances and a content namespace/catalogue. The next part, LBRYnet, specifies what to do with this data. To compare to the existing web, the blockchain is like the domain system (it maintains a listing of what is available), while the next piece makes it possible to actually fetch and pay for content.
+
+
+
Part B: The Data Network (LBRYNet)
+
LBRYNet is the layer that makes the LBRY blockchain useful beyond a simple payment system. It says what to do with the information available in the LBRY blockchain, how to issue payments, how to look up a content identifier, and so on.
+
+
To use the LBRY network, a user’s computer needs the capacity to speak LBRY. That layer is LBRYNet. Just as your computer has a library that enables it to understand HTTP, DNS, and other languages and protocols, LBRYNet is the piece of software that allows your computer to understand how to interact with the LBRY network.
+
+
To understand what role LBRYNet plays, let’s drill a little more into a sample user interaction. Once a user has affirmed access and purchase, such as in step 5 of our Sample Use above, the following happens:
+
+
+
LBRYNet issues a lookup for the name associated with the content. If the client does not have a local copy of the blockchain, this lookup is broadcast to miners or to a service provider. This lookup acquires the metadata associated with the name.
+
LBRYNet issues any required payments, as instructed by metadata entries.
+
+
If the content is set to free, nothing happens here.
+
If the content is set to have a price in LBC, the client must issue a payment in LBC to the specified address. If the content is published encrypted, LBRYNet will not allow access until this payment has been issued.
+
If the content is set to have another payment method, the seller must run or use a service that provides a private server enforcing payment and provisioning accessing keys.
+
+
+
Simultaneous to #2, LBRYNet uses the metadata to download the content itself.
+
+
The metadata allows chunks to be discovered and assembled in a BitTorrent-like fashion. However, unlike BitTorrent, chunks do not individually identify themselves as part of a greater whole. Chunks are just arbitrary pieces of data.
+
If LBRYNet cannot find nodes offering chunks for free, it will offer payments for chunks to other hosts with those chunks.
+
This payment is not done via proof-of-bandwidth, or third-party escrow. Instead, LBRYNet uses reputation, trust, and small initial payments to ensure reliable hosts.
+
If content is not published directly to LBRY, the metadata can instruct other access methods, such as a Netflix URL. This allows us to catalogue content not yet available on LBRY as well as offer legacy and extensibility purposes.
+
+
+
+
Layer 2: Services
+
Services are what actually make the LBRY protocol useful. While the LBRY protocol determines what is possible, it is the services that actually do things.
+
+
While the protocol is determined, open, and fixed, the service layer is much more flexible. It is far easier to redesign a website than it is to revise the HTTP protocol itself. The same is true here.
+
+
Additionally, just as in the early days of the internet the later direction of web would have been unfathomable, so too may the best uses of LBRY’s namespace or technology be undiscovered. However, here are some clear uses.
+
Applications and Devices
+
A LBRY application is how a user would actually have meaningful interactions with the LBRY network. A LBRY client packages the power of the LBRY protocol into a simple application that allows the user to simply search for content, pay for it when necessary, download and enjoy.
+
+
Additionally, a LBRY client can allow users to passively participate in the network, allowing them to automatically earn rewards in exchange for contributing bandwidth, disk space, or processing power to the overall network.
+
+
Applications beyond a traditional computer based browser are possible as well. A LBRY television dongle, a LBRY radio, and any number of existing content access mechanisms can be implemented via an analogous LBRY device.
+
Content Discovery
+
Although the namespace provided by the LBRY protocol is helpful towards discovery, much as the web would be much less useful without search engines or aggregators, LBRY needs it’s own discovery mechanisms.
+
+
Search features can be constructed from the catalogue of metadata provided in the blockchain as well as the content transaction history available in the blockchain or observed on the network. All of this data, along with user history, allows for the creation of content recommendation engines and advanced search features.
+
+
Discovery on LBRY can also take the form of featured content. Clients can utilize featured content to provide additional visibility for new content that consumers might not otherwise be looking for.
+
Content Distribution
+
Digital content distributors with server-client models are subject to the whims of internet service providers and hostile foreign governments. Traffic from the host servers can be throttled or halted altogether if the owners of cables and routers so choose. However, in case of the LBRY protocol content comes from anywhere and everywhere, and is therefore not so easily stifled.
+
+
Additionally, the market mechanisms of LBRY create a strong incentive for efficient distribution, which will save the costs of producers and ISPs alike. These properties, along with LBRY’s infringement disincentivizing properties, make LBRY an appealing technology for large existing data or content distributors.
+
Transaction Settlement
+
While payments can be issued directly on the LBRY blockchain, the LBRY protocol encourages a volume of transactions that will not scale without usage of offchain settlement.
+
+
Essentially, rather than issue a transaction to the core blockchain, transactions are issued to a 3rd-party provider. These providers have a substantial number of coins which are used to maintain balances internally and settle a smaller number of transactions to the core chain. In exchange, these providers earn a small fee, less than the fee required to issue the transaction directly to the blockchain.
*
+ */ ?>
\ No newline at end of file
diff --git a/view/page/why.php b/view/template/page/why.php
similarity index 100%
rename from view/page/why.php
rename to view/template/page/why.php
index ed128cef..6a7725b7 100644
--- a/view/page/why.php
+++ b/view/template/page/why.php
@@ -3,7 +3,6 @@
false]) ?>
-
Why?
@@ -14,6 +13,7 @@
+
Why?
The World We Live In
Annual internet video traffic is approximately 500 exabytes (500,000,000,000 GB)1.
diff --git a/view/social/sidebar.php b/view/template/social/_list.php
similarity index 53%
rename from view/social/sidebar.php
rename to view/template/social/_list.php
index 03763270..c395587a 100644
--- a/view/social/sidebar.php
+++ b/view/template/social/_list.php
@@ -1,10 +1,9 @@
-
\ No newline at end of file
diff --git a/view/template/social/_listDev.php b/view/template/social/_listDev.php
new file mode 100644
index 00000000..3409eee2
--- /dev/null
+++ b/view/template/social/_listDev.php
@@ -0,0 +1,11 @@
+
+ Documentation
+