Skip to content

Commit

Permalink
Merge pull request #2 from chainwayxyz/policies-and-requirements
Browse files Browse the repository at this point in the history
Initial Transaction Checks
  • Loading branch information
ceyhunsen authored Jun 27, 2024
2 parents 175a4ad + 7ee6c8e commit 0e133a5
Show file tree
Hide file tree
Showing 5 changed files with 448 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ serde = { version = "1.0", default-features = false }
serde_json = "1.0.108"
bitcoincore-rpc = "0.19.0"
thiserror = "1.0.61"
bitcoin-script = { git = "https://github.com/Bitcoin-Wildlife-Sanctuary/rust-bitcoin-script" }
bitcoin-scriptexec = { git = "https://github.com/Bitcoin-Wildlife-Sanctuary/rust-bitcoin-scriptexec" }
10 changes: 5 additions & 5 deletions src/ledger/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ use secp256k1::{rand, Keypair, PublicKey, Secp256k1, SecretKey};
/// User's keys and generated address.
#[derive(Clone, Debug, PartialEq)]
pub struct UserCredential {
secp: Secp256k1<secp256k1::All>,
secret_key: SecretKey,
public_key: PublicKey,
x_only_public_key: XOnlyPublicKey,
pub secp: Secp256k1<secp256k1::All>,
pub secret_key: SecretKey,
pub public_key: PublicKey,
pub x_only_public_key: XOnlyPublicKey,
pub address: Address,
pub witness: Option<Witness>,
witness_program: Option<WitnessProgram>,
pub witness_program: Option<WitnessProgram>,
}

impl UserCredential {
Expand Down
1 change: 1 addition & 0 deletions src/ledger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use std::cell::Cell;
mod address;
mod errors;
mod macros;
mod spending_requirements;
mod transactions;
mod utxo;

Expand Down
Loading

0 comments on commit 0e133a5

Please sign in to comment.