Repository navigation
feat: validate raw SLH private-key imports asynchronously - #1093
Conversation
|
@sidhujag is attempting to deploy a commit to the Margelo Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks for the careful write-up, and for keeping this a draft until it has a device run. The OpenSSL call is the right one, and the twelve fixtures match the NIST ACVP keyGen file at I do not want to merge it in this shape.
Two limits should be explicit. OpenSSL's pairwise test never reads The user-facing docs should describe the import, the byte lengths, and those two errors. The Nitro release-mode paragraph can stay in a code comment. Please run the example on device before taking this out of draft. The happy path depends on the hand-rolled Promise executor, and nothing has executed it yet. |
|
Deployment failed for project react-native-quick-crypto with the following error: |
|
Updated this to return a validated One correction on |
|
@boorad ^ |
|
Reported outcome: pass · 2/2 checks reported · 5 omissions Source: Worker-reported; the verifier checks the signature and source bindings, not whether commands ran. Command results
Coverage and environmentCoverage: 2/2 checks reported; 5 omissions.
Source details
Signed machine-readable evidenceThe exact signed bytes are preserved below for verification and audit tooling. |


Complete raw SLH-DSA keys now use
createPrivateKeyAsync(), which returns a validatedPrivateKeyObject. The native worker validates its own copy and transfers that same key into the returned handle. The separate publicSlhDsavalidator is removed; other synchronous key imports keep their existing API.Busy admission has a separate error from invalid key material. Tests cover all twelve variants, wrong inputs, seed/root corruption, caller-buffer erasure, worker cleanup and admission reuse. There is also a positive
SK.prfmutation test: root validation does not authenticate those original bytes, and a changedSK.prfcan still produce a valid signature. Stored-key integrity remains the application's responsibility.The branch retains the latest upstream fixes. The example also normalizes its generated ReactCodegen path so the CocoaPods checksum does not depend on Bun's peer-directory name, and resolves one Nitro runtime to prevent duplicate Android dispatcher installation.
Validation: TypeScript, lint, formatting, Node Jest, the ncrypto/OpenSSL compatibility check and the standalone C++ admission regression pass. Both full example runs pass at
273ae4f76166b0954737fa1f0cf4e486f7956d83: 2,209 tests on iOS 27.2 Simulator and 2,209 on the Android emulator.Both local native runs are complete. Keeping this draft for the required maintainer-signed attestation; the local test results are not that attestation.