Skip to content

Commit

Permalink
Add code for constructing BTC transactions given requests
Browse files Browse the repository at this point in the history
  • Loading branch information
djordon committed May 6, 2024
1 parent bfff584 commit 3e22949
Show file tree
Hide file tree
Showing 5 changed files with 508 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion signer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ bench = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bitcoin.workspace = true
bitcoin = { workspace = true }
p256k1.workspace = true
thiserror.workspace = true
tracing.workspace = true
tracing-attributes.workspace = true
tracing-subscriber.workspace = true
wsts.workspace = true

[dependencies.secp256k1]
features = ["rand-std", "global-context"]

[dev-dependencies]
more-asserts = "0.3"
test-case = "3.1"
5 changes: 5 additions & 0 deletions signer/src/error.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("The change amounts for the transaction is negative: {0}")]
InvalidAmount(i64),
}
2 changes: 2 additions & 0 deletions signer/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
pub mod error;
pub mod logging;
pub mod message;
pub mod packaging;
pub mod utxo;

pub const VERSION: &str = env!("CARGO_PKG_VERSION");
Loading

0 comments on commit 3e22949

Please sign in to comment.