diff --git a/src/prover.rs b/src/prover.rs index bc507f8..f85a426 100644 --- a/src/prover.rs +++ b/src/prover.rs @@ -4,12 +4,12 @@ use bitcoin::XOnlyPublicKey; use bitvm::{ circuit::Circuit, communication::{receive_message, send_message}, - traits::circuit::CircuitTrait, wire::HashTuple, + traits::circuit::CircuitTrait, + wire::HashTuple, }; use tokio_tungstenite::connect_async; - #[tokio::main] async fn main() { let url = "ws://127.0.0.1:9000"; diff --git a/src/wire.rs b/src/wire.rs index 2a38a03..287b091 100644 --- a/src/wire.rs +++ b/src/wire.rs @@ -23,8 +23,6 @@ pub struct PreimageTuple { pub one: [u8; 32], } - - #[derive(Clone)] pub struct Wire { pub preimages: Option, @@ -56,8 +54,14 @@ impl Wire { let hash2 = sha256::Hash::hash(&preimage2).to_byte_array(); Wire { - preimages: Some(PreimageTuple { zero: preimage1, one: preimage2 }), - hashes: HashTuple { zero: hash1, one: hash2 }, + preimages: Some(PreimageTuple { + zero: preimage1, + one: preimage2, + }), + hashes: HashTuple { + zero: hash1, + one: hash2, + }, selector: None, index: Some(index), }