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

ecdsa-multikey v1.0.0 #1

Merged
merged 51 commits into from
Feb 27, 2023
Merged

ecdsa-multikey v1.0.0 #1

merged 51 commits into from
Feb 27, 2023

Conversation

kezike
Copy link
Collaborator

@kezike kezike commented Feb 14, 2023

Version 1.0.0 of ecdsa-multikey:

  • Implementation of ECDSA key pair generation with curves P-256, P-384, and P-521
  • Implementation of ECDSA sign and verify methods
  • Tests for ECDSA key pair generation with curves P-256, P-384, and P-521
  • Tests for ECDSA sign and verify methods

…d missing secret and public keys in createSigner and createVerifier respectively; incorporated EcdsaCurve and EcdsaHash enums;
… errors for importing and exporting key pairs; incorporated constants
…ixed call to createSigner and createVerifier
Copy link
Member

@davidlehn davidlehn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also fix issues from npm run lint.

.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
karma.conf.cjs Outdated Show resolved Hide resolved
lib/factory.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
lib/index.js Outdated Show resolved Hide resolved
lib/serialize.js Outdated Show resolved Hide resolved
lib/serialize.js Outdated Show resolved Hide resolved
@kezike kezike changed the base branch from main to initial February 15, 2023 19:45
@kezike
Copy link
Collaborator Author

kezike commented Feb 22, 2023

@gannan08 The Codecov CI job is failing because of issues with the uploader, per this job run result. From my research, this may have to do with an outdated Codecov token. Have we encountered this error in the past?

Copy link
Member

@dlongley dlongley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is looking really good! I just have a few simplifications / nits to apply.

lib/crypto-browser.js Outdated Show resolved Hide resolved
lib/factory.js Outdated Show resolved Hide resolved
lib/serialize.js Outdated Show resolved Hide resolved
lib/helpers.js Outdated Show resolved Hide resolved
lib/constants.js Outdated Show resolved Hide resolved
lib/helpers.js Outdated Show resolved Hide resolved
lib/helpers.js Outdated Show resolved Hide resolved
lib/helpers.js Outdated Show resolved Hide resolved
lib/index.js Outdated Show resolved Hide resolved
lib/index.js Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
@kezike kezike requested a review from dlongley February 22, 2023 21:04
Copy link
Member

@dlongley dlongley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a couple of suggestions were missed from before, but then we should be good to go!

lib/constants.js Outdated
Comment on lines 30 to 34
export const MULTICODEC_P256_SECRET_KEY_HEADER = 0x8626;
// Multicodec p384-priv header (0x1307 varint -> 0x8726 hex)
export const MULTICODEC_P384_SECRET_KEY_HEADER = 0x8726;
// Multicodec p521-priv header (0x1308 varint -> 0x8826 hex)
export const MULTICODEC_P521_SECRET_KEY_HEADER = 0x8826;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it wasn't applied yet.

lib/helpers.js Outdated Show resolved Hide resolved
Copy link
Member

@dlongley dlongley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! @gannan08 let me know if you need me to merge and release this or if you will.

@gannan08
Copy link
Contributor

@dlongley Can you please merge and release.

@dlongley dlongley merged commit 377688a into initial Feb 27, 2023
@dlongley dlongley deleted the v1.0.0 branch February 27, 2023 23:05
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.

4 participants