Reader small image

You're reading from  Hands-On Bitcoin Programming with Python

Product typeBook
Published inAug 2018
Reading LevelIntermediate
Publisher
ISBN-139781789537000
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
BignumWorks Software LLP
BignumWorks Software LLP
author image
BignumWorks Software LLP

BignumWorks Software LLP is an India-based software consultancy that provides consultancy services in the area of software development and technical training. Our domain expertise includes web, mobile, cloud app development, data science projects, in-house software training services, and up-skilling services
Read more about BignumWorks Software LLP

Right arrow

Creating a multisignature bitcoin address

A multisignature address is an address that is associated with more than one private key; therefore, we need to create three private keys.

Go through the following steps to create a multisignature bitcoin address:

  1. Create three private keys:
#!/usr/bin/env python
'''
Title - Create multi-signature address

This program demonstrates the creation of
Multi-signature bitcoin address.
'''
# import bitcoin
from bitcoin import *

# Create Private Keys
my_private_key1 = random_key()
my_private_key2 = random_key()
my_private_key3 = random_key()

print("Private Key1: %s" % my_private_key1)
print("Private Key2: %s" % my_private_key2)
print("Private Key3: %s" % my_private_key3)
print('\n')
  1. Create three public keys from those private keys using the privtopub function:
# Create Public keys
my_public_key1...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-On Bitcoin Programming with Python
Published in: Aug 2018Publisher: ISBN-13: 9781789537000

Author (1)

author image
BignumWorks Software LLP

BignumWorks Software LLP is an India-based software consultancy that provides consultancy services in the area of software development and technical training. Our domain expertise includes web, mobile, cloud app development, data science projects, in-house software training services, and up-skilling services
Read more about BignumWorks Software LLP