Bitcoin Forum

Bitcoin => Project Development => Topic started by: OutCast3k on December 29, 2013, 09:10:20 AM



Title: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on December 29, 2013, 09:10:20 AM
Coinb.in (https://coinb.in)
An Open Source, Multi Signature, HD Wallet and more!

Web : https://coinb.in (https://coinb.in)
TOR : http://4zpinp6gdkjfplhk.onion/ (http://4zpinp6gdkjfplhk.onion/)
GitHub : https://github.com/OutCast3k/coinbin/ (https://github.com/OutCast3k/coinbin/)
Email : OutCast3k(at)gmail.com
Donate : 1CWHWkTWaq1K5hevimJia3cyinQsrgXUvg

About

Coinb.in is a free and open source project released under the MIT license. In its early stages when its primary focus was to develop a proof of concept multisig solution in javascript but now it is a wallet and a playground for bitcoiners to experiment with.

Coinb.in is run and funded by the generosity of others in terms of development and hosting.

Features

Coinb.in supports a number of key features such as:

  • Offline Compressed & uncompressed Address creation.
  • Offline Multisignature Address creation.
  • "In browser" Key (re)generation.
  • Send and receive payments.
  • Ability to decode transactions, redeem scripts and more offline.
  • Build custom transactions offline.
  • Sign transactions offline.
  • Signatures are deterministic as per RFC 6979 (https://tools.ietf.org/html/rfc6979#section-3.2)
  • Broadcast transactions.
  • nLockTime support.
  • Add custom data to transactions with the use of OP_RETURN.
  • Support current Dark Wallet Stealth Address structure (as of version Alpha 7) for outputs.
  • Brain wallet support.
  • Compatible with bitcoin-qt
  • An offical .onion address for tor users.
  • Offline qrcode creator and scanning tool
  • HD (bip32) support
  • Supports altcoins such as litecoin
  • CHECKLOCKTIMEVERIFY (op_hodl) supported for time locked addresses
  • Replace by fee (RBF) support

Donate

Please donate to 1CWHWkTWaq1K5hevimJia3cyinQsrgXUvg if you found this project useful or want to see more features!

Tutorials

MultiSig
  • https://www.youtube.com/watch?v=oUSVmLegj8k
  • http://bitcoinx.io/news/articles/how-to-create-a-multisig-address-and-spend-bitcoin-from-it/
  • http://cryptorials.io/how-to-create-and-use-a-multi-sig-bitcoin-address/
  • https://www.deepdotweb.com/tor-bazaar-multisig-guide/

Notarizing
  • https://youtube.com/watch?v=qn13TIhoYUY

Double spending (non-RBF)
  • http://bitzuma.com/posts/how-to-clear-a-stuck-bitcoin-transaction/
  • https://youtu.be/ycq7O48aPvQ



Title: Re: Multi Signature Address Script and Escrow Service
Post by: xeroc on December 29, 2013, 10:41:36 AM
You may want to take a look at
http://www.bitescrow.org/


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on December 29, 2013, 10:53:50 AM
You may want to take a look at
http://www.bitescrow.org/

Whilst bitescrow.org is pretty neat, unless I'm mistaken it seems to use a different method to facilitate an escrow, it does not seem to use multi signature addresses and is limited to the number of parties that can take part.

What I have developed allows for true multi signature addresses to created in within your browser, and all the outputs are compatible with bitcoin-qt.

To clarify, a multi signature address starts with a 3, like this address 39wJtGk78E76AKpUKLhzrhmwVyZZHfCUbV it does not start with a 1 like normal addresses.

http://blockchain.info/address/39wJtGk78E76AKpUKLhzrhmwVyZZHfCUbV (http://blockchain.info/address/39wJtGk78E76AKpUKLhzrhmwVyZZHfCUbV)

For more information, see: https://en.bitcoin.it/wiki/Address#Multi-signature_addresses


Title: Re: Multi Signature Address Script and Escrow Service
Post by: coinrevo on December 29, 2013, 11:21:00 AM
this is great! keep up the good work.

* I think it would great to explain the process and concepts in more detail on the site. What is a redeem script?

* say I want to implement the following: pay 0.01 BTC to address #A12 if the year in the timestamp of the last block is equal to 2014. what would it take to make this work?

* btw, the link on the site to your profile is broken. I think you want this: https://bitcointalk.org/index.php?action=profile;u=34834  


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on December 29, 2013, 12:05:55 PM
this is great! keep up the good work.

* I think it would great to explain the process and concepts in more detail on the site. What is a redeem script?

* say I want to implement the following: pay 0.01 BTC to address #A12 if the year in the timestamp of the last block is equal to 2014. what would it take to make this work?

* btw, the link on the site to your profile is broken. I think you want this: https://bitcointalk.org/index.php?action=profile;u=34834  

Thanks for the feedback :)

You're right, I will defiantly add more information to the site about the process shortly.

A "redeem script" contains 2 pieces of information, the public keys and the minimum number of signatures required to use it as a spendable input. It is also used to generate the multi signature address itself. There should be some information on the bitcoin wiki about this, but I will also add it to the site shortly.

I believe its possible to manipulate the timestamp of the transaction in the way you've requested, although I will need to do a little bit of testing first.

Thanks for pointing out the broken link, I've since fixed it.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on December 30, 2013, 10:10:12 PM
Couple of small updates made, will upload to github later :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: chuckbobuck on January 04, 2014, 10:52:10 AM
This is fantastic! 

I will be testing this in the coming days and will provide some feedback.   Keep up the good work. 


Title: Re: Multi Signature Address Script and Escrow Service
Post by: yakov on January 04, 2014, 12:02:12 PM
Very good. Allows use of multisigs without installing bitcoin-qt and downloading the blockchain.

However you shouldn't use the word "escrow" to describe this. This isn't escrow because the escrow agent cannot run off with the money. Also "escrow" agents are heavily regulated in many parts of the world, while arbitrators, adjudicators, mediators, judges, reconcilers, referees, umpires, etc are not subject to that regulation.
Changing the word doesn't change much in law, but its bad to give the wrong idea to lawyers since multisig transactions are not something that's ever existed before to my knowledge.

Also you might want to look at http://www.bitrated.com/ which does the same thing but requires an account and has some other features. I don't think it can be easily used with an online auction site, like bitmit.net with multisigs. Your site seems much better for that.


edit: some other thoughts.
1. If the public key is copied in with a mistake it could lead to loss of funds. Perhaps we need a standard for base58check public keys? According to the wiki (https://en.bitcoin.it/wiki/Base58Check_encoding#Version_bytes) you'd use the version byte 42 but it's marked "proposed" and I can't find any other info on it.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 04, 2014, 01:15:08 PM
Very good. Allows use of multisigs without installing bitcoin-qt and downloading the blockchain.

However you shouldn't use the word "escrow" to describe this. This isn't escrow because the escrow agent cannot run off with the money. Also "escrow" agents are heavily regulated in many parts of the world, while arbitrators, adjudicators, mediators, judges, reconcilers, referees, umpires, etc are not subject to that regulation.
Changing the word doesn't change much in law, but its bad to give the wrong idea to lawyers since multisig transactions are not something that's ever existed before to my knowledge.

Also you might want to look at http://www.bitrated.com/ which does the same thing but requires an account and has some other features. I don't think it can be easily used with an online auction site, like bitmit.net with multisigs. Your site seems much better for that.


edit: some other thoughts.
1. If the public key is copied in with a mistake it could lead to loss of funds. Perhaps we need a standard for base58check public keys? According to the wiki (https://en.bitcoin.it/wiki/Base58Check_encoding#Version_bytes) you'd use the version byte 42 but it's marked "proposed" and I can't find any other info on it.

Good point on the terminology, you're right, "escrow" probably isn't the right term. I'll have a think about what to change it to, but I am open to suggestions..

Also I agree I should validate the public keys, to prevent loss of funds, I'll try and come up with something later today.

Thanks for the feedback :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 05, 2014, 10:55:59 PM
1. If the public key is copied in with a mistake it could lead to loss of funds. Perhaps we need a standard for base58check public keys? According to the wiki (https://en.bitcoin.it/wiki/Base58Check_encoding#Version_bytes) you'd use the version byte 42 but it's marked "proposed" and I can't find any other info on it.

Added a check to make sure public keys are valid :)

Also, looking to also re-brand it from "escrow" to something else, any suggestions are welcome.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: shesek on January 06, 2014, 12:57:03 PM
OutCast3k, congrats on the release! We talked about it awhile ago on IRC, I'm glad to see you released it.

Also you might want to look at http://www.bitrated.com/ which does the same thing but requires an account and has some other features. I don't think it can be easily used with an online auction site, like bitmit.net with multisigs. Your site seems much better for that.

It doesn't do the same thing; Coinb.in has a general purpose tool that can be used for many kinds of multi-signature transactions, while Bitrated was created specifically to facilitate arbitration services and has an interface that was optimized for that purpose. Also, Bitrated does not require setting up an account - its optional and only for arbitrators that wants to be listed on the website, and buyers/sellers don't have accounts at all (and I believe it should be quite easy to use with something like bitmit).



Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 06, 2014, 08:28:22 PM
OutCast3k, congrats on the release! We talked about it awhile ago on IRC, I'm glad to see you released it.

Also you might want to look at http://www.bitrated.com/ which does the same thing but requires an account and has some other features. I don't think it can be easily used with an online auction site, like bitmit.net with multisigs. Your site seems much better for that.

It doesn't do the same thing; Coinb.in has a general purpose tool that can be used for many kinds of multi-signature transactions, while Bitrated was created specifically to facilitate arbitration services and has an interface that was optimized for that purpose. Also, Bitrated does not require setting up an account - its optional and only for arbitrators that wants to be listed on the website, and buyers/sellers don't have accounts at all (and I believe it should be quite easy to use with something like bitmit).



Thanks mate :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: yakov on January 06, 2014, 11:40:54 PM
OutCast3k, congrats on the release! We talked about it awhile ago on IRC, I'm glad to see you released it.

Also you might want to look at http://www.bitrated.com/ which does the same thing but requires an account and has some other features. I don't think it can be easily used with an online auction site, like bitmit.net with multisigs. Your site seems much better for that.

It doesn't do the same thing; Coinb.in has a general purpose tool that can be used for many kinds of multi-signature transactions, while Bitrated was created specifically to facilitate arbitration services and has an interface that was optimized for that purpose. Also, Bitrated does not require setting up an account - its optional and only for arbitrators that wants to be listed on the website, and buyers/sellers don't have accounts at all (and I believe it should be quite easy to use with something like bitmit).

Thanks for the correction. Sorry about the misinformation.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: jcrubino on January 11, 2014, 09:03:20 PM
Coin.bin is a fantastic set of tools.

I am not familiar with javacript or crypto to start changing things but how do I set this to use testnet addresses,
I would guess it has to do with x.unshift being set to 0x11

Is that correct?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 15, 2014, 11:06:46 AM
Coin.bin is a fantastic set of tools.

I am not familiar with javacript or crypto to start changing things but how do I set this to use testnet addresses,
I would guess it has to do with x.unshift being set to 0x11

Is that correct?

It looks about right, but you might need a few extra tweaks also. I'll look into making a testnet mode for it shortly :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: monsterer on January 15, 2014, 08:32:18 PM
Have you yet run into the problem that I just have?

Very few people in the real world posses a client capable of sending coins to a multi-sig address. Testnet worked fine for me, but on mainnet blockchain.info doesn't support multi-sig sending, for example....


Title: Re: Multi Signature Address Script and Escrow Service
Post by: crazy_rabbit on January 15, 2014, 09:43:17 PM
Very cool! I'll be watching this!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: yakov on January 18, 2014, 12:13:27 PM
Have you yet run into the problem that I just have?

Very few people in the real world posses a client capable of sending coins to a multi-sig address. Testnet worked fine for me, but on mainnet blockchain.info doesn't support multi-sig sending, for example....

bitcoinqt and electrum send to them.
Which is ridiculous, p2sh addresses have been out for years.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: drakoin on January 21, 2014, 06:18:11 PM
Very interesting.

How do I get my public key? 

The multibit client provides a "Tools ... Export Private Keys" option.
And the qt client has dumprivkey.

But how do I get my PUBLIC keys?


There might be a manual there already, but:

" these can be extracted from the bitcoin client (http://javascript:;) or generated using the form below "

The link is an empty "javascript:;"



Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 21, 2014, 08:14:04 PM
Very interesting.

How do I get my public key?  

The multibit client provides a "Tools ... Export Private Keys" option.
And the qt client has dumprivkey.

But how do I get my PUBLIC keys?


There might be a manual there already, but:

" these can be extracted from the bitcoin client (http://javascript:;) or generated using the form below "

The link is an empty "javascript:;"



Via bitcoin-qt, click help, then click "Debug window", then choose the console tab, and finally enter the following command:

Code:
verifyaddress <youraddress>

It will then return some data, including a pubkey for that address.

Please keep in mind that it can only provide pubkeys for addresses in your wallet. Addresses that aren't in your wallet, will still return similar data but without a pub key.

Sorry about the dead link, I keep meaning to write a guide for it, I've been a little busy and not had time yet - I'll do it this evening though to avoid any future confusion.

Hope that helps. :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: btcmsia on January 22, 2014, 06:24:29 AM
could you make it to support compressed keys?

i'm using bitcoin-qt v0.8.6 now, all new addresses generated in my wallets only use compressed keys.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 22, 2014, 10:06:02 AM
could you make it to support compressed keys?

i'm using bitcoin-qt v0.8.6 now, all new addresses generated in my wallets only use compressed keys.


Unfortunately, you can't use an address in replace of a pubkey.

An address is a one way hash of a pubkey. Its not possible to use an address because it cant be used to generate a pubkey, and its the pubkeys (which is included in the redeem scripts) that are needed to validate the signatures in a transaction when you release/send the coins from your mutlsig address.

If you want to find a pubkey, of an address in bitcoin-qt then, click help, then click the "Debug window", then choose the console tab, and finally enter the following command:

Code:
verifyaddress <youraddress>

The console will then output some data, including a pubkey. You will only be provided pubkeys for addresses in your wallet.

I will add these instructions to the page very very shortly.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ktorn on January 22, 2014, 01:23:49 PM
could you make it to support compressed keys?
Unfortunately, you can't use an address in replace of a pubkey.

I think btcmsia is talking about compressed public keys, not addresses.
When you 'validateaddress' a Bitcoin-qt v0.8.x address, what you get are compressed public keys ("iscompressed":"true") whereas coinb.in expects uncompressed ones.


In my case I'm trying to use coinb.in to create and use a 2-of-2 address, but I'm stuck. I've done all the operations below from coinb.in:

1 ) generated 2 sets of Bitcoin keys (so 2 addresses, 2 public uncompressed keys, and 2 private keys)
2 ) generated a 2-of-2 p2sh address using the public keys from step #1
3 ) sent 0.0022 BTC to that p2sh address

So far so good. The funds are in the p2sh address, with 12 confirmations as I type this.

This is where the problems begin.

When creating a transaction, it looks like it doesn't support sending to p2sh addresses  :o, so I can't send change back to the address that I just created, nor to any other p2sh address (I have tried a couple of them). It only generates the transaction hex when I use non p2sh addresses. That is a significant issue for me. I really need to send the change back to the same address.

Anyway, I decided to retrieve the BTC back to one of my non p2sh addresses, and I'm still stuck. Here's the steps I've taken:

4 ) generate new transaction using redeem script from step #2, sending 0.0021 to a normal bitcoin address and with 0.0001 fee. Transaction hex is generated successfully.
5 ) verify the transaction hex from step #4. the verification is successful, and the input and outputs look OK.
6 ) sign transaction hex from step #4 with first private key from step #1
7 ) sign transaction hex from step #6 with second private key from step #1
8 ) broadcast the transaction hex from step 7
"TX rejected" :(

I noticed that the signed transaction hex from steps #6 and #7 cannot be verified like the original transaction hex in step #5, with "Unable to decode" error. However when pasting those same hex strings to https://coinb.in/decode-raw-transaction.html it decodes them successfully.

Any idea what could be going wrong with this?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 22, 2014, 04:46:16 PM
In my case I'm trying to use coinb.in to create and use a 2-of-2 address, but I'm stuck. I've done all the operations below from coinb.in:

1 ) generated 2 sets of Bitcoin keys (so 2 addresses, 2 public uncompressed keys, and 2 private keys)
2 ) generated a 2-of-2 p2sh address using the public keys from step #1
3 ) sent 0.0022 BTC to that p2sh address

So far so good. The funds are in the p2sh address, with 12 confirmations as I type this.

This is where the problems begin.

When creating a transaction, it looks like it doesn't support sending to p2sh addresses  :o, so I can't send change back to the address that I just created, nor to any other p2sh address (I have tried a couple of them). It only generates the transaction hex when I use non p2sh addresses. That is a significant issue for me. I really need to send the change back to the same address.

Anyway, I decided to retrieve the BTC back to one of my non p2sh addresses, and I'm still stuck. Here's the steps I've taken:

4 ) generate new transaction using redeem script from step #2, sending 0.0021 to a normal bitcoin address and with 0.0001 fee. Transaction hex is generated successfully.
5 ) verify the transaction hex from step #4. the verification is successful, and the input and outputs look OK.
6 ) sign transaction hex from step #4 with first private key from step #1
7 ) sign transaction hex from step #6 with second private key from step #1
8 ) broadcast the transaction hex from step 7
"TX rejected" :(

I noticed that the signed transaction hex from steps #6 and #7 cannot be verified like the original transaction hex in step #5, with "Unable to decode" error. However when pasting those same hex strings to https://coinb.in/decode-raw-transaction.html it decodes them successfully.

Any idea what could be going wrong with this?

Hey ktorn,

I'll get the issue sorted with not being able to send back to multi sig addresses, but first lets find out what went wrong when building a serialized/hex transaction and recover your funds.

If you cant pop back on IRC (I missed you by 15 minutes), and you're still having problems, can you PM me the following;

1, the public keys you used.
2, the minimum number of signatures required you set.
3, the address and redeemScript it generated for you.

Thanks.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ABISprotocol on January 22, 2014, 06:59:13 PM
Thanks!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ADcoin.me on January 22, 2014, 07:16:00 PM
Great! Well done, keep up the good work! opensource marketplace would be so nice! Go for it, please. :D


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 22, 2014, 07:25:19 PM
In my case I'm trying to use coinb.in to create and use a 2-of-2 address, but I'm stuck. I've done all the operations below from coinb.in:

1 ) generated 2 sets of Bitcoin keys (so 2 addresses, 2 public uncompressed keys, and 2 private keys)
2 ) generated a 2-of-2 p2sh address using the public keys from step #1
3 ) sent 0.0022 BTC to that p2sh address

So far so good. The funds are in the p2sh address, with 12 confirmations as I type this.

This is where the problems begin.

When creating a transaction, it looks like it doesn't support sending to p2sh addresses  :o, so I can't send change back to the address that I just created, nor to any other p2sh address (I have tried a couple of them). It only generates the transaction hex when I use non p2sh addresses. That is a significant issue for me. I really need to send the change back to the same address.

Anyway, I decided to retrieve the BTC back to one of my non p2sh addresses, and I'm still stuck. Here's the steps I've taken:

4 ) generate new transaction using redeem script from step #2, sending 0.0021 to a normal bitcoin address and with 0.0001 fee. Transaction hex is generated successfully.
5 ) verify the transaction hex from step #4. the verification is successful, and the input and outputs look OK.
6 ) sign transaction hex from step #4 with first private key from step #1
7 ) sign transaction hex from step #6 with second private key from step #1
8 ) broadcast the transaction hex from step 7
"TX rejected" :(

I noticed that the signed transaction hex from steps #6 and #7 cannot be verified like the original transaction hex in step #5, with "Unable to decode" error. However when pasting those same hex strings to https://coinb.in/decode-raw-transaction.html it decodes them successfully.

Any idea what could be going wrong with this?

Thanks for providing the information via pm/irc, the bug found should be fixed. If you could re-test and get back to me that would be great, thanks.

Start from step 4.

Cheers :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 22, 2014, 07:26:35 PM
Great! Well done, keep up the good work! opensource marketplace would be so nice! Go for it, please. :D

Got a fair chunk of the code in place ;) its just finding the time to finish it off.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ktorn on January 23, 2014, 01:09:53 AM
Thanks for providing the information via pm/irc, the bug found should be fixed. If you could re-test and get back to me that would be great, thanks.

Start from step 4.

Definitely progress, the transaction now validates after signing, but still TX rejected when broadcasting. I've PM'd you the signed tx hex.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 23, 2014, 10:21:27 AM
Thanks for providing the information via pm/irc, the bug found should be fixed. If you could re-test and get back to me that would be great, thanks.

Start from step 4.

Definitely progress, the transaction now validates after signing, but still TX rejected when broadcasting. I've PM'd you the signed tx hex.

You've not mistakenly signed the transaction twice, but with the same key have you??

I've run 3-4 tests this morning, everything is working fine from my perspective, could you get in touch again via IRC so we can go through it step by step in an attempt to reproduce this bug.

Thanks


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ktorn on January 23, 2014, 04:04:58 PM
OK, after going over a few tests with OutCast3k we think we nailed the issue.

In a nutshell: Currently the order of the signatures matters.

Our tests involved a 2-of-2 multisig address, which I created with 2 pubkeys (lets call them pub1 and pub2).

When spending from the multisig address, signing the transaction with priv1 first and priv2 second always failed when broadcasting (with TX rejected).
But when signing the same transaction in the opposite order, using priv2 first and priv1 secondly the broadcast worked OK.  8)

Thanks OutCast3k for spending a considerable amount of time in troubleshooting this! :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 23, 2014, 10:06:44 PM
OK, after going over a few tests with OutCast3k we think we nailed the issue.

In a nutshell: Currently the order of the signatures matters.

Our tests involved a 2-of-2 multisig address, which I created with 2 pubkeys (lets call them pub1 and pub2).

When spending from the multisig address, signing the transaction with priv1 first and priv2 second always failed when broadcasting (with TX rejected).
But when signing the same transaction in the opposite order, using priv2 first and priv1 secondly the broadcast worked OK.  8)

Thanks OutCast3k for spending a considerable amount of time in troubleshooting this! :)

Yup, the order of the signatures seems to matter, I'll currently trying to work out a solution.

Thanks ktorn, for beta testing and finding the issue.

Will post back when fixed.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 24, 2014, 12:41:16 AM
OK, after going over a few tests with OutCast3k we think we nailed the issue.

In a nutshell: Currently the order of the signatures matters.

Our tests involved a 2-of-2 multisig address, which I created with 2 pubkeys (lets call them pub1 and pub2).

When spending from the multisig address, signing the transaction with priv1 first and priv2 second always failed when broadcasting (with TX rejected).
But when signing the same transaction in the opposite order, using priv2 first and priv1 secondly the broadcast worked OK.  8)

Thanks OutCast3k for spending a considerable amount of time in troubleshooting this! :)

Yup, the order of the signatures seems to matter, I'll currently trying to work out a solution.

Thanks ktorn, for beta testing and finding the issue.

Will post back when fixed.

This issue has now been fixed :) the order that signatures are added no longer matters.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ktorn on January 24, 2014, 06:58:53 AM
This issue has now been fixed :) the order that signatures are added no longer matters.

I've just tested it twice, switching the order of the signing keys between tests, and both transactions were successful.
Your fix works! :)

Now that P2SH output support that we talked about earlier would be the icing on the cake ;)
Should I nudge the bitcoinjs (http://bitcoinjs.org) folks about the issue or do you want to have a go at it?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 24, 2014, 08:37:48 AM
This issue has now been fixed :) the order that signatures are added no longer matters.

I've just tested it twice, switching the order of the signing keys between tests, and both transactions were successful.
Your fix works! :)

Now that P2SH output support that we talked about earlier would be the icing on the cake ;)
Should I nudge the bitcoinjs (http://bitcoinjs.org) folks about the issue or do you want to have a go at it?

I'll look into supporting the ability to send back to a multisig address later today, it shouldn't be that big of a deal. I don't think you'll get a response from the bitcoinjs guys.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ktorn on January 24, 2014, 09:31:41 AM
I'll look into supporting the ability to send back to a multisig address later today, it shouldn't be that big of a deal. I don't think you'll get a response from the bitcoinjs guys.

Yeah, I've noticed that their github repo hasn't be touched in a while. Ping me when you patch the code and I'll give it a test on this side.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: btcmsia on January 24, 2014, 05:07:04 PM
Unfortunately, you can't use an address in replace of a pubkey.

An address is a one way hash of a pubkey. Its not possible to use an address because it cant be used to generate a pubkey, and its the pubkeys (which is included in the redeem scripts) that are needed to validate the signatures in a transaction when you release/send the coins from your mutlsig address.

I'm talking about compressed public key, not address.

latest bitcoin-qt client seems only generate address from compressed public key.
so all my addresses are associated with compressed publickey (prefix with 02/03, not 04).
and when compressed publickeys are used, their private keys also in different format, (prfix with K/L instead of 5)

there will be a compatible issue if your apps only support uncompressed pkey.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 26, 2014, 11:30:21 AM
Just a small update.

If anyone is running my script offline, I've fixed a lot of bugs so i'd suggest getting an update from github.

latest bitcoin-qt client seems only generate address from compressed public key.
so all my addresses are associated with compressed publickey (prefix with 02/03, not 04).
and when compressed publickeys are used, their private keys also in different format, (prfix with K/L instead of 5)

@btcmsia I will look into this, but will have to get back to you before I promise anything. You can always generate a pubkey from the new keys tab, https://coinb.in/multisig/#newKeys You could also use bitaddress.org or brainwallet.org to generate keys pretty quickly.

Now that P2SH output support that we talked about earlier would be the icing on the cake ;)
Should I nudge the bitcoinjs (http://bitcoinjs.org) folks about the issue or do you want to have a go at it?

@ktorn I've been looking into it, its a little trickier than I first thought but should have it resolved over the next couple of days.

Many thanks to everyone who has been testing :D


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ABISprotocol on January 26, 2014, 09:55:24 PM
OutCast3k:

thank you, you are a good entity

much thanks

very excellent

etc


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ktorn on January 27, 2014, 06:34:46 AM
@ktorn I've been looking into it, its a little trickier than I first thought but should have it resolved over the next couple of days.
No worries, take your time.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on January 28, 2014, 06:38:40 PM
@ktorn I've been looking into it, its a little trickier than I first thought but should have it resolved over the next couple of days.
No worries, take your time.

Fixed :D you can now send back to a multisig address.

One of my test cases http://blockchain.info/tx/832679f95685a8178bc7128dd3450fc29d0552a3ee6bcc3f1254f48d0ba4e0c4


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ktorn on January 29, 2014, 05:29:19 AM
Fixed :D you can now send back to a multisig address.

I've tested and it works for me as well: https://blockchain.info/tx/13326d4e0aa8ed620d4d28d26810f4ac9ce75e508d84b218f281c681389abdbd (https://blockchain.info/tx/13326d4e0aa8ed620d4d28d26810f4ac9ce75e508d84b218f281c681389abdbd)

Great work OutCast3k!  :D


Title: Re: Multi Signature Address Script and Escrow Service
Post by: fbueller on January 30, 2014, 02:15:54 AM
This is an awesome project, very glad I saw this thread. I'm working on implementing multisig into Bitwasp, and currently support for multisig sucks in the clients. I was hoping someone would come up with a stateless signing tool. Looking forward to your marketplace, I haven't seen another open source one before :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: RagnarDanneskjold on January 31, 2014, 09:43:27 AM
This is an awesome project, very glad I saw this thread.
+1 million!

Great stuff outkast - i will use this EVERY day from now on



Title: Re: Multi Signature Address Script and Escrow Service
Post by: fbueller on January 31, 2014, 03:23:01 PM
Just ran through a test transaction, this works great! Kudos again. My shitty laptop apparently can't sign transactions, the script crashes, but I've tested it successfully on another machine, works a treat. 3cac39fc4aefc65aaa5419a60ab52aebc01d3c55f178a8ebe274650916cf38d6



Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on February 02, 2014, 03:25:47 PM
Just ran through a test transaction, this works great! Kudos again. My shitty laptop apparently can't sign transactions, the script crashes, but I've tested it successfully on another machine, works a treat. 3cac39fc4aefc65aaa5419a60ab52aebc01d3c55f178a8ebe274650916cf38d6

Good to hear it worked.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: vm_mpn on February 02, 2014, 06:22:28 PM
I just have to say - It's amazing what you guys are doing...

Thank You!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on February 03, 2014, 10:50:10 PM
I just have to say - It's amazing what you guys are doing...

Thank You!

Thanks :)

This is an awesome project, very glad I saw this thread.
+1 million!

Great stuff outkast - i will use this EVERY day from now on



Thanks :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: HostFat on February 06, 2014, 04:14:27 PM
I would be cool if someone could make an easy android app to arrange and start a poker match.
So everyone will be able to play poker everywhere with just their smartphone and empty pockets :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: em on February 07, 2014, 12:02:46 PM
Maybe I'm missing something, but I think that with this method the Seller is at a disadvantage here, because the Buyer might renege on his promise and not sign the transaction after receiving the goods (e.g., unless the Seller ship an extra amount of goods). True, a mediator could break the tie if two signatures over three were sufficient to release the payment, but it would be much better if recourse to trusted third parties could be minimized.
A scheme that might work better would run as follows:

- After reaching a verbal agreement, Buyer issues a "Conditional payment" for Seller (which at this stage Buyer may cancel at any time)
- Seller accepts the payment by "posting a bond" of, say, X% of the amount.  The payment's status becomes "Committed", and Buyer can't cancel it anymore.
- Seller ships the goods
- Buyer receives the goods, and "releases the payment": the initial amount is paid to Seller, and at the same time the bond is paid back to Buyer.

Is it possible to implement this protocol with p2sh primitives?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on February 07, 2014, 01:06:21 PM
Maybe I'm missing something, but I think that with this method the Seller is at a disadvantage here, because the Buyer might renege on his promise and not sign the transaction after receiving the goods (e.g., unless the Seller ship an extra amount of goods). True, a mediator could break the tie if two signatures over three were sufficient to release the payment, but it would be much better if recourse to trusted third parties could be minimized.
A scheme that might work better would run as follows:

- After reaching a verbal agreement, Buyer issues a "Conditional payment" for Seller (which at this stage s/he may cancel at any time)
- Seller accepts the payment by "posting a bond" of, say, X% of the amount.  The payment's status becomes "Committed", and Buyer can't cancel it anymore.
- Seller ships the goods
- Buyer receives the goods, and "releases the payment": the initial amount is paid to Seller, and at the same time the bond is paid back to Buyer.

Is it possible to implement this protocol with p2sh primitives?

Hey,

Thanks for the feedback.

You've mentioned that the sellers maybe put at a disadvantage here because the buyer may not sign the transaction, well, there are many tried and tested sites where this type of system works. Such as; localbitcoins, bitmit, coingig or even all those .onion sites and the mediators do just fine - but these sites require you to fully trust them, as they expect the coins to be deposited in their wallet and the buyer presses a "release button", as opposed to a multisig address, where no single person can steal them or claim they've been hacked, etc etc..

I also suspect many highly trusted sellers would just accept payment directly anyway.

Anyway, unless I've miss understood your suggestion, it is not possible to do as payments can not be "cancelled".

All the best


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on February 07, 2014, 01:09:12 PM
I would be cool if someone could make an easy android app to arrange and start a poker match.
So everyone will be able to play poker everywhere with just their smartphone and empty pockets :)

Nice idea... final project could be pretty awesome.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: em on February 08, 2014, 11:43:05 AM

You've mentioned that the sellers maybe put at a disadvantage here because the buyer may not sign the transaction, well, there are many tried and tested sites where this type of system works. Such as; localbitcoins, bitmit, coingig or even all those .onion sites - but these sites require you to fully trust them, as they expect the coins to be deposited in their wallet and the buyer presses a "release button", as opposed to a multisig address, where no single person can steal them or claim they've been hacked, etc etc..


Exactly: here we are trying to avoid the need for trusted third parties policing the transactions. And often they rely on a separate trust metrics for assessing the participants: for example, Bitcoin.de has a system of mutual ratings among users based on the number of successful settlements, and each user's rating is visible to all other users. But this requires a centralized database and someone to maintain it, and we don't want that.

Anyway, unless I've miss understood your suggestion, it is not possible to do as payments can not be "cancelled".

However (please correct me if I'm wrong), I guess it's possible to make a transaction that will pay part of the amount sent to the script hash to one address (the Seller) and part to another (the Buyer). If the Buyer reneged on his agreement and refused to sign and broadcast the transaction after receiving the goods, he would have to forfeit the bond.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: RagnarDanneskjold on February 08, 2014, 12:38:31 PM

You've mentioned that the sellers maybe put at a disadvantage here because the buyer may not sign the transaction, well, there are many tried and tested sites where this type of system works. Such as; localbitcoins, bitmit, coingig or even all those .onion sites - but these sites require you to fully trust them, as they expect the coins to be deposited in their wallet and the buyer presses a "release button", as opposed to a multisig address, where no single person can steal them or claim they've been hacked, etc etc..


Exactly: here we are trying to avoid the need for trusted third parties policing the transactions. And often they rely on a separate trust metrics for assessing the participants: for example, Bitcoin.de has a system of mutual ratings among users based on the number of successful settlements, and each user's rating is visible to all other users. But this requires a centralized database and someone to maintain it, and we don't want that.

Anyway, unless I've miss understood your suggestion, it is not possible to do as payments can not be "cancelled".

However (please correct me if I'm wrong), I guess it's possible to make a transaction that will pay part of the amount sent to the script hash to one address (the Seller) and part to another (the Buyer). If the Buyer reneged on his agreement and refused to sign and broadcast the transaction after receiving the goods, he would have to forfeit the bond.

there are a number of ways you could arrange a multisig contract to address what you call bond forfeiture.  Just to be sure, in its basic form, if the multisig address requires more signatures than are available to sign the tx, then funds will remain locked, yes.  So there is extra burden on all parties to be sure keys are safe & available on time.... or, depending on the details & complexity of agreement - additional signer keys could be used, shared, split or other tricks to build in failsafes.

here is an example of an exchange implementation using Outkast's multisig [thanks again - much fun]
http://isx.io

your question 'is it possible to implement this protocol with p2sh primitives?" - p2sh could be html javascripted just like this one if thats what you mean.

See also:
https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki
https://github.com/bitcoin/bips/blob/master/bip-0017.mediawiki
https://github.com/bitcoin/bips/blob/master/bip-0012.mediawiki
http://bitcoin.stackexchange.com/questions/2749/what-is-an-explanation-of-the-p2sh-voting-in-laymans-terms



Title: Re: Multi Signature Address Script and Escrow Service
Post by: em on February 08, 2014, 01:15:12 PM

here is an example of an exchange implementation using Outkast's multisig [thanks again - much fun]
http://isx.io


Very interesting, thanks.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: Miner538 on February 17, 2014, 02:43:57 PM
I would be cool if someone could make an easy android app to arrange and start a poker match.
So everyone will be able to play poker everywhere with just their smartphone and empty pockets :)

Nice idea... final project could be pretty awesome.

OutCast3k +10000

Great idea, this is going to change the way people view crypto's
Thank you for finding a really neat solution to a safer pay method ;D


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on February 18, 2014, 09:56:46 PM
I would be cool if someone could make an easy android app to arrange and start a poker match.
So everyone will be able to play poker everywhere with just their smartphone and empty pockets :)

Nice idea... final project could be pretty awesome.

OutCast3k +10000

Great idea, this is going to change the way people view crypto's
Thank you for finding a really neat solution to a safer pay method ;D

No problem, I'm just glad to see others find this useful :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: fbueller on February 19, 2014, 01:55:21 PM
bitcoinqt and electrum send to them.
Which is ridiculous, p2sh addresses have been out for years.

Bitcoinj recently added support for p2sh, so I'm expecting the android clients will support them soon.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: Abdussamad on February 19, 2014, 02:28:59 PM
How does your mediation service work? Specifically:

- Does your 1% fee apply to every transaction or only those transactions involving disputes?

- bitrated has a field where you can enter a transaction agreement or contract that specifies, among other things, what the modes of payment will be and what proof of payment must be provided in the event of a dispute. There is no such field on coinb.in. So how would you decide what to do in the event of a dispute?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on February 19, 2014, 04:53:27 PM
How does your mediation service work? Specifically:

- Does your 1% fee apply to every transaction or only those transactions involving disputes?

- bitrated has a field where you can enter a transaction agreement or contract that specifies, among other things, what the modes of payment will be and what proof of payment must be provided in the event of a dispute. There is no such field on coinb.in. So how would you decide what to do in the event of a dispute?

Hey,

As it stands, the 1% fee would only be applied to those transactions involving disputes.

Most users here seem to make an agreement and sign it with their PGP key in the event a dispute arises, a few other users will get in touch first. Saying that, I suppose a possible solution could be to have users create a message/agreement and sign it (in the browser) with their corresponding private key and then that could be used by the mediator if their is a dispute.

Do you have suggestions or preferences yourself? (or anybody else?)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: Abdussamad on February 19, 2014, 08:32:50 PM
How does your mediation service work? Specifically:

- Does your 1% fee apply to every transaction or only those transactions involving disputes?

- bitrated has a field where you can enter a transaction agreement or contract that specifies, among other things, what the modes of payment will be and what proof of payment must be provided in the event of a dispute. There is no such field on coinb.in. So how would you decide what to do in the event of a dispute?

Hey,

As it stands, the 1% fee would only be applied to those transactions involving disputes.

Most users here seem to make an agreement and sign it with their PGP key in the event a dispute arises, a few other users will get in touch first. Saying that, I suppose a possible solution could be to have users create a message/agreement and sign it (in the browser) with their corresponding private key and then that could be used by the mediator if their is a dispute.

Do you have suggestions or preferences yourself? (or anybody else?)

Easiest solution would be that the buyer and seller come to an agreement and email it to you. You verify receipt by replying with a quote.

Multisig is hard enough as it is. I think if you asked people to sign messages with private keys they would just blank out :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on February 20, 2014, 10:10:42 AM
- snip -

Easiest solution would be that the buyer and seller come to an agreement and email it to you. You verify receipt by replying with a quote.

Multisig is hard enough as it is. I think if you asked people to sign messages with private keys they would just blank out :)

I tend to agree, I think I'll just drop a little message explaining they should contact the mediator first.

Thanks for the feedback :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on February 20, 2014, 02:19:07 PM
OutCast3K, thank you, the code is neat!

I wish you the best, along with a tip :)

Good to hear you find the project useful!

Many thanks for the tip :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: jcrubino on February 22, 2014, 05:13:26 AM
Does the multisig address function accept mixed compressed and uncompressed pubkeys?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: unick on February 24, 2014, 04:47:12 AM
this is great! keep up the good work.

* I think it would great to explain the process and concepts in more detail on the site. What is a redeem script?

* say I want to implement the following: pay 0.01 BTC to address #A12 if the year in the timestamp of the last block is equal to 2014. what would it take to make this work?

* btw, the link on the site to your profile is broken. I think you want this: https://bitcointalk.org/index.php?action=profile;u=34834  

Thanks for the feedback :)

You're right, I will defiantly add more information to the site about the process shortly.

A "redeem script" contains 2 pieces of information, the public keys and the minimum number of signatures required to use it as a spendable input. It is also used to generate the multi signature address itself. There should be some information on the bitcoin wiki about this, but I will also add it to the site shortly.

I believe its possible to manipulate the timestamp of the transaction in the way you've requested, although I will need to do a little bit of testing first.

Thanks for pointing out the broken link, I've since fixed it.

What if I lose the redeemScript? is there a way to retrieve it or regenerate it?  If I don't have the RedeemScript, is it still possible to spend the coins given you have the required keys to "unlock" the transaction?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: RagnarDanneskjold on February 24, 2014, 05:59:22 AM
this is great! keep up the good work.

* I think it would great to explain the process and concepts in more detail on the site. What is a redeem script?

* say I want to implement the following: pay 0.01 BTC to address #A12 if the year in the timestamp of the last block is equal to 2014. what would it take to make this work?

* btw, the link on the site to your profile is broken. I think you want this: https://bitcointalk.org/index.php?action=profile;u=34834  

Thanks for the feedback :)

You're right, I will defiantly add more information to the site about the process shortly.

A "redeem script" contains 2 pieces of information, the public keys and the minimum number of signatures required to use it as a spendable input. It is also used to generate the multi signature address itself. There should be some information on the bitcoin wiki about this, but I will also add it to the site shortly.

I believe its possible to manipulate the timestamp of the transaction in the way you've requested, although I will need to do a little bit of testing first.

Thanks for pointing out the broken link, I've since fixed it.

What if I lose the redeemScript? is there a way to retrieve it or regenerate it?  If I don't have the RedeemScript, is it still possible to spend the coins given you have the required keys to "unlock" the transaction?

Yes you can regenerate the redeem script.  You cannot lose your multisig address; you can lose some privkeys - as long as you [or your Agents] saved the total number required to sign.  Best to move & back them up securely [pref using thumbdrive & a browser on a computer that has never connected to the internet ever]


Title: Re: Multi Signature Address Script and Escrow Service
Post by: RagnarDanneskjold on February 24, 2014, 06:34:26 AM
Does the multisig address function accept mixed compressed and uncompressed pubkeys?
This multisig script does not accept mixed or uncompresed.  [the multisig "function" is not exclusive to this script - you can do multisig txs other ways, but they are not cool]. You can generate new uncompressed keys using this also.  You do not want to sign with a wallet address that's been used or is/was/might ever be holding funds.  You will have to expose your privkey and create unnecessary vulnerabilities to your existing flimsy security efforts.  Better to generate new pubkeys just for controlling your multisig.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: Peter Todd on February 24, 2014, 09:47:47 AM
Quote
Enter the uncompressed public keys of all the participants, to create a multi signature address. Maximum of 20 allowed.

This is incorrect actually. While the underlying CHECKMULTISIG opcode can support up to 20 pubkeys, P2SH has an additional limit of 520 bytes for the scriptPubKey. That gives a size-dependent maximum of 15 compressed pubkeys, and just 7 with the larger uncompressed keys.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: RagnarDanneskjold on February 25, 2014, 01:35:49 AM
Quote
Enter the uncompressed public keys of all the participants, to create a multi signature address. Maximum of 20 allowed.

This is incorrect actually. While the underlying CHECKMULTISIG opcode can support up to 20 pubkeys, P2SH has an additional limit of 520 bytes for the scriptPubKey. That gives a size-dependent maximum of 15 compressed pubkeys, and just 7 with the larger uncompressed keys.

Perhaps I'm missing something - it seems to work fine for me using 20 uncompressed [dont recall if I've tried having all 20 required signers yet - trying now].  I understand this code somewhat[not enough]; Please elaborate if possible & let me know what lines are P2SH - I thought this was a bit different.  I'm digging through it blindly.

Incidentally, i thought the p2sh git referenced "+22 signatures"
https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki


Title: Re: Multi Signature Address Script and Escrow Service
Post by: Peter Todd on February 25, 2014, 02:22:24 AM
Perhaps I'm missing something - it seems to work fine for me using 20 uncompressed [dont recall if I've tried having all 20 required signers yet - trying now].  I understand this code somewhat[not enough]; Please elaborate if possible & let me know what lines are P2SH - I thought this was a bit different.  I'm digging through it blindly.

Incidentally, i thought the p2sh git referenced "+22 signatures"
https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki

That's "signature operations", not signatures. SigOps is just a metric used to restrict the amount of CPU time processing a block takes as an anti-DoS measure - it's got nothing to do with the actual number of signatures.

You'll find you can create that P2SH address with the Bitcoin RPC interface, but you can't actually spend from it succesfully. Kinda misleading really - if you could do up a patch to fix that and make createmultisigaddress raise an error that'd be great.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: sullitf on March 04, 2014, 04:36:35 AM
Really great work here OutCast!

I'm working on a project to create a multisig service and need to create keys server-side without exposing them to end users.  My first thought was to refactor your work to run in a node.js server.  Does this seem like a good solution, and if so have you looked into doing anything similar? 

Ultimately I need to be able to create key pairs, validate user public keys, and create/sign multisig addresses.  For signing I am planning to have users partially sign a multisig transaction with their keys and then send that to my server for final signature and broadcasting from the server.  This would likely mean needing to confirm partially signed transactions sent to the server, though I haven't looked into the feasibility of that yet.  Does your code already support partial signing and validation?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: waxwing on March 05, 2014, 04:07:27 PM
Quote
Enter the uncompressed public keys of all the participants, to create a multi signature address. Maximum of 20 allowed.

This is incorrect actually. While the underlying CHECKMULTISIG opcode can support up to 20 pubkeys, P2SH has an additional limit of 520 bytes for the scriptPubKey. That gives a size-dependent maximum of 15 compressed pubkeys, and just 7 with the larger uncompressed keys.

Peter,
Is there any prospect in the future for these limits to be increased? It seems to me there are quite a lot of applications for larger than 15.
Or if that just leads to unacceptably big transactions even with appropriate fees, is there some way that I haven't quite thought of to combine multisig keys to get bigger consensus mechanisms? Or is it possible to use some kind of Shamir's secret sharing idea? (I only know the idea vaguely, not sure how it would work in practice).

Btw, nice work on the site guys.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: Peter Todd on March 07, 2014, 02:07:38 PM
Peter,
Is there any prospect in the future for these limits to be increased? It seems to me there are quite a lot of applications for larger than 15.
Or if that just leads to unacceptably big transactions even with appropriate fees, is there some way that I haven't quite thought of to combine multisig keys to get bigger consensus mechanisms? Or is it possible to use some kind of Shamir's secret sharing idea? (I only know the idea vaguely, not sure how it would work in practice).

Btw, nice work on the site guys.

I'm at the Financial Crypto conference right now and actually just talked to a guy who claims to know of a researcher who has come up with a n-of-m threshold signature scheme that is compatible with existing Bitcoin signatures. Hopefully this will pan out - if it does you'll be able to do secure multisig without a single-point-of-failure (as Shamir's secret sharing does) with transactions and addresses that look identical to standard ones and are the same size as standard transactions. I didn't ask if there were any limits on how many keys could be combined, but there probably aren't.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: waxwing on March 07, 2014, 02:46:09 PM
Peter,
Is there any prospect in the future for these limits to be increased? It seems to me there are quite a lot of applications for larger than 15.
Or if that just leads to unacceptably big transactions even with appropriate fees, is there some way that I haven't quite thought of to combine multisig keys to get bigger consensus mechanisms? Or is it possible to use some kind of Shamir's secret sharing idea? (I only know the idea vaguely, not sure how it would work in practice).

Btw, nice work on the site guys.

I'm at the Financial Crypto conference right now and actually just talked to a guy who claims to know of a researcher who has come up with a n-of-m threshold signature scheme that is compatible with existing Bitcoin signatures. Hopefully this will pan out - if it does you'll be able to do secure multisig without a single-point-of-failure (as Shamir's secret sharing does) with transactions and addresses that look identical to standard ones and are the same size as standard transactions. I didn't ask if there were any limits on how many keys could be combined, but there probably aren't.

Thanks. I realised after I wrote that that Shamir shares *secrets* not signatures so that's no good (I guess the clue was in the title :) ). Could something be hacked together with CoinSwap?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: Peter Todd on March 07, 2014, 03:07:30 PM
Thanks. I realised after I wrote that that Shamir shares *secrets* not signatures so that's no good (I guess the clue was in the title :) ). Could something be hacked together with CoinSwap?

I don't think so.

The threshold sig stuff sounds pretty far along; for now 15/20 isn't such a bad limitation IMO.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: waxwing on March 07, 2014, 04:05:44 PM
Thanks. I realised after I wrote that that Shamir shares *secrets* not signatures so that's no good (I guess the clue was in the title :) ). Could something be hacked together with CoinSwap?

I don't think so.

The threshold sig stuff sounds pretty far along; for now 15/20 isn't such a bad limitation IMO.

I agree. But no one except Eligius is accepting more than 3 right?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: Peter Todd on March 07, 2014, 04:23:01 PM
I agree. But no one except Eligius is accepting more than 3 right?

Actually no! P2SH doesn't have an explicit limitations beyond the 520byte P2SH redeemScript limit, and more importantly the 500-byte scriptSig limit for IsStandard() transactions, so n and m just need to fit within that. Try it!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: waxwing on March 07, 2014, 05:05:45 PM
I agree. But no one except Eligius is accepting more than 3 right?

Actually no! P2SH doesn't have an explicit limitations beyond the 520byte P2SH redeemScript limit, and more importantly the 500-byte scriptSig limit for IsStandard() transactions, so n and m just need to fit within that. Try it!

Thanks for the tip. Will do :)

Edit: actually before I go through all that ... doesn't this mean it won't work?:
Code:
bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType)
{
    vector<valtype> vSolutions;
    if (!Solver(scriptPubKey, whichType, vSolutions))
        return false;

    if (whichType == TX_MULTISIG)
    {
        unsigned char m = vSolutions.front()[0];
        unsigned char n = vSolutions.back()[0];
        // Support up to x-of-3 multisig txns as standard
        if (n < 1 || n > 3)
            return false;
        if (m < 1 || m > n)
            return false;
    }

    return whichType != TX_NONSTANDARD;
}

?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: Peter Todd on March 07, 2014, 06:16:42 PM
I agree. But no one except Eligius is accepting more than 3 right?

Actually no! P2SH doesn't have an explicit limitations beyond the 520byte P2SH redeemScript limit, and more importantly the 500-byte scriptSig limit for IsStandard() transactions, so n and m just need to fit within that. Try it!

Thanks for the tip. Will do :)

Edit: actually before I go through all that ... doesn't this mean it won't work?:
Code:
bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType)
{
    vector<valtype> vSolutions;
    if (!Solver(scriptPubKey, whichType, vSolutions))
        return false;

    if (whichType == TX_MULTISIG)
    {
        unsigned char m = vSolutions.front()[0];
        unsigned char n = vSolutions.back()[0];
        // Support up to x-of-3 multisig txns as standard
        if (n < 1 || n > 3)
            return false;
        if (m < 1 || m > n)
            return false;
    }

    return whichType != TX_NONSTANDARD;
}

?

Nope - ask yourself if a P2SH output matches that code. Also ask yourself what the code path is that evaluates scriptSigs for standardness.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: waxwing on March 07, 2014, 08:50:42 PM
Nope - ask yourself if a P2SH output matches that code. Also ask yourself what the code path is that evaluates scriptSigs for standardness.

Cool I managed to do 3 of 4 via an electrum server.

Many thanks for the edumacation :D

Not quite yet capable of figuring it out from the source; but will try to follow your hints at some point...


Title: Re: Multi Signature Address Script and Escrow Service
Post by: chriswilmer on March 08, 2014, 06:18:43 PM
Just discovered this... AWESOME!!!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: chriswilmer on March 08, 2014, 06:26:29 PM
I have a feature request...

... I'd like to be able to use this script on an offline computer... but right now it checks the balance of the multisig address and won't let me generate a transaction if it think that address has a zero balance. If I'm not online, I'm not sure if it would let me generate a transaction or not... any tips or workarounds?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: chriswilmer on March 08, 2014, 06:57:20 PM
I have a feature request...

... I'd like to be able to use this script on an offline computer... but right now it checks the balance of the multisig address and won't let me generate a transaction if it think that address has a zero balance. If I'm not online, I'm not sure if it would let me generate a transaction or not... any tips or workarounds?

I'll probably just edit the source code locally for what I want... but, for what it's worth, I think other people may want to run this on an offline computer too.

Just made my first successful multisignature transaction with this. Pretty sweet.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: fireduck on March 10, 2014, 05:38:54 PM
Thanks for doing this important work for Bitcoin.  I think tools like this are really important to keeping things accessible and useful.

https://blockchain.info/tx/edd6cac670dd5ac99016dff17025faa8a953b6df59ed37ac9ffbbaeb7c2c1939

Feature request: Signed release notes

I don't think it is necessary to do what is being done with bitaddress.org (single source file with checksum built into filename) but a signed release would be cool.

A simple version log simple like:

--- Version 0.1 2014.03.10 ----
: sha1sum index.html js/* css/*
217379fdde1e208fcebef231e4e45af87db108cc  index.html
add6e1cd5358e701748df05d27b1ea12242ea2bd  js/bitcoinjs-min.js
66c84a3b3549a33997247e1f8032f172453682d3  js/bootstrap.js
15a81fe4074f920898e98b1b42cf11bda26da0a8  js/bootstrap.min.js
ae49e56999d82802727455f0ba83b63acd90a22b  js/jquery-1.9.1.min.js
64ccd2fa29f517043101a651845a3e73e29fd2db  css/bootstrap.css
ff1c6a04dd80cba8521a850cae728abb41ea9ef3  css/bootstrap.min.css
95d87b7b04ee6dd10a855127ea1bcfa75afdeada  css/bootstrap-theme.css
3b38955d745c3fa36017f3cb7d72ceb18c587e66  css/bootstrap-theme.min.css
8297b8f4d686ec6c65981077514975e06ce41812  css/style.css

In this version, angry wombats should no longer plague users.  Also, badger mode is enabled by default as it is very popular.




Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on March 11, 2014, 10:59:41 AM
Thanks for doing this important work for Bitcoin.  I think tools like this are really important to keeping things accessible and useful.

https://blockchain.info/tx/edd6cac670dd5ac99016dff17025faa8a953b6df59ed37ac9ffbbaeb7c2c1939

Feature request: Signed release notes

I don't think it is necessary to do what is being done with bitaddress.org (single source file with checksum built into filename) but a signed release would be cool.

A simple version log simple like:

--- Version 0.1 2014.03.10 ----
: sha1sum index.html js/* css/*
217379fdde1e208fcebef231e4e45af87db108cc  index.html
add6e1cd5358e701748df05d27b1ea12242ea2bd  js/bitcoinjs-min.js
66c84a3b3549a33997247e1f8032f172453682d3  js/bootstrap.js
15a81fe4074f920898e98b1b42cf11bda26da0a8  js/bootstrap.min.js
ae49e56999d82802727455f0ba83b63acd90a22b  js/jquery-1.9.1.min.js
64ccd2fa29f517043101a651845a3e73e29fd2db  css/bootstrap.css
ff1c6a04dd80cba8521a850cae728abb41ea9ef3  css/bootstrap.min.css
95d87b7b04ee6dd10a855127ea1bcfa75afdeada  css/bootstrap-theme.css
3b38955d745c3fa36017f3cb7d72ceb18c587e66  css/bootstrap-theme.min.css
8297b8f4d686ec6c65981077514975e06ce41812  css/style.css

In this version, angry wombats should no longer plague users.  Also, badger mode is enabled by default as it is very popular.


Thanks, I'm glad you like the project, and thanks for the tip, very grateful.

I will happily include a checksum log with any future updates, good suggestion!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on March 11, 2014, 01:52:18 PM
I have a feature request...

... I'd like to be able to use this script on an offline computer... but right now it checks the balance of the multisig address and won't let me generate a transaction if it think that address has a zero balance. If I'm not online, I'm not sure if it would let me generate a transaction or not... any tips or workarounds?

I'll probably just edit the source code locally for what I want... but, for what it's worth, I think other people may want to run this on an offline computer too.

Just made my first successful multisignature transaction with this. Pretty sweet.

I will have a think about this feature and consider adding it to the next update.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: chriswilmer on March 11, 2014, 03:05:59 PM
I have a feature request...

... I'd like to be able to use this script on an offline computer... but right now it checks the balance of the multisig address and won't let me generate a transaction if it think that address has a zero balance. If I'm not online, I'm not sure if it would let me generate a transaction or not... any tips or workarounds?

I'll probably just edit the source code locally for what I want... but, for what it's worth, I think other people may want to run this on an offline computer too.

Just made my first successful multisignature transaction with this. Pretty sweet.

I will have a think about this feature and consider adding it to the next update.

I'll make sure to donate if you do ;)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: americandesi on March 14, 2014, 03:05:09 AM
Very nice implementation. Watching it.
I have a a couple of quick questions if someone can clarify.

1) What are the requirements / pre-requisite softwares or client that is required to be running on the server to implement it.

2) On coinb.in/multisig i see that there is a 1% Agent fee option. How does that work? Is it like as soon as the multi-address is funded, the 1% fee is sent to OutCast3k's (or any agent's) bitcoin address.?

Thanks,


Title: Re: Multi Signature Address Script and Escrow Service
Post by: chriswilmer on March 20, 2014, 11:29:10 PM
Do 3 of 4 transactions work? Somebody told me that miners won't mine them...

EDIT: Nevermind, just did a 3 of 4 transaction that was mined successfully. Great!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: WiW on March 23, 2014, 05:37:58 PM
Trying to figure out how the signature process works (so far only getting rejections). Do I broadcast signed(txn,key1)+signed(txn,key2) or do I broadcast signed(signed(txn,key1),key2)?

Was about to offer a bounty for someone to do this... Thanks!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: chriswilmer on March 23, 2014, 05:47:17 PM
Trying to figure out how the signature process works (so far only getting rejections). Do I broadcast signed(txn,key1)+signed(txn,key2) or do I broadcast signed(signed(txn,key1),key2)?

Was about to offer a bounty for someone to do this... Thanks!

The second one.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: WiW on March 23, 2014, 11:05:15 PM
My 3 of 5 is being rejected... The "verify script" shows all in order. Blockchain.info pushtx:
Quote
Script not of right size, expecting 2 but got 5


Title: Re: Multi Signature Address Script and Escrow Service
Post by: chriswilmer on March 23, 2014, 11:30:11 PM
My 3 of 5 is being rejected... The "verify script" shows all in order. Blockchain.info pushtx:
Quote
Script not of right size, expecting 2 but got 5

I couldn't use Blockchain.info's pushtx for this. *shrugs*

I just used the one on OPs website.



Title: Re: Multi Signature Address Script and Escrow Service
Post by: WiW on March 24, 2014, 12:02:43 AM
My 3 of 5 is being rejected... The "verify script" shows all in order. Blockchain.info pushtx:
Quote
Script not of right size, expecting 2 but got 5

I couldn't use Blockchain.info's pushtx for this. *shrugs*

I just used the one on OPs website.



Coinb.in is also failing... I also just tried a 3 of 4...

Edit: I was running the multisig locally, maybe that's why it failed (doesn't explain why blockchain.info failed...) - it worked on the site. Let's see if it gets into the blockchain.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: chriswilmer on March 24, 2014, 12:06:04 AM
My 3 of 5 is being rejected... The "verify script" shows all in order. Blockchain.info pushtx:
Quote
Script not of right size, expecting 2 but got 5

I couldn't use Blockchain.info's pushtx for this. *shrugs*

I just used the one on OPs website.



Coinb.in is also failing... I also just tried a 3 of 4...

3 of 4 worked fine for me... note that if you try to resubmit the same transaction it will say your txn is invalid.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: WiW on March 24, 2014, 12:14:11 AM
My 3 of 5 is being rejected... The "verify script" shows all in order. Blockchain.info pushtx:
Quote
Script not of right size, expecting 2 but got 5

I couldn't use Blockchain.info's pushtx for this. *shrugs*

I just used the one on OPs website.



Coinb.in is also failing... I also just tried a 3 of 4...

3 of 4 worked fine for me... note that if you try to resubmit the same transaction it will say your txn is invalid.

My 3 of 4 just got confirmations. 3 of 5 still being rejected by both coinb.in and blockchain.info.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: chriswilmer on March 24, 2014, 12:21:13 AM
My 3 of 5 is being rejected... The "verify script" shows all in order. Blockchain.info pushtx:
Quote
Script not of right size, expecting 2 but got 5

I couldn't use Blockchain.info's pushtx for this. *shrugs*

I just used the one on OPs website.



Coinb.in is also failing... I also just tried a 3 of 4...

3 of 4 worked fine for me... note that if you try to resubmit the same transaction it will say your txn is invalid.

My 3 of 4 just got confirmations. 3 of 5 still being rejected by both coinb.in and blockchain.info.

It might be over 500 bytes... in which case (I'm told) it won't get confirmed by anyone.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: WiW on March 24, 2014, 04:41:57 AM
It might be over 500 bytes... in which case (I'm told) it won't get confirmed by anyone.

Confirmed 3 of 4 txn, 577 bytes.
https://blockchain.info/tx/ec680affe2d8f8c846e6906a0a16f99c32d931a32fc38b60caf48f057cf99915


Title: Re: Multi Signature Address Script and Escrow Service
Post by: softron on March 24, 2014, 06:31:49 AM
How do i create multisig address with bitcoinqt


Title: Re: Multi Signature Address Script and Escrow Service
Post by: Aleksei Richards on April 01, 2014, 08:18:36 AM
Great work. Any plans to integrate this into bitcoinjs ?

Or is it possible to get a look at the JS non-minimised ?

Thanks.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on April 06, 2014, 02:02:02 PM
I've made a few changes to improve usability and fixed a couple of small bugs.

The biggest change I've made is an update for those wanting to manipulate the transaction inputs, so let me know how you get on - any suggestions are most welcome.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: americandesi on April 06, 2014, 03:00:41 PM
I've made a few changes to improve usability and fixed a couple of small bugs.

The biggest change I've made is an update for those wanting to manipulate the the transaction inputs, so let me know how you get on - any suggestions are most welcome.

Thanks mate. I had sent you a PM a few days ago. Kindly have a look and appreciate if you could reply.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: malevolent on April 06, 2014, 05:25:55 PM
It might be over 500 bytes... in which case (I'm told) it won't get confirmed by anyone.

500 bytes is only for the scriptSig to pass the IsStandard() check.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: yiidev on April 08, 2014, 04:13:29 PM
Is the service currently operational?

I noticed that on your site, you currently have this message up:
We're currently experiecing some techincal issues. Service will return to normal shortly. Sorry for any inconvenience caused.

I was trying to test this functionality out, I do not believe I can currently complete a transaction.  When I attempt to "Sign" - nothing happens.  It just sits there - am I doing something wrong?

I was able to create the multi-sig address, and I was able to send a small amount of BTC to this address.  Now I am trying to sign the transaction and release the funds.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on April 08, 2014, 09:20:44 PM
Is the service currently operational?

I noticed that on your site, you currently have this message up:
We're currently experiecing some techincal issues. Service will return to normal shortly. Sorry for any inconvenience caused.

Yes the mutlisig part of the site is fully operational.

I was trying to test this functionality out, I do not believe I can currently complete a transaction.  When I attempt to "Sign" - nothing happens.  It just sits there - am I doing something wrong?

I was able to create the multi-sig address, and I was able to send a small amount of BTC to this address.  Now I am trying to sign the transaction and release the funds.

I've just tested it and it works, what browser are you using?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: TierNolan on April 09, 2014, 09:38:35 AM
Actually no! P2SH doesn't have an explicit limitations beyond the 520byte P2SH redeemScript limit, and more importantly the 500-byte scriptSig limit for IsStandard() transactions, so n and m just need to fit within that. Try it!

Does this mean that the reference client hasn't implemented the BIP as stated?  It is supposed to verify that the serialized script is standard, right?

Is the issue that the isStandard() only checks the scriptPub and the serialized script is in the scriptSig?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: waxwing on April 09, 2014, 10:42:54 AM
Actually no! P2SH doesn't have an explicit limitations beyond the 520byte P2SH redeemScript limit, and more importantly the 500-byte scriptSig limit for IsStandard() transactions, so n and m just need to fit within that. Try it!

Does this mean that the reference client hasn't implemented the BIP as stated?  It is supposed to verify that the serialized script is standard, right?

Is the issue that the isStandard() only checks the scriptPub and the serialized script is in the scriptSig?
The 520 byte limit for the redeemscript is "absolute" (not depending on isStandard()). ie your m signatures plus your n pubkeys plus a few bytes must be less than 520.

The 500 byte limit for the whole scriptSig is an isStandard() rule, and so you can send out transactions which violate this limit via for example Eligius. Or, at least, you *may* be able to.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: TierNolan on April 09, 2014, 11:06:27 AM
The 520 byte limit for the redeemscript is "absolute" (not depending on isStandard()). ie your m signatures plus your n pubkeys plus a few bytes must be less than 520.

The 500 byte limit for the whole scriptSig is an isStandard() rule, and so you can send out transactions which violate this limit via for example Eligius. Or, at least, you *may* be able to.

My question was about the contents of the serialized script in the p2sh.  It sounds like that doesn't actually have to be a standard script (unlike what the BIP says).


Title: Re: Multi Signature Address Script and Escrow Service
Post by: waxwing on April 09, 2014, 11:43:02 AM
The 520 byte limit for the redeemscript is "absolute" (not depending on isStandard()). ie your m signatures plus your n pubkeys plus a few bytes must be less than 520.

The 500 byte limit for the whole scriptSig is an isStandard() rule, and so you can send out transactions which violate this limit via for example Eligius. Or, at least, you *may* be able to.

My question was about the contents of the serialized script in the p2sh.  It sounds like that doesn't actually have to be a standard script (unlike what the BIP says).

The contents of the redeemscript/serialized script is M pubkey pubkey ... N OP_CHECKMULTISIG.
I presume this is 'standard' in the sense that this is the form of the pre-p2sh "raw" multisig script.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: TierNolan on April 09, 2014, 01:52:37 PM
The contents of the redeemscript/serialized script is M pubkey pubkey ... N OP_CHECKMULTISIG.
I presume this is 'standard' in the sense that this is the form of the pre-p2sh "raw" multisig script.

The question was why you can have more than 3 keys for multi-sig, if you use P2SH.  It is supposed to check the serialized script that hashes to the hash, and make sure that is standard too.

This check is obviously not made with P2SH for multisig.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: fbueller on April 10, 2014, 09:19:12 PM
So, I'm testing Coinb.in against Bitwasp, since clients can't really support P2SH. I've rigorously tested it against bitcoind which works fine. I love the idea of a JS tool to sign these transactions, but I'm having difficulty with a transaction. Coinb.in seems to be replacing the signature added by the first signer, rather than just adding the second?

I created 3Cmsk15NRXapShxZktkCRFfC7ef9Y9ecnw, with this redeemScript:
Code:
5221031174b9ebf4014181289a3923d6d17205a25808dbd6397bc747e0a5631948adc741043ce7c793baf8aec463114411d685b2ebb27e4b4b578543d82bba5c36e17e3950bef11cb1838c9cdb2323db12ac1c132f2aaba10cfc0b3b1528affe507436c5fc41048bff65f68fad7a6519dd8b6f9232e0ce2e39ad9df9fd1c46a26ebabfd915a7257d3fa34d90f0b02e2ddf1e954f0200037834f7987934ce096999b073eb9d4ef053ae

The first key came from bitcoind, the second from coinbin (private key: 5HwKMWwMpdM5vU62K6zMJjse3ZGWUntZbz1W6UdgWySs3MAaEpD), the deterministically derived from electrum.

I created the following raw transaction spending it to two outputs:
Code:
010000000149306d4e998d629471a261e23593aa96f06e37faf9f29a773032fe01fb3ab84e0000000000ffffffff0210270000000000001976a91463bdd38a5e555ad7c775a64139420ba302201c2d88ac204e0000000000001976a914e3ad4cf590cd02b629ca5e65ed8f27d499edefde88ac00000000

I signed it in bitcoind (the first key in the redeemScript), then took the transaction to Coinbin, loaded the verify tab, it confirmed 1 of 2 needed signatures were there:
010000000149306d4e998d629471a261e23593aa96f06e37faf9f29a773032fe01fb3ab84e00000 000f400473044022041e3be1f1f5b2df1504219d45199b02822940885e347354b392e8d638a304dfe02200b3 80ed825e2b82bcdebdf8986ceb58e90de7f0dca73185c491b174cbd3502c9014ca95221031174b9ebf4014181289a3923d6d17205a25808dbd6397bc747e0a5631948adc741043 ce7c793baf8aec463114411d685b2ebb27e4b4b578543d82bba5c36e17e3950bef11cb1838c9cdb 2323db12ac1c132f2aaba10cfc0b3b1528affe507436c5fc41048bff65f68fad7a6519dd8b6f923 2e0ce2e39ad9df9fd1c46a26ebabfd915a7257d3fa34d90f0b02e2ddf1e954f0200037834f79879 34ce096999b073eb9d4ef053aeffffffff0210270000000000001976a91463bdd38a5e555ad7c77 5a64139420ba302201c2d88ac204e0000000000001976a914e3ad4cf590cd02b629ca5e65ed8f27 d499edefde88ac00000000

So I copied the private key from the Bitcoin Keys tab, to the Sign tab, as well as the above transaction. I clicked sign, and up pops:
010000000149306d4e998d629471a261e23593aa96f06e37faf9f29a773032fe01fb3ab84e00000 000f4004730440220588e2a0e528e6545cc1650bf608ca92a2eacb6cd2e8ff6e051d1206770672b11022074e 0fd24e9c352ace7112feff2e1c9bd456162760a16a30e3a947bfce44ccd06014ca95221031174b9ebf4014181289a3923d6d17205a25808dbd6397bc747e0a5631948adc741043 ce7c793baf8aec463114411d685b2ebb27e4b4b578543d82bba5c36e17e3950bef11cb1838c9cdb 2323db12ac1c132f2aaba10cfc0b3b1528affe507436c5fc41048bff65f68fad7a6519dd8b6f923 2e0ce2e39ad9df9fd1c46a26ebabfd915a7257d3fa34d90f0b02e2ddf1e954f0200037834f79879 34ce096999b073eb9d4ef053aeffffffff0210270000000000001976a91463bdd38a5e555ad7c77 5a64139420ba302201c2d88ac204e0000000000001976a914e3ad4cf590cd02b629ca5e65ed8f27 d499edefde88ac00000000

Which when passed to the Verify tab says only one signature is added, as highlighted above, and it's different to the one I added. There's an implicit reward here for anyone who can help..


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on April 10, 2014, 09:23:14 PM
So, I'm testing Coinb.in against Bitwasp, since clients can't really support P2SH. I've rigorously tested it against bitcoind which works fine. I love the idea of a JS tool to sign these transactions, but I'm having difficulty with a transaction. Coinb.in seems to be replacing the signature added by the first signer, rather than just adding the second?

Will run a few tests now..

*edit* my test case worked fine. what browser are you working with?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: fbueller on April 10, 2014, 09:40:00 PM
Will run a few tests now..

*edit* my test case worked fine. what browser are you working with?

I'm using Chrome on Windows. My linux netbook can't handle that page for some reason, the script becomes unresponsive (debian, iceweasel, 2gb ram), so I did it here. I'll download firefox for windows and try that.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on April 11, 2014, 10:34:23 AM
Will run a few tests now..

*edit* my test case worked fine. what browser are you working with?

I'm using Chrome on Windows. My linux netbook can't handle that page for some reason, the script becomes unresponsive (debian, iceweasel, 2gb ram), so I did it here. I'll download firefox for windows and try that.

I've made a couple of tweaks to the source code which should decrease the load when attempting to sign, so let me know if your netbook handles it any better.

What version of chrome are you using? How did you get on with firefox?

My tests cases:

https://blockchain.info/tx/652724841d5feea4a80c01225577ed012bef80634e033cd1f2a33a937eeaa2fb

https://blockchain.info/tx/63093ac0911672afb041763d68edca6815952accda98b95dfec5cb96cd1ea129


Title: Re: Multi Signature Address Script and Escrow Service
Post by: fbueller on April 11, 2014, 11:17:35 AM
I've made a couple of tweaks to the source code which should decrease the load when attempting to sign, so let me know if your netbook handles it any better.

What version of chrome are you using? How did you get on with firefox?

My tests cases:

https://blockchain.info/tx/652724841d5feea4a80c01225577ed012bef80634e033cd1f2a33a937eeaa2fb

https://blockchain.info/tx/63093ac0911672afb041763d68edca6815952accda98b95dfec5cb96cd1ea129

Awesome, cheers.

I tried it again on Chrome. Trying to sign the partially signed transaction just yields a transaction with one different signature.
I tried with the unsigned transaction, and that failed too.

One thing that could be causing trouble is that I'm using one compressed keys, I notice it asks for them to be uncompressed when you're entering them? But, then again, the key I'm having trouble signed with came from Coinb.in.

Have you tried signing the transaction I pasted? I've used Coinbin before, and been telling a lot of people about it.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on April 11, 2014, 03:19:32 PM
Awesome, cheers.

I tried it again on Chrome. Trying to sign the partially signed transaction just yields a transaction with one different signature.
I tried with the unsigned transaction, and that failed too.

One thing that could be causing trouble is that I'm using one compressed keys, I notice it asks for them to be uncompressed when you're entering them? But, then again, the key I'm having trouble signed with came from Coinb.in.

Have you tried signing the transaction I pasted? I've used Coinbin before, and been telling a lot of people about it.

As I'm sure you are aware; signatures must be added to the 'scriptSig' in the same order the 'public keys' are found in the 'redeem script', because of this signatures aren't simply inserted to the scriptSig, they are rebuilt. The code for this is here:

Code:
var pubkeyList = scriptListPubkey(redeemScript);
var sigsList = scriptListSigs(o.script);
sigsList[countObject(sigsList)+1] = signature;
for(x in pubkeyList){
for(y in sigsList){
if(Bitcoin.ECDSA.verify(sighash, sigsList[y], pubkeyList[x])){
s.writeBytes(sigsList[y]);
}
}
}

So, I suspect when the Bitcoin.ECDSA.verify() function is called it fails to validate your signature against a public key because its the wrong kind. (i.e. its compressed when it should be uncompressed) This means its not re-added.

I'm not sure how you'd fix this exactly, but I will have a think.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: fbueller on April 11, 2014, 10:06:20 PM

As I'm sure you are aware; signatures must be added to the 'scriptSig' in the same order the 'public keys' are found in the 'redeem script', because of this signatures aren't simply inserted to the scriptSig, they are rebuilt. The code for this is here:

Code:
var pubkeyList = scriptListPubkey(redeemScript);
var sigsList = scriptListSigs(o.script);
sigsList[countObject(sigsList)+1] = signature;
for(x in pubkeyList){
for(y in sigsList){
if(Bitcoin.ECDSA.verify(sighash, sigsList[y], pubkeyList[x])){
s.writeBytes(sigsList[y]);
}
}
}

So, I suspect when the Bitcoin.ECDSA.verify() function is called it fails to validate your signature against a public key because its the wrong kind. (i.e. its compressed when it should be uncompressed) This means its not re-added.

I'm not sure how you'd fix this exactly, but I will have a think.

Ah interesting. I didn't know they had to have a particular order. While you can't just change the public keys in the redeemScript, could scriptListPubkey() decompress public keys as they're encountered? I'm guessing elsewhere it expects them to be uncompressed too to have easy access to the full key.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: fbueller on April 16, 2014, 08:30:26 AM
Any further thoughts on this? Every client that upgrades to BIP0032 will not be able to use your service, and right now, bitcoind (the only to work with P2SH) returns compressed keys and will not work with your site.

In fact I realize now why it worked before but not now. Back then I created the address with all uncompressed keys! But this is unrealistic right now.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: arorts on April 17, 2014, 02:14:20 AM
BTW, does anyone know how to import a multi-signature wallet (which requires at least 2 out of 3 keys for basic multi signature)?

I've seen this command in the console but it seems to accept only one private key! How to specify the second, third, etc??

importprivkey <litecoinprivkey> [label] [rescan=true]

Anyone?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: gweedo on April 17, 2014, 03:08:24 AM
BTW, does anyone know how to import a multi-signature wallet (which requires at least 2 out of 3 keys for basic multi signature)?

I've seen this command in the console but it seems to accept only one private key! How to specify the second, third, etc??

importprivkey <litecoinprivkey> [label] [rescan=true]

Anyone?

addmultisigaddress


Title: Re: Multi Signature Address Script and Escrow Service
Post by: americandesi on April 22, 2014, 12:34:39 PM
Quick question.! Do I have to run my own bitcoind client on the server to be able to run this script.?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on April 22, 2014, 12:45:13 PM
Quick question.! Do I have to run my own bitcoind client on the server to be able to run this script.?

No, its not required.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: michaelpaulson on April 23, 2014, 12:22:12 AM
good job with this. it's very useful. i'll be sending a donation your way shortly.

is there anyway we can modify the script to bypass the requirement of being online for the transaction creation (i believe it looks up your balance)? I would like to use this offline.

Thanks!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: fbueller on April 23, 2014, 12:29:53 AM
I don't mean to nag, but is there any sign of upcoming support for compressed keys? I think it's pretty vital, as when any party to a multisig address uses a key from bitcoind, or electrum from the next release on, will encounter the issue I had with the scriptSig reconstruction (leaving out all signatures where the key was compressed).


Title: Re: Multi Signature Address Script and Escrow Service
Post by: imicaihi on May 16, 2014, 03:25:43 PM
Great work on this!

I've tried the service and a 2of3 worked great.
however, I tried something that I actually need right now in the form of a 6-of-10 and... no go :(
Getting a tx rejected -22 and log error says "nonstandard transaction: scriptsig-size" which I assume relates to the 500b limit mentioned earlier in the thread.
Is there a way to make this work?
Reading around in some other discussions I saw being mentioned that even a 15 of 15 should work, so I'm a bit confused as to why 6 of 10 doesn't.

Also OutCast, on a side note, it would be really great if you could provide the non-minified bitcoinjs code (either as a download here or in the git repo) as part of the opensource approach.


Thanks! :)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: imicaihi on May 16, 2014, 10:33:47 PM
as a followup - I just tried doing a manual multisig transaction of a 6 of 10, using only compressed pub keys in the latest bitcoin core, but still getting tx rejected 22. the script is somewhat shorter than with the non-compressed, but definitely not by a huge amount.

Any ideas on how to get this to work?
I've seen people saying that with compressed pub keys even a 15 of 15 could fit within the 520b limit, so what am I missing here?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: waxwing on May 17, 2014, 12:42:46 PM
as a followup - I just tried doing a manual multisig transaction of a 6 of 10, using only compressed pub keys in the latest bitcoin core, but still getting tx rejected 22. the script is somewhat shorter than with the non-compressed, but definitely not by a huge amount.

Any ideas on how to get this to work?
I've seen people saying that with compressed pub keys even a 15 of 15 could fit within the 520b limit, so what am I missing here?

Hi, I'm guessing you're the same guy as I spoke with on reddit? the answer is still: use Eligius. 6 of 10 is not standard (exceeds 500 limit). Was there some aspect of that explanation that didn't make sense? (Unless it wasn't you, in which case, sorry).


Title: Re: Multi Signature Address Script and Escrow Service
Post by: jobijo on May 19, 2014, 01:27:57 PM
Hi

This is very cool.
However, I don't understand everything.

Can someone make a complete tutorial for the average user to make simple 2of3 transactions?

Some questions:
- what is a redeem script?
- what should we put in that field?
- can't there be some simplifications like predifined 2of3 addresses and transactions?
- in  the transaction, what should I use as inputs?

Sorry for so many questions.
It would be so great if it could be usable by average users!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: jobijo on May 19, 2014, 04:26:51 PM
I finally could test succesfuly with real money.
answering my own questions: the redeem script is given when you create the multisig address.
It's quite simple!!

Have made a tutorial in french.
Will translate it in english and post here.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: jobijo on May 20, 2014, 09:19:45 AM
A few remarks:

There seem to be a bug: in both "create transaction" and "verify transaction", the input transaction is unknown to blockchain. Is it normal?

Also, in the signing page, could there be a "verify" button or an automatic verify step before the transaction is signed?

I use chome in linux.
In create new transaction, when you paste the redeem script with the middle button, the script is not activated. When you add a space or any caracter (or remove a caracter), the address goes wrong.
There is no check on the redeem script integrity. This can be dangerous I think.
There should be a verify step.

In the verify tab, could you add a "sign" button for transactions, or a "create transaction" for a redeem script? This would simplify the whole process.

Thanks for reading


Title: Re: Multi Signature Address Script and Escrow Service
Post by: lucserre on May 21, 2014, 11:15:51 PM
My 3 of 5 is being rejected... The "verify script" shows all in order. Blockchain.info pushtx:
Quote
Script not of right size, expecting 2 but got 5

I couldn't use Blockchain.info's pushtx for this. *shrugs*

I just used the one on OPs website.



Coinb.in is also failing... I also just tried a 3 of 4...

3 of 4 worked fine for me... note that if you try to resubmit the same transaction it will say your txn is invalid.

My 3 of 4 just got confirmations. 3 of 5 still being rejected by both coinb.in and blockchain.info.

It might be over 500 bytes... in which case (I'm told) it won't get confirmed by anyone.

The same thing is happening to me -   the 3-of-5 isn't working.  I had a 2-of-3 work just fine this morning, but this afternoon, there is no way to get the 3-of-5 to work.  Is coinbin not coding the transactions correctly? (Tried with blockchain.info to push too)
Is my money lost for ever??? (  :-\ Thanks coinb.in...)  I hope that is not the case...
Thanks,
-Luc


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on May 22, 2014, 10:57:57 AM
The same thing is happening to me -   the 3-of-5 isn't working.  I had a 2-of-3 work just fine this morning, but this afternoon, there is no way to get the 3-of-5 to work.  Is coinbin not coding the transactions correctly? (Tried with blockchain.info to push too)
Is my money lost for ever??? (  :-\ Thanks coinb.in...)  I hope that is not the case...
Thanks,
-Luc

The hex encoded transaction you have given me via email appears to use non existent transaction IDs, as I've explained back to you. I don't think your money is lost, but if you could try again and note down each step you take, and the output and then contact me if it fails.

I finally could test succesfuly with real money.
answering my own questions: the redeem script is given when you create the multisig address.
It's quite simple!!

Have made a tutorial in french.
Will translate it in english and post here.

Thanks, glad you liked it.

Great work on this!

I've tried the service and a 2of3 worked great.
however, I tried something that I actually need right now in the form of a 6-of-10 and... no go :(
Getting a tx rejected -22 and log error says "nonstandard transaction: scriptsig-size" which I assume relates to the 500b limit mentioned earlier in the thread.
Is there a way to make this work?
Reading around in some other discussions I saw being mentioned that even a 15 of 15 should work, so I'm a bit confused as to why 6 of 10 doesn't.

Also OutCast, on a side note, it would be really great if you could provide the non-minified bitcoinjs code (either as a download here or in the git repo) as part of the opensource approach.


Thanks! :)

Can you drop me a email with the details, and i'll take a look. I'm not sure right now.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: dexX7 on May 22, 2014, 11:28:39 AM
Could it be possible that only non compressed public keys are allowed to be added during the multisig creation?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: lucserre on May 22, 2014, 12:47:24 PM
The same thing is happening to me -   the 3-of-5 isn't working.  I had a 2-of-3 work just fine this morning, but this afternoon, there is no way to get the 3-of-5 to work.  Is coinbin not coding the transactions correctly? (Tried with blockchain.info to push too)
Is my money lost for ever??? (  :-\ Thanks coinb.in...)  I hope that is not the case...
Thanks,
-Luc

The hex encoded transaction you have given me via email appears to use non existent transaction IDs, as I've explained back to you. I don't think your money is lost, but if you could try again and note down each step you take, and the output and then contact me if it fails.
Thanks for reply. I think I know why.  When I put my RedeemScript in your area to construct the transaction, it shows me the three inputs, but the numbers are mixed up.
For example, the first one you listed from the decode transaction section is: 3fbd...120a   but is listed like this in the construct transaction section: 0a12...bd3f.
It looks like the 8 bit groupings are grouped together, but in some sort of reverse order (0a is at the start in one, and at the end in the other).
Correct me if I'm wrong, but it looks like (to me) there is an error somewhere in your code that flipped the txid's. ?
Is this a little-endian/big-endian thing?
I'm not sure why it would have worked for 2-of-3 but now for 3-of-5 it's being encoded differently?
-Luc


Title: Re: Multi Signature Address Script and Escrow Service
Post by: queptiv on May 22, 2014, 12:48:00 PM
summary of how this works?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: devthedev on May 22, 2014, 12:50:45 PM
summary of how this works?

The page uses javascript to generate a multi signature address (https://en.bitcoin.it/wiki/Address#Multi-signature_addresses), the buyer sends the funds to the address. Once the agreement between all parties has completed a transaction can be created using the redeem script which is then signed by the participants. You can then broadcast the signed transaction into the network, releasing the funds to the chosen address.
Posted from Bitcointa.lk - #puVNlkBcvhsA7bDq


Title: Re: Multi Signature Address Script and Escrow Service
Post by: fbueller on May 22, 2014, 02:05:21 PM
Could it be possible that only non compressed public keys are allowed to be added during the multisig creation?

Yes. It will also 'forget' signatures added by compressed public keys. Makes it useless when everyone uses compressed already..


Title: Re: Multi Signature Address Script and Escrow Service
Post by: elbill on June 28, 2014, 02:41:04 AM
It's down :(


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on June 28, 2014, 12:50:58 PM
It's down :(

Will be back up soon, sorry about this. Some jerk is ddosing the server, and demanding he's paid X amount of bitcoins before he stops. As if!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: froggyfeels on July 17, 2014, 03:58:42 PM
Will this be coming back?
Looks like an SSL error, I remember getting onto the site fine before, and then there was the ddos attack, it looks like something else is wrong now.
I would like to try it on testnet.
Hope to see this project continue on.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ABISprotocol on July 18, 2014, 06:58:48 AM
Will this be coming back?
Looks like an SSL error, I remember getting onto the site fine before, and then there was the ddos attack, it looks like something else is wrong now.
I would like to try it on testnet.
Hope to see this project continue on.


Just go here:

https://rawgit.com/OutCast3k/bitcoin-multisig/master/index.html

(The other page has some problem atm)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: froggyfeels on July 19, 2014, 08:26:55 AM
Thank you for the link bro!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: utdrmac on August 05, 2014, 08:53:35 PM
Hope people are still monitoring this topic.

I'm attempting to test this out and not having much success. I used two of my own existing addressed to do the test so I can't/won't provide my private keys. Here are the steps I took:

1. New MultiSig Address. Testing a 2-2.
2. Got this multisig address: 3BubMVeGDzvhZyJ1iCS8vpjKgDSfT18Dh1
3. Sent some btc from addr1 to the multisig. This worked (https://blockchain.info/address/3BubMVeGDzvhZyJ1iCS8vpjKgDSfT18Dh1).
4. Verified the redeem script. Says 2 signatures from both public keys are required.
5. Signed redeem script with private key of addr1
6. Copied the result of #5 back in to the upper field and pasted in private key of addr2
7. Copied the result of #6 in to Verify page. Shows the original transaction id (https://blockchain.info/tx/f6b259dbc1bd4806411bd6ccac3a0b5df8bc0cc2010c4440c68a5b73a13c657c), checkmark for redeem script, minimum number of signers 2 and number of times signed 2. Shows me the correct output address and the amount.
8. Copied the result of #6 in to Broadcast. TX Rejected.
9. Reattempted steps 5-8 using keys in reverse order. Same result.

So now I'm stuck. Not sure what to do.

Thanks!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: mmortal03 on August 20, 2014, 11:11:51 PM
Two things:

1.) I found a typo in the error function on line 955 of index.html: "unspent" is spelled "unpsent". Also, I noticed that the error prompt for there being no funds contained there pops up multiple times -- once per required signature. Shouldn't it just pop up once?

2.) How does this script compare to what Mycelium is doing with their Entropy device? My understanding is that on their multisig paper wallet, on what is printed out, you don't get a redeem script, you just get a multisig public address and however many compressed private keys. Is their method still fully compatible with this script?
Edit: It seems that Mycelium is, instead, using some form of Shamir's Secret Sharing Scheme.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: mmortal03 on August 20, 2014, 11:53:45 PM
this is great! keep up the good work.

* I think it would great to explain the process and concepts in more detail on the site. What is a redeem script?

* say I want to implement the following: pay 0.01 BTC to address #A12 if the year in the timestamp of the last block is equal to 2014. what would it take to make this work?

* btw, the link on the site to your profile is broken. I think you want this: https://bitcointalk.org/index.php?action=profile;u=34834  

Thanks for the feedback :)

You're right, I will defiantly add more information to the site about the process shortly.

A "redeem script" contains 2 pieces of information, the public keys and the minimum number of signatures required to use it as a spendable input. It is also used to generate the multi signature address itself. There should be some information on the bitcoin wiki about this, but I will also add it to the site shortly.

I believe its possible to manipulate the timestamp of the transaction in the way you've requested, although I will need to do a little bit of testing first.

Thanks for pointing out the broken link, I've since fixed it.

What if I lose the redeemScript? is there a way to retrieve it or regenerate it?  If I don't have the RedeemScript, is it still possible to spend the coins given you have the required keys to "unlock" the transaction?

Yes you can regenerate the redeem script.  You cannot lose your multisig address; you can lose some privkeys - as long as you [or your Agents] saved the total number required to sign.  Best to move & back them up securely [pref using thumbdrive & a browser on a computer that has never connected to the internet ever]

How would one regenerate the redeem script when having only 2 of the 3 keys?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ABISprotocol on August 21, 2014, 07:37:29 AM
Hope people are still monitoring this topic.

I'm attempting to test this out and not having much success. I used two of my own existing addressed to do the test so I can't/won't provide my private keys. Here are the steps I took:

1. New MultiSig Address. Testing a 2-2.
2. Got this multisig address: 3BubMVeGDzvhZyJ1iCS8vpjKgDSfT18Dh1
3. Sent some btc from addr1 to the multisig. This worked (https://blockchain.info/address/3BubMVeGDzvhZyJ1iCS8vpjKgDSfT18Dh1).
4. Verified the redeem script. Says 2 signatures from both public keys are required.
5. Signed redeem script with private key of addr1
6. Copied the result of #5 back in to the upper field and pasted in private key of addr2
7. Copied the result of #6 in to Verify page. Shows the original transaction id (https://blockchain.info/tx/f6b259dbc1bd4806411bd6ccac3a0b5df8bc0cc2010c4440c68a5b73a13c657c), checkmark for redeem script, minimum number of signers 2 and number of times signed 2. Shows me the correct output address and the amount.
8. Copied the result of #6 in to Broadcast. TX Rejected.
9. Reattempted steps 5-8 using keys in reverse order. Same result.

So now I'm stuck. Not sure what to do.

Thanks!

1) I suggest you test this with another human rather than with yourself

2) Use this (ensure javascript is not on) https://rawgit.com/OutCast3k/bitcoin-multisig/master/index.html

3) Comments / testing / past reviews of it: Start from here and look at some original tests we did of it - read all comments (note that after some fixes order of signatures no longer will matter as you proceed through)
https://bitcointalk.org/index.php?topic=390046.msg4670505#msg4670505

4) If all else fails, send private message to OutCast3k



Title: Re: Multi Signature Address Script and Escrow Service
Post by: OrenZooz on August 24, 2014, 11:27:10 AM
I am trying to use http://coinb.in/multisig/ to create a transaction.
I keep getting "This address has no available balance to spend" though it has balance .
The address is :369cUZdwYuCf1L987xmMz8ZJZUT1UCWVQf
What I am missing here?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OrenZooz on August 24, 2014, 11:33:42 AM
When using https://rawgit.com/OutCast3k/bitcoin-multisig/master/index.html ..I get " Failed to retrive unspent inputs"
Does the server is down?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ABISprotocol on August 26, 2014, 05:25:50 AM
When using https://rawgit.com/OutCast3k/bitcoin-multisig/master/index.html ..I get " Failed to retrive unspent inputs"
Does the server is down?

Am guessing you took the best path of opening this on Github as a recent open issue.  See #16 at https://github.com/OutCast3k/bitcoin-multisig/issues


Title: Re: Multi Signature Address Script and Escrow Service
Post by: david123 on August 30, 2014, 10:53:57 AM
When using https://rawgit.com/OutCast3k/bitcoin-multisig/master/index.html ..I get " Failed to retrive unspent inputs"
Does the server is down?

Am guessing you took the best path of opening this on Github as a recent open issue.  See #16 at https://github.com/OutCast3k/bitcoin-multisig/issues

I have the same problem. After accepting the error message, I can click on the Multisig address and blockchain.info pops up, showing the right
balance. Still there's no way of creating a transaction..

It's a real escrow with some real money. Not a fortune, but still.. Would be cool if OutCast3k could comment on that.

edit: Alright, I could figure out that the problem is not so much the multisig script, but the fact that the coinb.in API seems not to work properly.
The problem  with the rawgit-Version is that it refers to the https-version of the coinb.in API, which is completely down it seems. One can replace https
by http in the appropriate line, then one gets the  "This address has no available balance to spend" problem. The easiest solution seems to be to
wait until coinb.in is back (if ever) or to use another API (but I don't know if there's something available.. I have no idea about this stuff.)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OrenZooz on August 30, 2014, 08:42:17 PM
Does any one can recommend an alternative multisig utility? 


Title: Re: Multi Signature Address Script and Escrow Service
Post by: HELP.org on August 31, 2014, 01:18:13 AM
Not sure if this is what you are looking for but see https://www.casascius.com/2factor/ for the utility download.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: Vortex20000 on August 31, 2014, 02:23:17 AM
cool idea



Title: Re: Multi Signature Address Script and Escrow Service
Post by: btcdrak on September 17, 2014, 01:05:21 PM
Is the coinb.in/multisig site working properly? It seems to be able to create redeem scripts properly, but the transactions page never seems to find spendable outputs. I wonder if it's API connection is broken?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ABISprotocol on September 19, 2014, 08:50:43 AM
Is the coinb.in/multisig site working properly? It seems to be able to create redeem scripts properly, but the transactions page never seems to find spendable outputs. I wonder if it's API connection is broken?

Indications from recent comments are that it is not working properly, I seem to recall the coinb.in/multisig site was subjected to some attacks and had problems and the github-based site (see my earlier comments in this thread) did not have any problems but then later _did_ have problems for some reason. (server perhaps) however, I am guessing the best thing to do is see if you can raise OutCast3k (careful with the spelling!) on this forum (who shows as last active June 29, 2014), it's possible that btcapparel (also on this forum) may have been in touch with OutCast3k (but probably late last year...) so it is a long shot

I would check here and open an issue:
https://github.com/OutCast3k/bitcoin-multisig
There is an open issue (#16) that already represents the issue described, that is unresolved.  If it remains unresolved one could fork it and develop something new, or look at the other options (CoPay, which is a multisignature tool developed by BitPay, or Armory's multisignature feature - which I'm not sure of the status of those at this time, but I recall they were serious about the development of such).

NOTE--NOTE:
If you (and the other person you co-generate multisignature with) have already used coinb.in/multisig to generate something to which funds can be sent, you should both have written (or typed) down and locked away in a safe place, the following:
pubkey
address
privkey (this is private and should only be known by the individual holding it, by the way, hence the name, privkey!!)
multisig address (this is public and will typically begin with the number three, I think)
redeem script
(Note that there will be a bunch of gobbledygook that will be different for you than it would be for the other party who is a participant in the multisignature transaction, but at the end of it all, when you've gone through the steps, you both have a ton of info which includes, of course, public multisignature address that you can show anyone.)
(Also, do not expose the paper you have all this information on, to Frog Lube, Cosmoline, or any other gunner lube which may happen to be laying around in your safe! - Because if you do it will stain it something awful.)
Have fun out there.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: btcdrak on September 19, 2014, 09:02:04 AM
Is the coinb.in/multisig site working properly? It seems to be able to create redeem scripts properly, but the transactions page never seems to find spendable outputs. I wonder if it's API connection is broken?

Indications from recent comments are that it is not working properly, I seem to recall the coinb.in/multisig site was subjected to some attacks and had problems and the github-based site (see my earlier comments in this thread) did not have any problems but then later _did_ have problems for some reason. (server perhaps) however, I am guessing the best thing to do is see if you can raise OutCast3k (careful with the spelling!) on this forum (who shows as last active June 29, 2014), it's possible that btcapparel (also on this forum) may have been in touch with OutCast3k (but probably late last year...) so it is a long shot

I would check here and open an issue:
https://github.com/OutCast3k/bitcoin-multisig
There is an open issue (#16) that already represents the issue described, that is unresolved.  If it remains unresolved one could fork it and develop something new, or look at the other options (CoPay, which is a multisignature tool developed by BitPay, or Armory's multisignature feature - which I'm not sure of the status of those at this time, but I recall they were serious about the development of such).



He fixed it. I think it was just something trivial like a changed API. I cannot endorse copay or recommend until it has a lot more testing. It's been very buggy, dangerously so.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: ABISprotocol on September 19, 2014, 09:16:18 AM
Is the coinb.in/multisig site working properly? It seems to be able to create redeem scripts properly, but the transactions page never seems to find spendable outputs. I wonder if it's API connection is broken?

Indications from recent comments are that it is not working properly, I seem to recall the coinb.in/multisig site was subjected to some attacks and had problems and the github-based site (see my earlier comments in this thread) did not have any problems but then later _did_ have problems for some reason. (server perhaps) however, I am guessing the best thing to do is see if you can raise OutCast3k (careful with the spelling!) on this forum (who shows as last active June 29, 2014), it's possible that btcapparel (also on this forum) may have been in touch with OutCast3k (but probably late last year...) so it is a long shot

I would check here and open an issue:
https://github.com/OutCast3k/bitcoin-multisig
There is an open issue (#16) that already represents the issue described, that is unresolved.  If it remains unresolved one could fork it and develop something new, or look at the other options (CoPay, which is a multisignature tool developed by BitPay, or Armory's multisignature feature - which I'm not sure of the status of those at this time, but I recall they were serious about the development of such).



He fixed it. I think it was just something trivial like a changed API. I cannot endorse copay or recommend until it has a lot more testing. It's been very buggy, dangerously so.

Ah, ok, July 13, 2014 he changed it - I don't know why I didn't see it before.  Thanks for pointing it out.  Cheers!

(as an aside - the https://rawgit.com/OutCast3k/bitcoin-multisig/master/index.html page seems like the better one, e.g. more able to handle issues and problems that have arisen)


Title: Re: Multi Signature Address Script and Escrow Service
Post by: blue eyes on September 19, 2014, 10:22:46 AM
let me know when it is finished.


Title: Re: Multi Signature Address Script and Escrow Service
Post by: dexX7 on October 08, 2014, 08:58:43 AM
I'm wondering: is there a reason only uncompressed public keys are allowed?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: Dabs on November 13, 2014, 08:03:36 AM
Vanity Multi-Signature Addresses? Compressed?

Is this possible? Or is it too much hard work? Or it's no longer multi-sig because you have one computer generating all the private keys?

How about, in theory? Like, 3DabsAddress instead of 3randomlooking.

Also, can multi-sig addresses be compressed? I found this, and it requires uncompressed public keys: http://coinb.in/multisig/

*edit* then I found this thread, so I'm posting here instead.


Title: Re: Multi Signature Address Script, Escrow Service and Wallet
Post by: OutCast3k on November 29, 2014, 01:20:24 PM
Vanity Multi-Signature Addresses? Compressed?

Is this possible? Or is it too much hard work? Or it's no longer multi-sig because you have one computer generating all the private keys?

How about, in theory? Like, 3DabsAddress instead of 3randomlooking.

Also, can multi-sig addresses be compressed? I found this, and it requires uncompressed public keys: http://coinb.in/multisig/

*edit* then I found this thread, so I'm posting here instead.

Sorry for the late reply, i've been so busy lately!

The project is still alive and well! There is actually going to be an entirely new version released in the next week or so that will support compressed public keys and offer a few other new features! but not vanity addresses.

If anyone would like to beta test for me, please get in touch via email and i'll give you access.

Thanks everyone for your support, if you like this project please donate :)

-

*Edit* To everyone who has PM'd me asking if they can use the source code, yes you can its totally free to use, edit and redistribute. Enjoy!


Title: Re: Multi Signature Address Script and Escrow Service
Post by: chriswilmer on November 29, 2014, 08:00:38 PM
How can we email you? What's your email?


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on November 29, 2014, 11:03:26 PM
How can we email you? What's your email?

Its listed on my profile, but its: <my><user><name>@gmail.com


Title: Re: Multi Signature Address Script and Escrow Service
Post by: chriswilmer on November 30, 2014, 12:31:53 AM
How can we email you? What's your email?

Its listed on my profile, but its: my.user.name@gmail.com

That's an awesome email address! :)

Btw, it's not listed on your profile. It shows up as "hidden."


Title: Re: Multi Signature Address Script and Escrow Service
Post by: OutCast3k on December 01, 2014, 10:47:40 PM
The new version is live here: http://coinb.in :D will be published to github shortly.

Major changes:

  • Multisig address generation now supports compressed public keys.
  • Transactions and redeem scripts will return more information when they're decoded, including the N-of-M number and the amount of times they've been signed.
  • Better transaction builder. You can build transactions from regular addresses as well as multisig addresses.
  • Improved signing function. Regular transactions as well as multisig transactions can be signed.
  • You can generate compressed and uncompressed public keys.
  • Private keys are given a password field by default with option to show them later.
  • You can generate addresses from Brain wallets.
  • A built in browser based wallet, with access to your own private keys!

If you want to see more, please support the project by donating :)

Enjoy!


Title: Re: Multi Signature Address Script, Escrow Service and Wallet
Post by: OutCast3k on December 15, 2014, 01:13:07 PM
Fixed a few bugs and added loads of little features, you can even set the "lock time" of transactions now.

Feedback and suggestions are welcome :)


Title: Re: Multi Signature Address Script, Escrow Service and Wallet
Post by: chriswilmer on December 15, 2014, 06:26:54 PM
Fixed a few bugs and added loads of little features, you can even set the "lock time" of transactions now.

Feedback and suggestions are welcome :)

Awesome!


Title: Re: Multi Signature Address Script, Escrow Service and Wallet
Post by: ABISprotocol on December 26, 2014, 07:41:35 AM
Fixed a few bugs and added loads of little features, you can even set the "lock time" of transactions now.

Feedback and suggestions are welcome :)

Excellent, I figured with time that would come to https://coinb.in/ ~ thanks for working with myself and ktorn (and some others) some time back on this most useful thing.


Title: Re: Multi Signature Address Script, Escrow Service and Wallet
Post by: wrb2010 on December 29, 2014, 06:13:08 AM
I am trying to get/make/see if its possible to make a home game poker app using bitcoin. Someone pointed me here. Would this work? Any help would be apriciated. Here or
http://www.reddit.com/r/Bitcoin/comments/2qoifa/need_help_with_app_id_like_to_see_made/ 


Title: Re: Multi Signature Address Script, Escrow Service and Wallet
Post by: Muhammed Zakir on December 31, 2014, 11:57:37 AM
Great project! Would use this when time comes! :)

   ~~MZ~~


Title: Re: Multi Signature Address Script, Escrow Service and Wallet
Post by: pitchbend on January 26, 2015, 06:35:38 PM
Thanks for your efforts this service is awesome.


Title: Re: Multi Signature Address Script, Escrow Service and Wallet
Post by: Giulio Prisco on April 05, 2015, 04:34:36 PM
Awesome indeed.


Title: Re: Multi Signature Address Script, Escrow Service and Wallet
Post by: Giulio Prisco on April 08, 2015, 06:56:07 AM
I did an end-to-end coinb.in test.

1 - I created and funded two wallets A and B

2 - From A I created a 2-2 multisig address with the public keys of A and B.
Address:
3LvaMMABYXamGkH1DQbLfB4pYp8pU3of7T
I saved the redeem script.

3 - From B, I sent money to 3LvaMMABYXamGkH1DQbLfB4pYp8pU3of7T
Transaction:
https://btc.blockr.io/tx/info/230f6e6c3d8bca2686cdfaeda7b24f1f08d657f82cdb82a687a89834e84be52c

4. From A, I created a transaction to send the unspent output of 3 to an external address, loading the inputs from the redeem script (output of 2).

5. From A, I signed the transaction and verified it (signed 1 of 2 OK).

6. From B, I signed the transaction (output of 5) and verified it (signed 2 of 2 OK).

7. From B, I broadcast the transaction (output of 6).

8. Received:
https://blockchain.info/tx/e1e14eb2a56df5812bc4d8b2deea64cf978767517ec38c397ede2c68af6a6762

I will do more tests appropriate to the specific use case that I have in mind. In general I thing coinb.in is great but perhaps too difficult for today's casual users - those who need click and simple one-click solution and are unable to open a new window or copy/paste. However, I am sure that it's easy to adapt the user the interface to specific use cases, hiding complex features and selecting the needed data (e.g. key and transaction to sign) automatically.


Title: Re: Multi Signature Address Script, Escrow Service and Wallet
Post by: OutCast3k on May 11, 2015, 11:02:50 AM
A few new features coming soon to coinb.in, such as:

  • HD Wallet Support (bip32)
  • Use of Bitcoins Testnet
  • Retrieve Unspent inputs from alternative blockchain explorers, such as blockr
  • Broadcast to different blockchain explorers
  • Build transactions for other Altcoins

I'm looking for beta testers and for someone to make a few video tutorials on using various aspects of Coinb.in - if anyone is interested, please get in touch by email OutCast3k<at>gmail.com

:)


Title: Re: [coinb.in] Multi Signature Address Script, Escrow Service and Wallet
Post by: Muhammed Zakir on May 11, 2015, 11:11:31 AM
I can be a beta tester and for tutorials, need more info. Please PM me.


Title: Re: [coinb.in] Multi Signature Address Script, Escrow Service and Wallet
Post by: OutCast3k on May 17, 2015, 12:59:27 AM
I can be a beta tester and for tutorials, need more info. Please PM me.

Thanks, will be in touch shortly.


Title: Re: [coinb.in] Multi Signature Address Script, Escrow Service and Wallet
Post by: OutCast3k on May 17, 2015, 01:00:21 AM
HD support (bip32) has been added to coinb.in - enjoy everyone!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: xDan on May 29, 2015, 11:50:17 AM
http://i.imgur.com/GrRzQrK.png

"what is not spent will be used as a transaction fee" - from the popup tip

pic related utterly scares me.

I haven't used the service, so I don't know if such a transaction would go through... But the fact it is even implied that it might is a very very scary thing and will keep me from using what otherwise looks like an excellent piece of software. Default to 100% of the value going to the transaction fee (if I don't put anything in the "amount" box) is crazy and might one day lose somebody all their coins.

A sane option might be giving a large red warning if the tx fee is larger than say 0.1% of the total value. Or not allowing it at all if it's over $1 worth or something.

If a change address is required, the user should be asked for it also with big warnings that it should be a safe, permanent address, not in a virtual machine or livecd etc (where people have lost large amounts in the past). A conservative approach to handling change is to send it right bank to the original address. Not quite as private, but better than losing money. (and still needs warnings to the user that the address/private keys they are sending from must be kept!)


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Muhammed Zakir on May 29, 2015, 12:00:24 PM
[ img]http://i.imgur.com/GrRzQrK.png[/img]

"what is not spent will be used as a transaction fee" - from the popup tip

pic related utterly scares me.

I haven't used the service, so I don't know if such a transaction would go through... But the fact it is even implied that it might is a very very scary thing and will keep me from using what otherwise looks like an excellent piece of software. Default to 100% of the value going to the transaction fee (if I don't put anything in the "amount" box) is crazy and might one day lose somebody all their coins.

A sane option might be giving a large red warning if the tx fee is larger than say 0.1% of the total value. Or not allowing it at all if it's over $1 worth or something.

If a change address is required, the user should be asked for it also with big warnings that it should be a safe, permanent address, not in a virtual machine or livecd etc (where people have lost large amounts in the past). A conservative approach to handling change is to send it right bank to the original address. Not quite as private, but better than losing money. (and still needs warnings to the user that the address/private keys they are sending from must be kept!)

I agree.

I suggest to use recommended fee instead if change amount as fee and as this is advanced software, please allow users to edit transaction fee. You can send change back to origin address like xDan told.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on May 29, 2015, 12:17:06 PM
Hey xDan!

Before I start responding to your points individually, I just want to remind you that coinb.in is aimed at the "advanced" bitcoin user and offers the "tools" required for them to understand how things work. Also the code is also remarkably simple and easy to follow compared to say bitcoinjs.

I haven't used the service, so I don't know if such a transaction would go through... But the fact it is even implied that it might is a very very scary thing and will keep me from using what otherwise looks like an excellent piece of software. Default to 100% of the value going to the transaction fee (if I don't put anything in the "amount" box) is crazy and might one day lose somebody all their coins.

A sane option might be giving a large red warning if the tx fee is larger than say 0.1% of the total value. Or not allowing it at all if it's over $1 worth or something.

The transaction would indeed go through if you signed it. The question is, who am I to prevent someone from choosing their transaction fee, regardless of how high or low it might be. It would be an unfortunate mistake to accidentally set a large fee so I will take into consideration what you've said and perhaps throw up a confirmation notice if the fee is too large. But please keep in mind this is the first time someone has mentioned this and made such a big issue about it.

If a change address is required, the user should be asked for it also with big warnings that it should be a safe, permanent address, not in a virtual machine or livecd etc (where people have lost large amounts in the past). A conservative approach to handling change is to send it right bank to the original address. Not quite as private, but better than losing money. (and still needs warnings to the user that the address/private keys they are sending from must be kept!)

Yes a change address is required, again who am I to send automatically send it back to them. My philosophy is its your money, you can do with it as you like.

If you dont want to use the tools to manually build a transaction, and want the comfort of your funds being returned to you, try the wallet instead https://coinb.in/#wallet you dont get same functionality as building the transaction yourself, and signing it etc, but if the transaction fee is your issue, you can be sure it will return it to your address. Check it out :)

Thanks again for the feedback and suggestions. Very great full!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on May 29, 2015, 12:21:40 PM

[snip]
 
I agree.

I suggest to use recommended fee instead if change amount as fee and as this is advanced software, please allow users to edit transaction fee. You can send change back to origin address like xDan told.

The problem is not everyone would be happy with the funds being sent back to their original address, also its possible to populate the "inputs" on a new transaction with funds from multiple addresses. There is a few things to think about, because I don't want to force users to do anything they don't want to. But a confirmation notice sounds ok..


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Muhammed Zakir on May 29, 2015, 12:28:22 PM

[snip]
 
I agree.

I suggest to use recommended fee instead if change amount as fee and as this is advanced software, please allow users to edit transaction fee. You can send change back to origin address like xDan told.

The problem is not everyone would be happy with the funds being sent back to their original address, also its possible to populate the "inputs" on a new transaction with funds from multiple addresses. There is a few things to think about, because I don't want to force users to do anything they don't want to. But a confirmation notice sounds ok..

Ok. As it is aimed on advanced users, shouldn't we be able to set custom fee? Currently, I can't do it. Please change it.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on May 29, 2015, 12:36:48 PM

[snip]
 
I agree.

I suggest to use recommended fee instead if change amount as fee and as this is advanced software, please allow users to edit transaction fee. You can send change back to origin address like xDan told.

The problem is not everyone would be happy with the funds being sent back to their original address, also its possible to populate the "inputs" on a new transaction with funds from multiple addresses. There is a few things to think about, because I don't want to force users to do anything they don't want to. But a confirmation notice sounds ok..

Ok. As it is aimed on advanced users, shouldn't we be able to set custom fee? Currently, I can't do it. Please change it.

The transaction fee can be manipulated by adding another address, this can either be the address you populated the unspent funds from, or an entirely new address if you have privacy concerns.

Am I miss understanding something?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Muhammed Zakir on May 29, 2015, 12:41:47 PM

[snip]
 
I agree.

I suggest to use recommended fee instead if change amount as fee and as this is advanced software, please allow users to edit transaction fee. You can send change back to origin address like xDan told.

The problem is not everyone would be happy with the funds being sent back to their original address, also its possible to populate the "inputs" on a new transaction with funds from multiple addresses. There is a few things to think about, because I don't want to force users to do anything they don't want to. But a confirmation notice sounds ok..

Ok. As it is aimed on advanced users, shouldn't we be able to set custom fee? Currently, I can't do it. Please change it.

The transaction fee can be manipulated by adding another address, this can either be the address you populated the unspent funds from, or an entirely new address if you have privacy concerns.

Am I miss understanding something?

No, you understood correctly and I understood wrongly. Keep up the good work.

Btw, was this newly added? If yes, is there an archive to download older version? Thank you!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Serge V. on May 29, 2015, 12:53:22 PM
People, try to understand first how MultiSig works in standard wallet, than use such great tool as coinb.in.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: xDan on May 29, 2015, 09:35:51 PM
Hey,

>I will take into consideration what you've said and perhaps throw up a confirmation notice if the fee is too large.
Great! Warnings and sane defaults are good :)

>But please keep in mind this is the first time someone has mentioned this and made such a big issue about it
Most skilled tech people aren't much concerned or knowledgeable about the experiences of newbies, certainly. And maybe they have great confidence and don't believe they themselves can ever make a mistake when in a rush. But it happens to the best of us.

...

I think lots of fairly inexperienced Bitcoiners have paper wallets, for which this sort of thing is very useful. Previously I've used offlinewallet.appspot.com , which isn't maintained any more I don't think, so your site is a good alternative.

It's great work otherwise. I just hate to see people lose money accidentally. What with Bitcoin Core's private key pool and out of date backups, change addresses that existed only temporarily in LiveCDs, and mistyped transaction fee amounts, people have lost large amounts for entirely stupid and preventable reasons, and reading their stories is always quite heartbreaking  :-\


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on June 03, 2015, 09:58:15 AM
Stumbled across this youtube tutorial by Alex Millar for using multisig at coinb.in. (also added it to the original post)

https://www.youtube.com/watch?v=oUSVmLegj8k

Thanks Alex.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on June 24, 2015, 11:31:53 AM
So I've been working (very) slowly on this section for the past few weeks.

https://coinb.in/#settings

The idea is to make it easier to retrieve your inputs for a transaction and broadcast a transaction via coinb.in or a number of other third parties, as well as making it easier to use bitcoin testnet (and eventually altcoins).

At the time of posting this, I have only added multiple hosts to broadcasts too, and have not yet added any services to retrieve your inputs for a transaction.

Once complete though this should make coinb.in even more resilient and decentralized than most wallets.

Feedback and suggestions are welcome.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: chriswilmer on June 24, 2015, 08:40:35 PM
So I've been working (very) slowly on this section for the past few weeks.

https://coinb.in/#settings

The idea is to make it easier to retrieve your inputs for a transaction and broadcast a transaction via coinb.in or a number of other third parties, as well as making it easier to use bitcoin testnet (and eventually altcoins).

At the time of posting this, I have only added multiple hosts to broadcasts too, and have not yet added any services to retrieve your inputs for a transaction.

Once complete though this should make coinb.in even more resilient and decentralized than most wallets.

Feedback and suggestions are welcome.

So, as far as I know, there are no wallets/services that allow for Trezor+multsig (well, there's Greenaddress, but that uses their servers to do stuff).

Any chance Coinbin could be the first to do this?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: HostFat on June 24, 2015, 09:47:52 PM
So, as far as I know, there are no wallets/services that allow for Trezor+multsig (well, there's Greenaddress, but that uses their servers to do stuff).

Any chance Coinbin could be the first to do this?
It will be even very useful if it's possible to do the same with Coinbin as do this version of electrum:
https://github.com/greenaddress/electrum/tree/greenaddress-2of3-recovery

Being able to recover a 2of3 wallet from an offline Greenaddress with Coinbin :)


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: btc_enigma on June 25, 2015, 10:30:01 AM
Cool project !


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: noel57 on June 29, 2015, 09:42:35 AM
This awesome project Open Source, Multi Signature and HD Wallet, though I have paid for a hardware cold wallet but when needed I will surely download and try this fantastic project of yours.
Thank you for sharing.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: HostFat on July 20, 2015, 03:45:19 PM
Can you modify the byte limit for OP_RETURN 80 bytes?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on July 21, 2015, 12:57:27 PM
Can you modify the byte limit for OP_RETURN 80 bytes?

Sure, I have a few changes to make. I'll allow it to accept 80 bytes but still recommend that you keep it at 40.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on July 21, 2015, 01:05:50 PM
So, a quick question to the community!

Not many people seem to be donating and I need to generate enough to at least pay for the VPS. I don't want to add advertising to the site, although Google ads would probably generate me quite a bit. Does anyone have any suggestions for generating donations? I suppose I could make it optional on the new transaction page to donate, or throw up a message now and again.

What do you all think would be least intrusive?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Muhammed Zakir on July 21, 2015, 04:45:02 PM
So, a quick question to the community!

Not many people seem to be donating and I need to generate enough to at least pay for the VPS. I don't want to add advertising to the site, although Google ads would probably generate me quite a bit. Does anyone have any suggestions for generating donations? I suppose I could make it optional on the new transaction page to donate, or throw up a message now and again.

What do you all think would be least intrusive?

How much are you paying per month?

You might also host your site on Github for free.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: chriswilmer on July 22, 2015, 09:05:29 PM
So, a quick question to the community!

Not many people seem to be donating and I need to generate enough to at least pay for the VPS. I don't want to add advertising to the site, although Google ads would probably generate me quite a bit. Does anyone have any suggestions for generating donations? I suppose I could make it optional on the new transaction page to donate, or throw up a message now and again.

What do you all think would be least intrusive?

How much money are we talking about here? Give us a donation target :)


Title: Order of signing a multisif transaction
Post by: money.investment on July 25, 2015, 11:56:29 AM

While signing a multisig transaction, does the order of signing it matters ?

Is this order  linked to order of public keys used to create that multisig address ?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Muhammed Zakir on July 25, 2015, 12:41:47 PM

While signing a multisig transaction, does the order of signing it matters ?

Is this order  linked to order of public keys used to create that multisig address ?

There is no "specific" order when signing.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: spndr7 on July 26, 2015, 08:47:06 PM



Sure, I have a few changes to make. I'll allow it to accept 80 bytes but still recommend that you keep it at 40.


Unable to send this 40 byte hex Null data (OP_RETURN) through coinb.in

6e40e16940913005cfe051091306f7e1fe01201682c512c80eff20205129bdc01163a7d0a59b37b 4


39 byte hex is working


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on July 27, 2015, 06:26:37 PM



Sure, I have a few changes to make. I'll allow it to accept 80 bytes but still recommend that you keep it at 40.


Unable to send this 40 byte hex Null data (OP_RETURN) through coinb.in

6e40e16940913005cfe051091306f7e1fe01201682c512c80eff20205129bdc01163a7d0a59b37b 4


39 byte hex is working

What error did you receive?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on July 27, 2015, 06:28:26 PM
So, a quick question to the community!

Not many people seem to be donating and I need to generate enough to at least pay for the VPS. I don't want to add advertising to the site, although Google ads would probably generate me quite a bit. Does anyone have any suggestions for generating donations? I suppose I could make it optional on the new transaction page to donate, or throw up a message now and again.

What do you all think would be least intrusive?

How much are you paying per month?

You might also host your site on Github for free.

Its about 25 a month. Its UK hosted, so probably a bit more expensive than usual. I can't run it from github as I need to be running a Bitcoin client, sometimes multiple ones. :)


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: spndr7 on July 27, 2015, 06:44:49 PM



Sure, I have a few changes to make. I'll allow it to accept 80 bytes but still recommend that you keep it at 40.


Unable to send this 40 byte hex Null data (OP_RETURN) through coinb.in

6e40e16940913005cfe051091306f7e1fe01201682c512c80eff20205129bdc01163a7d0a59b37b 4


39 byte hex is working

What error did you receive?

40 byte OP_RETURN null data is not is not  included in the generated raw transaction data, and the corresponding address box is outlined with
red color, showing error.

But its working for null data < 40 Bytes


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on July 27, 2015, 06:46:49 PM
[snip]

40 byte OP_RETURN null data is not is not  included in the generated raw transaction data, and the corresponding address box is outlined with
red color, showing error.

But its working for null data < 40 Bytes

OK, thanks! This should be fixed in the most recent update. But I will double check. :)


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: chriswilmer on August 07, 2015, 01:36:06 AM
So, a quick question to the community!

Not many people seem to be donating and I need to generate enough to at least pay for the VPS. I don't want to add advertising to the site, although Google ads would probably generate me quite a bit. Does anyone have any suggestions for generating donations? I suppose I could make it optional on the new transaction page to donate, or throw up a message now and again.

What do you all think would be least intrusive?

How much are you paying per month?

You might also host your site on Github for free.

Its about 25 a month. Its UK hosted, so probably a bit more expensive than usual. I can't run it from github as I need to be running a Bitcoin client, sometimes multiple ones. :)

Personally, I find that to be useful information! Maybe state on the website what the costs are. I'll be sure to donate a month's usage next time I use it.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: jpmcruz on August 09, 2015, 12:23:41 PM
Some details that are not clear to me:
1. If I am a third-party (i did not participate in the creation of the multisig address or with any of the transactions or the redeem script) and I look at the blockchain and find a multisig address, will I be able to know which Bitcoin addresses were used to create the multisig address?
2. If I am a third-party (same conditions as above) and I look at the blockchain, I see a confirmed transaction where a multisig address was used to send BTC to some other address, will I be able to know which of the individual Bitcoin addresses used in the creation of the multisig address actually SIGNED the transaction? i.e., if Addresses #1, #2, and 3# were used to create MultiSigAddress #1 (2 of 3 signatures required). Will I be able to know if for #1 and #3 signed the transaction (and that #2 did not participate)?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Muhammed Zakir on August 09, 2015, 05:14:23 PM
Some details that are not clear to me:
1. If I am a third-party (i did not participate in the creation of the multisig address or with any of the transactions or the redeem script) and I look at the blockchain and find a multisig address, will I be able to know which Bitcoin addresses were used to create the multisig address?
2. If I am a third-party (same conditions as above) and I look at the blockchain, I see a confirmed transaction where a multisig address was used to send BTC to some other address, will I be able to know which of the individual Bitcoin addresses used in the creation of the multisig address actually SIGNED the transaction? i.e., if Addresses #1, #2, and 3# were used to create MultiSigAddress #1 (2 of 3 signatures required). Will I be able to know if for #1 and #3 signed the transaction (and that #2 did not participate)?

Regardless of your involvement in creating a P2SH address, you can find which all addresses are needed to sign transaction if that multisig address has send Bitcoins from it. When sending Bitcoins, the redeemScript is included in the transaction. When you have a redeemScript, you can either break it down and find the public keys manually or you can use https://coinb.in/#verify.

Read http://www.soroushjp.com/2014/12/20/bitcoin-multisig-the-hard-way-understanding-raw-multisignature-bitcoin-transactions.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: jpmcruz on August 10, 2015, 01:38:45 AM
Some details that are not clear to me:
1. If I am a third-party (i did not participate in the creation of the multisig address or with any of the transactions or the redeem script) and I look at the blockchain and find a multisig address, will I be able to know which Bitcoin addresses were used to create the multisig address?
2. If I am a third-party (same conditions as above) and I look at the blockchain, I see a confirmed transaction where a multisig address was used to send BTC to some other address, will I be able to know which of the individual Bitcoin addresses used in the creation of the multisig address actually SIGNED the transaction? i.e., if Addresses #1, #2, and 3# were used to create MultiSigAddress #1 (2 of 3 signatures required). Will I be able to know if for #1 and #3 signed the transaction (and that #2 did not participate)?

Regardless of your involvement in creating a P2SH address, you can find which all addresses are needed to sign transaction if that multisig address has send Bitcoins from it. When sending Bitcoins, the redeemScript is included in the transaction. When you have a redeemScript, you can either break it down and find the public keys manually or you can use https://coinb.in/#verify.

Read http://www.soroushjp.com/2014/12/20/bitcoin-multisig-the-hard-way-understanding-raw-multisignature-bitcoin-transactions.

yeah, thanks! And when sending Bitcoins, the redeemScript will show that #1 and #3 signed the transaction, and that #2 did not participate right? (just double checking)


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: expert-lister on August 14, 2015, 12:18:35 PM
Question, for using new key, must be install bitcoin-qt or can using online bitcoin wallet?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Financisto on August 21, 2015, 04:06:36 AM
Found this coinb.in very useful when combined with WarpWallet ( keybase.io/warp (http://keybase.io/warp) ). All of them used offline.

It generates the most powerfull cold storage method of defense I've ever seen (with no need to download the full blockchain nor touching the internet).

Multi signature + Warp Wallet = no more fear of brute force attacks.

Thank you @OutCast3k for this wonderful, simple and (yet) beautiful tool.

It's the KISS (Keep it simple stupid!) philosophy in action. It's an awesome GUI to use even for non-technical public.

I also liked to see a good fork activity on this project by several contributors at Github.

Keep up the good work!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: HostFat on August 21, 2015, 04:08:17 AM
Maybe he could even integrate the Warp Wallet way on coinb.in :D


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Financisto on August 21, 2015, 04:13:57 AM
Maybe he could even integrate the Warp Wallet way on coinb.in :D

That would certainly be an excellent achievement!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on September 16, 2015, 10:40:19 AM
A few small changes in the recent update, but they might be worth mentioning.

  • There is now a Mediation/Arbitration Service listed on coinb.in's multisig page. This feature allows users to create multi signature 2-of-3 addresses with our public key and we will help resolve any disputes should they arrive. There is a fixed 1% fee.

    Note: If you offer a (reputable) mediation/arbitration/escrow service, you can make a pull request on github to have your pubkey added to the list of mediators.

  • A warning message will be displayed if the fee on the new transaction page is greater than 0.01 BTC.
  • Fixed a bug with the retrieval of unspent outputs for litecoin.
  • Some extra validation on the new transaction page to indicate which field is likely invalid.
  • Linked to the #settings page (https://coinb.in/#settings) from the broadcast page to make changing the network easier.

Might have been something I've missed, but I think that's it.

Enjoy everyone, more to come soon!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: GermanGiant on October 18, 2015, 10:16:18 PM
This is a fantastic project. Kudos to those who are contrbuting to build this. I would like to know...

1. Which API is being used to Push Tx ?

2. Does https://coinb.in/#sign produce only Low S Tx ?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on December 30, 2015, 02:15:23 AM
Coinb.in now supports OP_HODL

https://coinb.in/#newTimeLocked

Enjoy everyone!!!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Dabs on December 30, 2015, 04:37:42 PM
Note: If you offer a (reputable) mediation/arbitration/escrow service, you can make a pull request on github to have your pubkey added to the list of mediators.

Can I make a request to be added from here? 2-of-3 multi-sig would potentially remove most of my involvement from honest parties.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: MaritiJames3 on December 30, 2015, 05:51:02 PM
Coinb.in now supports OP_HODL

https://coinb.in/#newTimeLocked

Enjoy everyone!!!

Looks good, but i can't open that website. Is it opening there, or do you block users with the TOR client on?
If 2 can you enable TOR users please.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: HostFat on December 31, 2015, 08:43:46 AM
Looks good, but i can't open that website. Is it opening there, or do you block users with the TOR client on?
If 2 can you enable TOR users please.
You can just download the code and run it locally
https://github.com/OutCast3k/coinbin/


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Financisto on January 01, 2016, 11:59:10 PM
Coinb.in now supports OP_HODL

https://coinb.in/#newTimeLocked

Enjoy everyone!!!

Looks good, but i can't open that website. Is it opening there, or do you block users with the TOR client on?
If 2 can you enable TOR users please.
Worked fine here using Tor Browser...


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on January 06, 2016, 10:27:20 PM
Updated the original post.

If anyone wants to write some tutorials, or make some videos I'll happily add them.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on January 06, 2016, 10:32:33 PM
Note: If you offer a (reputable) mediation/arbitration/escrow service, you can make a pull request on github to have your pubkey added to the list of mediators.

Can I make a request to be added from here? 2-of-3 multi-sig would potentially remove most of my involvement from honest parties.

sure


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: notaek on January 09, 2016, 07:36:06 PM
Nice to see an online wallet using the public keys in compressed format. It would be nicer if there's an option to import paper wallets directly, as well as encryption of private keys via BIP-38 passphrase protection. (private keys starting with 6)

Also let me know if I can integrate my Ledger HW.1 (https://www.ledgerwallet.com/products/3-ledger-hw-1) hardware wallet on coinb.in for creating multi-signature accounts.

FYI, this can already be done with Coinkite and here's the detailed tutorial (https://ledger.groovehq.com/knowledge_base/topics/how-to-create-a-2-of-2-multisignature-account-with-two-ledger-nano-and-coinkite).


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on January 26, 2016, 09:41:09 AM
Added a new YouTube video tutorial, explaing how to use the blockchain and coinb.in to notorize a document to the original post.

https://youtube.com/watch?v=qn13TIhoYUY

Thanks Alex!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: GetClams.com on January 29, 2016, 03:49:02 AM
Awesome project. How would you compare/contrast coinb.in with bitgo + gem?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: davien on January 29, 2016, 04:58:32 PM
Can you give us a little info about how many users are using it now approximatelly?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: xDan on March 05, 2016, 07:02:12 PM
Apparently you STILL haven't fixed the "all my fucking bitcoins lost as the transaction fee" issue with your create transaction page :-\

I'm an advance user, but I'd never trust a service that doesn't use sane defaults.

Shame, because it's rather good otherwise.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on March 05, 2016, 07:17:21 PM
Apparently you STILL haven't fixed the "all my fucking bitcoins lost as the transaction fee" issue with your create transaction page :-\

I'm an advance user, but I'd never trust a service that doesn't use sane defaults.

Shame, because it's rather good otherwise.

Would be nice if you could explain what you mean a bit better. Im lost. Currently, if the user creates a transaction with a fee above 0.01 btc, they will receive a warning letting them know their fee is rather high.



Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on March 05, 2016, 07:18:49 PM
Can you give us a little info about how many users are using it now approximatelly?

I purposely don't log users accounts or traffic. What data are you after?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: SLRman on March 13, 2016, 12:23:39 AM
Can you give us a little info about how many users are using it now approximatelly?

I purposely don't log users accounts or traffic. What data are you after?



I just want to know if I can trust you with my large volume trades? that's all its about... :)


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: SLRman on March 13, 2016, 01:59:05 PM
OutCast3k,

A PM has been sent over to you! :)

Please, reply me ASAP!  Thanks!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on March 13, 2016, 05:39:52 PM
OutCast3k,

A PM has been sent over to you! :)

Please, reply me ASAP!  Thanks!

Replied! Its probably easier and faster for me to deal with your request via email, but I'm happy to help :)


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: SLRman on March 13, 2016, 06:05:56 PM
Thanks a lot for your help! :)

Hope to have a long time business with you.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: weex on March 13, 2016, 07:27:55 PM
Just want to thank Outcast3k and everyone who's worked on this. It's helped enable the first multisig escrowed transaction on Rein. http://bitcoinist.net/the-rein-project-completes-first-freelance-contract/ The mandatory multisig fork for which we have a PR in, is useful for verifying the   redeem scripts but the main fork worked great for signing!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Financisto on March 14, 2016, 06:40:36 AM
It's good to see so many forks @github adding different altcoins.

Some features of Coinb.in are unique like HD wallet (BIP32) creation by brainwallet input method.

Keep up the good work everybody!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: starsoccer9 on March 16, 2016, 01:36:42 AM
I would love to see message signing and verifying added. Since brainwallet shut down, there really is no good web tool to use


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Financisto on March 16, 2016, 02:28:36 AM
I would love to see message signing and verifying added. Since brainwallet shut down, there really is no good web tool to use
Maybe the tools presented here may be of some use:

https://bitcointalk.org/index.php?topic=990345.0 (https://bitcointalk.org/index.php?topic=990345.0)


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: weex on March 16, 2016, 06:31:14 AM
I would love to see message signing and verifying added. Since brainwallet shut down, there really is no good web tool to use
Maybe the tools presented here may be of some use:

https://bitcointalk.org/index.php?topic=990345.0 (https://bitcointalk.org/index.php?topic=990345.0)
That's a very comprehensive link. Since starsoccer9 mentioned Brainwallet, I'll post this which was lightly modified from the brainwallet code.

https://github.com/ReinProject/bitcoin-signature-tool and see it in action at http://reinproject.org/bitcoin-signature-tool/


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: starsoccer9 on March 17, 2016, 11:20:47 PM
I would love to see message signing and verifying added. Since brainwallet shut down, there really is no good web tool to use
Maybe the tools presented here may be of some use:

https://bitcointalk.org/index.php?topic=990345.0 (https://bitcointalk.org/index.php?topic=990345.0)
That's a very comprehensive link. Since starsoccer9 mentioned Brainwallet, I'll post this which was lightly modified from the brainwallet code.

https://github.com/ReinProject/bitcoin-signature-tool and see it in action at http://reinproject.org/bitcoin-signature-tool/

Thanks that is very useful.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Answerme2 on April 15, 2016, 06:48:15 AM
Why can't i set custom transaction fees when creating  a transaction?
Why can't i spend just small amount from input? Not all of it?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: idev on April 15, 2016, 07:58:23 PM
I would love to see message signing and verifying added. Since brainwallet shut down, there really is no good web tool to use
You can try http://coinig.com which is a web based service.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: OutCast3k on May 21, 2016, 08:43:40 PM
Replace by fee (RBF) has been added to coinb.in you can find it under the advanced tab, on the new transaction page.

Enjoy people!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: weex on May 22, 2016, 12:16:17 AM
Great feature!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Dabs on May 22, 2016, 03:04:24 AM
Mr. OutCast3k,

I have a question, but it is more of a general question that is just indirectly related to coinb.in.

Can I add a multisignature address to bitcoin core? Can I then add the private keys (assuming I have them of course) and do a spend using that wallet?

For example, I create a 2-of-3 address. Let's make a more concrete example and I'll use your page to do it:

I first generate 3 regular addresses, public keys, and private keys:

1P6xdHExqRusJ8hM4vpTjuDnum4Crxoxb8
03d6a0edc630c29f649500d592091039d7f3c942ec07bb7ebdabfe5727c58964fd
KwyKy7C7f8pHw1GizvWhLpE6GB13ZcfNJoX98MHiwwz1x77MksQq

1Eom4fsSnmka311BbJrmUjyY29tsQcrTyD
0305143caa81bc0fec9237f594939d0ceb667cb78e451264e8d2a677648a871aeb
Kyw4KDi8Lre2WhpTJt8p8gfTEkpSfqVv8dv3bJ75cmuyvFHQ7HBy

1Ceidy7FSL8Vzrqg5SfzUpEqDwmPB9Drfo
0306c73d2aea0a492e268dd1b3ed1ba1bbdc54c1d4a3a46d9d74fe81f3e6a301af
KxbsQxm5Q8pGXPs8AWP7Lt1SkzFrvgZr2EdKpB9WTFCkC4cdnK3V

Then I input the above public keys in that order (and order seems to affect the result) and come up with the following:

Address
3NUEUQspbf9LK3mRN13pLNyzeEK4Ep1HRC

Redeem Script
522103d6a0edc630c29f649500d592091039d7f3c942ec07bb7ebdabfe5727c58964fd210305143 caa81bc0fec9237f594939d0ceb667cb78e451264e8d2a677648a871aeb210306c73d2aea0a492e 268dd1b3ed1ba1bbdc54c1d4a3a46d9d74fe81f3e6a301af53ae

Does bitcoin core (currently version 0.12.1) not work if I import the 3 private keys? Or it won't know what to do? That then leaves me with the option of using your site.

Actually, I'm looking for a way to do this with thousands of addresses (all of them multi-sig). The big wallet guys and exchanges have already done this, but I don't know if their code is open (I haven't checked.) Ideally, there would be 2 or 3 different physical machines with 2 cold offline airgapped, but for testing purposes it will be just one.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Serge V. on May 22, 2016, 08:16:44 AM
Can I add a multisignature address to bitcoin core? Can I then add the private keys (assuming I have them of course) and do a spend using that wallet?

To add a 2-of-3 MustiSig address to bitcoin core you will need to execute in client console the following command (in your example):

Code:
addmultisigaddress 2 '["03d6a0edc630c29f649500d592091039d7f3c942ec07bb7ebdabfe5727c58964fd","0305143caa81bc0fec9237f594939d0ceb667cb78e451264e8d2a677648a871aeb","0306c73d2aea0a492e268dd1b3ed1ba1bbdc54c1d4a3a46d9d74fe81f3e6a301af"]'

Result:

Code:
3NUEUQspbf9LK3mRN13pLNyzeEK4Ep1HRC

In order to spend the funds from the MultiSig address you will need to import 2 of 3 private keys that correspond to these public keys:

Code:
importprivkey KwyKy7C7f8pHw1GizvWhLpE6GB13ZcfNJoX98MHiwwz1x77MksQq

Code:
importprivkey Kyw4KDi8Lre2WhpTJt8p8gfTEkpSfqVv8dv3bJ75cmuyvFHQ7HBy


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: HostFat on May 24, 2016, 01:38:38 PM
@OutCast3k
Can you add an easy way to cut the fee from the sending amount, instead of the local balance.

If I send 0.1 BTC to someone with 0.00001 fee, and he asks a faster transaction, I should be able to easily change the sending amount, example: 0.0999 BTC and 0.0001 fee.

He is the one that need a faster tx, not me, so he is he one that need to pay for it.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: idev on June 21, 2016, 10:13:42 AM
Is there a testnet version available somewhere ?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Financisto on June 29, 2016, 08:15:08 AM
Is there a testnet version available somewhere ?
This forked version implemented it:

https://ttutdxh-nubits.github.io/cointoolkit (https://ttutdxh-nubits.github.io/cointoolkit)


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: idev on June 29, 2016, 09:47:19 AM
Is there a testnet version available somewhere ?
This forked version implemented it:

https://ttutdxh-nubits.github.io (https://ttutdxh-nubits.github.io)
Edit: You missed typed the full URL https://ttutdxh-nubits.github.io/cointoolkit

But thanks for putting me on the right track ;)

Bitcoin Testnet version does not seem to work, it's not recognizing my pub keys when i submit them to create a multisig address.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Financisto on July 03, 2016, 09:35:19 AM
Yes. Thanks for telling me that.

Now it's correct.

Cheers!


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: HostFat on July 05, 2016, 11:59:46 AM
@OutCast3k
Will you also add the support for CSV?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Dabs on October 15, 2016, 11:58:57 PM
Question: Bitcoin Core allows addmultisigaddress nrequired ["key",...] ... where each key is a Bitcoin address or hex-encoded public key.

What's the difference or concern or problem or whatever reason for using a Bitcoin address and the hex-encoded public key?

I'll take a guess: you can't add using the Bitcoin address if you don't already have the private key in your wallet?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: ttg43 on November 04, 2016, 12:14:18 PM
This wallet is easy and secure. Strongly recommended 8)


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: mr_hoang on November 23, 2016, 05:46:29 AM
Hi there! Using this service too and see today - my balance is 0.00. Blockchain shown real amount. What's problem?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: ttg43 on November 26, 2016, 07:54:00 PM
Hi there! Using this service too and see today - my balance is 0.00. Blockchain shown real amount. What's problem?
Hm. Maybe weak conection? Try to use your private keys in other wallet (for example in bither).


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: ttg43 on November 26, 2016, 07:56:55 PM
Hey, OP. Any option to make similar wallet for dash? There no any web wallet for dash at all - big opportunity, I think)


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Financisto on November 27, 2016, 04:16:40 AM
This fork from coinb.in is on its way to add Dash: https://github.com/ttutdxh-nubits/cointoolkit/pulls  ;)


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: ttg43 on November 27, 2016, 07:35:28 AM
This fork from coinb.in is on its way to add Dash: https://github.com/ttutdxh-nubits/cointoolkit/pulls  ;)
To be honest I don't trust this project because it has no reputation for now(


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: Financisto on November 27, 2016, 07:42:26 AM
It's also open source so you can review the code yourself, download from GitHub and use it offline even if you don't trust it.

Talking about Dash, there's also BIP39 Tool which I just added to my list here: https://bitcointalk.org/index.php?topic=1164163.0

That one also generates an Hierachical Deterministic Wallet from BIP39 mnemonic for several coins (Dash included).


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: 100bitcoin on December 25, 2016, 06:39:22 PM
The website https://coinb.in seems to be down right now. I had a downloaded copy. So, I tried to use it offline. But, that is now working either while I am trying to create a new Tx. The system is unable to download the UTXO set. There are only 2 available options for mainnet - coinb.in (Bitcoin mainnet) & Blockr.io (Bitcoin mainnet). The first one is not working as expected, but the second one is not working either. It is throwing the error - Unexpected error, unable to retrieve unspent outputs!.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: bitspill on December 28, 2016, 06:15:55 AM
The website https://coinb.in seems to be down right now. I had a downloaded copy. So, I tried to use it offline. But, that is now working either while I am trying to create a new Tx. The system is unable to download the UTXO set. There are only 2 available options for mainnet - coinb.in (Bitcoin mainnet) & Blockr.io (Bitcoin mainnet). The first one is not working as expected, but the second one is not working either. It is throwing the error - Unexpected error, unable to retrieve unspent outputs!.

Here's a modified coinb.in with added support for Multi Sig transactions as used by Rein

http://reinproject.org/coinbin/


Edit: It's for Bitcoin Mainnet


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: HostFat on December 28, 2016, 10:10:22 AM
@bitspill
Is there a github repo with your modifications?


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: weex on December 29, 2016, 05:53:25 AM
@bitspill
Is there a github repo with your modifications?
https://github.com/ReinProject/coinbin/ is what's hosted on https://reinproject.org

Edit: now https


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: spiritglove on February 03, 2017, 03:35:13 PM
Coinb.in Features Include .001 BTC being taken when ever the algorithm or software writer feels like grabbing some coin.
 AND Expensive transfer fees .0011 minimum. Which gets U a minimum 72 hours of waiting time after u have broadcast your coin.
  Paying a higher transfer fee does NOT move the coin any faster.
 
 I WILL NOT BE USING THIS JUNK WALLET ANY LONGER. I THOUGHT OTHERS SHOULD BE WARNED TO AVOID IT AS WELL

 It may have started as a good idea, but it no longer is a good idea. It is a good way to lose your investment to poor timing and mismanaged coin disbursements


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: weex on February 03, 2017, 11:27:49 PM
Coinb.in Features Include .001 BTC being taken when ever the algorithm or software writer feels like grabbing some coin.
 AND Expensive transfer fees .0011 minimum. Which gets U a minimum 72 hours of waiting time after u have broadcast your coin.
  Paying a higher transfer fee does NOT move the coin any faster.
 
 I WILL NOT BE USING THIS JUNK WALLET ANY LONGER. I THOUGHT OTHERS SHOULD BE WARNED TO AVOID IT AS WELL

 It may have started as a good idea, but it no longer is a good idea. It is a good way to lose your investment to poor timing and mismanaged coin disbursements

You're saying Coinb.in calculated a fee for you? AFAIK, it just leaves whatever you don't send on as a fee.


Title: Re: [coinb.in] Open Source, Multi Signature, HD Wallet and more!
Post by: coinableS on February 05, 2017, 12:20:22 AM
Coinb.in Features Include .001 BTC being taken when ever the algorithm or software writer feels like grabbing some coin.
 AND Expensive transfer fees .0011 minimum. Which gets U a minimum 72 hours of waiting time after u have broadcast your coin.
  Paying a higher transfer fee does NOT move the coin any faster.
 
 I WILL NOT BE USING THIS JUNK WALLET ANY LONGER. I THOUGHT OTHERS SHOULD BE WARNED TO AVOID IT AS WELL

 It may have started as a good idea, but it no longer is a good idea. It is a good way to lose your investment to poor timing and mismanaged coin disbursements

You're saying Coinb.in calculated a fee for you? AFAIK, it just leaves whatever you don't send on as a fee.

Yea every time I've used it it's all manual, no auto fee calc. I think he must have used another service that could possibly pretending to be coinbin that's scraping fees off the top of transactions?