nostrdb

Changes from 2025-03-30 to 2026-03-30

Stats

name             added    removed  commits
William Casarin  +141151  -988     92
Daniel D'Aquino  +8       -0       1
Wayne Fourie     +5       -0       1
Daniel D’Aquino  +1       -1       1

Log

William Casarin (92):
      Revert "mem: search cursor close"
      add ndb_builder_push_tag_id
      add resolve-pubkeys tool
      bech32_decode: bump to 10 hrp
      binmoji: add to project
      bolt11: fix bech32 decoding issue
      change <=10 author search queries to ==1
      cleanup previous patch
      cli: fix uninitialized value
      cli: more results
      cli: support querying up to 1 million notes
      cursor: add push_b16
      cursor: retab cursor_memset
      deps: add hkdf,hmac,base64, etc
      deps: vendor libsodium
      docs: short article on ndb_query_visit
      envrc: allow priv envs
      eq: fix fallthrough bug
      filter: add initial custom filtering logic
      filter: fix double free on empty filters
      fix is_reply_to_root
      fix misc spammy debug statements
      fmt: fix tabs in metadata type
      giftwraps working!
      giftwraps: add ndb_process_giftwraps
      giftwraps: fix double free bug
      giftwraps: mark wrap as unwrapped on success
      header: sort note meta functions
      initial giftwrap ingestion logic
      initial nip44 support
      makefile: only enable -fsanitize=leak on Linux
      mem: builder clear before free
      mem: close cursors in print helpers
      mem: re-enable profile freeing
      mem: reaction stats cleanup
      mem: relay iter cleanup
      mem: search cursor close
      memory: fix a bunch of memory leaks
      metadata: add initial metadata table api
      metadata: add online metadata counts
      metadata: builder resized function
      metadata: count reposts
      metadata: expose header init fn
      metadata: expose metadata entry reaction str
      metadata: initial docs and remaining TODO
      migrate: fix some migration error messages
      migration: implement ndb_count_reactions
      migration: migrate full reaction stats for all kind1 notes
      migration: reply counter + test
      ndb: add --add-key to import
      ndb: add --id queries
      ndb: add -p queries
      ndb: add generic tag query support with --tag/-T option
      ndb: add q tags
      ndb: fix inconsistent field handling in tag query options
      ndb: fix race condition in ndb_wait_for_notes
      nip-pns: implement kind-1080 auto-unwrap
      nip44: add buffer too small err
      nip44: add encrypt
      nip44: rename nip44_decrypt_err_msg to nip44_err_msg
      nip44: simplify calc_padded_len
      nip44: simplify padding calc
      nostrdb: calculate id in ndb_note_verify
      nostrdb: fix ingester crashes due to txn not being opened
      plan: add all_notes query plan
      query: add ndb_query_visit
      query: enforce author matches in author_kind queries
      query: fair multi-filter distribution via separate buffers + merge
      query: fix per-filter limit handling for multi-filter queries
      query: implement profile search query plans
      rgignore: add deps
      search: fix memleak in profile search
      test: add initial metadata tests
      test: add test for multi-filter query limit handling
      test: add test for replay attack
      test: add test_multifilter_query_fair_distribution
      test: add test_multiple_zaps for accumulation and partial verify
      test: attemp fix for flaky test
      test: fix custom filter test
      test: fix race in test_note_relay_index
      test: fix reply test
      test: fix some memory issues
      test: free things that need to be freed
      test: make test_custom_filter more robust
      test: remove some noise
      test: simplify test db removal
      util: pretty print p/q entries in tag index
      util: remove extra semicolon
      win: fix heap corruption with flatbuf
      wip metadata migration
      zap: add ndb_verify_zap API for verified zap counting
      zap: add unverified zap counting at ingestion time

Daniel D'Aquino (1):
      Add ndb_snapshot() API for database snapshots

Daniel D’Aquino (1):
      nostrdb: Fix heap buffer overflow

Wayne Fourie (1):
      fix: Add ssize_t typedef for Windows MSVC support