Giter VIP home page Giter VIP logo

kunta-labs / aos-paper Goto Github PK

View Code? Open in Web Editor NEW
2.0 5.0 0.0 1.49 MB

Herein lies a technical proposal to free Africa from the financial and economic agreements coerced upon the continent over a century ago by utilizing decentralized collaboration through advanced technology. AfricaOS (AOS) aims to provide a philosophical, and fundamental framework for implementing a simple, distributed, collaborative computer

Home Page: http://aos.kunta.io

License: MIT License

TeX 100.00%
blockchain distributed-systems distributed-computing cryptocurrency crypto bitcoin ethereum replicated-state-machine consensus byzantine-fault-tolerance

aos-paper's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aos-paper's Issues

simple proposal election calculation

The proposal creation function still iterates congruently, but the expected node id is not what is expected. All tests pass now, but this is was the bug. It didn't stop proposal generation for nodes, but it chose the wrong participant to create the next proposal

aos-paper/aos.tex

Lines 343 to 353 in bdf32e5

\begin{equation}
\texttt{PCE} := ((B_i + 1) \: \texttt{mod} \: \vert N \vert) + 1
\end{equation}
\hspace*{15pt}
where we add \(1\) to \(B_i\) to represent the next block id, and we add \(1\) to the result assuming node ids, \(N_{id}\) begin at \(1\), not \(0\). The node then checks for whether or not its own node id, \(N_{id}\), is equal to the result of \texttt{PCE}. Effectively, this is checking whether or not \(N_{id}\) is congruent to the next \(B_i\) modulo the cardinality of nodes being considered or proposal creation, \(\vert N \vert\).
\begin{equation}
N_{id} = (B_i +1) \: (\texttt{mod} \: \vert N \vert)
\end{equation}

Should be:

\begin{equation} 
 	\texttt{PCE} := (B_i  \: \texttt{mod} \: \vert N \vert) + 1 
 \end{equation} 
  
 \hspace*{15pt} 
 where we add \(1\) to the result assuming node ids, \(N_{id}\) begin at \(1\), not \(0\). The node then checks for whether or not its own node id, \(N_{id}\), is equal to the result of \texttt{PCE}. Effectively, this is checking whether or not \(N_{id}\) is congruent to the next \(B_i\) modulo the cardinality of nodes being considered or proposal creation, \(\vert N \vert\).   
  
 \begin{equation} 
 	N_{id} = B_i \: (\texttt{mod} \: \vert N \vert) 
 \end{equation} 

Because

[print( ( (x+1) % (3 + 1) ) + 1 ) for x in range(0,10)]
2
3
4
1
2
3
4
1
2
3

but this is correct

[print((x % 3) + 1) for x in range(0,10)]
1
2
3
1
2
3
1
2
3
1

This works for three, and for 2 peers

[print((x % 2) + 1) for x in range(0,10)]
1
2
1
2
1
2
1
2
1
2

and for 5 peers

[print((x % 5) + 1) for x in range(0,10)]
1
2
3
4
5
1
2
3
4
5

The update will be made on in the aos repo as well

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.