lyhistory / Peter-s-Tool

GNU General Public License v3.0
7 stars 1 forks source link

Add support for xDAI magic links #17

Open bitcoinwarrior1 opened 5 years ago

bitcoinwarrior1 commented 5 years ago

Add a magic link generator with the following specs:

  1. 0x04 as the encoding byte
  2. 58 44 41 49 44 52 4F 50 (8 bytes for prefix "XDAIDROP")
  3. 4 bytes for the nonce value (can increment from 0)
  4. 4 bytes for expiry timestamp
  5. 65 bytes for signature (v, r, s)

The admin signs 2,3 & 4

With this in your tool, we will be able to distribute dollar pegged DAI to people on the POA network which is cheap and fast.

bitcoinwarrior1 commented 5 years ago

@lyhistory hold off on this, I might build it myself.

bitcoinwarrior1 commented 5 years ago

Started here: https://github.com/AlphaWallet/PaymentServer/tree/add-xdai-magic-link-generator