PeculiarVentures / graphene

A simple layer for interacting with PKCS #11 / PKCS11 / CryptoKI for Node in TypeScript. (Keywords: Javascript, PKCS#11, Crypto, Smart Card, HSM)
MIT License
169 stars 34 forks source link

Support secp256k1 #126

Closed wshbair closed 4 years ago

wshbair commented 4 years ago

It possible to support the secp256k1 beside secp256r1 ? I see the first version support it but in the later versions it is not existed

rmhrisk commented 4 years ago

Yes but tits dependent on it and how your HSM supports it since PKCS11 doesn’t specify how this works.

See: https://github.com/PeculiarVentures/graphene/issues/123

wshbair commented 4 years ago

HSM

Sorry, I didn't get your question. I am quite new in this field. I am exploring the SoftHSMv2 for development and then shift to AWS CloudHSM which supports the secp256k1

microshine commented 4 years ago

Fixed in a new version graphene-pk11@2.1.6 https://github.com/PeculiarVentures/graphene/blob/master/src/keys/ec/curves.ts#L5