howardkitto opened a new issue #39: Refactor CreateIdentity Method URL: https://github.com/apache/incubator-milagro-dta/issues/39 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: 1. I have to create a new service which involves lots of unnecessary coding. 2. It depends on the "common" package which has a dependency on IPFS, publishing the document to IPFs should be a separate call e.g. ``` import ( "github.com/apache/incubator-milagro-dta/pkg/identity" "github.com/apache/incubator-milagro-dta/pkg/ipfs" "someStorageThing" ) myFunc() hashddress { identityDoc, identitySecrets := identity.CrateIdentity("name") hashAddress := ipfs.Put(identityDoc) store.Put(identitySecrets) return hashAddress } ``` The end result is that I have rewrite all the business logic for creating an identity document.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
