fiatjaf
|
1d06176c7e
|
kind checking moved to top-level functions on kinds.go
|
2024-11-03 15:34:49 -03:00 |
|
fiatjaf
|
47d493b7e8
|
make libsecp256k1 available with a build tag.
|
2024-09-27 17:45:46 -03:00 |
|
fiatjaf
|
c07528eb42
|
fix event kind range helpers.
|
2024-09-19 11:38:22 -03:00 |
|
kehiy
|
47243fdcc4
|
feat(event): adding more helpers.
|
2024-09-19 11:34:31 -03:00 |
|
fiatjaf
|
b5f8d48f79
|
event.CheckID()
absurd performance increase benefit over a naïve id comparison!
goos: linux
goarch: amd64
pkg: github.com/nbd-wtf/go-nostr
cpu: AMD Ryzen 3 3200G with Radeon Vega Graphics
BenchmarkIDCheck/naïve-4 1478547 802.9 ns/op 488 B/op 15 allocs/op
BenchmarkIDCheck/big_brain-4 1673341 715.3 ns/op 358 B/op 12 allocs/op
|
2024-09-14 10:55:54 -03:00 |
|
fiatjaf
|
c78c5658a3
|
move kind constants to kinds.go
|
2024-08-26 17:16:28 -03:00 |
|
Yasuhiro Matsumoto
|
b3ca3c1b82
|
add KindSimpleGroupLeaveRequest
|
2024-08-19 16:03:27 -03:00 |
|
Yasuhiro Matsumoto
|
7faa3da20a
|
add KindSimpleGroupDeleteGroup
|
2024-08-19 16:03:27 -03:00 |
|
fiatjaf
|
f9fd760808
|
nip29: handle 9007 create_group.
|
2024-07-04 16:22:50 -03:00 |
|
fiatjaf
|
2bf6c87b45
|
remove json annotations from event.
|
2024-05-29 08:40:54 -03:00 |
|
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 |
|