Giter Site home page Giter Site logo

Namecoin integration about zeronet HOT 18 CLOSED

hellozeronet avatar hellozeronet commented on May 5, 2024
Namecoin integration

from zeronet.

Comments (18)

mchelen avatar mchelen commented on May 5, 2024

👍

from zeronet.

HelloZeroNet avatar HelloZeroNet commented on May 5, 2024

We need a cross-platform, pure-python dns query lib, so we can use http://www.opennicproject.org/ servers.

from zeronet.

sull avatar sull commented on May 5, 2024

Worth looking at:

https://openname.org/about

https://github.com/openname/openname-resolver

from zeronet.

HelloZeroNet avatar HelloZeroNet commented on May 5, 2024

I have chosen this format, to allow subdomains (@ means zeronetwork.bit without subdomain)

    "zeronet": {
        "blog": "1BLogC9LN4oPDcruNz3qo1ysa133E9AGg8", 
        "@": "1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr", 
        "talk": "1TaLk3zM7ZRskJvrh3ZNCDVGXvkJusPKQ"
    }, 

But I haven't found any reliable way to resolve this information without installing namecoind.

Using NS TXT record and http://www.opennicproject.org/ could be a workaround:

import DNS
DNS.DiscoverNameServers()

r = DNS.DnsRequest("zeronet.zeronetwork.bit", qtype="TXT", server=['192.71.247.247', '75.127.14.107'], timeout=300)
res = r.req()
res.show() 
[...]
zeronet.zeronetwork.bit    1109    TXT     ['@:1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr,blog:1BLogC9LN4oPDcruNz3qo1ysa133E9AGg8,talk:1TaLk3zM7ZRskJvrh3ZNCDVGXvkJusPKQ']
[...]

from zeronet.

HelloZeroNet avatar HelloZeroNet commented on May 5, 2024

Found this one, it could work (but single point of failure): https://dnschain.info/bit/d/zeronetwork
edit:
found alternative servers:

from zeronet.

HelloZeroNet avatar HelloZeroNet commented on May 5, 2024

a new dnschain server:
https://api.dnschain.net/v1/namecoin/key/zeronetwork.bit

There is an another option to resolve bit domain:

Create a special, dns resolver site that holds all registered zeronet domains in a json file, so everyone has the dns database on localhost.

Pros:

  • Its allows fast and secure dns resolving
  • Does not depends on any central server
  • Nobody can see what domains are you resolving
  • Later it could work well with anonymity networks (tor, i2p)

Cons:

  • It needs a bot that update the database from namecoin transactions
  • If the private key of the site is compromised then its possible to modify dns records

from zeronet.

HelloZeroNet avatar HelloZeroNet commented on May 5, 2024

another alternative:
http://namecha.in/name/d/zeronetwork

from zeronet.

HelloZeroNet avatar HelloZeroNet commented on May 5, 2024

I have done a plugin using 2 dnschain servers, but i'm not satisfied by the result:

  • It takes 1-5 sec to resolve the domain using the 2 servers, by increasing the dns caching time its possible to workaround the problem, but not a real solution for offline/slow connections
  • Trusting in 2 servers result not secure enough and I could not find other servers that allows to resolve namecoin json informations

So I decided to take the alternative, dns resolver site approach. Its developing well, need some more days to finish it.

from zeronet.

HelloZeroNet avatar HelloZeroNet commented on May 5, 2024

Status report: i think everything is working now, if no other bugs found i will publish it tomorrow

from zeronet.

HelloZeroNet avatar HelloZeroNet commented on May 5, 2024

Added Zeroname plugin: b122f47
The experimental dnschain plugin also supplied (disabled by default)
Later, if lightweight namecoin client is released it will be also supported.

from zeronet.

thesoftwarejedi avatar thesoftwarejedi commented on May 5, 2024

Has this been documented anywhere?

"zeronet": {
    "blog": "1BLogC9LN4oPDcruNz3qo1ysa133E9AGg8", 
    "@": "1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr", 
    "talk": "1TaLk3zM7ZRskJvrh3ZNCDVGXvkJusPKQ"
}

from zeronet.

HelloZeroNet avatar HelloZeroNet commented on May 5, 2024

The "" key means the primary domain, any other than that is a subdomain.

Also added this information to http://127.0.0.1:43110/1Name2NXVi1RDPDgf5617UoW7xA6YrhM9F "HOW TO ADD A DOMAIN?" section

from zeronet.

thesoftwarejedi avatar thesoftwarejedi commented on May 5, 2024

The "d/" prefix is intended to be .bit domains on the clearnet within the current DNS architecture - something that we shouldn't be concerned about at all. I'm thinking that using the "d/" prefix is not the optimal solution, and perhaps a new "z/" prefix should be used instead.

Perhaps "z/zeronet" would contain:
{ "addr":
{ "": "1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr",
"blog": "1BLogC9LN4oPDcruNz3qo1ysa133E9AGg8"
}
"name": "ZeroNet Home",
.....
}

Then the url via browser extension or such, would be:
"zero://zeronet" or "zero://blog.zeronet"
or
"http://zeronet.zero" or "http://blog.zeronet.zero"

Perhaps this is total pie-in-the-sky given that tools for treating namecoin as clearnet DNS are already available so we just hijack the "d/" prefix. That said, shouldn't we at the least swap out the ".bit" for ".zero"?

Where is a good place to have this discussion? I also intend on running namecoind local, and would like to plug it into that directly.

from zeronet.

HelloZeroNet avatar HelloZeroNet commented on May 5, 2024

yeah you probably right a custom prefix could be better solution, but i think we can have both: z/ prefix for .zero d/ prefix for .bit.
This allows to use your exitsing domains in zeronet and if someone wants to access your site without zeronet installed (and he able to resolve .bit domains) you can redirect him to a description about zeronet.

Update: I have asked about it in #namecoin and they said there was similar request from i2p and tor, but they rejected it and advised to use d/. Reasons:

  • (1) it is useful to be able to verify that the IPv4 and ZeroNet versions of a name are owned by the same person; d/ makes that easy
  • (2) if a new namespace is introduced, users will have to defensively grab their names at that namespace to prevent squatters from getting them
  • (3) as an extension of (1), some users want their software to be able to choose which resolver to use (e.g. IPv4, Tor, ZeroNet) based on which ones are supported by their browser config; using a single namespace makes that easy

but changing .bit to .zero still sound like a good idea

from zeronet.

phelix avatar phelix commented on May 5, 2024

Hi! It would probably be better to stick to .bit: https://forum.namecoin.info/viewtopic.php?f=5&t=1069

from zeronet.

purplesyringa avatar purplesyringa commented on May 5, 2024

What do you expect 'add[ing] pgp to your website' to do?

from zeronet.

purplesyringa avatar purplesyringa commented on May 5, 2024

You can use encryption already using the CryptMessage plugin. You don't need PGP for that. Check ZeroMail for example.

from zeronet.

purplesyringa avatar purplesyringa commented on May 5, 2024

Sending me to GitHub makes no sense I said I need something to put on my website so users of this particular website can use it

That GitHub repository contains sample code for the feature you were asking about, you dumbass.

And I need to activate a password mnemonic For lost passwords as well

Then you need to implement the password-to-private-key conversion yourself or use a library that provides such a feature.

from zeronet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.