Skip to content

alejoamiras/bonded-stealth-tx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bonded Stealth TX

name is not final, all suggestions are welcome

How does it work

  • keeper calls bond with msg.value
  • keeper calls contract with a random _stealthHash
  • contract uses validateStealthTx modifier to validateHash with msg.sender, hash and penalty
    • if valid (no one reported it) execution continues.
    • if invalid (hash was reported) msg.sender loses it's bond 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 82.0%
  • Solidity 17.2%
  • Other 0.8%