-
Notifications
You must be signed in to change notification settings - Fork 142
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
feat(wallet): add wallet service API #1548
Conversation
@b00f Can you write more details what is response of:
|
Information about wallet, like Wallet name, version, Is Encrypted, Creation time, etc
For listing wallets, we can list files inside the
The list of all addresses in a wallet. |
func (wm *Manager) ListAddress(walletName string) ([]vault.AddressInfo, error) { | ||
wlt, ok := wm.wallets[walletName] | ||
if !ok { | ||
return nil, status.Errorf(codes.NotFound, "wallet is not loaded") |
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.
One potential refactor is to define proper error types here.
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.
@b00f Can you explain more about your suggestion?
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.
We should define error types here.
Description
Related issue(s)