10 Commits

Author SHA1 Message Date
fiatjaf
668d6fc956 nip77: remove third-party syncing from last commit and expose stuff so it can be implemented elsewhere (nak) directly. 2025-12-01 18:08:55 -03:00
fiatjaf
94d29f1230 nip77: convert to dealing with bytes instead of hex strings.
it was cool but this should be faster and less confusing.
2025-05-12 05:54:40 -03:00
fiatjaf
376834cbf9 more conversions. 2025-04-15 00:00:03 -03:00
fiatjaf
b4268d649c a bunch of [32]byte conversions. still more needed. 2025-04-14 17:47:53 -03:00
fiatjaf
101031b9e8 negentropy: fix getMinimalBound() to go 2 hex chars each time instead of 1. 2024-09-20 18:05:40 -03:00
fiatjaf
9813d1776f negentropy: fuzz testing, move accumulator to vector package. 2024-09-20 10:57:00 -03:00
fiatjaf
b1dd120ec7 negentropy: slightly faster encodeVarInt() 2024-09-19 11:35:16 -03:00
fiatjaf
6910f391fe negentropy: small refactors here and there, comments and making the code clearer. 2024-09-19 11:35:16 -03:00
fiatjaf
286040c4ce negentropy: do the algorithm entirely in hex.
plus:
  - nicer iterators
  - some optimizations here and there.
  - something else I forgot.
2024-09-14 16:28:21 -03:00
fiatjaf
a094f3a9d2 negentropy.
- a way to handle custom messages from Relay (NEG-whatever etc)
- negentropy implementation (adapted from that other one)
- nip77 nostr negentropy extension
- QueryEvents method for RelayStore that returns a channel (makes negentropy syncing work more seamlessly)
2024-09-14 07:40:09 -03:00