namecoin / meta

General-Purpose Namecoin Repository
4 stars 3 forks source link

Port Electrum Personal Server to Namecoin #68

Open JeremyRand opened 3 years ago

JeremyRand commented 3 years ago

It would be useful to port Electrum Personal Server to Namecoin. Based on https://github.com/chris-belcher/electrum-personal-server/issues/144 , it sounds like there's not much needed here. The two things that immediately jump out at me are:

  1. Name lookups (including the check during name registration) probably will need a new command added, which would result in passing name_show (with a name hash) to Namecoin Core. Looks like the list of commands is here; an example of a similar existing pass-through command is here. We were already intending to implement such a command in Electrum-NMC and ElectrumX, so this shouldn't be a problem.
  2. The P2P code will probably need to be switched to Namecoin's magic value. See the lines that I suspect will need a tweak. The replacement magic values can be found in Namecoin Core (that's mainnet; testnet and regtest are in the same file).

Maybe there will be other things that need tweaking too; not sure.

JeremyRand commented 3 years ago

Might be worth trying to implement the port via subclassing instead of a fork, since that would make maintenance easier. That might require coordination with Chris Belcher though; not sure how he would feel about merging patches that make subclassing easier. If we have to do a fork, that's not a disaster.

JeremyRand commented 3 years ago

(Anyone interested in working on this should contact me to coordinate.)