Should we support npub for nip-05?

Reply to this note

Please Login to reply.

Discussion

I helped someone trouble shoot their self hosted nip 05 earlier today and this was the issue, so maybe yeah.

Same here….1st go around tried to verify myself I pasted npub into nostr.json.

Then had to convert to hex and and re-deploy 2nd go around.

2 git checkouts 2 commits 2 pushes 2 branch deletions 2 git prune origins 😆

I was about to implement it in damus but I realized that would make verification incompatible between clients. I think it might make sense because its more of a human thing?

Definitely

Would it be easier to just make the public key hex on Damus? That way we can copy it directly from Damus and not worry about converting?

We should not use hex for client facing stuff anymore

#[6] and #[5]

Okay that makes sense. I refer people to Damus.io/key but this just seems to be the biggest issue. Not a huge deal, because we’re all here to help.

I wouldn't want to encourage that. There is https://damus.io/key if you need a hex key for some reason. I would rather update more tools to accept npubs directly

I’d rather see the protocol simple. Options tend to stack up and then you have a combinatorial explosion on your hands!

Perhaps a tool where you paste your npub string and your name and get the JSON back could make it easier for people?

We are deprecating hex

Ah! Everywhere in the protocol?

Is there a private offline way for me to convert my hex private key to an nsec key?

Yes it’s just math. You can do it manually with paper and pen. Should be enough guides available online

I was asking for an available offline software tool to precisely avoid doing it with paper and pen...

Sorry, misunderstood. Don’t know about such a tool : /

You mean I mined this hex pubkey for nothing!?

It had no kick in it AnYwAy

Same lol, cafe0fed will go unnoticed now..

it's easier for one person to go back and fix their pubkey than for all the clients to have to support both.

maybe show the verification with a broken symbol