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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create PoW mining validation contracts #727
Comments
interesting! how would a miner interact with this contract? you need to pay gas for each submission? |
This implementation is vulnerable to front-running. But you can easily fix that with something like This way the proof of work is tied to whoever did it, and no front-running is possible. |
Updated contract should be
Mining would look like
|
Super interesting !! want to see it in zeppelin It can also have a Also it can have a fee per transfer, like take The difficulty can be calculated knowing only how much time it took to mine the last block ? smth like:
|
I like the idea of validating PoW in a smart contract, but I wouldn't couple its implementation to minting a token.
|
Yeah totally agreed, glad you brought that up! So now we've got a Then
|
I really liked the whole PoW idea, but had never come up with a use case that went beyond toy projects such as minting tokens. This, however, seems super neat. |
After discussing this further with @alcuadrado, we came to the conclusion that placing PoW requirements for prevent spam wouldn't really be a great solution, since it is not very expensive to purchase computing power (much) more powerful than the equivalent of running JavaScript inside a browser. I think many of us like this idea because it sounds cool, but it lacks a real use-case. Closing until one comes up. |
馃帀 Description
Idea taken from @shrugs' image, in turn taken from 0xBitcoin:
I'd make it generic, i.e not tied to token minting, as in the image, and maybe then add a
MinedToken
that uses the generic mining validation contractsThe text was updated successfully, but these errors were encountered: