Open petermetz opened 4 years ago
I could not understand the use case which you described. The integrated service which is powered by HL-Cactus, should not be configured by user-side, but it may be (re)conrefigured by administrator of the service provider(s). I thought that any client applications will not involve instantiation of plugin (server?) as you described above. Can you provide further description regarding instantiation of plugin server ?
I could not understand the use case which you described. The integrated service which is powered by HL-Cactus, should not be configured by user-side, but it may be (re)conrefigured by administrator of the service provider(s).
Apologies @sfuji822 by user
in that sentence I meant developer who uses Cactus to create a business application
. I'll fix it right now to say it like that so it's not misleading.
Can you provide further description regarding instantiation of plugin server ?
Yes! Now that I have the PR open in the meantime, I can do the best thing, link to the actual code file where it gets instantiated in this test file:
packages/cactus-test-plugin-consortium-manual/src/test/typescript/integration/plugin-consortium-manual/get-consortium-jws-endpoint.test.ts
that you can observe at the link below:
https://github.com/hyperledger/cactus/pull/242/files#diff-ab0638c8023a5c255e1f69700638157c
I recommend reading the whole file at least on a high level, but the instantiation is on this line to be exact: https://github.com/hyperledger/cactus/pull/242/files#diff-ab0638c8023a5c255e1f69700638157cR135
I thought that any client applications will not involve instantiation of plugin (server?) as you described above. They don't necessarily have to no. In the test case above I just instantiate everything together because it's a test case where I need to set up everything from scratch, but that doesn't mean that you cannot use the SDK in a separate application that runs in the browser for example. Case in point is the new page I also added as part of the PR to the cactus-cockpit package where you can see the SDK being used to query the consortium JWS':
packages/cactus-cockpit/src/app/consortium-inspector/consortium-inspector.page.ts
https://github.com/hyperledger/cactus/pull/242/files#diff-653e5873bc9ceb1c10d63474badaed07R48
Description
As a consortium member I want to be able address individual plugin instances through the main consortium DNS Host so that if different instances of plugins have meaningfully different configurations (connected to separate ledgers for example) then I can address these ledgers specifically via their associated plugin instances. Other examples are out there, but the one that was brought to my attention was the different ledger connector plugins.
Example
LedgerA
andLedgerB
https://www.cactus.stream
https://www.member-b.cactus.stream
and the other ishttps://www.member-a.cactus.stream
cactus-api-client
package installed and is looking to work with bothLedgerA
andLedgerB
and would like to avoid writing logic in their application code that deals with different DNS hosts (the member subdomains).cactus-api-client
package (Typescript compiler).Acceptance Criteria
cc: @jonathan-m-hamilton @takeutak @sfuji822