Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
Update jolocom-lib to 3.0, and fix SoftwareKeyProvider usage
Browse files Browse the repository at this point in the history
Fixes #18
  • Loading branch information
mnzaki committed Aug 3, 2019
1 parent 650d5fd commit 627fc2e
Show file tree
Hide file tree
Showing 3 changed files with 1,304 additions and 409 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"history": "^4.7.2",
"isomorphic-fetch": "^2.2.1",
"jest": "22.4.2",
"jolocom-lib": "^2.2.9",
"jolocom-lib": "^3.0.0",
"material-ui": "^0.20.2",
"promise": "8.0.1",
"react": "^16.4.2",
Expand Down
2 changes: 1 addition & 1 deletion server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ app.use(cors())

const { getAsync, setAsync, delAsync } = configureRedisClient()
const registry = JolocomLib.registries.jolocom.create()
const vaultedKeyProvider = new JolocomLib.KeyProvider(seed, password)
const vaultedKeyProvider = JolocomLib.KeyProvider.fromSeed(seed, password)

registry.authenticate(vaultedKeyProvider, {derivationPath: JolocomLib.KeyTypes.jolocomIdentityKey, encryptionPass: password})
.then(identityWallet => {
Expand Down
Loading

0 comments on commit 627fc2e

Please sign in to comment.