Doichain/dapp

Request moving/transfering DOI transactions from fallback to responsible validator

開放

#122 建立於 2020年2月19日

 (0 則留言) (0 個反應) (1 位負責人)JavaScript (13 個分叉)auto 404
A prioritybountyfeaturehelp wantedtesttext & doc

倉庫指標

星標
 (6 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

(DRAFT!) As long as an email domain e.g. @example.com didn't register public key of Doichain node inside a DNS TXT value like so:

  • doichain-opt-in-key=<doichain_publickey> or
  • doichain-opt-in-provider=<doichain_publickey> all opt-ins will be validated through the public key of the so far centralized fall back server.

As soon as a email domain name registers it's Doichain node. We need a RPC call which allows transfering / rewriting DOI permissions onto for the new Doichain address.

  1. Implement new RPC call "opt-ins/transfer" (parameter email domain, signature)
  2. Request public key of email domain from DNS and generate the Doichain address for it
  3. Get all DOI permission nameId's of a target-domain (this might be difficult, as we do not store recipients emails nor domains on the fallback server - need research / more implementation needed)
  4. Get all transactions which holds the SOI permissions of this email domain and send it back to the new validator.
  5. Make sure the validator is the right validator by checking the signature of the transferred email domain with the public key in the DNS of the email domain.

貢獻者指南