0.0.3 • Published 4 years ago
@b0dhidharma/stealth-txs v0.0.3
Bonded Stealth TX
name is not final, all suggestions are welcome
How does it work
- keeper calls
bondwithmsg.value - keeper calls contract with a random
_stealthHash - contract uses
validateStealthTxmodifier tovalidateHashwithmsg.sender,hashandpenalty- if valid (no one reported it) execution continues.
- if invalid (hash was reported)
msg.senderloses it'sbondand execution stops.
Improvements:
update README (how does it work)
tests
check remaining gas on validate hash to avoid gasLimit-error exploit to avoid getting penalized