fiatjaf
74e121075e
try to prevent pointer to pointer bug.
2025-03-10 16:16:44 -03:00
fiatjaf
7e04bbb4b8
breaking pointer mess
...
- ExternalPointer (?)
- nip27, nip22 and nip10 functions to return pointers
- get rid of sdk/thread helpers that were just a thin layer over nip10 and nip22
2025-03-10 02:38:06 -03:00
fiatjaf
ec55b1fac8
nip19: decode to pointer.
2025-03-06 11:49:10 -03:00
fiatjaf
6be0541653
nip19: EncodePointer()
2025-02-17 16:00:08 -03:00
fiatjaf
f19efb4013
nip19: helper for building nevent from RelayEvent.
2025-02-07 18:02:05 -03:00
fiatjaf
d0476edd06
nip19: guard against broken TLVs.
...
fixes https://github.com/nbd-wtf/go-nostr/issues/161
2024-12-18 11:53:14 -03:00
fiatjaf
1e4e91f257
nip19: fail to decode entities with wrong length.
2024-09-16 17:35:23 -03:00
K
c91e7b9765
using testify instead of testing.T methods. ( #143 )
2024-09-09 07:20:56 -03:00
fiatjaf
cd145f4fcb
nip19: fix decoding faulty kind from tlv.
2024-09-05 14:34:15 -03:00
Isaque Veras
0f66883dc7
feat(kind): using constants
2023-09-07 07:05:01 -03:00
fiatjaf
b8eeb658cc
add size validation to nip19 decoder.
2023-08-31 09:25:09 -03:00
Kay
ac2350c722
style: using effective go and refactoring
2023-08-21 15:50:05 -03:00
fiatjaf
53e0935308
parse kind in nevent.
2023-05-04 08:24:39 -03:00
fiatjaf
35875e6071
replace vendored bech32 code with btcd library.
2023-03-23 16:59:46 -03:00
fiatjaf
332ae1ff7f
support author on nevent.
2023-03-17 09:09:36 -03:00
fiatjaf
916a6a6abb
support for naddr on nip19.
2023-02-27 16:15:04 -03:00
Dylan Cant
72386d27e1
fix nip19_test
2023-02-06 21:31:06 -03:00
fiatjaf
a3e3b25dd9
support relays in nip05.
2023-02-05 16:25:00 -03:00
Theodore Keloglou
cc6ec2b886
Fix test nip19 variable naming
2023-02-03 11:34:54 -03:00
fiatjaf
4dbbcec80a
one more nip19 test.
2022-12-29 09:35:05 -03:00
fiatjaf
e4c5dfbebb
nip19.
2022-12-27 07:49:26 -03:00
fiatjaf
6c13dc7969
remove tlv from npub in nip19.
2022-12-19 15:10:23 -03:00
fiatjaf
2ec7957409
fix nip19 bech32 encoding and decoding.
2022-11-15 16:29:37 -03:00
fiatjaf
7de8bcd2d0
basic support for nip19.
2022-10-31 14:57:49 -03:00