jolocom / jolocom-lib

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

Bug with code snippet 1_creation.ts #437

Open GuilhermeMenezes opened 3 years ago

GuilhermeMenezes commented 3 years ago

Describe the bug Hello everyone, I'm trying to run the code snippet 1_creation.ts in order to create a DID for a university project. But when I try to run the code, I get the error that is in the attached files called "1_creationError1". 1_creationError1

That is the code available to us in your snippet codes files. But according to your online documentation if I change line 5 to:

1_creationWorkingButNotRight

I indeed get a DID. But if I run more times it will ALWAYS give me the same DID regardless if I change the secret in the "data.ts" file. Besides, even if I change the secret, it always shows that warning about the password provided... So it feels like the code is not correct... What am I doing wrong?

Thanks in advance for any replies, Cheers.

To Reproduce Steps to reproduce the behavior: In the terminal run inside the folder with the code:

  1. tsc 1_creation.ts
  2. node 1_creation.js