Tangem Wallet Pack of 2 - Secure Crypto Wallet - Trusted Cold Storage for Bitcoin, Ethereum, NFT's &

Tangem Wallet Pack of 2 - Secure Crypto Wallet - Trusted Cold Storage for Bitcoin, Ethereum, NFT's &
Key item features Ultimate Security: Generates a private key that remains on the card, safeguarding crypto and NFTs from hackers with EAL6+ certification and audited firmware. Versatile Compatibility: Manages over 13,000 tokens across 70+ blockchains, supporting DeFi, NFTs, and DeEx without wires, Bluetooth, or USB. Effortless Operation: Utilizes NFC for secure transactions via a mobile device and the Tangem app, enabling buying and selling crypto with various payment methods. Smart Backup: Features a second Tangem Wallet as a backup, eliminating the need for paper, pictures, or seed phrases for recovery. Durable Design: Boasts IP68 protection against environmental conditions, ensuring longevity and robust physical security. Comprehensive Support: Compatible with Bitcoin, Ethereum, Solana, XRP, USDT, and over 6,000 cryptocurrencies, integrating with dApps and WalletConnect.

LBANK

Workable python function to generate P2SH address from Private Key 0x01

I am a new developer trying my best to learn something about bitcoin blockchain. I have trouble with generating P2SH (and P2WSH), let's say:

Given private key = 0000000000000000000000000000000000000000000000000000000000000001
Blockchain shows that:
+ Address (p2sh): 3JvL6Ymt8MVWiCNHC7oWU6nLeHNJKLZGLN
+ Script Hash: bcfeb728b584253d5f3f70bcb780e9ef218a68f4

But unfortunately, I cannot reproduce the same address, despite trying all the method:

+ Compressed public key
+ Uncompressed public key
+ Single Single-Sig (OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG)
+ “1-of-1 Multisig” (OP_1 <PubKey> OP_1 OP_CHECKMULTISIG)

But I cannot get the address 3JvL6Y--ZGLN as above, it always returns somethings else. Can you help me with a workable Python script?

Chain explorer: https://blockchain.com/explorer/addresses/btc/3JvL6Ymt8MVWiCNHC7oWU6nLeHNJKLZGLN



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/fty9nXH
via IFTTT

Popular posts from this blog

Crypto Exec Warns Tokenization Is Moving Faster Than Expected

Bitcoin Mining Could Be Strengthening The Ruble, Russian Central Bank Says

Nigerian SEC Partners With Police To Tackle Crypto Ponzi Schemes – Details