forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin-validator-besu): generate signature of simple asset
Signed-off-by: suyukuoacn <su-yu.kuo@accenture.com>
- Loading branch information
1 parent
ff7b21b
commit 4c5c253
Showing
29 changed files
with
8,037 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cactus-openapi-spec-plugin-validator-besu.json |
96 changes: 96 additions & 0 deletions
96
packages/cactus-plugin-validator-besu/cactus-openapi-spec-plugin-validator-besu.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"openapi": "3.0.3", | ||
"info": { | ||
"title": "Hyperledger Cactus Plugin - Validator Besu Web Service", | ||
"description": "Obtain signatures of ledger state from Cactus nodes through the API .", | ||
"version": "0.0.1" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://www.cactus.stream/{basePath}", | ||
"description": "Public test instance", | ||
"variables": { | ||
"basePath": { | ||
"default": "" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "http://localhost:4000/{basePath}", | ||
"description": "Local test instance", | ||
"variables": { | ||
"basePath": { | ||
"default": "" | ||
} | ||
} | ||
} | ||
], | ||
"components": { | ||
"schemas": { | ||
"SignTransactionRequest": { | ||
"type": "object", | ||
"required": [ | ||
"transactionHash" | ||
], | ||
"properties": { | ||
"transactionHash": { | ||
"description": "The transaction hash of ledger will be used to fetch the contain.", | ||
"type": "string", | ||
"minLength": 0, | ||
"maxLength": 2048, | ||
"nullable": false | ||
} | ||
} | ||
}, | ||
"SignTransactionResponse": { | ||
"type": "object", | ||
"required": [ | ||
"signature" | ||
], | ||
"properties": { | ||
"signature": { | ||
"description": "The signatures of ledger from the corresponding transaction hash.", | ||
"type": "string", | ||
"minLength": 0, | ||
"maxLength": 2048, | ||
"nullable": false | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"paths": { | ||
"/api/v1/plugins/@hyperledger/cactus-plugin-validator-besu/sign-transaction": { | ||
"post": { | ||
"summary": "Obtain signatures of ledger from the corresponding transaction hash.", | ||
"description": "Obtain signatures of ledger from the corresponding transaction hash.", | ||
"parameters": [], | ||
"requestBody": { | ||
"required": true, | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/SignTransactionRequest" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/SignTransactionResponse" | ||
} | ||
} | ||
} | ||
}, | ||
"404": { | ||
"description": "Not able to find the corresponding tranaction from the transaction hash" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.