Skip to content

Commit

Permalink
Add uhpo crate
Browse files Browse the repository at this point in the history
- Add a new module crypto/signature that provides `add_signature
- Add payout_update module to build `PayoutUpdate`
- Using generics and mockall to test 
* feat/added payout update

* feat/added payout update transaction Builder

* fix/Refactor PayoutUpdate to use ownership transfer and improve crate

* feat/add new tx builder

* test/add mock test for key creation

* test/add sig verification mock tests and Doc comments

* test/add sig verification mock tests and Doc comments

* test/refractor testcase func handles
  • Loading branch information
jayendramadaram authored Jul 15, 2024
1 parent a2992c4 commit a4226d6
Show file tree
Hide file tree
Showing 12 changed files with 942 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ proposal/proposal.log
proposal/proposal.bbl
proposal/proposal.blg
simulations/logs/*
simulations/*.toolbox
venv
target
simulations/*.toolbox
142 changes: 142 additions & 0 deletions node/Cargo.lock

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

3 changes: 2 additions & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ members = [
"config",
"connection",
"run",
"protocol"
"protocol",
"uhpo"
]
15 changes: 15 additions & 0 deletions node/uhpo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "uhpo"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bitcoin = {version = "0.32.2" , features = ["rand"] }
rand = "0.8.5"
mockall = "0.12.1"
secp256k1 = "0.29.0"


[dev-dependencies]
3 changes: 3 additions & 0 deletions node/uhpo/src/crypto/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub(crate) mod signature;

pub use signature::add_signature;
Loading

0 comments on commit a4226d6

Please sign in to comment.