0.0.3 • Published 3 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
bond
withmsg.value
- keeper calls contract with a random
_stealthHash
- contract uses
validateStealthTx
modifier tovalidateHash
withmsg.sender
,hash
andpenalty
- if valid (no one reported it) execution continues.
- if invalid (hash was reported)
msg.sender
loses it'sbond
and 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