Bitcoin Forum
November 24, 2026, 05:03:56 AM *
News: Latest Bitcoin Core release: 32.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 [163] 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 ... 502 »
  Print  
Author Topic: [ANN][CLAM] CLAMs, Proof-Of-Chain, Proof-Of-Working-Stake, a.k.a. "Clamcoin"  (Read 1153978 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
presstab
Legendary
*
Offline

Activity: 1330
Merit: 1000


Blockchain Developer


View Profile
June 21, 2015, 07:00:02 PM
 #3241

I also find your site impressive.

On the pages for transactions, you could include the "clamSpeech" part. Both my test transactions involving multisig included clamSpeech saying they were tests:

http://www.presstab.pw/phpexplorer/CLAM/tx.php?tx=21db92347e153a6afdddca7f96d444d81d7daa19674ed3101e50de72cb387b19
http://www.presstab.pw/phpexplorer/CLAM/tx.php?tx=92306e09cafe1bb860572047a019cdf4d6136e8e4c7e89fc07be51ded5de9c2a

About multisig addresses, the good news is that you do properly display the transactions (khashier doesn't at the moment). Both the transactions above are listed at:

http://www.presstab.pw/phpexplorer/CLAM/address.php?address=3J5fBSKLSGfPnkY4kVNTp9pMmGx6soN1ek

By the way, in my clam client the multisig address is showing as 6WnV4Jhe7iNQLDekwr31h9zeoK1eaDMjAw. It's the same 20 byte address, so it's not a problem. The difference seems to be whether the leading byte is x05 or x0d.

@Clam experts: What's the leading byte for clam p2sh addresses supposed to be? x05 or x0d?


I will start adding more CLAM specific things (such as speech display) and the chart I screen shotted above, once my site is linked to from the OP and the website and such in the explorers sections.

Projects I Contribute To: libzerocoin | Veil | PIVX | HyperStake | Crown | SaluS
BayAreaCoins
Legendary
*
Offline

Activity: 4676
Merit: 1409


AltQuick.com Owner


View Profile WWW
June 21, 2015, 07:19:57 PM
 #3242

I also find your site impressive.

On the pages for transactions, you could include the "clamSpeech" part. Both my test transactions involving multisig included clamSpeech saying they were tests:

http://www.presstab.pw/phpexplorer/CLAM/tx.php?tx=21db92347e153a6afdddca7f96d444d81d7daa19674ed3101e50de72cb387b19
http://www.presstab.pw/phpexplorer/CLAM/tx.php?tx=92306e09cafe1bb860572047a019cdf4d6136e8e4c7e89fc07be51ded5de9c2a

About multisig addresses, the good news is that you do properly display the transactions (khashier doesn't at the moment). Both the transactions above are listed at:

http://www.presstab.pw/phpexplorer/CLAM/address.php?address=3J5fBSKLSGfPnkY4kVNTp9pMmGx6soN1ek

By the way, in my clam client the multisig address is showing as 6WnV4Jhe7iNQLDekwr31h9zeoK1eaDMjAw. It's the same 20 byte address, so it's not a problem. The difference seems to be whether the leading byte is x05 or x0d.

@Clam experts: What's the leading byte for clam p2sh addresses supposed to be? x05 or x0d?


I will start adding more CLAM specific things (such as speech display) and the chart I screen shotted above, once my site is linked to from the OP and the website and such in the explorers sections.

I'lll ring a phone and get you on Clamcoin.org.  Tongue

Do you happen to have a little banner or anything?

https://AltQuick.com/exchange/ - A Bitcoin-based exchange for Altcoins, Signet, & Bitcoin Testnet (no fiat, stables, or KYC) - PGP D2F6EB9E127D75D6F994BA5F6862DDA3084922EE
presstab
Legendary
*
Offline

Activity: 1330
Merit: 1000


Blockchain Developer


View Profile
June 21, 2015, 07:47:33 PM
 #3243

I also find your site impressive.

On the pages for transactions, you could include the "clamSpeech" part. Both my test transactions involving multisig included clamSpeech saying they were tests:

http://www.presstab.pw/phpexplorer/CLAM/tx.php?tx=21db92347e153a6afdddca7f96d444d81d7daa19674ed3101e50de72cb387b19
http://www.presstab.pw/phpexplorer/CLAM/tx.php?tx=92306e09cafe1bb860572047a019cdf4d6136e8e4c7e89fc07be51ded5de9c2a

About multisig addresses, the good news is that you do properly display the transactions (khashier doesn't at the moment). Both the transactions above are listed at:

http://www.presstab.pw/phpexplorer/CLAM/address.php?address=3J5fBSKLSGfPnkY4kVNTp9pMmGx6soN1ek

By the way, in my clam client the multisig address is showing as 6WnV4Jhe7iNQLDekwr31h9zeoK1eaDMjAw. It's the same 20 byte address, so it's not a problem. The difference seems to be whether the leading byte is x05 or x0d.

@Clam experts: What's the leading byte for clam p2sh addresses supposed to be? x05 or x0d?


I will start adding more CLAM specific things (such as speech display) and the chart I screen shotted above, once my site is linked to from the OP and the website and such in the explorers sections.

I'lll ring a phone and get you on Clamcoin.org.  Tongue

Do you happen to have a little banner or anything?

Yep, retro style


I'll be throwing the updates on my server tonight hopefully. Thanks for you quick response bayareacoins

Projects I Contribute To: libzerocoin | Veil | PIVX | HyperStake | Crown | SaluS
BayAreaCoins
Legendary
*
Offline

Activity: 4676
Merit: 1409


AltQuick.com Owner


View Profile WWW
June 21, 2015, 08:43:34 PM
 #3244

I also find your site impressive.

On the pages for transactions, you could include the "clamSpeech" part. Both my test transactions involving multisig included clamSpeech saying they were tests:

http://www.presstab.pw/phpexplorer/CLAM/tx.php?tx=21db92347e153a6afdddca7f96d444d81d7daa19674ed3101e50de72cb387b19
http://www.presstab.pw/phpexplorer/CLAM/tx.php?tx=92306e09cafe1bb860572047a019cdf4d6136e8e4c7e89fc07be51ded5de9c2a

About multisig addresses, the good news is that you do properly display the transactions (khashier doesn't at the moment). Both the transactions above are listed at:

http://www.presstab.pw/phpexplorer/CLAM/address.php?address=3J5fBSKLSGfPnkY4kVNTp9pMmGx6soN1ek

By the way, in my clam client the multisig address is showing as 6WnV4Jhe7iNQLDekwr31h9zeoK1eaDMjAw. It's the same 20 byte address, so it's not a problem. The difference seems to be whether the leading byte is x05 or x0d.

@Clam experts: What's the leading byte for clam p2sh addresses supposed to be? x05 or x0d?


I will start adding more CLAM specific things (such as speech display) and the chart I screen shotted above, once my site is linked to from the OP and the website and such in the explorers sections.

I'lll ring a phone and get you on Clamcoin.org.  Tongue

Do you happen to have a little banner or anything?

Yep, retro style


I'll be throwing the updates on my server tonight hopefully. Thanks for you quick response bayareacoins

It will be added next update.

There will also be a new Gaming section under the services.

https://AltQuick.com/exchange/ - A Bitcoin-based exchange for Altcoins, Signet, & Bitcoin Testnet (no fiat, stables, or KYC) - PGP D2F6EB9E127D75D6F994BA5F6862DDA3084922EE
dooglus
Legendary
*
Offline

Activity: 2940
Merit: 1339



View Profile
June 21, 2015, 09:34:03 PM
 #3245

Although you can include multiple inputs to the coinstake transaction, only one of them is part of the proofhash (the others are just along for the ride) and with a fixed reward of 1 clam including more inputs to the coinstake transaction would just reduce the return on investment, seeing as it does not alter the proofhash, thus it would actually be detrimental to your returns rather than creating more value. If you were in fact able to change your proofhash based on how many inputs you include this would be a significant security risk because it will allow stake grinding and computation attacks.

Right. The only reason I can see for including extra inputs is if you have a bunch of dust outputs and want to combine them. The CLAM client will do this automatically for outputs at the same address that is currently staking, but the protocol will even allow you to combine outputs from different addresses if you want to. I'm guessing the client doesn't do this because it can cause confusion in the accounting system.

Also is the the type of chart that you clammers are looking for?

Yes, that looks perfect.

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
dooglus
Legendary
*
Offline

Activity: 2940
Merit: 1339



View Profile
June 21, 2015, 11:09:28 PM
 #3246

I guess p2pool would improve things, as follows:

Currently if you are staking 10 CLAMs, you can expect to stake 1 CLAM every 50 days or so. If there are 100 people staking 10 CLAMs each, they each get that same very irregular reward for staking.

With p2pool, those 100 people can expect to get the same return, but with much lower variance. They each get to stake 0.01 CLAM about twice per day. Their expectation is the same (still 14% lost due to orphans) but their income is much steadier.

Thinking about it more, p2pool works by making shares much easier to find than real blocks. 1000 times easier, say. That way, the guy who currently expects to stake a real block over every 10 days gets to contribute a share 100 times per day, or once every 15 minutes.

But there's a problem with that. If JD stops solo-staking and joins the p2pool network, that's almost all the network weight that will be on p2pool. That means p2pool will be staking about once per minute, and so its members will be contributing 1000 shares per minute. Thos shares need to be added to the share chain. So we have a distributed blockchain adding 16 blocks per second. And we thought the orphan rate was bad now!

So that doesn't work. What can we do to fix it?

Do we make the '1000' vary per miner? So JD still only submits full block solves, bitdice works on shares that are 10 times easier than standard, and the little solo-staking guy works on shares that are 1000 times easier? But isn't there a problem there too? If bitdice is only going to submit shares which are 10 times easier than a full block, surely it will get 100 times as much 'credit' for each share as the small solo miner does for each 1000x easier share he submits. Because their shares are 100 times harder. But what is to stop bitdice from selling their too-easy-to-publish shares to the little guy for him to publish on the share-chain and get credit for? This is probably something that has come up with the Bitcoin p2pool already. I've not been able to find anything very in-depth written about how p2pool works however.

Maybe p2pool only works well for Bitcoin because 1) the blockchain targets 10 minute blocks and 2) not a very large percentage of the hashrate is using it. With CLAM we have neither of these - the blocks are very fast already, and JD would want to use it.

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
chriswen
Hero Member
*****
Offline

Activity: 756
Merit: 500


View Profile
June 22, 2015, 01:49:18 AM
 #3247

P2Pool would also probably not work well with Bitcoin if a majority of the Bitcoin network was using it.
tspacepilot
Legendary
*
Offline

Activity: 1456
Merit: 1090


I may write code in exchange for bitcoins.


View Profile
June 22, 2015, 04:23:00 AM
 #3248

Well the why not is that it's an address I was using for cold-storage and since I don't want to keep my savings in an address that I've given away the private key for then I'd have to first move the coins that are there.  I'd do it if CLAM is high, but not worth the trouble if CLAM is low.  But hey, I thought all the addys that were funded were funded at the 4.6 level.  What other level is there?

There's only the 4.6 level. I guess he means if it's only one address maybe it's not worth it, but if it's 100 addresses it is...

You don't have to give away the private key. I recently added a command to Just-Dice that will allow you to 'dig' your CLAM by signing a transaction on an offline machine.

For example, if I type this in the chat box:

Quote
/dig 1CrPRwBkwZdEejXusCbh8o35YMN7g7ffKf offline

It tells me:

Quote
00:21:40 INFO: run the following on an offline Linux machine, then broadcast the resulting hex value using https://just-dice.com/pushtx
00:21:41 INFO: the addr= part tells it where to send your CLAMs; the default is your Just-Dice deposit address
00:21:41 INFO: when prompted, type your private key:
00:21:41 INFO: echo -n "privkey: "; read privkey; addr=xMYvd61airRrnSUmV2oE1JhEqvzLdFWP7r; val=4.60535574; txid=b45c2a20731f8a88ba980f9cc9ce1d43cd7913d9c26ee3e8002ba1d08676b3de; vout=0; pubkey=76a91482007d41eec3a28b66b1ba726721d95577eb5a7688ac; output='"txid":"'$txid'","vout":'$vout; clamd signrawtransaction $(clamd createrawtransaction '[{'$output'}]' '{"'$addr'":'$val'}') '[{'$output',"scriptPubKey":"'$pubkey'"}]' '["'$privkey'"]'

ie. it gives me a command that I can run on an offline machine that will sign a transaction that (when broadcast) sends the dug up CLAMs to an address of my choosing.

For more information, see this post that I made when I first implemented the command.

Heya Doog, I gave this a try tonight and I ended up getting the message from the just-dice.com/pushtx page "transaction rejected".  This made me wonderi if I gave the private key in the wrong format.  I was using wallet import format (key starts with a 5), is that right?
dooglus
Legendary
*
Offline

Activity: 2940
Merit: 1339



View Profile
June 22, 2015, 05:17:09 AM
 #3249

Heya Doog, I gave this a try tonight and I ended up getting the message from the just-dice.com/pushtx page "transaction rejected".  This made me wonderi if I gave the private key in the wrong format.  I was using wallet import format (key starts with a 5), is that right?

When you run the big long command, you should get back something like:

Quote
{
    "hex" : "0200[...]3433",
    "complete" : true
}

If you see "false" instead of "true", it means it wasn't able to find all the private keys it needed, which in your case should just be one of them.

The private key is meant to be in WIF, starting with a 5 for BTC keys. It will also accept the corresponding CLAM, LTC, or DOGE private keys in the same format.

So that's the first thing: did you see "compete" as true or false? If false, you're giving a valid private key, but the wrong one. If true, you're likely copy/pasting incorrectly. You need to copy just the hex value, without the quotes.

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
xploited
Sr. Member
****
Offline

Activity: 304
Merit: 252

CLAM Dev


View Profile
June 22, 2015, 05:57:29 AM
 #3250


@Clam experts: What's the leading byte for clam p2sh addresses supposed to be? x05 or x0d?


x0d is the correct one to use now. It was originally x05 but there was a situation where an old just-dice user sent clams to a multisig btc address, so to avoid any future conflicts it was changed so the leading identifier was 6 when converted to base58.

I will look into the other multisig question for you tomorrow, just on my way to sleep.


tspacepilot
Legendary
*
Offline

Activity: 1456
Merit: 1090


I may write code in exchange for bitcoins.


View Profile
June 22, 2015, 06:05:14 AM
 #3251

Heya Doog, I gave this a try tonight and I ended up getting the message from the just-dice.com/pushtx page "transaction rejected".  This made me wonderi if I gave the private key in the wrong format.  I was using wallet import format (key starts with a 5), is that right?

When you run the big long command, you should get back something like:

Quote
{
    "hex" : "0200[...]3433",
    "complete" : true
}

If you see "false" instead of "true", it means it wasn't able to find all the private keys it needed, which in your case should just be one of them.

The private key is meant to be in WIF, starting with a 5 for BTC keys. It will also accept the corresponding CLAM, LTC, or DOGE private keys in the same format.

So that's the first thing: did you see "compete" as true or false? If false, you're giving a valid private key, but the wrong one. If true, you're likely copy/pasting incorrectly. You need to copy just the hex value, without the quotes.

Thanks for the debugging suggestion, I see "true".  I'm quite confident about the validity of my private key as well.  However, I'l go back and double-check all the steps.

EDIT: I re-pasted and now it says "OK".  It's a little strange because I was using the same rawtransaction data sitting there in the terminal window.  I had double-checked the quotes before I posted, who knows?  Something must have been different.  In any case, I'm sure I'l see the balance show up in my JD account shortly.  Thanks again for making the tool to produce the raw transaction so easily.
dooglus
Legendary
*
Offline

Activity: 2940
Merit: 1339



View Profile
June 22, 2015, 06:17:58 AM
 #3252

EDIT: I re-pasted and now it says "OK".  It's a little strange because I was using the same rawtransaction data sitting there in the terminal window.

I don't do any kind of logging of pushed raw transactions, so I can't check the logs to see what went wrong. I'm glad it worked out for you eventually though.

Edit: since the data is intended to be publicly broadcast I don't see any harm in logging it. So I'll do that going forward. That should help to debug this issue if it happens again.

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
Trent Russell
Full Member
***
Offline

Activity: 132
Merit: 100


willmathforcrypto.com


View Profile WWW
June 22, 2015, 05:20:05 PM
 #3253

Clam trading is "unavailable" on shapeshift.io at the moment. It's probably a good thing for me since I'm not sure I have the willpower to resist selling a few after the price spike of about 20% in the past hour. But I thought I'd point it out in case it's an issue shapeshift isn't aware of.

@Clam experts: What's the leading byte for clam p2sh addresses supposed to be? x05 or x0d?


x0d is the correct one to use now. It was originally x05 but there was a situation where an old just-dice user sent clams to a multisig btc address, so to avoid any future conflicts it was changed so the leading identifier was 6 when converted to base58.

I will look into the other multisig question for you tomorrow, just on my way to sleep.

Thanks!

Bitcoiner2015
Full Member
***
Offline

Activity: 120
Merit: 100


View Profile
June 22, 2015, 06:52:09 PM
 #3254

What's going on? 31 Bitcoins trying to buy at Poloniex..
chilly2k
Legendary
*
Offline

Activity: 1007
Merit: 1000


View Profile
June 22, 2015, 07:11:45 PM
 #3255

What's going on? 31 Bitcoins trying to buy at Poloniex..

No there are 110 bitcoins trying to buy.  There are 31 trying to buy at .0062   

dooglus
Legendary
*
Offline

Activity: 2940
Merit: 1339



View Profile
June 22, 2015, 07:28:04 PM
Last edit: June 23, 2015, 04:59:12 PM by dooglus
 #3256

I'm experimenting with multisig in clams. The first part worked (creating a p2sh and sending clams to it), but the second part (spending the funds) didn't do what I expected. I found a workaround, but it's possible there's a bug in signrawtransaction. Or I made a mistake, of course. Here's more detail:

1. I used "addmultisigaddress" and created a 2-of-2 address: 6WnV4Jhe7iNQLDekwr31h9zeoK1eaDMjAw

2. I sent 0.1 clams there (small enough that it's OK if I lose it). It's txout 0 of the transaction 21db92347e153a6afdddca7f96d444d81d7daa19674ed3101e50de72cb387b19. khashier shows this transaction, but is confused by the multisig address.

3. I used "createrawtransaction" to create an unsigned tx spending this back one of my ordinary addresses.

I had one private key in my wallet and the other on paper. Using "signrawtransaction" it would sign with the one in the wallet, as expected. But then if I tried to sign with "signrawtransaction" giving the other private key explicitly in the command line, it failed. (By "failed" I mean the partially signed transaction wasn't changed.)

I can reproduce the exact same behaviour. I'll investigate, and fix it if possible. It seems to not be using the private key provided in the signtransaction RPC call.

Thanks for the report.

The problem seems to be related to the fact that signrawtransaction decides whether to use information from the wallet, or from the RPC command arguments. It won't use both.

Here's an example where I make a transaction with two simple inputs. One's private key is in the wallet, and the other's is provided in the RPC command. signrawtransaction is unable to sign it fully:

Quote
$ cc signrawtransaction $(cc createrawtransaction '[{"txid":"dddf6ac41c281317aed6445196fc14db712f0cc5812880e45eb8e534ebffd8de","vout":0},{"txid":"5bbe0ca12578cb520266178b2d6413eb2597bc251e7343b03a9d42b8733ea961","vout":0}]' '{"xJDCLAMZtRD72TC31E8SJ4a6ycFtnQyuDH":0.1}') '[]' '["'$privkey'"]' | grep complete
    "complete" : false

But if I call signrawtransaction twice, once providing the private key on the command line and once not, it is successful:

Quote
$ cc signrawtransaction $(cc signrawtransaction $(cc createrawtransaction '[{"txid":"dddf6ac41c281317aed6445196fc14db712f0cc5812880e45eb8e534ebffd8de","vout":0},{"txid":"5bbe0ca12578cb520266178b2d6413eb2597bc251e7343b03a9d42b8733ea961","vout":0}]' '{"xJDCLAMZtRD72TC31E8SJ4a6ycFtnQyuDH":0.1}') | grep hex | cut -d'"' -f4) '[]' '["'$privkey'"]' | grep complete
    "complete" : true

Edit2: here I'm able to sign a transaction spending a multisig input (2 of 2) where one key is in the wallet and the other is in $privkey. I had to provide the scriptPubKey which isn't easy to get hold of:

Quote
$ cc signrawtransaction $(cc signrawtransaction $(cc createrawtransaction '[{"txid":"2db3324af1b8e5db5ec92b85ec68226e7b17664bdff34c8e73d303c6f7011907","vout":1}]' '{"xJDCLAMZtRD72TC31E8SJ4a6ycFtnQyuDH":0.1}') | grep hex | cut -d'"' -f4) '[{"txid":"2db3324af1b8e5db5ec92b85ec68226e7b17664bdff34c8e73d303c6f7011907","vout":1,"scriptPubKey":"a914810721c3f1790b5668dcd776d2df728cb9103b8f87","redeemScript":"522103145dbd6986ff283b26d88efc2d366ee3437e64fab8c084bc766bec0b5fc41a692103fb6c6 11bf45051b192077632d79b2201577231480165c8ecb45b34c4058e530b52ae"}]' '["'$privkey'"]' | grep complete
    "complete" : true

To get the scriptPubKey, I started with the multisig address, 6SA5Wh49HnS12U3zZLvYGdFb9kDXUGx7ye, and did this:

Quote
$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.append("/home/chris/Programs/python-bitcoinlib/") # from https://github.com/jgarzik/python-bitcoinlib.git
>>> import bitcoin.base58
>>> import binascii
>>> 'a9' + '14' + binascii.hexlify(bitcoin.base58.decode("6SA5Wh49HnS12U3zZLvYGdFb9kDXUGx7ye")[1:-4]) + '87'
'a914810721c3f1790b5668dcd776d2df728cb9103b8f87'
>>>

0xa9 is OP_HASH160
0x14 is 20, the length of the script hash in bytes
0x87 is OP_EQUAL

The redeemScript is from here:

Quote
$ cc validateaddress 6SA5Wh49HnS12U3zZLvYGdFb9kDXUGx7ye | grep hex
    "hex" : "522103145dbd6986ff283b26d88efc2d366ee3437e64fab8c084bc766bec0b5fc41a692103fb6c6 11bf45051b192077632d79b2201577231480165c8ecb45b34c4058e530b52ae",

I made a pull request to fix this issue: https://github.com/nochowderforyou/clams/pull/194

Now I can sign a 2-of-2 transaction without having to look up the scriptPubKey or the redeemScript for the multisig address:

Quote
$ cc signrawtransaction $(cc signrawtransaction $(cc createrawtransaction '[{"txid":"2db3324af1b8e5db5ec92b85ec68226e7b17664bdff34c8e73d303c6f7011907","vout":1}]' '{"xJDCLAMZtRD72TC31E8SJ4a6ycFtnQyuDH":0.1}') | grep hex | cut -d'"' -f4) '[]' '["'$privkey'"]' | grep complete
    "complete" : true

I do still need to run signrawtransaction twice, since it will still only take private keys from EITHER the wallet OR the RPC parameters, not both at the same time.

Edit3: I thought I made this edit yesterday, but I don't see it now, so I'll make it again...

I made a better pull request which lets signrawtransaction use all available private keys and multisig scripts:
  https://github.com/nochowderforyou/clams/pull/195

I also tagged a new release:
  https://github.com/nochowderforyou/clams/releases/tag/v1.4.12

And so now you can sign your 2-of-2 multisig transaction all at once, using 1 key from the wallet and one in WIF:

Quote
$ cc signrawtransaction $(cc createrawtransaction '[{"txid":"2db3324af1b8e5db5ec92b85ec68226e7b17664bdff34c8e73d303c6f7011907","vout":1}]' '{"xJDCLAMZtRD72TC31E8SJ4a6ycFtnQyuDH":0.1}') '[]' '["'$privkey'"]' | grep complete
    "complete" : true

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
PesiHUN
Member
**
Offline

Activity: 113
Merit: 10


View Profile
June 22, 2015, 09:09:52 PM
 #3257

i cant find calm.conf where i needed to be?

██████████    YoBit.net - Cryptocurrency Exchange - Over 350 coins
██████████    <<  ● $$$ - $$$ - $$$ - $$$ - $$$ - $$$ - $$$   >>
██████████    <<  ● Play DICE! Win 1-5 btc just for 5 mins!  >>
SuperClam (OP)
Hero Member
*****
Offline

Activity: 784
Merit: 1002


CLAM Developer


View Profile WWW
June 22, 2015, 09:29:29 PM
 #3258

i cant find calm.conf where i needed to be?

clam.conf should be located in the data directory - you may need to manually create it.
On windows, this defaults to %appdata%/clam/
On linux, this defaults to ~/.clam/

Alternatively, this can be set via command-line flag.

https://bitcointalk.org/index.php?topic=623147
Proof-Of-Chain, 100% Distributed BEFORE Launch.
Everyone who owned BTC, LTC, or DOGE at launch got free CLAMS.
tspacepilot
Legendary
*
Offline

Activity: 1456
Merit: 1090


I may write code in exchange for bitcoins.


View Profile
June 22, 2015, 11:33:49 PM
 #3259

@dooglus, you alias your clamd to "cc"?  Doesn't that screw your brain because, erm, c compiler?
dooglus
Legendary
*
Offline

Activity: 2940
Merit: 1339



View Profile
June 23, 2015, 03:12:45 AM
 #3260

@dooglus, you alias your clamd to "cc"?  Doesn't that screw your brain because, erm, c compiler?

I've used 'gcc' for as long as I can remember. Years ago I aliased 'bc' to 'bitcoind', then 'dc' to 'dogecoind', so clamd had to be cc really.

(And I know bc and dc are calculators, but I use Python as my command-line calculator, so that's not a problem either).

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
Pages: « 1 ... 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 [163] 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 ... 502 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!