Your Journal Title



Jekyll journal

this is a sample description

Created on : 12 October 2023

Contributors : Name1, Name 2

Special thanks to username1, username2 for conducting a review on this journal.


Table of contents

  1. Discrete State Machine (DSM)
  2. Path Graph

#1. top

##1. At first

###1. One thing

###1. Another thing

##1. Second

##1. Third

Probability of branch $A$ being chosen: $\mathbb{P}_A = \frac{v}{V}$, where $v$ = Number of validators staking on branch $A$ and $V$ = Total number of validators in the network.

Probability of branch $B$ being chosen: $\mathbb{P}_B = \frac{w}{V}$, where $w$ = Number of validators staking on branch $B$.

\[\text{Priority Level} = \begin{cases} 1, & \text{if } \text{Low Gas Price} \leq 1 \\\\ 2, & \text{if } 1 \leq \text{Mid Gas Price} \leq 2 \\\\ 3, & \text{if } \text{High Gas Price} > 2 \\\\ \end{cases}\] \[\text{TxPriority }[0,1] = \frac{\text{Priority Level}}{6} + \frac{\mathbb{C}(\text{Reputation})-\mathbb{S}(\text{Rep}_{min})}{(\mathbb{S}(\text{Rep}_{max})-\mathbb{S}(\text{Rep}_{min}))\cdot (0.5)}\]
graph LR
  v_1 --e_1 = v_1, v_2--> v_2
  v_2 --e_2 = v_2, v_(2-1)--> ...
  ... --e_i = v_i, v_(i-1)--> v_n
Author(s) Key Contribution hello kanfnsnlknlkkkkmkkkkkkkkkkkkkkkkkk
Buterin Proposed the concept of a blockchain with a Turing-complete language.
Dwork and Naor Introduced the idea of using “proof-of-work” for value transmission.  
Adam Back Developed a similar system using “proof-of-work.”  
Vivek Vishnumurthy Used “proof-of-work” for peer-to-peer file trading with security measures.  
Nakamoto Created Bitcoin, the first widely adopted decentralized ledger.  
Sprankel Discussed Litecoin and Primecoin as Bitcoin alternatives.  
Aron Explored Namecoin, a decentralized name-resolution system.  
Willet Proposed Mastercoin, a protocol with additional features on top of Bitcoin.  
Rosenfeld Suggested Coloured Coins, allowing token creation and tracking in Bitcoin.  
Boutellier Discussed Ripple’s “federated” system for currency exchange.  
Szabo and Miller. Early work on smart contracts, predicting their impact on cooperation.  
Function - 1

hello

Check - 1

hello

Complete - 1

hello

Danger - 1

hello

Error - 1

hello

Example - 1

hello

Function - 2

hello

Info - 1

hello

Issue - 1

hello

Note - 1

hello

Solution - 1

hello

Success - 1

hello

Tip - 1

hello

Warning - 1

hello

Info - 2

Discrete State Machine (DSM)

DSM can be formally expressed as $(\sum,S,s_o,\delta)$, where $\sum$ is the set of all possible states, $S$ is the set of possible states, $s_0$ is the initial state, and $\delta$ is the state-transition function that governs how the system moves between states based on specific conditions or events. It can be better explained as follows:

  1. State Transition System: A DSM represents a system as a state transition system. This means that the system can exist in different states, and it can change from one state to another based on specific conditions or events.

  2. Set of Possible States (S): The DSM deals with a countable set of all the possible states the system can be in. This set is denoted as ‘$S$’. These states represent the various configurations or conditions based on the behaviours of the system.

  3. Initial State $(s_0)$: Every DSM has an initial state, denoted as ‘$s_0$’, which is one of the elements within the set of possible states ‘$S$’. It represents the starting point of the system’s operation.

  4. State-Transition Function $(\delta)$: The heart of a DSM is the state-transition function, represented as ‘$\delta$’. This function defines the rules or conditions under which the system can change from one state to another. It takes the current state as input and produces the next state as output.

  5. DSM Tuple: To fully define a DSM, we use a tuple consisting of the following components:

    • ’$\sum$’ represents the countable set of all possible states.
    • ‘$S$’ represents the set of possible states.
    • ‘$s_0$’ is the initial state.
    • ’$\delta$’ is the state-transition function.
