Skip to content

Commit

Permalink
Initial Liquid integration
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o committed Jan 25, 2025
1 parent 965b6ba commit 13f56da
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ serde_json = "1.0.134"
rustls = "0.23.20"
idna = "1.0.0"
bdk_electrum = "0.20.1"
lightning = "=0.1.0"
lightning = "=0.1.0"
elements = "0.25.1"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ zk_coinjoin_lib = "1.0.1-beta"

## Roadmap

- [ ] Liquid
- [x] Liquid (WIP)
- [ ] Fix bugs and issues

1 change: 1 addition & 0 deletions src/crates/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ reqwest = "0.12.7"
pairing = "0.23.0"
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.128"
elements = "0.25.1"

[package.metadata.docs.rs]
all-features = true
Expand Down
3 changes: 3 additions & 0 deletions src/crates/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use crate::Proofs;
use bellman::groth16::{create_random_proof, generate_parameters, prepare_verifying_key, verify_proof, Proof, VerifyingKey};
use bellman::pairing::bn256::{Bn256, Fr};
use serde::{Deserialize, Serialize};
use public_elements::cofidental::Asset;
use std::fs::File;
use std::io::{self, BufReader, BufWriter, Write};
use rand::thread_rng;
Expand All @@ -17,6 +18,8 @@ pub struct CoinjoinProof {
pub public_inputs: Vec<u8>,
pub taproot_data: TaprootData,
pub confidential_proof: ConfidentialProof,
pub asset: Asset,

}

pub struct TaprootData {
Expand Down

0 comments on commit 13f56da

Please sign in to comment.