27 Commits

Author SHA1 Message Date
fiatjaf
385aa9c958
draft nip-34 helpers. 2024-02-07 21:44:47 -03:00
fiatjaf
4dc6e21f60
nip29: join request. 2024-01-18 11:48:43 -03:00
fiatjaf
f1c71134e3
experimental nip29 support. 2024-01-02 17:23:34 -03:00
fiatjaf
fda3bd2acb
accept custom sign options for schnorr library. 2023-11-08 21:51:01 -03:00
fiatjaf
374dbbe1a0
sdk: fetch and cache profiles. 2023-10-31 11:00:46 -03:00
Kay
ac2350c722 style: using effective go and refactoring 2023-08-21 15:50:05 -03:00
fiatjaf
5bbb6ba05b
add empty tags field if nil before signing. 2023-06-13 09:36:38 -03:00
fiatjaf
f37eb96f28
rename KindBoost to KindRepost. 2023-06-09 13:54:07 -03:00
fiatjaf
1cd2c0293d add a bunch more of event kinds. 2023-05-28 15:46:41 -03:00
fiatjaf
c42059f4b4
tests run (but not pass) and fine-tuning (specially tag filters) on filter_easyjson.go 2023-04-16 16:16:16 -03:00
fiatjaf
0a3e898c2f
using easyjson. 2023-04-16 15:56:50 -03:00
fiatjaf
dd692560ff
fill in event pubkey when signing. 2023-04-11 15:33:13 -03:00
fiatjaf
32768b1a5b
improve debug logging, fix stringer interface, debuglog events sent, fix debuglogging affecting the actual values. 2023-04-11 11:02:35 -03:00
fiatjaf
7b0af23f1a
implement Stringer for Event. 2023-04-11 07:36:59 -03:00
cj-ibex
483f40a596 add nip57 constants 2023-03-11 14:20:31 -03:00
barkyq
b9d04f1496
cleaning up marshaling/serialization (#1)
* cleaning up marshaling/serialization

* cleaning up marshaling/serialization
2023-01-18 11:06:59 -05:00
Dylan Cant
c6b4867dd4 simplifications in number of lines of code for serialization 2023-01-16 23:31:22 -05:00
Dylan Cant
771a2b6218 remove int64 -> int conversion as it is not necessary for Sprinting 2023-01-16 23:22:45 -05:00
Dylan Cant
be46f7abac fixing JSON escaping (to RFC4627) 2023-01-16 23:13:19 -05: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
a11aa8756b fix CheckSignature(): we were parsing the pubkey with the ECDSA function instead of Schnorr. 2022-05-01 17:51:16 -03:00
fiatjaf
00ad1acde9 use schnorr from btcec instead of the bip340 library. 2022-05-01 15:10:18 -03:00
fiatjaf
9721ffa851 use fastjson to serialize and unmarshal/marshal events, remove need for special Time type. 2022-02-09 20:23:10 -03:00
fiatjaf
41955a0601 serialization tests for events and filters. 2022-02-09 13:40:26 -03:00
fiatjaf
86853004ef change parsing so NIP12 can work, rename types. 2022-02-08 16:27:33 -03:00
fiatjaf
d131e8460e move everything to the same directory. 2022-01-02 08:44:18 -03:00