Author

Topic: [ANN][CLAM] CLAMs, Proof-Of-Chain, Proof-Of-Working-Stake, a.k.a. "Clamcoin" - page 327. (Read 1151252 times)

legendary
Activity: 2940
Merit: 1333
I do not remember installing any drivers unless they were auto installed on an update. I will do a clean install and make another video later, including the -P flag.

Oh, maybe the ubuntu installer detects the video card and installs the driver for you. I don't have a video card other thank some built in thing.

I'm thinking the video should also include how to generate the -P public key, for those who want to play the other side of the game and have addresses generated for them, and also how to combine the privkey reported by vanitygen with their own private key to get a usable address. But that part's tricky.

bitaddress.org's 'vanity wallet' tab does all the hard work for Bitcoin addresses, but I don't know of a CLAM version. Maybe I should host one...
legendary
Activity: 2940
Merit: 1333
So only the staked 1 Clam coin will move to the specified address? will it work like the send 4 charity feature on other wallets?

It sends the whole N+1+fees output to the staketo address.

But your way would be nice too. -stakerewardto= maybe?
hero member
Activity: 938
Merit: 502
I made a short little video on how to compile and run oclvanitygen on ubuntu to get a custom BTC or CLAM address using doogs branch of vanitygen.


I know it seems simple, but there were as lot of people that had issues when there was the contest.

https://youtu.be/ml2PFw7KiJU

Nice, but isn't the hard bit getting the video card drivers installed?

Also, the -P pubkey flag is important, so the finder doesn't know the final private key.

I do not remember installing any drivers unless they were auto installed on an update. I will do a clean install and make another video later, including the -P flag.
legendary
Activity: 1148
Merit: 1000

I ended up adding a new flag to the CLAM client: -staketo=ADDR which you can use to tell it to move coins to the new address as they stake.


Wow. That is an awesome feature.

So only the staked 1 Clam coin will move to the specified address? will it work like the send 4 charity feature on other wallets?
full member
Activity: 132
Merit: 100
willmathforcrypto.com
Dooglus, do you have some helpful links in how to create a CLAMS like distribution?

I want to create redeemable keys securely for 2 different Coins but I have having a hard time finding useful information that is easy to understand.

There was a preannouncement earlier this year for Qeditas:

https://bitcointalksearch.org/topic/pre-ann-qeditas-a-formal-library-as-a-bitcoin-spin-off-998559

They said the plan was to distribute based on a snapshot of Bitcoin's blockchain when it hit block 350,000 (the first 14 million bitcoins). Since it still seems to be in development, I'm not sure that's still the plan. But they did make a snapshot of addresses with balances available to download from mega:

https://mega.co.nz/#F!0xhzUbTS!h-LeyiTbF9dXgusKCc_bfQ

It's over 3 months old now, but it might be a helpful starting point.
hero member
Activity: 784
Merit: 1002
CLAM Developer
Ok thanks for the help, I'll send them a message and see if they may be able to point me in the right direction.
Include the CLAM community into your distribution - and we will go so far as to provide scripts or even do it for you Smiley
Before you take the CLAM snapshot give me a second to split the JD staking wallet into 100,000 different addresses...
ftw
Edit: and by that I mean you should make sure the snapshot date is some time before now. Because otherwise people will abuse it.

Or, distribute based proportionally to balance.
Or, alternatively, distribute at a minimum balance that is high enough to make splitting likely negative expected value.
legendary
Activity: 2940
Merit: 1333
I made a short little video on how to compile and run oclvanitygen on ubuntu to get a custom BTC or CLAM address using doogs branch of vanitygen.


I know it seems simple, but there were as lot of people that had issues when there was the contest.

https://youtu.be/ml2PFw7KiJU

Nice, but isn't the hard bit getting the video card drivers installed?

Also, the -P pubkey flag is important, so the finder doesn't know the final private key.
hero member
Activity: 938
Merit: 502
I made a short little video on how to compile and run oclvanitygen on ubuntu to get a custom BTC or CLAM address using doogs branch of vanitygen.


I know it seems simple, but there were as lot of people that had issues when there was the contest.