graph TD
    subgraph DSM
        subgraph StateTransitionSystem
            A[State 1] -->|Input/Event 1| B[State 2]
            A -->|Input/Event 2| C[State 3]
            B -->|Input/Event 3| A
            C -->|Input/Event 4| B
        end
    end

In the context of Polkadot Protocol, which is a distributed blockchain. The state-transition function in this case is implemented by the Polkadot Runtime.

Algorithm - 2

Path Graph

The concept of a path graph, often denoted as $P_n$ , finds its origins in graph theory. It represents a specific type of tree structure characterized by a linear arrangement of nodes. In a path graph, there are two nodes at the ends of the path with a degree of $1$, while the intermediate nodes, which total $n-2$ in number, have a degree of $2$.

In the case of a path graph, it can be thought of as a simple linear structure with nodes arranged in a particular way. This arrangement can be represented as a sequence of nodes or vertices $(v_1, v_2, \ldots, v_n)$, with edges defined as $e_i = (v_i, v_{i+1})$ for $1 \leq i \leq n-1$. This means that each node is connected to the next one in the sequence, forming a linear path.

\begin{algorithm}
\caption{Aggregate-Key}
\begin{algorithmic}
    \require{$P_N \coloneqq ($\textsc{TrieRoot}$ = N_1, \dots, N_j = N)$}
    \state $pk^{Agr}_N \leftarrow \phi$
    \state $i \leftarrow 1$
    \forall{$N_i \in P_N$}
    \state $pk^{Agr}_N \leftarrow pk^{Agr}_N || pk_{N_i} || \textrm{Index}_{N_i}(N_{i + 1})$
    \endfor
    \state $pk^{Agr}_N \leftarrow pk^{Agr}_N || pk_{N}$
    \return $pk^{Agr}_N$
\end{algorithmic}
\end{algorithm}
graph LR
  v_1 --e_1 = v_1, v_2--> v_2
  v_2 --e_2 = v_2, v_(2-1)--> ...
  ... --e_i = v_i, v_(i-1)--> v_n
\begin{algorithm}
\caption{Aggregate-Key}
\begin{algorithmic}
    \require{$P_N \coloneqq ($\textsc{TrieRoot}$ = N_1, \dots, N_j = N)$}
    \state $pk^{Agr}_N \leftarrow \phi$
    \state $i \leftarrow 1$
    \forall{$N_i \in P_N$}
    \state $pk^{Agr}_N \leftarrow pk^{Agr}_N || pk_{N_i} || \textrm{Index}_{N_i}(N_{i + 1})$
    \endfor
    \state $pk^{Agr}_N \leftarrow pk^{Agr}_N || pk_{N}$
    \return $pk^{Agr}_N$
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\caption{Validate-Transactions-and-Store}
\begin{algorithmic}
    \state $L \leftarrow Dec_{SC}(M_T)$
    \forall{$\{T \in L \mid T \notin TQ \mid T \notin TP\}$}
        \state $B_d \leftarrow$ \call{Head}{\call{Longest-Chain}{$BT$}}
        \state $N \leftarrow H_n(B_d)$
        \state $R \leftarrow$ \call{Call-Runtime-Entry}{$\texttt{TaggedTransactionQueue\_validate\_transaction}, N, T$}
        \if{\call{Valid}{$R$}}
            \if{\call{Requires}{$R$}$ \subset \bigcup_{\forall T \in (TQ~\cup~B_i \mid \exists i_{\mid d > i})}$ \call{Provided-Tags}{$T$}}
                \state \call{Insert-At}{$TQ, T, $\call{Requires}{$R$}$, $\call{Priority}{$R$}}
            \else
                \state \call{Add-To}{$TP,T$}
            \endif
            \state \call{Maintain-Transaction-Pool}{}
            \if{\call{ShouldPropagate}{$R$}}
                \state \call{Propagate}{$T$}
            \endif
        \endif
    \endfor
\end{algorithmic}
\end{algorithm}

Discussions