13 Commits

Author SHA1 Message Date
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