Which we create type 4 DID , we check whether mnemonicFile is present (default -mnemonic.txt) unless specified using -mnemonicKeyFile flag. We had a debug statement Main.Core: failed to read mnemonic file: err="open mnemonic.txt: no such file or directory" which could potentially confuse for users.
This PR checks whether specified mnemonickeyfile exist or not and read it only in case it does. If there is no mnenmonickey , we create a random key and store in mnemonic.txt inside DID folder
Testing :
call createdid without specifying mnemonicKeyFile (or a filename that doesn't exist)
Attaching screenshot of code execution before and after.
Small fix :
Which we create type 4 DID , we check whether mnemonicFile is present (default -mnemonic.txt) unless specified using -mnemonicKeyFile flag. We had a debug statement
Main.Core: failed to read mnemonic file: err="open mnemonic.txt: no such file or directory"
which could potentially confuse for users. This PR checks whether specified mnemonickeyfile exist or not and read it only in case it does. If there is no mnenmonickey , we create a random key and store in mnemonic.txt inside DID folderTesting :
call createdid without specifying mnemonicKeyFile (or a filename that doesn't exist)
Attaching screenshot of code execution before and after.