Commit Graph

20 Commits

Author SHA1 Message Date
fiatjaf 2c0d9712e3 CompareRElayEvent() helpers. 2026-03-08 22:57:38 -03:00
fiatjaf 0cb0d1ccb0 unify usage and export nostr.IsOlder() helper. 2026-01-22 22:54:44 -03:00
fiatjaf 55a43e46b7 use xhex everywhere. 2025-11-23 06:57:54 -03:00
fiatjaf 3723924561 nip61: perhaps simplify the function signature and support specific source mints. 2025-05-05 16:56:22 -03:00
fiatjaf 2b5b646a62 a big bundle of conversions and other changes. 2025-04-15 17:13:57 -03:00
fiatjaf b4268d649c a bunch of [32]byte conversions. still more needed. 2025-04-14 17:47:53 -03:00
fiatjaf 5bfaed2740 docstrings for many functions. 2025-03-04 11:42:44 -03:00
fiatjaf 9057b1a7e1 get rid of all the deprecated things. 2024-10-14 16:20:30 -03:00
fiatjaf d29025e958 CompareEvent/Ptr/Reverse utils. 2024-09-30 00:39:26 -03:00
fiatjaf a54852f439 CompareEvent() for helping with slices.BinarySearch() 2024-09-15 12:57:51 -03:00
Yasuhiro Matsumoto 4f71918311 fix IsValidRelayURL 2024-07-29 14:43:40 -03:00
fiatjaf 70f719ea31 IsValidPublicKey() and IsValid32ByteHex() replacing IsValidPublicKeyHex() 2024-01-18 16:27:56 -03:00
fiatjaf 0c5a1b7b4f move internal utilts to helpers.go 2023-11-28 22:24:05 -03:00
fiatjaf f5cd0c1140 Filter.Clone() 2023-11-06 18:50:55 -03:00
fiatjaf b522d24c30 use a named lock instead of a single per-pool mutex. 2023-08-06 19:54:30 -03:00
fiatjaf 017816e3dc stop supporting prefix matches. 2023-08-05 10:12:57 -03:00
fiatjaf 8bdbcc93eb remove useless util. 2023-07-28 20:53:59 -03:00
fiatjaf c0c20b8401 validate and normalize relay urls received from kind 3 and 10002. 2023-07-08 08:16:30 -03:00
fiatjaf 16580f3e84 InsertEventIntoDescendingList() helper. 2023-07-04 17:57:43 -03:00
fiatjaf de7179437e helpers.go -> utils.go and lowercase util functions. 2023-02-27 16:30:48 -03:00