Skip to content

Commit

Permalink
Made docusarusu work
Browse files Browse the repository at this point in the history
  • Loading branch information
Olshansk committed Oct 31, 2024
1 parent 4b990fc commit b683816
Show file tree
Hide file tree
Showing 10 changed files with 403 additions and 101 deletions.
2 changes: 1 addition & 1 deletion docusaurus/docs/protocol/primitives/gateways.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Gateways
sidebar_position: 4
sidebar_position: 3
---

# Gateways <!-- omit in toc -->
Expand Down
51 changes: 3 additions & 48 deletions docusaurus/docs/protocol/primitives/probabilistic_proofs.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,9 @@
---
title: Probabilistic Proofs
sidebar_position: 3
title: Probabilistic Proofs (Shannon)
sidebar_position: 5
---

## Probabilistic Proofs <!-- omit in toc -->

Probabilistic Proofs is a method to scale Pocket Network indefinitely.

- [Abstract](#abstract)
- [Problem Statement](#problem-statement)
- [Example Scenario](#example-scenario)
- [High Level Approach](#high-level-approach)
- [Key Question](#key-question)
- [Guarantees \& Expected Values](#guarantees--expected-values)
- [Modeling an Attack](#modeling-an-attack)
- [Defining a Single (Bernoulli) Trial](#defining-a-single-bernoulli-trial)
- [Onchain Governance Parameters](#onchain-governance-parameters)
- [Dishonest Supplier: Calculating the Expected Value](#dishonest-supplier-calculating-the-expected-value)
- [Modelling a Dishonest Supplier's Strategy using a Geometric PDF (Probability Distribution Function)](#modelling-a-dishonest-suppliers-strategy-using-a-geometric-pdf-probability-distribution-function)
- [Expected Number of False Claims (Failures) Before Getting Caught (Success)](#expected-number-of-false-claims-failures-before-getting-caught-success)
- [Modelling a Dishonest Supplier's Strategy using a Geometric CDF (Cumulative Distribution Function)](#modelling-a-dishonest-suppliers-strategy-using-a-geometric-cdf-cumulative-distribution-function)
- [Total Rewards: Expected Value Calculation for Dishonest Supplier Before Penalty](#total-rewards-expected-value-calculation-for-dishonest-supplier-before-penalty)
- [Expected Penalty: Slashing amount for Dishonest Supplier](#expected-penalty-slashing-amount-for-dishonest-supplier)
- [Total Profit: Expected Value Calculation for Dishonest Supplier AFTER Penalty](#total-profit-expected-value-calculation-for-dishonest-supplier-after-penalty)
- [Honest Supplier: Calculating the Expected Value](#honest-supplier-calculating-the-expected-value)
- [Setting Parameters to Deter Dishonest Behavior](#setting-parameters-to-deter-dishonest-behavior)
- [Solving for Penalty `S`](#solving-for-penalty-s)
- [Example Calculation](#example-calculation)
- [Generalizing the Penalty Formula](#generalizing-the-penalty-formula)
- [Considering false Claim Variance](#considering-false-claim-variance)
- [Crypto-economic Analysis \& Incentives](#crypto-economic-analysis--incentives)
- [Impact on Honest Suppliers](#impact-on-honest-suppliers)
- [Impact on Dishonest Suppliers](#impact-on-dishonest-suppliers)
- [Analogs between Model Parameters and onchain Governance Values](#analogs-between-model-parameters-and-onchain-governance-values)
- [Parameter Analog for Penalty (`S`)](#parameter-analog-for-penalty-s)
- [Parameter Analog for Reward (`R`)](#parameter-analog-for-reward-r)
- [Considerations during Parameter Adjustment](#considerations-during-parameter-adjustment)
- [Selecting Optimal `p` and `S`](#selecting-optimal-p-and-s)
- [Considerations for `ProofRequirementThreshold`](#considerations-for-proofrequirementthreshold)
- [Modelling `ProofRequirementThreshold`](#modelling-proofrequirementthreshold)
- [Normal Distribution](#normal-distribution)
- [Non-Normal Distribution](#non-normal-distribution)
- [Considerations for `ProofRequestProbability` (`p`)](#considerations-for-proofrequestprobability-p)
- [Maximizing `Pr(X<=k)` to ensure `k or less` failures (Supplier escapes without penalty)](#maximizing-prxk-to-ensure-k-or-less-failures-supplier-escapes-without-penalty)
- [Conclusions for Modelling](#conclusions-for-modelling)
- [Morse Based Value Selection](#morse-based-value-selection)
- [Selecting `ProofRequirementThreshold`](#selecting-proofrequirementthreshold)
- [Calculating `p`: `ProofRequestProbability`](#calculating-p-proofrequestprobability)
- [Calculating `S`: `ProofMissingPenalty`](#calculating-s-proofmissingpenalty)
- [Future Work](#future-work)
_tl;dr Probabilistic Proofs is a method to scale Pocket Network indefinitely._

## Abstract

Expand Down
16 changes: 10 additions & 6 deletions docusaurus/docs/protocol/primitives/probabilistic_proofs_morse.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Probabilistic Proofs <!-- omit in toc -->
---
title: Probabilistic Proofs (Morse)
sidebar_position: 6
---

:::warning

This document was copied over from the [pocket-core](https://github.com/pokt-network/pocket-core)
repo for reference until Probabilistic Proofs are in production. Please see [Probabilisti Proofs (Shannon)](./probabilistic_proofs.md) as the primary source of truth.

<p align="center">
@olshansk - Daniel Olshansky<br>
@RawthiL - Ramiro Rodríguez Colmeiro<br>
Feb 2023
</p>
:::

This is a specification & proposal that will be submitted to [forum.pokt.network](https://forum.pokt.network) after peer-review.

Expand Down
2 changes: 1 addition & 1 deletion docusaurus/docs/protocol/primitives/relay_mining.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Relay Mining
sidebar_position: 3
sidebar_position: 4
---

# Relay Mining <!-- omit in toc -->
Expand Down
2 changes: 2 additions & 0 deletions docusaurus/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ const config = {
routeBasePath: "/",
sidebarPath: "./sidebars.js",
sidebarCollapsible: false,
remarkPlugins: [require("remark-math")],
rehypePlugins: [require("rehype-katex")],
},
theme: {
customCss: [
Expand Down
Loading

0 comments on commit b683816

Please sign in to comment.