Skip to content

Commit

Permalink
fix inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
orkunkilic committed Feb 2, 2024
1 parent 336543f commit accbb91
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/communication.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// communication.rs
use futures_util::{SinkExt, StreamExt};
use serde::{Deserialize, Serialize};
use std::error::Error;
Expand Down
14 changes: 7 additions & 7 deletions src/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ use bitcoin::{secp256k1::Secp256k1, Amount, Transaction, XOnlyPublicKey};
use bitcoin::{OutPoint, ScriptBuf, TapLeafHash, TxIn, TxOut, Witness};

use bitcoincore_rpc::{Auth, Client, RpcApi};
use toy_bitvm::transactions::{
generate_2_of_2_script, generate_equivoation_address_and_info, generate_gate_response_script,
generate_response_second_address_and_info, watch_transaction,
};

use toy_bitvm::circuit::wire::{HashTuple, HashValue, PreimageValue};
use toy_bitvm::utils::number_to_bool_array;
use toy_bitvm::{
actor::Actor,
circuit::wire::{HashTuple, HashValue, PreimageValue},
circuit::Circuit,
communication::{receive_message, send_message},
transactions::{
generate_2_of_2_script, generate_equivoation_address_and_info,
generate_gate_response_script, generate_response_second_address_and_info,
watch_transaction,
},
transactions::{generate_challenge_address_and_info, generate_response_address_and_info},
utils::number_to_bool_array,
};

use tokio_tungstenite::connect_async;
Expand Down
17 changes: 8 additions & 9 deletions src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@ use bitcoin::taproot::LeafVersion;
use bitcoin::{secp256k1::Secp256k1, Transaction, Txid, XOnlyPublicKey};
use bitcoin::{Amount, OutPoint, ScriptBuf, TapLeafHash, TxIn, TxOut, Witness};
use bitcoincore_rpc::{Auth, Client, RpcApi};
use toy_bitvm::circuit::wire::{HashTuple, HashValue, PreimageValue, Wire};
use toy_bitvm::transactions::{
generate_2_of_2_script, generate_anti_contradiction_script, generate_challenge_script,
generate_equivoation_address_and_info, generate_response_second_address_and_info,
watch_transaction,
};
use toy_bitvm::utils::take_stdin;
// verifier.rs
use tokio::net::{TcpListener, TcpStream};
use tokio_tungstenite::accept_async;
use toy_bitvm::{
actor::Actor,
circuit::wire::{HashTuple, HashValue, PreimageValue, Wire},
circuit::Circuit,
communication::{receive_message, send_message},
transactions::{generate_challenge_address_and_info, generate_response_address_and_info},
transactions::{
generate_2_of_2_script, generate_anti_contradiction_script,
generate_challenge_address_and_info, generate_challenge_script,
generate_equivoation_address_and_info, generate_response_address_and_info,
generate_response_second_address_and_info, watch_transaction,
},
utils::take_stdin,
};

#[tokio::main]
Expand Down

0 comments on commit accbb91

Please sign in to comment.