This is an automated email from the ASF dual-hosted git repository.

kittohoward pushed a commit to branch init
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-dta.git

commit 23678047b51c289159c2af78aec40c5cb4d6c466
Author: howardkitto <[email protected]>
AuthorDate: Tue Jun 25 14:45:26 2019 +0100

    initial commit
---
 .gitignore                                  |   0
 LICENSE                                     | 202 +++++++++++++++++
 README.md                                   |  57 +++++
 swagger/README.md                           |   0
 swagger/favicon-16x16.png                   | Bin 0 -> 665 bytes
 swagger/favicon-32x32.png                   | Bin 0 -> 628 bytes
 swagger/index.html                          |  60 +++++
 swagger/oauth2-redirect.html                |  67 ++++++
 swagger/swagger-config.yaml                 | 331 ++++++++++++++++++++++++++++
 swagger/swagger-ui-bundle.js                | 100 +++++++++
 swagger/swagger-ui-bundle.js.map            |   1 +
 swagger/swagger-ui-standalone-preset.js     |  14 ++
 swagger/swagger-ui-standalone-preset.js.map |   1 +
 swagger/swagger-ui.css                      |   3 +
 swagger/swagger-ui.css.map                  |   1 +
 swagger/swagger-ui.js                       |   9 +
 swagger/swagger-ui.js.map                   |   1 +
 17 files changed, 847 insertions(+)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..7a4a3ea
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..2ef7dae
--- /dev/null
+++ b/README.md
@@ -0,0 +1,57 @@
+# Milagro-DTA
+---
+[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
+
+
+
+Milagro Distributed Trust Authority creates an ecosystem in which service 
providers can issue and protect secrets. When a node is connected to the 
network it will discover service providers who are able to offer secure 
longterm storage of highly sensitive digital assets. 
+
+It is written in Go and uses Qredo's implmentation of the GoKit microservices 
framework: https://gokit.io/
+
+## Installation
+
+The Milagro DTA has two major dependedncies
+
+### Redis
+
+Instructions
+
+
+### IPFS
+
+Instructions
+
+export IPFS_PATH=$HOME/.ipfs-custody
+
+
+## Linux / MacOS
+
+Click here to download the binary
+
+To build the code
+
+Clone it and run 
+
+```
+$ go get ./..
+
+```
+
+## Integration
+
+Milagro-DTA is designed to be used by any organisation that might have digital 
assets such as keys and tokens that need to be secured, its is designed to be 
integrated in your existing back-office systems via a simple REST api.[The 
specification of which can be seen here](/swagger)
+
+## Developer Notes
+
+If you would like further information about how to integrate or extend 
Milagro-DTA the docs can be found here 
[https://milagro.apache.org/docs/d-ta-overview/](https://milagro.apache.org/docs/d-ta-overview/)
+
+You may need to install protobufs
+
+If you change the portobufs definition run 
+
+$ protoc -I=. --go_out=. ./docs.proto
+
+
+
+
+
diff --git a/swagger/README.md b/swagger/README.md
new file mode 100644
index 0000000..e69de29
diff --git a/swagger/favicon-16x16.png b/swagger/favicon-16x16.png
new file mode 100755
index 0000000..8b194e6
Binary files /dev/null and b/swagger/favicon-16x16.png differ
diff --git a/swagger/favicon-32x32.png b/swagger/favicon-32x32.png
new file mode 100755
index 0000000..249737f
Binary files /dev/null and b/swagger/favicon-32x32.png differ
diff --git a/swagger/index.html b/swagger/index.html
new file mode 100755
index 0000000..ae05ed6
--- /dev/null
+++ b/swagger/index.html
@@ -0,0 +1,60 @@
+<!-- HTML for static distribution bundle build -->
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8">
+    <title>Swagger UI</title>
+    <link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
+    <link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" 
/>
+    <link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" 
/>
+    <style>
+      html
+      {
+        box-sizing: border-box;
+        overflow: -moz-scrollbars-vertical;
+        overflow-y: scroll;
+      }
+
+      *,
+      *:before,
+      *:after
+      {
+        box-sizing: inherit;
+      }
+
+      body
+      {
+        margin:0;
+        background: #fafafa;
+      }
+    </style>
+  </head>
+
+  <body>
+    <div id="swagger-ui"></div>
+
+    <script src="./swagger-ui-bundle.js"> </script>
+    <script src="./swagger-ui-standalone-preset.js"> </script>
+    <script>
+    window.onload = function() {
+      // Begin Swagger UI call region
+      const ui = SwaggerUIBundle({        
+        url: "./swagger-config.yaml",
+        dom_id: '#swagger-ui',
+        deepLinking: true,
+        presets: [
+          SwaggerUIBundle.presets.apis,
+          SwaggerUIStandalonePreset
+        ],
+        plugins: [
+          SwaggerUIBundle.plugins.DownloadUrl
+        ],
+        layout: "StandaloneLayout"
+      })
+      // End Swagger UI call region
+
+      window.ui = ui
+    }
+  </script>
+  </body>
+</html>
diff --git a/swagger/oauth2-redirect.html b/swagger/oauth2-redirect.html
new file mode 100755
index 0000000..fb68399
--- /dev/null
+++ b/swagger/oauth2-redirect.html
@@ -0,0 +1,67 @@
+<!doctype html>
+<html lang="en-US">
+<body onload="run()">
+</body>
+</html>
+<script>
+    'use strict';
+    function run () {
+        var oauth2 = window.opener.swaggerUIRedirectOauth2;
+        var sentState = oauth2.state;
+        var redirectUrl = oauth2.redirectUrl;
+        var isValid, qp, arr;
+
+        if (/code|token|error/.test(window.location.hash)) {
+            qp = window.location.hash.substring(1);
+        } else {
+            qp = location.search.substring(1);
+        }
+
+        arr = qp.split("&")
+        arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', 
'":"') + '"';})
+        qp = qp ? JSON.parse('{' + arr.join() + '}',
+                function (key, value) {
+                    return key === "" ? value : decodeURIComponent(value)
+                }
+        ) : {}
+
+        isValid = qp.state === sentState
+
+        if ((
+          oauth2.auth.schema.get("flow") === "accessCode"||
+          oauth2.auth.schema.get("flow") === "authorizationCode"
+        ) && !oauth2.auth.code) {
+            if (!isValid) {
+                oauth2.errCb({
+                    authId: oauth2.auth.name,
+                    source: "auth",
+                    level: "warning",
+                    message: "Authorization may be unsafe, passed state was 
changed in server Passed state wasn't returned from auth server"
+                });
+            }
+
+            if (qp.code) {
+                delete oauth2.state;
+                oauth2.auth.code = qp.code;
+                oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
+            } else {
+                let oauthErrorMsg
+                if (qp.error) {
+                    oauthErrorMsg = "["+qp.error+"]: " +
+                        (qp.error_description ? qp.error_description+ ". " : 
"no accessCode received from the server. ") +
+                        (qp.error_uri ? "More info: "+qp.error_uri : "");
+                }
+
+                oauth2.errCb({
+                    authId: oauth2.auth.name,
+                    source: "auth",
+                    level: "error",
+                    message: oauthErrorMsg || "[Authorization failed]: no 
accessCode received from the server"
+                });
+            }
+        } else {
+            oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, 
redirectUrl: redirectUrl});
+        }
+        window.close();
+    }
+</script>
diff --git a/swagger/swagger-config.yaml b/swagger/swagger-config.yaml
new file mode 100644
index 0000000..000fe69
--- /dev/null
+++ b/swagger/swagger-config.yaml
@@ -0,0 +1,331 @@
+openapi: 3.0.0
+info:
+  description: Milagro Secure - distributed / decentralized core security 
services.
+  title: Apache Milagro Server
+  contact:
+    email: [email protected]
+  license:
+    name: Apache Milagro
+  version: 0.0.1
+paths:
+  /identity:
+    post:
+      summary: Create an identity document
+      tags:
+        - identity
+      operationId: createIdentity
+      # security:
+      # - bearerAuth: []
+      requestBody:
+        content:
+          application/json:
+            schema:
+              type: object
+              properties:
+                name:
+                  required: true
+                  type: string
+                  x-go-name: Name
+                  example: '"thisNode"'              
+      responses:
+        '200':
+          description: Successful operation
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/Identity'
+    get:
+       summary: Get a list of identities
+       tags:
+         - identity
+       operationId: getIdentities
+       security:
+        - bearerAuth: []
+       parameters: 
+         - name: page
+           in: query
+           description: current page
+           schema:
+             type: integer
+             default: 0
+         - name: perPage
+           in: query
+           description: number of items to show
+           schema:
+             type: integer
+             default: 10
+         - name: sortBy
+           in: query
+           description: Sort By field. Prefix with "-" for descending
+           schema:
+             type: string
+             enum:
+               - dateCreatedAsc               
+               - dateCreatedDesc               
+       responses:
+         '200':
+           description: Successful Operation
+           content:
+             application/json:
+               schema:
+                 $ref: '#/components/schemas/IdentityList'
+  /identity/{idDocAddress}:
+    get:
+      tags:
+        - identity
+      summary: Get a single identity
+      description: Use a known idDocumentAddress to access a single ID document
+      operationId: getIdentityByID
+      security:
+      - bearerAuth: []
+      parameters:
+        - name: idDocAddress
+          in: path
+          description: IPFS hash address of user id doc
+          required: true
+          schema:
+            type: string
+      responses:
+        '200':
+          description: Successful Operation
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/Identity'
+  /order/deposit:
+    post:
+      summary: Create Deposit Order
+      tags:
+        - order
+      operationId: createDeposit
+      # security:
+      # - bearerAuth: []
+      requestBody:
+        content:
+          application/json:
+            schema:
+              type: object
+              properties:
+                beneficiaryIDDOC:
+                  type: string
+                  x-go-name: BeneficiaryIDDOC
+                  example: '"kjhdhdjd"'
+                coin:
+                  type: integer
+                  format: int64
+                  x-go-name: Coin
+                  example: 2
+        x-go-name: Body
+      responses:
+        '200':
+          $ref: '#/components/schemas/DepositOrder'
+    get:
+      summary: Get a list of deposits
+      tags:
+        - order
+      operationId: getDeposits
+      security:
+      - bearerAuth: []
+      parameters: 
+        - name: page
+          in: query
+          description: current page
+          schema:
+            type: integer
+            default: 0
+        - name: perPage
+          in: query
+          description: number of items to show
+          schema:
+            type: integer
+            default: 10
+        - name: sortBy
+          in: query
+          description: Sort By field. Prefix with "-" for descending
+          schema:
+            type: string
+            enum:
+              - dateCreated
+              - dateModified
+              - -dateCreated
+              - -dateModified
+      responses:
+        '200':
+          description: Successful operation
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/ArrayofDepositOrders'
+  /order/deposit/{depositOrderAddress}:
+    get:
+      summary: Get details of a deposit
+      tags:
+        - order
+      operationId: getDeposit
+      security:
+      - bearerAuth: []
+      parameters:
+        - name: depositOrderAddress
+          in: path
+          description: IPFS hash address of deposit order doc
+          required: true
+          schema:
+            type: string
+      responses:
+        '200':
+          $ref: '#/components/schemas/DepositOrder'
+  /order/redemption:
+    post:
+      summary: Reveal Private Key
+      tags:
+        - order
+      operationId: createRedemption
+      # security:
+      # - bearerAuth: []
+      requestBody:
+        content:
+          application/json:
+            schema:
+              type: object
+              properties:
+                partTwoOrderDoc:
+                  type: string
+                  # example: QmReoUkzq6dEwdTZqCzNAqiMKPGdY2E3recm2tud1uuqia
+      responses:
+        '200':
+          $ref: '#/components/schemas/RedemptionOrder'
+  /fulfill/deposit:
+    post:
+      summary: Create Public Address
+      tags:
+        - fulfill
+      operationId: fulfillDeposit 
+      requestBody:
+        content:
+          application/json:
+            schema:
+              type: object
+              properties:
+                depositDocAddress:
+                  type: string
+                  x-go-name: depositDocAddress
+                  example: Qme5S5xVfGYF46oftiLQDevPAGSKy1aggdtrZvvEdiXuqM
+        x-go-name: Body
+      responses:
+        '200':
+          $ref: '#/components/schemas/DepositOrder'
+  /fulfill/redemption:
+    post:
+      summary: Return Private Key
+      tags:
+        - fulfill
+      operationId: fulfillRedemption
+      requestBody:
+        content:
+          application/json:
+            schema:
+              type: object
+              properties:
+                depositDocAddress:
+                  type: string
+                  x-go-name: redemptionDocAddress
+                  example: Qme5S5xVfGYF46oftiLQDevPAGSKy1aggdtrZvvEdiXuqM
+        x-go-name: Body
+      responses:
+        '200':
+          $ref: '#/components/schemas/DepositOrder'
+  /healthcheck:
+    get:
+      description: Test Server Health
+      tags:
+        - system
+      operationId: healthcheck
+      responses:
+        '200':
+          description: Successful operation
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/SystemHealth'
+servers:
+  - url: 'http://localhost:5555'
+  - url: 'http://localhost:5556'
+# security:
+#   - bearerAuth: []
+components:
+  securitySchemes:
+    bearerAuth:
+      type: http
+      scheme: bearer
+      bearerFormat: JWT
+  schemas:
+    Identity:
+      type: object
+      properties:
+        idDocumentAddress:
+          type: string
+        AuthenticationReference:  
+          type: string
+        BenListenerWalletAddress: 
+          type: string
+        BenSASPubKey:             
+          type: string
+        BenECAddPubKey:           
+          type: string
+        SikePublicKey:            
+          type: string
+        PicnicPublicKey:
+          type: string      
+        Handle:
+          type: string
+        Email:
+          type: string
+        Username:
+          type: string
+        Timestamp:
+          type: integer 
+    IdentityList:
+      type: object
+      items:
+        $ref: '#/components/schemas/IdentityArray'
+    IdentityArray:
+      type: array
+      items: 
+        $ref: '#/components/schemas/Identity'
+    DepositOrder:
+      type: object
+      properties:
+        depositOrderAddress:
+          type: string
+    ArrayofDepositOrders:
+      type: array
+      items:
+        $ref: '#/components/schemas/DepositOrder'
+    RedemptionOrder:
+      type: object
+      properties:
+        orderDocAddress:
+          type: string
+    SystemHealth:
+      type: object
+      properties:
+        timeStamp:
+          type: string
+        testString:
+          type: string
+tags:
+  - name: identity
+    description: Actors in the system
+    externalDocs:
+      url: 'https://milagro.apache.org/docs/milagro-intro/'
+      description: Apache Milagro Docs
+  - name: order
+    description: Send Requests to Principal Node
+    externalDocs:
+      url: 'https://milagro.apache.org/docs/milagro-intro/'
+      description: Apache Milagro Docs
+  - name: fulfill
+    description: Actions performed by the Fiduciary node
+    externalDocs:
+      url: 'https://milagro.apache.org/docs/milagro-intro/'
+      description: Apache Milagro Docs
diff --git a/swagger/swagger-ui-bundle.js b/swagger/swagger-ui-bundle.js
new file mode 100755
index 0000000..30e0b81
--- /dev/null
+++ b/swagger/swagger-ui-bundle.js
@@ -0,0 +1,100 @@
+!function(e,t){"object"==typeof exports&&"object"==typeof 
module?module.exports=t():"function"==typeof 
define&&define.amd?define([],t):"object"==typeof 
exports?exports.SwaggerUIBundle=t():e.SwaggerUIBundle=t()}("undefined"!=typeof 
self?self:this,function(){return function(e){var t={};function 
n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return 
e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return 
n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e, [...]
+/*
+object-assign
+(c) Sindre Sorhus
+@license MIT
+*/var 
r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var
 e=new 
String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var
 
t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return
 t[e]}).join(""))return!1;var 
