aries-askar icon indicating copy to clipboard operation
aries-askar copied to clipboard

Store provision when store already exists

Open genaris opened this issue 1 year ago • 0 comments

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?

genaris avatar Jan 20 '23 22:01 genaris