HN user

vnuge

47 karma

meet.hn/city/39.9527237,-75.1635262/Philadelphia

Socials: - vnpublic[at]proton.me - github.com/VnUgE - www.vaughnnugent.com - npub1qdjn8j4gwgmkj3k5un775nq6q3q7mguv5tvajstmkdsqdja2havq03fqm7

---

Posts0
Comments23
View on HN
No posts found.
Nostr 10 months ago

I guess it's worth also saying, there is no algorithm selection. Nip04 is dead for DMs. It doesn't need to be backward compatible. A user can't know which client another user is on, nor what their capabilities are, nostr is not smart in that way. Most, if not all, operations on nostr are completely stateless.

When a user decides to send a DM to another user, the client must choose the standard for encryption, and message wrapping. Then hope the other user is using a client that implements the same standard, in order to decrypt the message.

Again, remember, DMs don't have a session. Every message derives a new symmetric key. The only metadata that makes a "chat" session is the timestamp, and the public keys of the users.

Nostr 10 months ago

We are obviously speaking from different understandings. I would say neither. I would need you to define your terms differently maybe.

In all cases the client application chooses the algorithm used when the user writes a DM. What do you mean by breadcrumb in the message. Message in what context? Message sent to the signer?

Edit: Maybe I should say the client developer? Is that the answer you're looking for? The developer _could_ give the user the option of choosing which to use, but clients generally are hard-coded to use one or the other.

Nostr 10 months ago

Regardless of the signer interface the procedure call remains the same. The client application determines what method it wants to use, then the plaintext is passed to the signer (web extension, nip46 remote signing, android etc) with the nip44.encrypt or nip04.encrypt procedure calls.

The user is then requested to confirm the encryption operation. So a "downgrade" could happen in two ways. The client selects nip04 without the user's instructions, and the signer does not properly guard or notify the user that the message to be encrypted is using nip04. Still not really an attack I don't think, since no "sessions" exist in DMs there shouldn't be any way a remote user gets to cause a client to change algorithms.

To answer directly, the client app chooses, makes a remote procedure call with the desired algorithm, user confirms, message is encrypted, returned, signed (another rpc round-trip), then written to relays.

The signer application is ALWAYS authoritative, if it chooses to.

Nostr 10 months ago

Hard to say how relevant that is. DMs are simply a collection of events sitting on a relay. It's not really a mutual tunnel, most clients implement nip44 via nip19 (giftwrap DMs) so your ni04 message wouldn't likely make it to them. It's not considered backward compatible such that you could send a user a DM, then cause their client to downgrade to the DM scheme that uses nip04.

It's also worth noting, the user _must_ be made aware of the encryption method that was used, their "signer" application, which is also responsible for encryption and decryption, would require their permission to do an operation in either direction. Users may often choose to grant a trusted client application the permission to decrypt all nip04 or nip44 messages alike, automatically, or generally manually with a popup. That's up the signer application how granular the permissions get.

To be clear this is a client implementation detail, im not a client developer, so I can't say in practice how many have handled the UX on this, but know that the signer, and the user had the final say on which algorithm was granted permission.

Clients and signers alike could choose to block obsolete encryption methods if they choose.

Nostr 10 months ago

nip01 defines the use of secp256k1. Again, the same as bitcoin.

Nostr 10 months ago

nostr cryptographic developer here (author of libnoscrypt C library)

Nip04 has been deprecated, and to be clear, in practice the nip04 payload is in a signed nip01 event wrapper.

nip44 replaced nip04, which has been reviewed/audited. Does use authenticated encryption in the message payload with forward secrecy, again in practice wrapped in a nip01 event, singed by the author, usually by the same cryptographic software used to encrypt the message.

nip44 is becoming more widely used for direct messages and other "private" metadata stored on relays. It's chacha20 + hkdf.

Nostr 10 months ago

Since relays don't own user generated content, there is no need to "federate" client's generally rely on user-selected relay sets. The user chooses where they want to read/write events to/from.

That said, many of the "larger" relays do store events from other relays (federation if you prefer). Primal does, TheForrest does, nostr.land and so on. Nostr.land specifically has a purpose of aggregating notes from many other public relays, with spam filtering. It's a paid relay built for that purpose. Don't want that, use someone else.

Most users get to see 99% of notes from the current relay federation now, but it's also impossible to check those metrics.

Certain clients and signers store notes privately so if a relay ever decides to censor your notes you just publish to a different relay if they don't have your notes already.

Chances are if you use ANY of the popular paid relay providers, your going to get warnings on 3/4 write events that the other relays _already_ have the note published to the first. It's usually that quick...

Finally, relays "federate" by acting as clients themselves. Most relay software available already offers this as an option, may use it as a local cache for when on mobile and network/wifi is slow. Their local relay slowly pulls notes from other relays (or outbox) and caches those notes for when they load their client up. It's cache and the client dev didn't even have to write that functionality, it was transparent.

Finally, other's mentioned outbox, which has it's own set of issues as well, but it doesn't matter because a client developer can choose to give the user the option if they want. Going from federated, to peer-to-peer which was the intention.

All kinds of personal FOSS projects I have mostly yet to release.

[1] noscrypt - portable C cryptography library for nostr [2] vnlib - C# + C libraries for server applications, eventual high performance alternative to ASP.NET. It's really just a collection of libraries that are optimized for long running server applications. [3] vncache - vnlib cache extensions and cluster cache server over web-sockets [4] cmnext - self-hosted, vnlib based, json-file CMS + podcast 2.0 server [5] simple-bookmark - kind of deprecated, vnlib based, self hosted bookmark server