https://youtu.be/ml2PFw7KiJU
legendary
Activity: 2940
Merit: 1333
Ok thanks for the help, I'll send them a message and see if they may be able to point me in the right direction.

Include the CLAM community into your distribution - and we will go so far as to provide scripts or even do it for you Smiley

Before you take the CLAM snapshot give me a second to split the JD staking wallet into 100,000 different addresses...

ftw

Edit: and by that I mean you should make sure the snapshot date is some time before now. Because otherwise people will abuse it.
hero member
Activity: 784
Merit: 1002
CLAM Developer
Dooglus, do you have some helpful links in how to create a CLAMS like distribution?
I want to create redeemable keys securely for 2 different Coins but I have having a hard time finding useful information that is easy to understand.
I don't, sorry. I wasn't around for the initial distribution of CLAMs.
The big picture is pretty clear: You can convert BTC addresses to CLAM addresses simply by changing the 'version' byte in the base58check encoding. So I guess all you need to do is get a list of the BTC addresses you want to fund, convert them to your new coin's addresses, and fund those addresses.
But as for actual scripts to do the work for you, I don't have them. Maybe SuperClam or xploited do.
Ok thanks for the help, I'll send them a message and see if they may be able to point me in the right direction.

Include the CLAM community into your distribution - and we will go so far as to provide scripts or even do it for you Smiley
legendary
Activity: 2940
Merit: 1333
This is a good site that can calculate bitcoin/altcoin addresses:
http://gobittest.appspot.com/Address

Look at the "4 - Adding network bytes to 3" section. Good luck!

I wrote a short Python script that does the same:

Code:
#!/usr/bin/env python

import sys
sys.path.append("/home/chris/Programs/python-bitcoinlib/") # from https://github.com/jgarzik/python-bitcoinlib.git
import bitcoin.base58

def to_addr(addr, magic): return bitcoin.base58.CBase58Data.from_bytes(bitcoin.base58.decode(addr)[1:-4], magic).__str__()
def to_btc(addr): return to_addr(addr, 0x00)
def to_doge(addr): return to_addr(addr, 0x1e)
def to_ltc(addr): return to_addr(addr, 0x30)
def to_clam(addr): return to_addr(addr, 0x89)

def addresses(addr):
    return '\n%s\n%s\n%s\n%s\n' % (
        '%6s: http://blockchain.info/address/%s'    % ('BTC', to_btc(addr)),
        '%6s: http://dogechain.info/address/%s'     % ('DOGE', to_doge(addr)),
        '%6s: http://block-explorer.com/address/%s' % ('LTC', to_ltc(addr)),
        '%6s: http://khashier.com/address/%s'       % ('CLAM', to_clam(addr)))

for i in sys.argv[1:]:
    print addresses(i)

You give it an address, and it converts it to the corresponding address for other coins:

Code:
$ ./clam.py 1AuZSHPe92kDq2YHNkjfh9Pb72bjLnvBAr

   BTC: http://blockchain.info/address/1AuZSHPe92kDq2YHNkjfh9Pb72bjLnvBAr
  DOGE: http://dogechain.info/address/DF3eyYLHSSeWN2it7LjEEuZBzAL2de5jif
   LTC: http://block-explorer.com/address/LV8WhVhUDgzH5qESYtixyATMKEy1Vid6y9
  CLAM: http://khashier.com/address/xJDCLAE7QkEFsQe9jENL8KgNL8txiLRAdN

$
jr. member
Activity: 42
Merit: 1
Dooglus, do you have some helpful links in how to create a CLAMS like distribution?

I want to create redeemable keys securely for 2 different Coins but I have having a hard time finding useful information that is easy to understand.

I don't, sorry. I wasn't around for the initial distribution of CLAMs.

The big picture is pretty clear: You can convert BTC addresses to CLAM addresses simply by changing the 'version' byte in the base58check encoding. So I guess all you need to do is get a list of the BTC addresses you want to fund, convert them to your new coin's addresses, and fund those addresses.

But as for actual scripts to do the work for you, I don't have them. Maybe SuperClam or xploited do.

