secp256k1 keys may not be suitable for EDCH
I found out about this issue when looking into using a secp256k1 key using the well supported did-jwt library, where I found this note: https://github.com/decentralized-identity/veramo/blob/0c22cc6a79e974214500e4440b0ea2977012377d/packages/utils/src/did-utils.ts#L269
I then followed up and found secp256k1 keys are not supported due to Twist attacks. See here
This issue is prevalent during the EDCH code found in https://github.com/wharfkit/antelope/blob/master/src/crypto/shared-secret.ts
secp256k1 keys may not be suitable for EDCH
I found out about this issue when looking into using a secp256k1 key using the well supported did-jwt library, where I found this note: https://github.com/decentralized-identity/veramo/blob/0c22cc6a79e974214500e4440b0ea2977012377d/packages/utils/src/did-utils.ts#L269
I then followed up and found secp256k1 keys are not supported due to Twist attacks. See here
This issue is prevalent during the EDCH code found in
https://github.com/wharfkit/antelope/blob/master/src/crypto/shared-secret.ts