-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add wallet #59
Add wallet #59
Conversation
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.
Nice work!
Before you release, it would be good to clean-up the public API a bit but for now, we can definitely merge this so this giant chunk of work is done 🥳
self.secret_key | ||
} | ||
|
||
pub fn compute_balances(&self) -> Vec<BalanceEntry> { |
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.
All of these functions need tests at some point.
ed17456
to
5fe3321
Compare
Wallet which allows users to select coins through a backend configured by them via the `GetTxOuts` trait. The provided wallet comes with a UTXO cache which this is updated using `Wallet::sync`. This allows users of the library to optimise the number of requests to their backend. Users can also sign said UTXOs by calling `Wallet::sign`.
829f11a
to
8118d55
Compare
No description provided.