This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script starts and automatically restarts an SSH SOCKS proxy connection. | |
REMOTE_USER="USER_NAME" | |
REMOTE_HOST="SERVER_IP" | |
LOCAL_PORT="PROXY_PORT" | |
# IMPORTANT: Adjust this path if needed. Use an absolute path (e.g., ~/.ssh/key_name) | |
# if you run the script from different directories. | |
SSH_KEY_PATH="KEY_PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: CC0-1.0 | |
//! Demonstrate creating a transaction that spends to and from p2tr outputs with musig2. | |
use std::str::FromStr; | |
use bitcoin::{ | |
hashes::Hash, | |
key::Keypair, | |
locktime::absolute, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from web3 import Web3 | |
import hexbytes | |
web3 = Web3( | |
Web3.HTTPProvider("YOUR_WEB3_PROVIDER") | |
) | |
def is_contract(addr : str): | |
temp = web3.eth.getCode(addr) | |
if temp != hexbytes.main.HexBytes(""): |