From issues-return-240-archive-asf-public=cust-asf.ponee.io@milagro.apache.org Fri Sep 13 13:31:30 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 16708180652 for ; Fri, 13 Sep 2019 15:31:29 +0200 (CEST) Received: (qmail 79986 invoked by uid 500); 13 Sep 2019 13:31:29 -0000 Mailing-List: contact issues-help@milagro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@milagro.apache.org Delivered-To: mailing list issues@milagro.apache.org Received: (qmail 79977 invoked by uid 99); 13 Sep 2019 13:31:29 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Sep 2019 13:31:29 +0000 From: GitBox To: issues@milagro.apache.org Subject: [GitHub] [incubator-milagro-dta] howardkitto opened a new issue #39: Refactor CreateIdentity Method Message-ID: <156838148928.1656.8848049470500298427.gitbox@gitbox.apache.org> Date: Fri, 13 Sep 2019 13:31:29 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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