digitalbazaar / ecdsa-multikey

Javascript library for generating and working with EcdsaMultikey key pairs.
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Agree on appropriate algorithm to export #10

Closed kezike closed 1 year ago

kezike commented 1 year ago

@dlongley @gannan08 The WebCrypto API methods (e.g., SubtleCrypto.generateKey) expect for ECDSA key operations to use the algorithm's name value of ECDSA and its namedCurve value that is one of {P-256, P-384, P-521}. However, the cryptosuite library expects us to use the curve name (e.g., P-256) as the algorithm name. At the moment, createSigner and createVerifier export an algorithm property with the value of ECDSA. I believe this needs to be changed to the value of the appropriate curve name in order to match the semantics of the cryptosuite library. Thoughts?

gannan08 commented 1 year ago

The algorithm for the cryptosuite will be P-256. The createSigner and createVerifier should export the specific curve name as the algorithm instead of ECDSA.

kezike commented 1 year ago

This issue was resolved by PR #11.