Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
chore: zk fmt [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
steph-rs committed Aug 2, 2024
1 parent cc65e0d commit 1b99556
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions core/lib/via_btc_client/examples/bitcoin_client_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

use anyhow::Result;
use bitcoin::{
absolute::LockTime, address::NetworkUnchecked, transaction::Version, Address, Amount,
Network, OutPoint, Sequence, Transaction, TxIn, TxOut, Witness,
absolute::LockTime, address::NetworkUnchecked, transaction::Version, Address, Amount, Network,
OutPoint, Sequence, Transaction, TxIn, TxOut, Witness,
};
use via_btc_client::{
client::BitcoinClient, regtest::BitcoinRegtest, signer::BasicSigner, traits::BitcoinSigner,
Expand Down
27 changes: 14 additions & 13 deletions core/lib/via_btc_client/examples/data_inscription_example.rs
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
use std::{str::FromStr, vec};

use anyhow::{Context, Result};
use bitcoin::hashes::Hash;
use bitcoin::key::Keypair;
use bitcoin::key::UntweakedPublicKey;
use bitcoin::locktime::absolute;
use bitcoin::opcodes::{all, OP_FALSE};
use bitcoin::script::{Builder as ScriptBuilder, PushBytesBuf};
use bitcoin::secp256k1::{All, Message, Secp256k1, SecretKey, Signing, Verification};
use bitcoin::sighash::{EcdsaSighashType, Prevouts, SighashCache, TapSighashType};
use bitcoin::taproot::{ControlBlock, LeafVersion, TaprootBuilder, TaprootSpendInfo};
use bitcoin::{
hashes::Hash,
key::{Keypair, UntweakedPublicKey},
locktime::absolute,
opcodes::{all, OP_FALSE},
script::{Builder as ScriptBuilder, PushBytesBuf},
secp256k1::{All, Message, Secp256k1, SecretKey, Signing, Verification},
sighash::{EcdsaSighashType, Prevouts, SighashCache, TapSighashType},
taproot::{ControlBlock, LeafVersion, TaprootBuilder, TaprootSpendInfo},
transaction, Address, Amount, CompressedPublicKey, Network, OutPoint, PrivateKey, ScriptBuf,
Sequence, TapLeafHash, Transaction, TxIn, TxOut, Txid, WPubkeyHash, Witness,
};
use bitcoincore_rpc::RawTx;
use inquire::ui::{Color, RenderConfig, StyleSheet};
use inquire::Text;
use inquire::{
ui::{Color, RenderConfig, StyleSheet},
Text,
};
use serde_json::Value;
use std::str::FromStr;
use std::vec;

const MAX_PUSH_SIZE: usize = 520;

Expand Down

0 comments on commit 1b99556

Please sign in to comment.