I want to be able to create an identity document from another Go application. Ideally I would simply import the the defaultService package and call the CreateIdentity method.
Unfortunately this is not possible because:
I have to create a new service which involves lots of unnecessary coding.
It depends on the "common" package which has a dependency on IPFS, publishing the document to IPFs should be a separate call e.g.
I want to be able to create an identity document from another Go application. Ideally I would simply import the the defaultService package and call the CreateIdentity method.
Unfortunately this is not possible because:
myFunc() hashddress { identityDoc, identitySecrets := identity.CrateIdentity("name") hashAddress := ipfs.Put(identityDoc) store.Put(identitySecrets) return hashAddress }