-
Notifications
You must be signed in to change notification settings - Fork 289
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
new wallet storage and impl #998
Conversation
1780351
to
d6d6cf9
Compare
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.
我在想那个 default account 的逻辑还要不要了。
客户端维护? |
d6d6cf9
to
4fb87f4
Compare
fn submit_transaction(&self, txn: SignedUserTransaction) -> Result<()>; | ||
} | ||
|
||
pub trait RichWallet { |
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.
这个名字是不是不太合适?但我也没想到更好的。
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.
这里面的 trait 暂时没用。名字可以忽略。
目前没有抽象接口。
我是想等功能完整后,看看那些需要抽离出来。
Ok(wallet) | ||
} | ||
|
||
pub fn unlock_wallet( |
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.
有 unlock 也需要支持 lock 吧,原来这个逻辑没有加上。
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.
好像原来也没有这个功能。哈哈。这个可以加。
resolve first step of #878