Skip to content

Commit

Permalink
Merge pull request #40 from primal100/update_to_version_2
Browse files Browse the repository at this point in the history
Update README.md and scripts
  • Loading branch information
primal100 authored Mar 22, 2023
2 parents e0d8556 + a063fbe commit 9d57e84
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 160 deletions.
34 changes: 22 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,26 @@ Full list of wallet methods:
> electrum_privkey(seed, 0, 1) #Change address
'9ca3631f813a6f81b70fbfc4384122bfe6fb159e6f7aea2811fe968c2a39d42a'


### Included scripts

The following scripts are included. They also provide good sample code for using the library.
Run each script with -h option for details on the cli options.

broadcast: Broadcast a transaction from raw hex
convert_private_key: Convert a private key to a new format
create_private_key: Generate a new private key
cryptosend: Send crypto to another address
explorer: View information in the blockchain about a block, transaction or address
get_block_sizes: Get the size of a series of blocks
subscribe: Subscribe to an address for changes
view_private_key_addresses: View details about a private key including available addresses

### The cryptotool command line interface:

Cryptool is back to work in progress. This is a legacy reference for now. Use the scripts from the previous section for now.


cryptotool bip32_master_key 21456t243rhgtucyadh3wgyrcubw3grydfbng
xprv9s21ZrQH143K2napkeoHT48gWmoJa89KCQj4nqLfdGybyWHP9Z8jvCGzuEDv4ihCyoed7RFPNbc9NxoSF7cAvH9AaNSvepUaeqbSpJZ4rbT

Expand Down Expand Up @@ -472,6 +490,7 @@ The arguments are the private key of the sender, the receiver's address and the
* privtopub : (privkey) -> pubkey
* pubtoaddr : (pubkey) -> address
* privtoaddr : (privkey) -> address
* encode_privkey : (privkey, format, script_type) -> privkey
* sign : (txobj, i, privkey) -> create digital signature of tx with privkey and add to input i
* signall : (txobj, privkey) -> create digital signature of tx with privkey for all inputs
* history : (address) -> tx history and balance of an address
Expand Down Expand Up @@ -543,17 +562,8 @@ segwit or a coin you haven't worked with before, try it out in testnet first or
on the mainnet. The original pybitcointools had issues opened in Github where people lost money either due to
not understanding what they were doing or because of bugs.

Here are some links to testnet faucets:

https://testnet.manu.backend.hamburg/faucet

https://testnet.manu.backend.hamburg/bitcoin-cash-faucet

http://test.faucet.masternode.io/

https://faucet.thonguyen.net/ltc

http://testnet.litecointools.com/
### Working together

Anyone know a working Dogecoin testnet faucet, or willing to send testnet coins to address
nmfnMVSjfyfiv37HtbphRbLgMPUHQE7QdP so I can test? (Dogecoin mainnet is tested).
If you wish to work together on crypto or other software related projects you can contact me using social links on my profile.
I can very easily and quickly build software tools on top of this pybitcointools library.
Empty file removed sample_scripts/check_server.py
Empty file.
145 changes: 0 additions & 145 deletions sample_scripts/segwit.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 14 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
from setuptools import setup, find_packages

setup(name='cryptos',
version='1.36',
version='2.0.0',
description='Python Crypto Coin Tools',
long_description=open('README.md').read(),
author='Paul Martin',
author_email='paulmartinforwork@gmail.com',
author_email='greatestloginnameever@gmail.com',
url='http://github.com/primal100/pybitcointools',
packages=find_packages(),
scripts=['cryptotool'],
scripts=['sample_scripts/broadcast.py'],
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand All @@ -22,4 +22,15 @@
'Programming Language :: Python :: 3',
'Topic :: Security :: Cryptography',
],
entry_points='''
[console_scripts]
broadcast=scripts.broadcast
convert_private_key=scripts.convert_private_key
create_private_key=scripts.create_private_key
cryptosend=scripts.cryptosend
explorer=scripts.explorer
get_block_sizes=scripts.get_block_sizes
subscribe=scripts.subscribe
view_private_key_addresses=scripts.view_private_key_addresses
'''
)

0 comments on commit 9d57e84

Please sign in to comment.