My software homepage (most up-to-date) https://www.vaughnnugent.com/resources/software/modules

I know most of yall will probably want GitHub links so here [1] https://github.com/VnUgE/noscrypt [2] https://github.com/VnUgE/vnlib.core [3] https://github.com/VnUgE/VNLib.Data.Caching [4] https://github.com/VnUgE/cmnext [5] https://github.com/VnUgE/simple-bookmark

This is a huge step I took a few years ago as well. My mobile phone is still a smart phone but It can only do dumb phone things + email which I keep quiet and check on a schedule. No notifications really of any kind. No real social media and I never receive notifications from any of them I have to schedule time to check on them. It has become quite freeing although I definitely miss the "euphoria" of that world if it makes sense, which is a sign of addiction I didn't realize till I opted out.

Practically everything is built around the assumption that software will be distributed as source code

Yup, and I vendor a good number dependencies and distribute source for this reason. That and because distributing libs via package managers kinda stinks too, it's a lot of work. Id rather my users just download a tarball from my website and build everything local.

I think I would prefer 2005 web again. I'd probably be able to see more of the internet. I use heavy DNS filtering, no javascript on untrusted sites, no cookies, no fonts, VPN and so on. With cloudflare blocking me I basically can't see the majority of websites.

I hope to keep seeing posts like these. I believe software "bloat" is a serious issue that should be handled, however if you look at SWE job listings it's not even remotely a concern for employers IMO. Your encouraged to understand complex and heavy frameworks and performance/optimization is not even a consideration.

It was the path of least resistance, so we took it.

Well said. I believe many of the "hard" issues in software were not "solved" but worked around. IMO containers are a perfect example. Polyglot application distribution was not solved, it was bypassed with container engines. There are tools to work AROUND this issue, I ship build scrips that install compilers and tools on user's machines if they want but that can't be tested well, so containers it is. Redbean and Cosmopolitan libc are the closest I have seen to "solving" this issue

It's also a matter of competition, if I want users to deploy my apps easily and reliably, container it is. Then boom there goes 100mb+ of disk space plus the container engine.

Yeah, I don't want it. I spend the past 7 years in automotive engineering (firmware/controls systems stuff) I much prefer older stuff. Every time I hop in a newer car and it jerks the wheel from me or slams the brakes because a smudge is on the camera or a reflection. My truck weighs nearly 8klbs and is over 20ft long, I carry enough insurance to assume myself and the vehicle I hit will all be dead, god forbid it ever happens. Again my experience in automotive I have learned that newer is not "built to last" in a business sense and parts manufacturers (and remans) obsolete parts for newer vehicles faster as well (or at least the supply chain dries up MUCH quicker), we have seen vehicles scrapped for easy reasons because the repair job cost more than the vehicle was worth IMO due to complexity or availability.

I could continue to blow hot air in your direction for hours. Needless to say I'm hoping to get out of automotive and keep my old vehicles on the road for as long as the government allows.

I have my personal opinions with the pandemic, but I would have to agree as an opportunity to embrace more positive social behaviors. Surely didn't stick in my woods either. Plenty of things changed, but I would agree. The other part is that at this point were going on 4 years since and I would say my social habits in my age group just changed anyway, so IDK to be honest.

What point would you like me to hit? Surveillance even if it's passive and I have nothing to hide is probably the biggest reason for most of my habits. Money and trust. The other reason is probably mental health, reducing stimulus helps me dramatically with anxiety. I typically walk around with headphones in silence. I can still hear everything, it's just quieter. If you do it long enough you'll know what I mean.

And ttt11199907 covered the consumerism part

I recently have to reconsider this definition and set boundaries with my friends. Finding the ability to have a fun experience together that wasn't centered around paying for access to the experience, such as access to a place or event, or in drugs/alcohol. We were all kinda taught we have to "buy" something in order to have fun. Beer, food, vacation, concert tickets, so on. I'm not saying I don't do that any more but when I'm with my friends I'm there for a reason and I want it to be them, not the thing we paid for, it comes secondary.

I understand, like others have pointed out this will be an echo chamber result set. However it's nice to know I am not alone (especially being young). My newest vehicle is from 1999, my smartphone is going on 6 years old (still 2 days on a charge) I have 15 apps total on it and spend a max of 20 minutes a day on it. My newest computers are in my rack from 2018 (I have a small hosting business). Asus ultrabook from 2016 still plays my video games fine and decent battery life.

No IoT, no automation stuff. I have a tv w/htpc but it has been unplugged for 6 years. I get all of my current events/media from RSS feeds or email (highly curated). During the day mobile notifications are silenced. I mostly pay in cash when I go out. Had a fitbit 5 years ago never connected to phone, got rid of it when it died.

I like the sound of the engine when I drive, otherwise FM radio. I avoid taking my phone when I go places unless I need GPS, but I often print directions if I'm traveling to semi familiar areas. I always keep a few maps in the glove box as well.

I was recently laid off and I'm bummed because it's going to be hard finding a new remote work job in tech that isn't soul sucking in regards to tech.

I am glad Zach posted here also, I think nostr devs need some reality pull from "non-crypto normies". To be clear it is (hopefully) becoming more common practice to use a nip-07 web-extension for signing (hardware or software) or other methods such as NIP-46. To be clear though, a user on nostr will HAVE to interact with cryptography in some way as every message on the network is signed.

Im working on https://github.com/VnUgE/NVault as an option for more paranoid users that want a self hosted networked approach. But there are others listed here https://github.com/nostr-protocol/nips/blob/master/07.md

Finally, I wholly dislike the practice of offering an option of entering an nsec. Use a signing extension!