Skip to content

Conversation

@TJKoury
Copy link
Contributor

@TJKoury TJKoury commented Jul 19, 2021

Adding NodeJS crypto.webcrypto per this issue.

@types/node typescript definition is incomplete, created local variable with :any for the time being.

@donskov donskov requested a review from microshine July 20, 2021 07:54
@rmhrisk
Copy link
Contributor

rmhrisk commented Jul 21, 2021

@TJKoury are you aware of @peculliar/webcrypto it is a node implementation of webcrypto and Node v15 also has native support. I am not against having liner support Node but its unclear of the objective?

@TJKoury
Copy link
Contributor Author

TJKoury commented Jul 21, 2021

The idea is to have an isomorphic code base that supports secp256k1 / Ed25519 / x25519. If I’m not mistaken, @peculiar/webcrypto does not enable those curves in the browser.

@TJKoury
Copy link
Contributor Author

TJKoury commented Jul 22, 2021

#86

@TJKoury
Copy link
Contributor Author

TJKoury commented Jul 9, 2022

Bump

@rmhrisk
Copy link
Contributor

rmhrisk commented Jul 9, 2022

@microshine

@microshine
Copy link
Contributor

@peculiar/webcrypto supports Ed curves

See these tests

Ed25519/Ed448
X25519/X448

And also it supports P-256, P-384, P-521, K-256, brainpoolP160r1, brainpoolP160t1, brainpoolP192r1, brainpoolP192t1, brainpoolP224r1, brainpoolP224t1, brainpoolP256r1, brainpoolP256t1, brainpoolP320r1, brainpoolP320t1, brainpoolP384r1, brainpoolP384t1, brainpoolP512r1, and brainpoolP512t1 named curves for ECDSA and ECDH algorithms

@TJKoury
Copy link
Contributor Author

TJKoury commented Jul 10, 2022

Ok will check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants