feat(pq-key-fingerprint/ts): phase 2 - implement fingerprint core logic (ENG-1761)#23
feat(pq-key-fingerprint/ts): phase 2 - implement fingerprint core logic (ENG-1761)#23
Conversation
|
@codex review |
Greptile SummaryThis PR implements the Phase 2 core fingerprint logic for the
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant C as Caller
participant FPK as fingerprintPublicKey
participant N as normalizePublicKeyInput
participant E as ensurePublicKeyData
participant FKD as fingerprintKeyData
participant D as digestBytes
participant WC as WebCrypto (subtle)
C->>FPK: fingerprintPublicKey(input, options)
FPK->>N: normalizePublicKeyInput(input)
N->>E: ensurePublicKeyData(keyData)
Note over E: assertKeyData (1st call)
E-->>N: PublicKeyData
N-->>FPK: PublicKeyData
FPK->>FKD: fingerprintKeyData(keyData, options)
FKD->>E: ensurePublicKeyData(keyData)
Note over E: assertKeyData (redundant 2nd call)
E-->>FKD: PublicKeyData
FKD->>D: digestBytes(bytes, digest)
D->>WC: subtle.digest(alg, buffer)
WC-->>D: ArrayBuffer
D-->>FKD: Uint8Array
FKD-->>FPK: encodeFingerprint(result, encoding)
FPK-->>C: FingerprintResult (string | Uint8Array)
Last reviewed commit: 41f1935 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 41f19352b3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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