docs(pq-key-fingerprint/ts): phase 3 - add package documentation (ENG-1762)#24
Merged
docs(pq-key-fingerprint/ts): phase 3 - add package documentation (ENG-1762)#24
Conversation
7 tasks
Member
Author
7 tasks
Greptile SummaryThis PR adds comprehensive documentation for the Key observations:
Confidence Score: 4/5
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Caller] -->|bytes + alg| B[fingerprintPublicKeyBytes]
A -->|PublicKeyInput| C[fingerprintPublicKey]
A -->|SPKI DER Uint8Array| D[fingerprintSPKI]
A -->|PEM string| E[fingerprintPEM]
A -->|PQJwk| F[fingerprintJWK]
B --> G[normalizePublicKeyInput / build KeyData]
C --> G
D -->|fromSPKI - pq-key-encoder| G
E -->|fromPEM - pq-key-encoder| G
F -->|fromJWK - pq-key-encoder| G
G --> H{type === 'public'?}
H -->|No| ERR1[InvalidKeyTypeError]
H -->|Yes| I[digestBytes via WebCrypto subtle.digest]
I -->|unavailable| ERR2[RuntimeCapabilityError]
I -->|digest result Uint8Array| J[encodeFingerprint]
J -->|hex default| K[string - hex]
J -->|base64| L[string - base64]
J -->|base64url| M[string - base64url]
J -->|bytes| N[Uint8Array]
subgraph ErrorBoundary [withErrorBoundary]
G
H
I
J
end
ERR1 --> OUT[FingerprintError thrown to caller]
ERR2 --> OUT
Last reviewed commit: cf30961 |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Package(s)
Languages
Checklist
biome check,cargo fmt)Related Issues