namecoin.org / Resolving dot-bit domains with alternate JSON

domob
Posts: 1129
Joined: Mon Jun 24, 2013 11:27 am
Contact:

Re: namecoin.org

Post by domob »

MWD wrote:Do you have a link to the specs?

Are there other new specs or features (or planned specs or features for the not-too-distant future) that we need to look toward making them all work in MeowBit? That would be a lot easier than rolling out new revision after revision and then finding out, "Oops, missed one! Do it again!" lol.
Of course, there is https://wiki.namecoin.info/index.php?ti ... cification.

However, the import that is currently implemented in NMControl and used by me (just look at my names for an example) is much simpler. If you have something like

Code: Select all

"import": "dd/domob"
in the JSON value, then load also the value "dd/domob" and merge all definitions from there into the current scope. This can be done recursively up to a certain depth (10 in NMControl at the moment). This only takes a few lines of code to implement and is much simpler than the version specified in the spec, but it makes life a lot easier: If you have multiple domains (like I do), you can store the IP and TLS fingerprint only once, so you need to update only one name when your IP changes. Also, it allows you to keep the main name in colder storage than the imported name.
BTC: 1domobKsPZ5cWk2kXssD8p8ES1qffGUCm | NMC: NCdomobcmcmVdxC5yxMitojQ4tvAtv99pY
BM-GtQnWM3vcdorfqpKXsmfHQ4rVYPG5pKS
Use your Namecoin identity as OpenID: https://nameid.org/

MWD
Posts: 180
Joined: Mon Feb 10, 2014 10:31 pm
os: windows
Contact:

Re: namecoin.org

Post by MWD »

domob wrote:
MWD wrote:Do you have a link to the specs?

Are there other new specs or features (or planned specs or features for the not-too-distant future) that we need to look toward making them all work in MeowBit? That would be a lot easier than rolling out new revision after revision and then finding out, "Oops, missed one! Do it again!" lol.
Of course, there is https://wiki.namecoin.info/index.php?ti ... cification.

However, the import that is currently implemented in NMControl and used by me (just look at my names for an example) is much simpler. If you have something like

Code: Select all

"import": "dd/domob"
in the JSON value, then load also the value "dd/domob" and merge all definitions from there into the current scope. This can be done recursively up to a certain depth (10 in NMControl at the moment). This only takes a few lines of code to implement and is much simpler than the version specified in the spec, but it makes life a lot easier: If you have multiple domains (like I do), you can store the IP and TLS fingerprint only once, so you need to update only one name when your IP changes. Also, it allows you to keep the main name in colder storage than the imported name.

Thank you!
MWD
Namecoin, Dot-Bit and MeowBit are a complete new Internet ecosystem, building the roads to Web 4.0. http://www.meowbit.com
Dot-Bit Kitty Pix! The ONLY .bit-only kitty cat website in the world! http://dotbitkittypix.bit

phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

Re: namecoin.org

Post by phelix »

IMHO this topic is of some importance so if you don't mind too much I would like you to remove all the OT posts yourself or give me your OK to delete them all.
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

MWD
Posts: 180
Joined: Mon Feb 10, 2014 10:31 pm
os: windows
Contact:

Re: namecoin.org

Post by MWD »

phelix wrote:IMHO this topic is of some importance so if you don't mind too much I would like you to remove all the OT posts yourself or give me your OK to delete them all.
Go ahead. I'll let you do it, because if you're considering my "alternate JSON" posts off topic, you'll need to remove domob's replies, because if I just remove my posts, his will be very out of context.

though the side thread is important too, for anyone developing anything for dot-bit. So if it's not hard, maybe you could move to a new thread called "Resolving dot-bit domains with alternate JSON" or something.

Your call. I think the side thread was very important, but the OT is also important, and I can see the value of separating them. I didn't mean to have it hijack the thread, I thought it would be one question and one reply. Glad the info got up though, it will allow us to improve MeowBit.

Your call of "delete or move", but yes, of course, you have my permission.

MWD
Namecoin, Dot-Bit and MeowBit are a complete new Internet ecosystem, building the roads to Web 4.0. http://www.meowbit.com
Dot-Bit Kitty Pix! The ONLY .bit-only kitty cat website in the world! http://dotbitkittypix.bit

Post Reply