Skip to content

Remove nrepo from getAllKeys/getPubKeys output - #14

Open
melvincarvalho wants to merge 1 commit into
gh-pagesfrom
feature/remove-nrepo
Open

Remove nrepo from getAllKeys/getPubKeys output#14
melvincarvalho wants to merge 1 commit into
gh-pagesfrom
feature/remove-nrepo

Conversation

@melvincarvalho

@melvincarvalho melvincarvalho commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Closes #13.

Removes the never-used nrepo field from the source of truth, everywhere it's emitted:

  • lib/index.js: dropped from getAllKeys() and getPubKeys() output and JSDoc.
  • web/assets/noskey-core.js: dropped from the mirrored functions, keeping the byte-for-byte web/CLI parity check green.
  • test/cli.test.js: removed from the expected-fields list.
  • README.md: removed the feature bullet and the example-output field.

Verified: npm test 40/40; test/verify-core.js all-pass (now 19 fields, matching both directions); CLI output contains no nrepo.

Note: breaking change to the JSON output shape — worth a version bump on next npm publish. The stale lib/index.js.new/.saf backup files and generated docs/ still mention nrepo but are untouched here (already stale on other fronts).


Note

Low Risk
Removes an unused output field only; no changes to key derivation or security-sensitive logic, but downstream parsers expecting nrepo will break until they adapt.

Overview
Removes the unused nrepo bech32 field from noskey’s JSON output everywhere it was emitted, so CLI and browser stay aligned on the same shape.

getAllKeys() and getPubKeys() in lib/index.js no longer compute or return nrepo; JSDoc is updated. The browser mirror in web/assets/noskey-core.js matches, and CLI tests drop nrepo from the expected field list. README no longer lists or shows nrepo in the example JSON.

This is a breaking change for consumers that relied on nrepo in CLI/web JSON; a semver bump on publish is appropriate. Generated docs/ and backup files still mention nrepo but are out of scope here.

Reviewed by Cursor Bugbot for commit 86fabb7. Bugbot is set up for automated code reviews on this repo. Configure here.

The nrepo encoding is never used. Removed from lib getAllKeys() and
getPubKeys() (and JSDoc), the mirrored web core, the CLI test's
expected-fields list, and the README feature list and example output.
The web form already stopped displaying it; with this the JSON output
drops it too. Breaking change to the output shape — warrants a version
bump when next published. Stale lib/index.js.new and .saf backups left
untouched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove nrepo from getAllKeys/getPubKeys output

1 participant