jolocom / jolocom-lib

Library for interacting with the identity solution provided by Jolocom.
MIT License
24 stars 18 forks source link

Key must be a buffer error occurs on create.signedCredential method #258

Closed sandramarianegeorge closed 5 years ago

sandramarianegeorge commented 5 years ago

The following:

IdentityWallet.create.signedCredential({
  metadata: claimsMetadata.emailAddress,
  claim: { email: 'example@example.com' },
  subject: IdentityWallet.did 
})

Returns : UnhandledPromiseRejectionWarning: TypeError: Key must be a buffer error

Fix :

IdentityWallet.create.signedCredential({
  metadata: claimsMetadata.emailAddress,
  claim: { email: 'example@example.com' },
  subject: IdentityWallet.did 
},  password)
Exulansis commented 5 years ago

Thank you for reporting. Will update the documentation to reflect the correct API shortly!