Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pluggable proof-of-* #8

Open
robinmonjo opened this issue Oct 1, 2017 · 1 comment
Open

Pluggable proof-of-* #8

robinmonjo opened this issue Oct 1, 2017 · 1 comment

Comments

@robinmonjo
Copy link
Owner

from @yorgis in a comment of this PR #7

What would happen if we want to support something like PoW + PoT together, IF I am not mistaking Dash coin does that, it split it up into 50% 50% work.

Also, let say tomorrow I want to create ProofOfSharing (PoSH) how would that look like?

When I told you to move it into some module I was actually thinking on create some config with the module (not called proof_of_work because defeat the idea 😄 ) where we can setup either a list or just a module and you will call the compute function on it, which is why I told you about the protocol.

So that way you can have as many implementations of how you reward or do any computation of this kind.

Something like

config :blockchain,
  some_better_name_key: [ProofOfWork, ProofOfStake, ProofOfShares]

# or

config :blockchain,
  some_better_name_key: [
    pow: ProofOfWork, # <- for the sack of the demo whatever key value pair
    pos: ProofOfStake,
    posh: ProofOfShares
  ]

the last example could be useful when you want to control that you HAVE to use specific module for X reason. I would even stick with the array for now 😄 we need study what other coins do differently and more important where the crypto world is moving to

@wayann
Copy link

wayann commented Nov 11, 2017

hard to say where it moves, here are two newcomers that are interesting imo.
https://blog.cosmos.network/consensus-compare-tendermint-bft-vs-eos-dpos-46c5bca7204b
it is of course biased since cosmos run on tendermint.... but to give a general idea I think it's a good starting point for a deeper research.... just my 2c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants