Closed johnsmith-gooddollar closed 8 months ago
@sirpy here is a most simple veramo setup I was able to run: https://github.com/GoodDollar/veramo-nodejs-simple-setup/blob/master/src/veramo/setup.ts
By default they want to use TypeORM over relational database (mongo won't work with this setup). But they have an beta implementation of JSON storage could store all data required as simple JSON object snapshot. I created own implementation of this interface which will store snapshot to a single document of server_properties collection (like we store database version for migrations)
example of the data veramo will store in Mongo:
@johnsmith-gooddollar no need to store credentials.
@johnsmith-gooddollar Also plugins are optional https://veramo.io/docs/api/core-types.iagentoptions
So we just need the minimal plugins, for keystore look at https://veramo.io/docs/api/key-manager.memoryprivatekeystore which has the import to import a private key
@sirpy Yep I found all 3 memory stores (for keys, private keys and dids). The only 2 questions left
@sirpy I finally was able to generate keys & did using admin wallet private keys as seed: https://github.com/GoodDollar/veramo-nodejs-simple-setup/blob/master/src/veramo/setup.ts#L27
now we have the same DID each run, everything kept in-memory. if you're ok with it - I could hook it up to this PR
@sirpy wired it up
Please undo all line length formatting. it is confusing. make sure you use the prettier settings defined
done
Description
About #523
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: