-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'did' of undefined. #21
Comments
Also, one more question. How can I view the public claim? |
Re: public claim, there is no "public claim", these credentials are created and signed and passed around locally, not registered publicly anywhere. There is though one credential which we typically store on IPFS, and that's the |
I agree with the "public claim" question. That was my misunderstanding of the create function. I red the docs further and found out last night. Thanks for the clarification though. Regarding
|
you need to do something like: const reparsed = JolocomLib.parse.signedCredential(emailAddressSignedCredential.toJSON()) |
Gotcha. I was trying all in one script and that created the confusion. I've create a PR(jolocom/jolocom-lib#418) for the documentation update from other people running into the same issue. You are welcome to accept or reject it based on your plan ahead. Thanks for the help. |
Trying to validate a signed credential, using the code below,
... and It's giving me the error below.
I've also attempted,
fromJSON
function by passing the object directly but it still didn't work. This approach gave me an error_jolocomLib.JolocomLib.parse.signedCredential.fromJSON is not a function
.Also, if you are wondering,
emailAddressSignedCredential
is created using the code below,Is this the library error or am I not using the library correctly?
The text was updated successfully, but these errors were encountered: