ETHR createVerifiableCredential() TypeError: Invalid private key format #577
-
Tested out useing ethr for provider and resolver. But failing on tests
With error: TypeError: Invalid private key format
at Error (../node_modules/@veramo/kms-local/node_modules/did-jwt/src/util.ts:108:11)
at Object.j [as EdDSASigner] (../node_modules/@veramo/kms-local/node_modules/did-jwt/src/signers/EdDSASigner.ts:22:15)
at KeyManagementSystem.<anonymous> (../node_modules/@veramo/kms-local/src/key-management-system.ts:79:22)
at ../node_modules/@veramo/kms-local/build/key-management-system.js:8:71
at Object.<anonymous>.__awaiter (../node_modules/@veramo/kms-local/build/key-management-system.js:4:12)
at KeyManagementSystem.signJWT (../node_modules/@veramo/kms-local/build/key-management-system.js:90:16)
at KeyManager.<anonymous> (../node_modules/@veramo/key-manager/src/key-manager.ts:111:16) Tested with keys imported encrypted and unencrypted (not useing secretbox). Am i doing something wrong when importing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Found what i did wrong. Forgot to change the keytype to Secp256k1 |
Beta Was this translation helpful? Give feedback.
-
excuse me , I face this problem too. Where to change the keytype to Secp256k1? |
Beta Was this translation helpful? Give feedback.
Found what i did wrong. Forgot to change the keytype to Secp256k1