aries-askar
aries-askar copied to clipboard
Store provision when store already exists
My understanding of store provision method is that it works as a constructor, meaning that if the store does already exist the method should throw a "Duplicate" error (unless recreate flag is set).
However, my initial testing through JS wrapper shows that, if called with recreate flag unset, it will:
- Throw an Encryption error in case the store already exists and the provided passkey is not correct
- Open the store in case the passkey provided is the same as the existing store
Is this behaviour correct?