Come here to report bugs or ask questions about the Jolocom SmartWallet and underlying protocol
Hi @iwTGBs, this is caused by that branch using an older version of the library which uses a since-deprecated Infura API. To solve, I would recommend either using the master branch of the generic backend or upgrading your jolocom-lib dependency to 4.0.1. The master branch should still work for the swimming pool as long as you keep the same config.ts file, however some type definitions may have changed slightly, e.g.:
/* Credentials required during authentication */
export const currentCredentialRequirements = ['a-kaart']
export const credentialRequirements = {
'a-kaart': {
metadata: demoClaimsMetadata.akaart
}
} as { [key: string]: ICredentialReqSection }
/* Credentials offered by the service. */
export const credentialOffers = {} as {
[key: string]: {
schema: BaseMetadata
metadata: {
renderInfo?: CredentialOfferRenderInfo
metadata?: CredentialOfferMetadata
}
}
}
The main changes on the aKaartIntegration branch are related to integration with an external service via adding custom middleware, so it is still a good example of that.
CredentialShare
managed by https://github.com/jolocom/generic-backend/blob/master/src/controllers/registration.tsCredentialOffer
managed by https://github.com/jolocom/generic-backend/blob/master/src/controllers/issuance.tsawait setStatusDone(redis, nonce)
socket
, and I think that's what you are missing!
watchDbForUpdate
is for)
const registry = JolocomLib.registries.jolocom.create();
const vaultedKeyProvider = JolocomLib.KeyProvider.fromSeed(didSeed, this.password);
registry.authenticate(
vaultedKeyProvider,
{derivationPath: JolocomLib.KeyTypes.jolocomIdentityKey, encryptionPass: this.password})
.then((identityWallet) => {
this.wallet = identityWallet;
});
Quick question, is there a comparison between Jolocom other SSI solutions?
Here are some resources:
jolocom-cli
and running into some errors. I've submitted two issues at jolocom/jolocom-cli#19 & jolocom/jolocom-cli#20. Who should be the best person to chat with?
jolocom-sdk
conversation. I'll do so.
Hey community,
We are giving away 4 tickets for the upcoming RustConf in return of 30min of your time.
Jolocom design team is doing user research, and we are looking for four developers to interview tomorrow.
If you are…
and want to attend RustConf,
please let us know :)
registry.authenticate(vaultedKeyProvider, {derivationPath: JolocomLib.KeyTypes.jolocomIdentityKey, encryptionPass: password})
.then(identityWallet => {
configureRoutes(app, {setAsync, getAsync, delAsync}, identityWallet, password)
configureSockets(server, identityWallet, password, new DbWatcher(getAsync), {getAsync, setAsync, delAsync})
})
Demo service started, listening on port 9010
(node:329398) UnhandledPromiseRejectionWarning: Error: Could not retrieve DID Document. Returned error: project ID is required
at JolocomRegistry.resolve (/opt/js/jolocom/demo-sso/node_modules/jolocom-lib/ts/registries/jolocomRegistry.ts:175:13)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:329398) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:329398) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Where is your service deployed. E.g. https://demo-sso.jolocom.com
Hi all,
I am trying implement Jolocom SDK in react-native, can someone assist me with creation of self-signed credentials like email and name.
here is what I have done so far:
bob.idw.create.credential()
to create credentials, how do I this add it to the wallet ?Objective is to request self-signed email and name credentials from bob.