Commit Graph

18 Commits

Author SHA1 Message Date
fiatjaf
b7989084f2 json marshaler/un for ids and pubkeys. 2025-05-02 15:19:02 -03:00
fiatjaf
9fe9146381 fix error message for secret key parsing. 2025-04-24 13:23:16 -03:00
fiatjaf
bf436be0f7 fix secret key hex parsing zero-filler. 2025-04-21 15:44:45 -03:00
fiatjaf
3d595039cc fixes and tweaks from nak port work. 2025-04-21 08:35:19 -03:00
fiatjaf
92c2de6294 eventstore tests. 2025-04-18 11:29:31 -03:00
fiatjaf
cb0dd45a32 go mod tidy works now at least. 2025-04-15 18:40:56 -03:00
fiatjaf
b4268d649c a bunch of [32]byte conversions. still more needed. 2025-04-14 17:47:53 -03:00
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