You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
recipher-js review cleanups: remove the Label boundary check, derive OpaqueDebug on RecordPlan, and rewrite the doc comments in plain language #1803
@cipherstash/recipher is the TypeScript SDK on the Stack Encrypt engine (the Rust crate stack-encrypt, which encrypts and decrypts values). Its Rust half is at languages/typescript/packages/recipher-js: the Node addon recipher-js (crate/) and the value bridge recipher-value-napi (value-napi/), which reads JavaScript values into the engine's value model and builds them back.
Problem
Three small things from the review of #1774 and its stack:
RecordPlan has a hand-written impl Debug (crate/src/record.rs). The repository's rule is to derive vitaminc's OpaqueDebug for a type whose contents should not print, and the other types in the crate do.
The doc comments are hard to read. They are dense and use long sentences. They should follow the plain-language rules the rest of the SDK's documents follow.
Proposal
Remove the Label check and its mention in AGENTS.md. Keep the two other checks in that file: the crate does not link eql-bindings, and a release build cannot reach the test keys.
Derive OpaqueDebug on RecordPlan, or a derived Debug if nothing in it needs hiding.
Rewrite the package's doc comments (Rust and TypeScript) and README in plain language. Change no behaviour.
Activity
feat(recipher-js): records through the engine's Planned
feat(recipher-js): records through the engine's Planned
feat(recipher-js): records through the engine's Planned