News for hackers. Stuff that matters.
Re:Spork: Peer-to-peer socket magic in the air by MayeulC on Tuesday October 19, 2021 @07:25AM (#28916930)
See also: yggdrasil/cjdns/hyperbora that also provide p2p routing in a mesh network (without DHT), but also map public keys to an unused chunk of IPv6.

IPFS p2p is more similar to that project, with a DHT, though I am not sure about encryption.

To me, this is the future. I wish we had a set of APIs to allow connecting to a public key instead of an IP adress... however that requires reinventing most of the network stack (subnets, etc). That could be a base for IPv7. As a bonus, this could run on top of IPv4 or IPv6.

Creating ephemeral, E2EE addresses has a lot of nice properties: you can roam with the same address (making it easy to move a server around, even behind cellular internet). Browsers could use a different key for each site. Sites could use that as a session identifier to authenticate against.

Re:Spork: Peer-to-peer socket magic in the air by neilalexander on Tuesday October 19, 2021 @08:40AM (#28917432)
> you can roam with the same address (making it easy to move a server around, even behind cellular internet)

In particular, Yggdrasil's mobility performance is far better than anything provided by the likes of BATMAN-Adv, Babel etc, making it ideal for roaming users and ad-hoc/mesh networks. https://yggdrasil-network.github.io/assets/images/latest/mob...

Re:Spork: Peer-to-peer socket magic in the air by collegeburner on Tuesday October 19, 2021 @09:19AM (#28917751)
Interesting, how is Ygdrassil performance against Tailscale or Zerotier?
Re:Spork: Peer-to-peer socket magic in the air by MayeulC on Tuesday October 19, 2021 @11:12AM (#28918955)
I haven't used either, but one of the catches with yggdrasil is that you have to peer manually over the Internet. On the other hand, you could install it on every router on a network, and everything would work automatically.

There are some higher-level tools that can manage your peerings, but at that point, yggdrasil just offers a unique IPv6, derived from your crypto key, and end-to-end encryption, both of which can more or less be achieved with wireguard alone.

Re:Spork: Peer-to-peer socket magic in the air by lifty on Tuesday October 19, 2021 @03:00PM (#28922084)
I think lately they use wireguard as well, so it should be comparable to Tailscale.
Re:Spork: Peer-to-peer socket magic in the air by brendoncarroll on Tuesday October 19, 2021 @07:48AM (#28917076)
> To me, this is the future. I wish we had a set of APIs to allow connecting to a public key instead of an IP address

INET256 is working on exactly that. It's a set of APIs for connecting to addresses derived from public keys.

https://github.com/inet256/inet256

Re:Spork: Peer-to-peer socket magic in the air by MayeulC on Tuesday October 19, 2021 @11:07AM (#28918897)
Thanks for mentioning this, it's the first time I hear about that project, and will definitely have a look!
Re:Spork: Peer-to-peer socket magic in the air by dsr_ on Tuesday October 19, 2021 @10:06AM (#28918209)
Let me recommend two more features:

- universal human-assignable names

  As long as you're replacing IPs, replace DNS, too. When you tell a friend about this great new site, make sure you can tell them with something closer to "pasciencia y fe" than "fe88-2533-a210-dead-b33f-3301-3412-4dc1" 
- universal anycast

  Big services will need scale and distribution; if it's built in early and well, that makes it easier to adopt.
Re:Spork: Peer-to-peer socket magic in the air by MayeulC on Tuesday October 19, 2021 @11:23AM (#28919097)
While I agree with the second, this is an implementation "detail" of the routing layer. Universal multicast is much more interesting as an usage, though I am not sure about the feasibility.

As far as human-assignable names go, I am not sure. "pet names" would be a good fit: you "pin" a service using your name or someone else's.

Sure, you can also use a ready-made mapping from words to binary like https://what3words.com/inferior.chapels.nerve for instance, but I feel like picking one is a separate endeavor with its own pitfalls (not everyone speaks English, etc).

You're asking for a solution to Zooko's triangle: https://en.wikipedia.org/wiki/Zooko's_triangle

Re:Spork: Peer-to-peer socket magic in the air by dsr_ on Tuesday October 19, 2021 @11:47AM (#28919432)
I'm willing to throw away "decentralized" in the "DNS is centralized" sense in order to have a meaningful alias system. If I can't talk about a service in normal conversation, it will be difficult for me to tell people about it.

"You should check out correct horse battery staple" vs "You should check out news.ycombinator.com" -- one of those requires me to maintain a meaningless mapping in my head, and the other contains structure and clues even if it isn't "Hacker News".

Re:Spork: Peer-to-peer socket magic in the air by MayeulC on Tuesday October 19, 2021 @12:10PM (#28919772)
If that's the case though, why not keep DNS for now, especially for the initial handshake?

Then, similar to HSTS, the browser could remember the mapping and use the DNS name as a pet name for the target.

Another alternative would be to use "phonebooks". One could trust a few trusted websites for the initial handshake: "oh, just google battery horse to find my blog". Or: I'm linked on John's blog. That goes well with pet names, but is a bit more involved.

In any case, as long as the underlying identifier is secure and unique, you can just share that trough other means (links, Qr codes, messages, etc).

Re:Spork: Peer-to-peer socket magic in the air by munro on Tuesday October 19, 2021 @12:59PM (#28920427)
I love this idea of pub keys for connecting to sockets. I wish we could standardize on something, yggdrasil looks very interesting as well.

> - universal human-assignable names

Seems like if we wanted to add human names, DNS would work just fine--it could just be a new record. And IDK if there really is a better way to manage multiple people wanting the same names, other than our existing system. These systems can remain orthogonal too.

    dig SPORK news.ycombinator.com
or maybe :)

    dig YGGDRASIL news.ycombinator.com
Re:Spork: Peer-to-peer socket magic in the air by lijogdfljk on Tuesday October 19, 2021 @10:37AM (#28918555)
> universal human-assignable names

Any implementations of this you'd recommend? I write a lot of hash (content addressable/etc) code in my spare time and i'd be curious to toy with identifiers (256bit hashes) being provided to humans in human-friendly ways.

Re:Spork: Peer-to-peer socket magic in the air by redleader55 on Tuesday October 19, 2021 @10:55AM (#28918741)
The first thing that pops in my mind is choosing a dictionary of 2^n words and making an identifier that maps the 256 bit hash space to a k-tuple of words, where k = 256/n.
Re:Spork: Peer-to-peer socket magic in the air by djbusby on Tuesday October 19, 2021 @11:08AM (#28918904)
Re:Spork: Peer-to-peer socket magic in the air by RL_Quine on Tuesday October 19, 2021 @11:27AM (#28919166)
You might like bech32, which encodes data (nominally hashes) into strings which include error detection and error correction, while being optimized for human use and typing by avoiding homogylphs and capitalization.

https://en.bitcoin.it/wiki/Bech32

Re:Spork: Peer-to-peer socket magic in the air by ahnick on Tuesday October 19, 2021 @09:37AM (#28917934)
So basically urbit without all the weirdness?
Re:Spork: Peer-to-peer socket magic in the air by white-flame on Tuesday October 19, 2021 @01:29PM (#28920842)
I use onion addresses to have basically a hash-addressable socket on the internet, which can be relocated without any additional configuration. It can even work without any inbound ports on the firewall.

However, I haven't done any serious roaming with such a configuration; has anybody tried it?

Re:Spork: Peer-to-peer socket magic in the air by adminscoffee on Thursday October 21, 2021 @01:57AM (#28940856)
kind of a weird idea but routers have names, i always wondered if there was some way we can use this as addresses to give a position of sorts, that way, nearby host can direct traffic towards a location. like a pass off, idk if i am explaining it right