NETWORK = "testnet" # Bitcoin transaction id/hash TRANSACTION_ID = "31507decc14a0f334f5de2329f828f4e22017f7333add9579bb2e889203b7135" # Recipient passphrase/password RECIPIENT_PASSPHRASE = "Woo!" # Sender Bitcoin address SENDER_ADDRESS = "miAcLpYbaqE8KowBu2PwvqXG6y6vpQcfTJ" # Bitcoin claim amount AMOUNT = 10_000 print("=" * 10, "Recipient Bitcoin Account") # Initializing recipient Bitcoin wallet recipient_wallet = Wallet(network=NETWORK) # Initializing Bitcoin wallet from passphrase recipient_wallet.from_passphrase(passphrase=RECIPIENT_PASSPHRASE) # Getting recipient wallet information's recipient_private_key = recipient_wallet.private_key() print("Recipient Private Key:", recipient_private_key) recipient_public_key = recipient_wallet.public_key() print("Recipient Public Key:", recipient_public_key) recipient_compressed = recipient_wallet.compressed() print("Recipient Compressed:", recipient_compressed) recipient_uncompressed = recipient_wallet.uncompressed() print("Recipient Uncompressed:", recipient_uncompressed) recipient_address = recipient_wallet.address() print("Recipient Address:", recipient_address) recipient_hash = recipient_wallet.hash() print("Recipient Hash:", recipient_hash) recipient_p2pkh = recipient_wallet.p2pkh() print("Recipient P2PKH:", recipient_p2pkh)
from shuttle.utils import sha256 import json # Setting network # mainnet or testnet network = "testnet" print("=" * 10, "Sender Bitcoin Account") sender_passphrase = "meheret tesfaye batu bayou".encode() print("Sender Passphrase:", sender_passphrase.decode()) # Initialize sender bitcoin wallet sender_wallet = Wallet(network=network) sender_wallet.from_passphrase(sender_passphrase) # Getting wallet information's sender_private_key = sender_wallet.private_key() print("Sender Private Key:", sender_private_key) sender_public_key = sender_wallet.public_key() print("Sender Public Key:", sender_public_key) sender_compressed = sender_wallet.compressed() print("Sender Compressed:", sender_compressed) sender_uncompressed = sender_wallet.uncompressed() print("Sender Uncompressed:", sender_uncompressed) sender_address = sender_wallet.address() print("Sender Address:", sender_address) sender_hash = sender_wallet.hash() print("Sender Hash:", sender_hash) sender_p2pkh = sender_wallet.p2pkh() print("Sender P2PKH:", sender_p2pkh)
# Bitcoin network NETWORK = "testnet" # Sender passphrase/password SENDER_PASSPHRASE = "Boom!" # Recipient Bitcoin address RECIPIENT_ADDRESS = "mwHXvCcug5Rn24c2rpgcRDSo3PyfxZJQQT" # Bitcoin fund amount AMOUNT = 10_000 print("=" * 10, "Sender Bitcoin Account") # Initializing sender Bitcoin wallet sender_wallet = Wallet(network=NETWORK) # Initializing Bitcoin wallet from passphrase sender_wallet.from_passphrase(passphrase=SENDER_PASSPHRASE) # Getting sender wallet information's sender_private_key = sender_wallet.private_key() print("Sender Private Key:", sender_private_key) sender_public_key = sender_wallet.public_key() print("Sender Public Key:", sender_public_key) sender_compressed = sender_wallet.compressed() print("Sender Compressed:", sender_compressed) sender_uncompressed = sender_wallet.uncompressed() print("Sender Uncompressed:", sender_uncompressed) sender_address = sender_wallet.address() print("Sender Address:", sender_address) sender_hash = sender_wallet.hash() print("Sender Hash:", sender_hash) sender_p2pkh = sender_wallet.p2pkh() print("Sender P2PKH:", sender_p2pkh)