Skip to content

refactor: clean up equality checks and docs - #398

Open
kentbull wants to merge 1 commit into
WebOfTrust:mainfrom
kentbull:equality-check-cleanup
Open

kentbull wants to merge 1 commit into
WebOfTrust:mainfrom
kentbull:equality-check-cleanup

Conversation

@kentbull

Copy link
Copy Markdown
Collaborator

There were a few equality checks that would possibly coerce values in an unexpected way. This PR changes double equals == to explicit triple equals=== that do not do type coercion. The new tests exercise the new invalid index and ondex checks.

It also adds thorough docs to the Signer class.

@kentbull
kentbull force-pushed the equality-check-cleanup branch from 9b6c490 to 2790a64 Compare June 26, 2026 23:45

@iFergal iFergal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small comment, everything else is great!

Comment thread src/keri/core/signer.ts
* Ed25519 implementation behind `sign`.
*
* Prefer `sign()` for normal use; this method expects the caller to supply
* the seed and verifier that match this signing suite.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo we should make _ed25519 private and remove this comment, better if never called externally

@iFergal

iFergal commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

also need to format this PR

This branch has not been deployed

No deployments
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.

2 participants