Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

[TrustID-sdk]UnlockAccount should determine the DID to use #2

Open
adlrocha opened this issue Jul 1, 2020 · 0 comments
Open

[TrustID-sdk]UnlockAccount should determine the DID to use #2

adlrocha opened this issue Jul 1, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@adlrocha
Copy link
Contributor

adlrocha commented Jul 1, 2020

Every call in the SDK requires a wallet.getDID("id") to specify the did of the wallet to use in the call. This is pretty messy. As DIDs must be unlocked before being used, I suggest that only a single DID should be unlocked at once in a wallet, and the unlocked account is the one always used in the calls. Thus, instead of having to get every time the DID we would do:

wal.unlockAccount(did)
wal.cal(...)
wal.lockAccount()
@adlrocha adlrocha added the enhancement New feature or request label Jul 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant