[go: up one dir, main page]

Skip to content
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

Secp256k1 js #28

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Secp256k1 js #28

wants to merge 3 commits into from

Conversation

mamod
Copy link
@mamod mamod commented Dec 25, 2022

Hello,

I'm not a crypto expert so this is a humble attempt to replace openssl with js

  • I've deleted csr_template.ts file since csr config is not a template now, this can be reverted if you prefer to

  • in sign I had to replace crypto createSign with jsrsasign sign method as the current solution couldn't parse privatekey generated by jsrsasign most likely due to the new line added being \r\n not \n
    anyway this can be reverted if we use a another library to create keys, I tried ecdsa-secp256r1 and it worked without any modification to the original signing functions

  • @fidm/x509 module can be replaced with jsrsasign - no need for 2 deps

  • sorry for some of the unrelated changes, it's just my editor removing extra white spaces, maybe we should use a code formatter 😝

@wes4m wes4m self-requested a review December 26, 2022 08:04
@wes4m wes4m added the enhancement New feature or request label Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants