Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: svabodny on December 20, 2016, 01:06:25 PM



Title: How to create an M of N account/transaction in python?
Post by: svabodny on December 20, 2016, 01:06:25 PM
I'm an experienced developer, and I know a bit about blockchain, but I'm new to blockchain development.

I'd like to make an M of N multisig wallet app in python. What libraries do I use?

What's important - I want high values of "N" - 6 of 10, or 11 of 20, not just 2 of 3. I heard there's a difference in handling these.


Title: Re: How to create an M of N account/transaction in python?
Post by: achow101 on December 20, 2016, 04:17:50 PM
I'd like to make an M of N multisig wallet app in python. What libraries do I use?
Python bitcoinlib should have what you need: https://github.com/petertodd/python-bitcoinlib

What's important - I want high values of "N" - 6 of 10, or 11 of 20, not just 2 of 3. I heard there's a difference in handling these.
The greatest m-of-n that you can use is 15-of-15.


Title: Re: How to create an M of N account/transaction in python?
Post by: svabodny on December 20, 2016, 06:13:27 PM
Thank you!

I guess Segwit will allow signatures more advanced than 15 of 15, right?


Title: Re: How to create an M of N account/transaction in python?
Post by: achow101 on December 20, 2016, 06:17:03 PM
Thank you!

I guess Segwit will allow signatures more advanced than 15 of 15, right?
No. The scripts are still the same so it is limited to 15 of 15.


Title: Re: How to create an M of N account/transaction in python?
Post by: svabodny on December 21, 2016, 12:06:19 AM
Oh, that's sad. I though SegWit will allow extra opcodes in the script (with time)...


Title: Re: How to create an M of N account/transaction in python?
Post by: achow101 on December 21, 2016, 12:37:02 AM
Oh, that's sad. I though SegWit will allow extra opcodes in the script (with time)...
Segwit allows script versioning for future changes. Those changes could include additional op codes.