-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser-compatible version #1195
Comments
Sample porting of |
I have worked both on points 2 and 3, also porting the already existing tests to vitest as possible. At the moment, the Sigstore core module successfully builds with The modified crypto.ts contains the crypto logic using the Web Crypto API. It's not perfect, and it probably cannot ever natively supports all algorithms that are currently supported by Sigstore, however most standard cases (P-256, P-384, P-521 - SHA-256, SHA-384, SHA-512) are either already covered or should be doable. |
I am having a hard time verifying signatures :/ somehow the I am testing with the publickey, data, and signature from
And indeed it successfully verifies in python, and of course in the original Node native code, but not using Edit: this is the answer:
|
Next step would be to port the
|
Description
I need to use a minimal subset of Sigstore function, only for validation, inside a browser extension. While there are polyfills and stuff like browserify, I did not have much success with them, and I think that when doing delicate crypto I should not rely on automatic fillings.
I would like to work on achieving this, and could use some guidance and insights on the possible issues and, if there is interest, how to structure things in order to have them integrated here.
So far, I have started porting the
core
package, and these are my ideal steps on which I have experimented a bit:Buffer
for the both node and browser nativeUint8Array
I think that overall, having a verifying only minimal implementation should not be a very long job.
The text was updated successfully, but these errors were encountered: