11 Commits

Author SHA1 Message Date
fiatjaf
9057b1a7e1 get rid of all the deprecated things. 2024-10-14 16:20:30 -03:00
fiatjaf
9457c5a794
fix IsValidPublicKey() to use schnorr. 2024-01-18 17:56:54 -03:00
fiatjaf
70f719ea31
IsValidPublicKey() and IsValid32ByteHex() replacing IsValidPublicKeyHex() 2024-01-18 16:27:56 -03:00
fiatjaf
0cfaa0da0a
ensure private key is 64 characters long.
fixes https://github.com/nbd-wtf/go-nostr/issues/111
2023-11-17 09:27:16 -03:00
Isaque Veras
58d56abe05 fix: removing redundancy 2023-06-12 08:18:29 -03:00
fiatjaf
7803cc74b3
a function to check if a public key hex is a public key hex. 2023-03-14 21:56:40 -03:00
fiatjaf
329b8d44d2
move stuff back from nostr package to top level.
because otherwise the path must be specified as github.com/fiatjaf/go-nostr/nostr, which is annoying.
2022-11-04 08:22:13 -03:00
BitcoinCoderBob
9549c3624a
nostr package, readme updates accordingly, matching example program (#14) 2022-10-12 17:24:30 -03:00
fiatjaf
00ad1acde9 use schnorr from btcec instead of the bip340 library. 2022-05-01 15:10:18 -03:00
fiatjaf
275020a7ef just some basic bip340 key functions instead. 2022-01-06 08:24:20 -03:00
Honza Pokorny
8558025305 Add key-related functions 2022-01-06 07:39:04 -03:00