Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to instantiate MultiSigTestnet to create a MultiSig 2 of 3? #165

Open
Pep3M opened this issue May 11, 2022 · 0 comments
Open

How to instantiate MultiSigTestnet to create a MultiSig 2 of 3? #165

Pep3M opened this issue May 11, 2022 · 0 comments

Comments

@Pep3M
Copy link

Pep3M commented May 11, 2022

In the official documentation they do not address the issue of creating a multisignature in depth. For example, they only show these 2 lines of code:
tx_1 = multisig1.create_transaction([('1Archive1n2C579dMsAu3iC6tWzuQJz8dN', 190, 'jpy')])
tx_2 = multisig2.sign_transaction(tx_1)

When we look at the parameters that MultiSigTestnet receives, we see a private key, a list of public keys, and the number of signatures needed. I assume that I get the private key from an instance of PrivateKeyTestnet, but where do I get the list of public keys from?
Ex.
user1_key = PrivateKeyTestnet()
user2_key = PrivateKeyTestnet()
user3_key = PrivateKeyTestnet()
multisig = MultiSigTestnet(user1_key,[user1_key.public_key, user2_key.public_key, user3_key.public_key],2)

I think the above is wrong. I will appreciate any help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant