我正在使用Bit创建一个Python编写的比特币钱包应用程序,但是当我添加Multi-Sig功能时,存在一个问题。我不知道如何让用户创建多少个密钥。
try:
count = int(input("How many cosigners need to make a transaction? "))
except:
print("You must enter a number.")
btcwallet()
key1 = Key()
key2 = Key()
multisig = MultiSig(key1, {key1.public_key, key2.public_key}, count)