fiatjaf
|
4dcadd4d88
|
update go version so we can use the new benchmarking helper.
|
2025-03-13 18:57:30 -03:00 |
|
fiatjaf
|
a52165fb7d
|
deprecate all useless tag methods, implement Find() and friends.
|
2025-03-10 02:33:29 -03:00 |
|
reis
|
63919cf685
|
support wasm (#163)
|
2025-01-02 09:42:04 -03:00 |
|
fiatjaf
|
b58c4c5516
|
nip13: defer cancel() calls.
|
2024-10-18 07:08:47 -03:00 |
|
fiatjaf
|
f9271a6802
|
fix two tests.
|
2024-10-14 17:50:37 -03:00 |
|
fiatjaf
|
9057b1a7e1
|
get rid of all the deprecated things.
|
2024-10-14 16:20:30 -03:00 |
|
K
|
c91e7b9765
|
using testify instead of testing.T methods. (#143)
|
2024-09-09 07:20:56 -03:00 |
|
fiatjaf
|
148942cfae
|
nip13: use slightly more efficient difficulty checking on DoWork() that makes it 17% faster
|
2024-08-21 17:07:26 -03:00 |
|
fiatjaf
|
75e6befdd0
|
nip13: move Generate() to deprecated.go
|
2024-08-21 16:54:02 -03:00 |
|
fiatjaf
|
2fc34e0de8
|
nip13: fix slice pointer race issue on DoWork()
|
2024-08-21 16:53:40 -03:00 |
|
fiatjaf
|
83bd196bae
|
nip13: parallel DoWork(), deprecate Generate()
|
2024-08-20 23:04:52 -03:00 |
|
fiatjaf
|
2da58356b0
|
Revert "nip13: crazier and more fun and hopefully slightly more performant nonce encoding."
This reverts commit edbbd6df445dcd2bed8025397c44f2d03661f014.
|
2024-08-20 17:05:49 -03:00 |
|
fiatjaf
|
edbbd6df44
|
nip13: crazier and more fun and hopefully slightly more performant nonce encoding.
|
2024-08-20 13:54:51 -03:00 |
|
fiatjaf
|
437cdecfb1
|
nip13: CommittedDifficulty()
|
2024-08-20 13:19:21 -03:00 |
|
fiatjaf
|
0e72540696
|
nip13: fail when pubkey is not provided -- may help some clueless people like me.
|
2024-08-20 10:31:52 -03:00 |
|
fiatjaf
|
18dbda437b
|
nip13: superficial changes.
|
2024-08-20 09:52:35 -03:00 |
|
Isaque Veras
|
0f66883dc7
|
feat(kind): using constants
|
2023-09-07 07:05:01 -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 |
|
alex
|
5bfb398f4d
|
nip13: check and generate proof of work
implementation as per NIP-13
https://github.com/nostr-protocol/nips/blob/e79c84ae/13.md
some benchmark results:
$ go test -bench . ./nip13
goos: linux
goarch: amd64
pkg: github.com/nbd-wtf/go-nostr/nip13
cpu: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
BenchmarkCheck-8 144905385 8.328 ns/op
BenchmarkGenerateOneIteration-8 467874 2451 ns/op
BenchmarkGenerate/8bits-8 4045 1033196 ns/op
BenchmarkGenerate/16bits-8 16 101939954 ns/op
BenchmarkGenerate/24bits-8 1 11411513764 ns/op
PASS
ok github.com/nbd-wtf/go-nostr/nip13 22.220s
|
2022-12-26 08:05:40 -03:00 |
|