-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove agency settings #208
Conversation
091fc91
to
b7ba597
Compare
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
b7ba597
to
63f05df
Compare
libvcx/src/api/vcx.rs
Outdated
/// #Returns | ||
/// Error code as a u32 | ||
#[no_mangle] | ||
pub extern fn vcx_init_agency_client(command_handle: CommandHandle, wallet_handle: WalletHandle, config: *const c_char, cb: extern fn(xcommand_handle: CommandHandle, err: u32)) -> u32 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's hold off from extending API just yet. Let's keep this PR internal changes and refactoring only, then create issue with new API proposal (onboarding new agent, initializing existing agent, creating wallet, opening wallet, etc. ) - then implement those APIs in separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe before thinking about aries-vcx
apis, we can first define agency_client
APIs for creation and initialization:
- create new client (create it in agency)
- create client instance (create client/initialize create which can be used to talk to agency)
Create new client
I think all we need to create new client is: agency_url
, agency_did
, agency_verkey
and a wallet handle.
The output of this operation should be whatever is need to create client instance. I'd suggest to output to be JSON config, just as it is currently on vcx_provision_agent
Create client instance / initialization
The required information here should be
- agency_url
- agency_did
- agency_verkey
- remote_to_sdk_did
- remote_to_sdk_verkey
- sdk_to_remote_did
- sdk_to_remote_verkey
and wallet handle, whereas it's up toagency_client
consumer responsibility to pass in the correct wallet handle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
However this should not yet impact aries-vcx
. Let's first design good api for the agency_client
, then we can enhance API for aries-vcx
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com> # Conflicts: # libvcx/src/api/vcx.rs # libvcx/src/aries/handlers/connection/agent_info.rs # libvcx/src/libindy/utils/wallet.rs # libvcx/src/settings.rs # libvcx/src/utils/devsetup.rs
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
315874f
to
3439c0c
Compare
122b2cf
to
f269071
Compare
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
f269071
to
a504eb5
Compare
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
f473590
to
1580a40
Compare
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Codecov Report
@@ Coverage Diff @@
## master #208 +/- ##
==========================================
- Coverage 58.84% 57.69% -1.15%
==========================================
Files 148 149 +1
Lines 19408 19902 +494
Branches 4307 4464 +157
==========================================
+ Hits 11420 11482 +62
- Misses 4616 5071 +455
+ Partials 3372 3349 -23
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
70e6b3c
to
0459218
Compare
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
0459218
to
fdfed56
Compare
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
180cbc9
to
8bba114
Compare
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com> # Conflicts: # agency_client/src/agent_utils.rs
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
cffbed7
to
cefac4a
Compare
Removes the dependecy of aries-vcx on
agency_client
'sagency_settings
and creates anAgencyClient
struct as a stepping stone toward multitenancy support.Signed-off-by: Miroslav Kovar miroslavkovar@protonmail.com