r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijkl
 [...]
+/*!
+ * The buffer module from node.js, for the browser.
+ *
+ * @author   Feross Aboukhadijeh <[email protected]> <http://feross.org>
+ * @license  MIT
+ */
+var r=n(528),o=n(529),i=n(262);function a(){return 
s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(a()<t)throw new 
RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new 
Uint8Array(t)).__proto__=s.prototype:(null===e&&(e=new 
s(t)),e.length=t),e}function s(e,t,n){if(!(s.TYPED_ARRAY_SUPPORT||this 
instanceof s))return new s(e,t,n);if("number"==typeof e){if("string"==typeof 
t)throw new Error("If encoding is specified then the first argument must be a 
stri [...]
+/*!
+  Copyright (c) 2016 Jed Watson.
+  Licensed under the MIT License (MIT), see
+  http://jedwatson.github.io/classnames
+*/
+/*!
+  Copyright (c) 2016 Jed Watson.
+  Licensed under the MIT License (MIT), see
+  http://jedwatson.github.io/classnames
+*/
+!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var 
e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof 
r;if("string"===i||"number"===i)e.push(r);else 
if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===i)for(var a in 
r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}void 
0!==e&&e.exports?e.exports=o:void 0===(r=function(){return 
o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=!0},function(e,t,n){var
 r=n(161),o=Math.min;e.export [...]
+/*!
+ * @description Recursive object extending
+ * @author Viacheslav Lotsmanov <[email protected]>
+ * @license MIT
+ *
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2013-2018 Viacheslav Lotsmanov
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a 
copy of
+ * this software and associated documentation files (the "Software"), to deal 
in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
copies of
+ * the Software, and to permit persons to whom the Software is furnished to do 
so,
+ * subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in 
all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
FITNESS
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS 
OR
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 
WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+function n(e){return e instanceof t||e instanceof Date||e instanceof 
RegExp}function r(e){if(e instanceof t){var n=t.alloc?t.alloc(e.length):new 
t(e.length);return e.copy(n),n}if(e instanceof Date)return new 
Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new 
Error("Unexpected situation")}function o(e,t){return"__proto__"===t?void 
0:e[t]}var i=e.exports=function(){if(arguments.length<1||"object"!=typeof 
arguments[0])return!1;if(arguments.length<2)return arguments[0];v [...]
+/**
+ * Checks if an event is supported in the current execution environment.
+ *
+ * NOTE: This will not work correctly for non-generic events such as `change`,
+ * `reset`, `load`, `error`, and `select`.
+ *
+ * Borrows from Modernizr.
+ *
+ * @param {string} eventNameSuffix Event name, e.g. "click".
+ * @param {?boolean} capture Check if the capture phase is supported.
+ * @return {boolean} True if the event is supported.
+ * @internal
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
+ */,e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in 
document))return!1;var n="on"+e,i=n in document;if(!i){var 
a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof
 
a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},function(e,t,n){"use
 strict";var 
r={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function 
o(e){var t=this.nativeEvent;if(t.getModifierState)return t.getModifierState( 
[...]
+/*!
+ * https://github.com/Starcounter-Jack/JSON-Patch
+ * (c) 2017 Joachim Wester
+ * MIT license
+ */
+var n=this&&this.__extends||function(e,t){for(var n in 
t)t.hasOwnProperty(n)&&(e[n]=t[n]);function 
r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new
 r)},r=Object.prototype.hasOwnProperty;function o(e,t){return 
r.call(e,t)}function i(e){if(Array.isArray(e)){for(var t=new 
Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return 
Object.keys(e);t=[];for(var r in e)o(e,r)&&t.push(r);return t}function 
a(e){return-1===e.indexOf("/")&&-1 [...]
+/*!
+ * https://github.com/Starcounter-Jack/JSON-Patch
+ * (c) 2017 Joachim Wester
+ * MIT license
+ */
+var 
r=n(231),o=n(390),i=n(390);t.applyOperation=i.applyOperation,t.applyPatch=i.applyPatch,t.applyReducer=i.applyReducer,t.getValueByPointer=i.getValueByPointer,t.validate=i.validate,t.validator=i.validator;var
 
a=n(231);t.JsonPatchError=a.PatchError,t.deepClone=a._deepClone,t.escapePathComponent=a.escapePathComponent,t.unescapePathComponent=a.unescapePathComponent;var
 u=new WeakMap,s=function(){return function(e){this.observers=new 
Map,this.obj=e}}(),l=function(){return function(e,t){thi [...]
+/*!
+ * cookie
+ * Copyright(c) 2012-2014 Roman Shtylman
+ * Copyright(c) 2015 Douglas Christopher Wilson
+ * MIT Licensed
+ */t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument 
str must be a string");for(var 
n={},o=t||{},a=e.split(i),s=o.decode||r,l=0;l<a.length;l++){var 
c=a[l],f=c.indexOf("=");if(!(f<0)){var 
p=c.substr(0,f).trim(),d=c.substr(++f,c.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void
 0==n[p]&&(n[p]=u(d,s))}}return n},t.serialize=function(e,t,n){var 
r=n||{},i=r.encode||o;if("function"!=typeof i)throw new TypeError("option 
encode is invalid");if(!a.test(e))throw new TypeErro [...]
+/*!
+ * repeat-string <https://github.com/jonschlinkert/repeat-string>
+ *
+ * Copyright (c) 2014-2015, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */var r,o="";e.exports=function(e,t){if("string"!=typeof e)throw new 
TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var 
n=e.length*t;if(r!==e||void 0===r)r=e,o="";else if(o.length>=n)return 
o.substr(0,n);for(;n>o.length&&t>1;)1&t&&(o+=e),t>>=1,e+=e;return 
o=(o+=e).substr(0,n)}},function(e,t,n){var r=n(55);e.exports=function(e){return 
r(e).toLowerCase()}},function(e,t,n){"use 
strict";Object.defineProperty(t,"__esModule",{value:!0});var 
r=f(n(4)),o=f(n(2)),i=f(n(3)), [...]
+/*!
+ * Autolinker.js
+ * 0.15.3
+ *
+ * Copyright(c) 2015 Gregory Jacobs <[email protected]>
+ * MIT Licensed. http://www.opensource.org/licenses/mit-license.php
+ *
+ * https://github.com/gregjacobs/Autolinker.js
+ */
+var e,t,n,r,o=function(e){o.Util.assign(this,e)};return 
o.prototype={constructor:o,urls:!0,email:!0,twitter:!0,newWindow:!0,stripPrefix:!0,truncate:void
 0,className:"",htmlParser:void 0,matchParser:void 0,tagBuilder:void 
0,link:function(e){for(var 
t=this.getHtmlParser().parse(e),n=0,r=[],o=0,i=t.length;o<i;o++){var 
a=t[o],u=a.getType(),s=a.getText();if("element"===u)"a"===a.getTagName()&&(a.isClosing()?n=Math.max(n-1,0):n++),r.push(s);else
 if("entity"===u)r.push(s);else if(0===n){var l=t [...]
+//# sourceMappingURL=swagger-ui-bundle.js.map
\ No newline at end of file
diff --git a/swagger/swagger-ui-bundle.js.map b/swagger/swagger-ui-bundle.js.map
new file mode 100755
index 0000000..01fe314
--- /dev/null
+++ b/swagger/swagger-ui-bundle.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap
 
19203fb7b00b076abfac","webpack:///./node_modules/react/react.js","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/babel-runtime/helpers/classCallCheck.js","webpack:///./node_modules/babel-runtime/helpers/createClass.js","webpack:///./node_modules/babel-runtime/core-js/object/get-prototype-of.js","webpack:///./node_modules/babel-runtime/helpers/possibleConstructor
 [...]
\ No newline at end of file
diff --git a/swagger/swagger-ui-standalone-preset.js 
b/swagger/swagger-ui-standalone-preset.js
new file mode 100755
index 0000000..1b0d640
--- /dev/null
+++ b/swagger/swagger-ui-standalone-preset.js
@@ -0,0 +1,14 @@
+!function(t,e){"object"==typeof exports&&"object"==typeof 
module?module.exports=e():"function"==typeof 
define&&define.amd?define([],e):"object"==typeof 
exports?exports.SwaggerUIStandalonePreset=e():t.SwaggerUIStandalonePreset=e()}("undefined"!=typeof
 self?self:this,function(){return function(t){var e={};function 
n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return 
t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return 
n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Obje [...]
+/*
+object-assign
+(c) Sindre Sorhus
+@license MIT
+*/var 
r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var
 t=new 
String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var
 
e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return
 e[t]}).join(""))return!1;var 
r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijkl
 [...]
+/*!
+ * The buffer module from node.js, for the browser.
+ *
+ * @author   Feross Aboukhadijeh <[email protected]> <http://feross.org>
+ * @license  MIT
+ */
+var r=n(325),i=n(326),o=n(167);function u(){return 
s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(u()<e)throw new 
RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(t=new 
Uint8Array(e)).__proto__=s.prototype:(null===t&&(t=new 
s(e)),t.length=e),t}function s(t,e,n){if(!(s.TYPED_ARRAY_SUPPORT||this 
instanceof s))return new s(t,e,n);if("number"==typeof t){if("string"==typeof 
e)throw new Error("If encoding is specified then the first argument must be a 
stri [...]
+//# sourceMappingURL=swagger-ui-standalone-preset.js.map
\ No newline at end of file
diff --git a/swagger/swagger-ui-standalone-preset.js.map 
b/swagger/swagger-ui-standalone-preset.js.map
new file mode 100755
index 0000000..2d57708
--- /dev/null
+++ b/swagger/swagger-ui-standalone-preset.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap
 
8cd1fb190fc7f82ae5fe","webpack:///./node_modules/@kyleshockey/js-yaml/lib/js-yaml/type.js","webpack:///./node_modules/core-js/modules/_wks.js","webpack:///./node_modules/core-js/library/modules/_core.js","webpack:///./node_modules/core-js/modules/_export.js","webpack:///./node_modules/core-js/modules/_string-html.js","webpack:///./node_modules/core-js/modules/_global.js","webpack:///./nod
 [...]
\ No newline at end of file
diff --git a/swagger/swagger-ui.css b/swagger/swagger-ui.css
new file mode 100755
index 0000000..7779aae
--- /dev/null
+++ b/swagger/swagger-ui.css
@@ -0,0 +1,3 @@
+.swagger-ui{
+  /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css 
*/font-family:sans-serif;color:#3b4151}.swagger-ui 
html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.swagger-ui
 body{margin:0}.swagger-ui article,.swagger-ui aside,.swagger-ui 
footer,.swagger-ui header,.swagger-ui nav,.swagger-ui 
section{display:block}.swagger-ui h1{font-size:2em;margin:.67em 0}.swagger-ui 
figcaption,.swagger-ui figure,.swagger-ui main{display:block}.swagger-ui figure 
[...]
+/*# sourceMappingURL=swagger-ui.css.map*/
\ No newline at end of file
diff --git a/swagger/swagger-ui.css.map b/swagger/swagger-ui.css.map
new file mode 100755
index 0000000..3e2402c
--- /dev/null
+++ b/swagger/swagger-ui.css.map
@@ -0,0 +1 @@
+{"version":3,"sources":[],"names":[],"mappings":"","file":"swagger-ui.css","sourceRoot":""}
\ No newline at end of file
diff --git a/swagger/swagger-ui.js b/swagger/swagger-ui.js
new file mode 100755
index 0000000..cd0a82b
--- /dev/null
+++ b/swagger/swagger-ui.js
@@ -0,0 +1,9 @@
+(function webpackUniversalModuleDefinition(root,factory){if(typeof 
exports==="object"&&typeof module==="object")module.exports=factory();else 
if(typeof define==="function"&&define.amd)define([],factory);else if(typeof 
exports==="object")exports["SwaggerUICore"]=factory();else 
root["SwaggerUICore"]=factory()})(typeof 
self!=="undefined"?self:this,function(){return function(modules){var 
installedModules={};function 
__webpack_require__(moduleId){if(installedModules[moduleId]){return installe 
[...]
+/*!
+ * The buffer module from node.js, for the browser.
+ *
+ * @author   Feross Aboukhadijeh <[email protected]> <http://feross.org>
+ * @license  MIT
+ */
+var base64=__webpack_require__(383);var ieee754=__webpack_require__(384);var 
isArray=__webpack_require__(385);exports.Buffer=Buffer;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;Buffer.TYPED_ARRAY_SUPPORT=global.TYPED_ARRAY_SUPPORT!==undefined?global.TYPED_ARRAY_SUPPORT:typedArraySupport();exports.kMaxLength=kMaxLength();function
 typedArraySupport(){try{var arr=new 
Uint8Array(1);arr.__proto__={__proto__:Uint8Array.prototype,foo:function(){return
 42}};return arr.foo()===42&&t [...]
+//# sourceMappingURL=swagger-ui.js.map
\ No newline at end of file
diff --git a/swagger/swagger-ui.js.map b/swagger/swagger-ui.js.map
new file mode 100755
index 0000000..78b63d5
--- /dev/null
+++ b/swagger/swagger-ui.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap
 6cb5c7f86a6d6e7d420d","webpack:///external \"react\"","webpack:///external 
\"prop-types\"","webpack:///./node_modules/babel-runtime/helpers/classCallCheck.js","webpack:///./node_modules/babel-runtime/helpers/createClass.js","webpack:///./node_modules/babel-runtime/core-js/object/get-prototype-of.js","webpack:///./node_modules/babel-runtime/helpers/possibleConstructorReturn.js","webpack://
 [...]
\ No newline at end of file

Reply via email to