Ok thanks for the help, I'll send them a message and see if they may be able to point me in the right direction.

This is a good site that can calculate bitcoin/altcoin addresses:
http://gobittest.appspot.com/Address

Look at the "4 - Adding network bytes to 3" section. Good luck!
legendary
Activity: 882
Merit: 1024
Dooglus, do you have some helpful links in how to create a CLAMS like distribution?

I want to create redeemable keys securely for 2 different Coins but I have having a hard time finding useful information that is easy to understand.

I don't, sorry. I wasn't around for the initial distribution of CLAMs.

The big picture is pretty clear: You can convert BTC addresses to CLAM addresses simply by changing the 'version' byte in the base58check encoding. So I guess all you need to do is get a list of the BTC addresses you want to fund, convert them to your new coin's addresses, and fund those addresses.

But as for actual scripts to do the work for you, I don't have them. Maybe SuperClam or xploited do.

Ok thanks for the help, I'll send them a message and see if they may be able to point me in the right direction.
legendary
Activity: 2940
Merit: 1333
Dooglus, do you have some helpful links in how to create a CLAMS like distribution?

I want to create redeemable keys securely for 2 different Coins but I have having a hard time finding useful information that is easy to understand.

I don't, sorry. I wasn't around for the initial distribution of CLAMs.

The big picture is pretty clear: You can convert BTC addresses to CLAM addresses simply by changing the 'version' byte in the base58check encoding. So I guess all you need to do is get a list of the BTC addresses you want to fund, convert them to your new coin's addresses, and fund those addresses.

But as for actual scripts to do the work for you, I don't have them. Maybe SuperClam or xploited do.
legendary
Activity: 882
Merit: 1024
Dooglus, do you have some helpful links in how to create a CLAMS like distribution?

I want to create redeemable keys securely for 2 different Coins but I have having a hard time finding useful information that is easy to understand.
legendary
Activity: 2940
Merit: 1333
So, how do i go about claiming my clams with private keys? not clear from OP.

The easiest way is to import your whole BTC/LTC/DOGE wallet.dat into the CLAM client. It will add all the private keys into its own wallet and scan the blockchain for distribution CLAMs.

Alternatively, if you have specific private keys in WIF format, you can "importpriv" in the CLAM client debug console.

As a third alternative, you can use the Just-Dice.com chat tab to check addresses for CLAM (/dig ADDRESS) and to claim any CLAMs it locates (/dig ADDRESS PRIVKEY). That involves sending your private key to a remote server, so make sure the address is empty and retired from use before doing that.

Oh, and finally, you can use an the CLAM client on an offline machine (without even a copy of the blockchain) to sign a transaction with your private key. Then you don't have to trust the CLAM client or Just-Dice.com. The Just-Dice chat tab can give you a command to run on the offline machine. For example, I type:

Quote
/dig 1CrPRwBkwZdEejXusCbh8o35YMN7g7ffKf offline

and it tells me:

Quote
02:14:34 INFO: run the following on an offline Linux machine, then broadcast the resulting hex value using https://just-dice.com/pushtx
02:14:34 INFO: the addr= part tells it where to send your CLAMs; the default is your Just-Dice deposit address
02:14:34 INFO: when prompted, type your private key:
02:14:34 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'"]'
legendary
Activity: 1498
Merit: 1000
So, how do i go about claiming my clams with private keys? not clear from OP.
legendary
Activity: 1330
Merit: 1000
Blockchain Developer

I ended up adding a new flag to the CLAM client: -staketo=ADDR which you can use to tell it to move coins to the new address as they stake.


Wow. That is an awesome feature.
legendary
Activity: 1833
Merit: 1030
Thanks Doog - We'll keep an eye out for a fix, then it should be pretty easy for us to integrate into PeerBet!



I opened a github issue about this: https://github.com/nochowderforyou/clams/issues/202
legendary
Activity: 1512
Merit: 1057
SpacePirate.io
Checking in to see if there's a testnet for clam yet. I think I remember someone saying in a future release, so just checking Smiley
Jump to: