Giter Club home page Giter Club logo

docs's Introduction

Peercoin official documentation repository


Directly via Github:

  1. Edit any of the docs files;
  2. Submit a Pull Request with your changes.

Developing locally:

Make sure you have Node.js installed. If you don't, please follow this guide.

  1. Clone this repo: git clone https://github.com/peercoin/docs.git;
  2. Inside the cloned folder, run: npm i -g brunch && npm i; (skip the first command if you already have brunch installed);
  3. Run: npm start.
  4. Access http://localhost:3333/ in your browser.

Any changes in the project (both on docs and/or code) will be reflect automatically in the browser once you refresh it.

Deploying a public test version:

  1. In your local project, run: npm run deploy.

docs's People

Contributors

belovachap avatar captainbuckkets avatar dependabot[bot] avatar kazzkiq avatar nagalim avatar peerchemist avatar saeveritt avatar steady268 avatar sunnyqueen avatar undigon avatar willyfromtheblock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

Clear separation between the articles

May we increase the whitespace between the articles on docs so when you open direct link to article you are not confused with where the previous one ends and the new one begins? Perhaps a line to separate the two as well?

new page

I am unable to push to master. So here is a draft of a new page:

Peercoin proof of stake

Peercoin uses both the Proof-of-Work and Proof-of-Stake algorithms. The PoW algorithm is used to spread the distribution of new coins. Up to 99% of all peercoins is created with POW. Proof-of-Stake is used to secure the network: The chain with longest POS coin age wins in case of a blockchain split-up.

Minting, as it is called in peercoin to make a proof of stake block, is based on metrics of an unspent transaction. If we take a look at the number one spot of the rich list, transaction c7293fc60c80bdcc374775d1f0734e0766465b905bae1a312fe487793be3b8f7 has among others the following characteristics:

  • The transaction appeared in block 376161 at timestamp 1531750952 (Unix time).
  • The transaction in the block has an offset of 383 bytes. It is the third transaction in the block. The size of the first two transactions in the block are respectively 78 and 224 bytes.
  • The transaction timestamp is 1531750624.
  • The second recipient (index 1) received 1786301.06651300 peercoins which, at the moment, is still unspent.

These metrics, along with two more data points serves as a basis to calculate a hash for POS minting:

  • a future timestamp X (in unix time notation) in which the stake could win.
  • a block modifier that was set by the network 1830080 seconds (~21 days) earlier than X. Every 6 hours the network calculates a new block modifier to be used for POS minting.

The win in Proof of stake minting, the calculated hash is compared to the current difficulty minus the coinage. The chances of finding a stake therefor improves when either the coinage increases or when the difficulty of the network decreases.

Peercoin minting behaviour

  • Minting process can only start after 30 days of coinage.
  • Minting coinage is maxed out after 90 days. Which means that after 90 days the only variable left in POS is the current difficulty.
  • Minting is predictable and not random. For a given transaction, you can calculate the maximum network PoS diff over time for your transaction to be able to mint a PoS block. Whenever this PoS diff is higher than the current network PoS diff your Peercoin client can mint a PoS block.
  • PoS blocks can be rejected (orphans) if several people mint a PoS block within a given window (2 hours also called timedrift). Only one (the chain with longest coin age) will be accepted.
  • Minting splits the transaction in two if coinage < 90 days.
  • PoS block reward is 1% annual. This 1% is factor of your coinage, and is not maxed out.
  • A transaction that just staked has its coins locked for 520 confirmations (3-4 days).
  • Merging transactions, spending coins, etc. burns coinage (resets it to 0).
  • PoS reward is directly added to your transaction which staked (if this transaction is split in two because coinage < 90 days, the reward is equally distributed to both resulting transactions).

Link issue

Line 86 of "003-peercoin-core-wallet.md" should direct to "010-proof-of-stake.md" but in the live version it 404's

Odd Horizontal scroll

It seems there are some huge texts that generates horizontal scrolling, which shouldn't happen in any case.

Words/methods/commands too big should break in two or more lines, or generate local scroll, instead of triggering horizontal scroll in whole docs.

Translation (i18n) to other languages

As of now, the project is focused only in english language. It would be interesting to add possibility to switch to other languages in the future.

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.