-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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`.
- Loading branch information
Showing
9 changed files
with
1,102 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//! These constants have been reverse engineered through the following transactions: | ||
//! | ||
//! https://blockstream.info/liquid/tx/a17f4063b3a5fdf46a7012c82390a337e9a0f921933dccfb8a40241b828702f2 | ||
//! https://blockstream.info/liquid/tx/d12ff4e851816908810c7abc839dd5da2c54ad24b4b52800187bee47df96dd5c | ||
//! https://blockstream.info/liquid/tx/47e60a3bc5beed45a2cf9fb7a8d8969bab4121df98b0034fb0d44f6ed2d60c7d | ||
//! | ||
//! This gives us the following set of linear equations: | ||
//! | ||
//! - 1 in, 1 out, 1 fee = 1332 | ||
//! - 1 in, 2 out, 1 fee = 2516 | ||
//! - 2 in, 2 out, 1 fee = 2623 | ||
//! | ||
//! Which we can solve using wolfram alpha: https://www.wolframalpha.com/input/?i=1x+%2B+1y+%2B+1z+%3D+1332%2C+1x+%2B+2y+%2B+1z+%3D+2516%2C+2x+%2B+2y+%2B+1z+%3D+2623 | ||
//! | ||
pub const INPUT: u64 = 107; | ||
pub const OUTPUT: u64 = 1184; | ||
pub const FEE: u64 = 41; |
Oops, something went wrong.