feat: disallow self-referencing nodes except via bootstrap() #13

Merged
xiaomo merged 1 commits from feat/12-no-null-type into main 2026-05-18 14:59:18 +00:00

1 Commits

Author SHA1 Message Date
xiaoju 4989cd31ba Remove null from Store.put typeHash parameter
Self-referencing nodes are created only through bootstrap() via an internal BOOTSTRAP_STORE symbol on memory and fs store implementations. put() always requires a Hash typeHash and uses computeHash.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-18 14:54:40 +00:00