Skip to content

Instantly share code, notes, and snippets.

@prestwich
Last active May 6, 2018 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prestwich/38ee5f7f60cad7ffb80e9ed0a1bc61da to your computer and use it in GitHub Desktop.
Save prestwich/38ee5f7f60cad7ffb80e9ed0a1bc61da to your computer and use it in GitHub Desktop.
import riemann
from riemann.encoding import addresses
# Switch to Litecoin
riemann.select_network('litecoin_main')
addresses.make_p2pkh_address(pubkey_bytes)
# Switch to Bitcoin Cash
riemann.select_network('bitcoin_cash_main')
addresses.make_p2pkh_address(pubkey_bytes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment