My NSEC, including the "nsec" is 63 characters long (nsec1xyzabc....)

I can use this to validate my npub in Alby, in iOS apps ... but trying to nostr-tools to write a JS script and I am being told that my nsec is not long enough - am I missing something?

#asknostr #dev

Reply to this note

Please Login to reply.

Discussion

Seems there is some leap from "nsec1xyzabc..." to Hex that I missing

Nsec is your private key in bech32 format. Bech32 and HEX are two different ways to represent the same sequence. Bech32 has the advantage of being easily recognized by humans. All HEX look alike.

Bech32 requires computational power to decode by your software. HEX does not. Using HEX format in your software is easier.

Figured it out, thank you for your help

nostr:note13z8r8r0fum4l2uyqgyl0kmvzeh2cy26zdluvczmhfqrxspq8vqxszww8f3