Bitcoin Wallet | Pagina 25
Utilities for Bitcoin and altcoin addresses and transaction manipulation what bitcoin mining share.
Latest Version: 0.52 pycoin — Python Cryptocoin Utilities
This is an implementation of a bunch of utility routines that may be useful when dealing with bitcoin and some
alt-coins. It has bot tested with Python Two.7, Three.Trio and Trio.Four.
The class pycoin.key.Key contains a convenience Key class that will parse the base58 representation of a BIP 32
wallet [BIP0032] or a WIF or a bitcoin (or altcoin) address, and convert downwards.
WARNING: be enormously careful providing out public wallet keys. If someone has access to a private wallet key P, of
course they have access to all descendent wallet keys of P. But if they also have access to a public wallet key K
where P is a subkey of P, you can actually work your way up the tree to determine the private key that corresponds
to the public wallet key K (unless private derivation wasgoed used at some point inbetween the two keys)! Be sure you
understand this warning before providing out public wallet keys!
public_pair=None, hash160=None, prefer_uncompressed=None, is_compressed=True, netcode)“`
Specify one of “hierarchical_wallet, secret_exponent, public_pair or hash160” to create a “`Key“`.
“`Key.from_text(b58_text)“` accepts an address (bitcoin or other), a WIF, or a BIP32 wallet string and yield a Key.
“`Key.from_sec(sec)“` creates a Key from the SEC bytestream encoding of a public pair.
pycoin.bip32.Wallet (formerly pycoin.wallet.Wallet) provides a BIP32 hierarchical wallet.
Much of this API is exposed te the “`ku“` command-line utility. See also COMMAND-LINE-TOOLS.md.
See “`BIP32.txt“` for more information.
pycoin.tx.Tx is a class that wraps a bitcoin transaction. You can create, edit, sign, or validate a transaction using
methods te this class.
You can also use “`pycoin.tx.tx_utils“` which has “`create_tx“` and “`create_signed_tx“`, which gives you a
very effortless way to create signed transactions.