@lbertenasco/bonded-stealth-tx

0.3.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @lbertenasco/bonded-stealth-tx

Weekly Downloads

112

Version

0.3.1

License

MIT

Unpacked Size

29.6 kB

Total Files

16

Last publish

Collaborators

  • lucianob