fiatjaf
|
9fbf3ea165
|
implement json marshaler and unmarshaler for SecretKey.
|
2025-10-24 16:48:28 -03:00 |
|
fiatjaf
|
0012a3cbbf
|
ensure nostr.Generate() yields a valid secret.
|
2025-10-24 16:48:02 -03:00 |
|
fiatjaf
|
e4bbebdd8f
|
compile-time check for json.Marshaler and json.Unmarshaler.
|
2025-10-24 00:18:02 -03:00 |
|
fiatjaf
|
588e415440
|
small fixes in hex parsing.
|
2025-10-24 00:12:25 -03:00 |
|
fiatjaf
|
98f95fca15
|
check for validity of secret key when parsing from hex.
|
2025-07-01 10:57:50 -03:00 |
|
fiatjaf
|
4befaa0129
|
nip11, nip13, nip46 changes from promenade port.
and verify pubkey validity when decoding it from an arbitrary json object.
|
2025-05-11 17:42:19 -03:00 |
|
fiatjaf
|
d59692781d
|
test for json marshaling of ids and pubkeys.
|
2025-05-03 11:56:38 -03:00 |
|
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 |
|