OutCast3k / coinbin

Javascript Bitcoin Wallet. Supports Multisig, Stealth, HD, SegWit, Bech32, Time Locked Addresses, RBF and more!
https://coinb.in/
MIT License
906 stars 621 forks source link

multisig addr based on the same repeated pubkey #205

Open MrFreeDragon opened 4 years ago

MrFreeDragon commented 4 years ago

If i have the multisig account created based on the repepated the same public key, so the coinbin signs the transaction as many times as the pubkey was used, however for funds release less signatures could be required and the transaction will not be accepted by the network.

Example: I have the 3/5 multisig address created on 5 times repeated public key Q (with the private key x to it). For funds release only 3 signatures are required (as it is 3/5 multisig account). While signing with your coinbin tool, it adds 5 signatures to the transactions (as founds 5 related public keys), and finally creates 5/5 multisig transaaction (signed 5 times). But network does not accept such transaction because only 3 signatures are required.

Can you fix it? (for example, add the choice for signature quantity if there are repeated public keys in multisig account).

OutCast3k commented 4 years ago

Hi,

Can you share the redeem script and I'll look into this. If you dont want to make it public, please message or email me.

Thanks