Skip to content

Instantly share code, notes, and snippets.

@prestwich
Last active May 7, 2018 18:44
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/433734b51578de6d158821759a7f1519 to your computer and use it in GitHub Desktop.
Save prestwich/433734b51578de6d158821759a7f1519 to your computer and use it in GitHub Desktop.
import riemann
from riemann import networks
from riemann.script import examples
from riemann.encoding import addresses
pubkey_0 = '00' * 33
pubkey_1 = '11' * 33
msig = examples.msig_two_two
msig = msig.format(pk0=pubkey_0, pk1=pubkey_1)
for n in networks.SUPPORTED:
riemann.select_network(n)
addresses.make_p2sh_address(msig)
for n in networks.SUPPORTED:
riemann.select_network(n)
if riemann.network.BECH32_HRP:
addresses.make_p2wsh_address(msig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment