feat(pq-key-fingerprint/ts): phase 1 - rebuild source API surface (ENG-1760)#22
feat(pq-key-fingerprint/ts): phase 1 - rebuild source API surface (ENG-1760)#22
Conversation
|
@codex review |
Greptile SummaryThis PR establishes the Phase 1 API surface for Key changes:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
FI["FingerprintInput\n(PublicKeyInput | Uint8Array | string | PQJwk)"]
PKI["PublicKeyInput\n(PublicKeyData | {alg, bytes})"]
PKD["PublicKeyData\n(Omit<KeyData,'type'|'alg'> & {alg, type:'public'})"]
PQJ["PQJwk\n(PQPublicJwk | PQPrivateJwk)"]
FO["FingerprintOptions\n{digest?: FingerprintDigest, encoding?: FingerprintEncoding}"]
FR["FingerprintResult\n(string | Uint8Array)"]
FI --> PKI
FI --> PQJ
PKI --> PKD
FO --> |"digest: SHA-256 | SHA-384 | SHA-512"| FR
FO --> |"encoding: hex | base64 | base64url | bytes"| FR
subgraph Errors
FE["FingerprintError"]
IFIE["InvalidFingerprintInputError"]
IKTE["InvalidKeyTypeError"]
UDE["UnsupportedDigestError"]
RCE["RuntimeCapabilityError"]
FE --> IFIE
FE --> IKTE
FE --> UDE
FE --> RCE
end
Last reviewed commit: c02e544 |
|
Codex Review: Didn't find any major issues. Keep them coming! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
| "scripts": { | ||
| "build": "tsc", | ||
| "build": "tsc -b", | ||
| "test": "bun test", |
There was a problem hiding this comment.
Remove the 'test': 'bun test' script since no test files exist yet. The bun test runner fails when it cannot find any files with test naming conventions (.test, test, .spec, spec). This script should be added back when actual test files are implemented.
Spotted by Graphite (based on CI logs)
Is this helpful? React 👍 or 👎 to let us know.

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