milagro-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-milagro-dta] howardkitto opened a new issue #39: Refactor CreateIdentity Method
Date Fri, 13 Sep 2019 13:31:29 GMT
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@milagro.apache.org
For additional commands, e-mail: issues-help@milagro.apache.org


Mime
View raw message