@lbertenasco/bonded-stealth-tx
v0.3.1
Published
bonded stealth tx vault smart contracts
Downloads
33
Readme
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