Bitcoin Forum
June 15, 2024, 02:20:27 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Altcoin Discussion / [BOUNTY] Claim this mastercoin using the given private key on: May 23, 2014, 08:08:16 AM
Mastercoin (as well as other alternative coin) are available on the blockchain:
https://masterchain.info/Address.html?addr=1JwSSubhmg6iPtRjtyqhUYYH7bZg3Lfy1T&currency=MSC

They hide under http://xkcd.com/936/
Let's see you collecting this 0.1 MSC, as well as the 5 SBP.

It is trivial to add this address to your wallet:
1. visit https://masterchain.info/wallet.html
2. create password
3. add address - private key is 5KJvsngHeMpm884wtkJNzQGaCErckhHJBGFsvd3VyK5qMZXj3hS

Now you see your balance.
Clicking on the balance converts to the theoretical USD value (~28 USD).

To spend mastercoin protocol based coins, you need some funds, but if you put some funds on this address - they will be gone immediately Smiley
The solution probably involves a set of transactions sent together with wise fee calculation.

Let's see who takes those coins Smiley
Good luck!
2  Alternate cryptocurrencies / Altcoin Discussion / 99% minimal btc PRICE DROP for minting new currencies with distributed exchange on: May 13, 2014, 02:40:07 PM


masterchain.info reduced the minimal currency minting fee from 1 BTC to 0.01 BTC for few days - special offer for early adopters!
make your own chain with your own exodus address.

SBP coin was generated using 0.01 BTC:
minting transaction:
https://blockchain.info/tx/adea12e4751ee8bcec0cc7712aebceacd357d9624929a8c109e5b1b4097b722d

and it got its own subdomain automatically:
sbp.masterchain.info

The code implements mastercoin protocol - your address becomes the exodus address of a new mastercoin protocol chain, and now it is affordable for all.
You can also play with masterchain.info website locally inside virtualbox on your laptop: https://bitcointalk.org/index.php?topic=607492.0 or host it yourself.

According to the agreement I detailed on the announcement of the project ( https://bitcointalk.org/index.php?topic=583370.0 ), I keep the option to refund the minting transaction and stop hosting the distributed exchange of minted coins on masterchain.info before 5 years are over. The new coins will stay in the blockchain forever, and you can still use them on the distributed appliance and even host them online yourself, and the refund will be proportional to bitcoin fee and to the time left to complete 5 years.

enjoy.
3  Bitcoin / Project Development / [ANN] Distributed EXchange VM on your laptop: obelisk + mastercoin-tools + UI on: May 13, 2014, 02:18:35 PM
A local VM of masterchain.info can run on your laptop: obelisk + mastercoin-tools + UI

Now you can play with the bitcoin 2.0 distributed exchange of masterchain.info web hybrid wallet (https://bitcointalk.org/index.php?topic=583370.0) locally on your laptop
Install it via virtualbox.

The vm image (a.k.a appliance) is available for download on:
https://masterchain.info/downloads/mint2b.ova (open virtualization format version 1.0)
or using zsync:
zsync http://obelisk.secseq.com/mint2b.ova.zsync
md5sum:
143b942d8f114e510995fcbe7f605e40  mint2b.ova
size: 1440306688

Import the appliance to VirtualVox.
you may need to enable vboxnet0 (see http://islandora.ca/content/fixing-missing-vboxnet0 ) if virtual box complains on missing vboxnet0.

and access your local fresh webserver:
http://192.168.56.102 (or 101).
it will look and function exactly like masterchain.info
you will have all wallet features, including transactions creations for send/sell/accept

you can ssh dev@192.168.56.102
password dev

Code:
# to update mastercoin-tools and masterchain-world to the latest version
cd ~/masterchain-mint2b/mastercoin-tools
git pull
cd ~/masterchain-mint2b/masterchain-world
git pull

Code:
# to sync parse and validate using obelisk *once*
cd ~/masterchain-mint2b/mastercoin-tools/
sh msc_cron.sh
# make sure to clean the locks before on /tmp/m*.lock
# it may take long minutes depending on your bandwidth to the obelisk,
# how busy the obelisk is, and how many blocks behind your parsing setup is

Warning: there is no firewall and no security measures were taken (including default password), so if you expose the appliance on the Internet - make sure to fix that!

---------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you want to create the appliance yourself from scratch (or just interested how I made it), scroll down and follow instructions:


v
v
v
v
v


v
v
v
v


v
v
v


v
v


v




clean install ubuntu-14.04-server-amd64.iso on virtualbox
100GB disk, 1GB RAM
NIC1 - default (NAT)
NIC2 - Host-only Adapter (will be 192.168.56.102 or 101)

user: dev
password: dev

Code:
apt-get update
apt-get upgrade
apt-get install wget git ssh vim tmux zsync nginx python-simplejson python-ecdsa python-setuptools python-git uwsgi uwsgi-plugin-python
git clone https://github.com/richardkiss/pycoin.git
cd pycoin
sudo python setup.py install
cd
mkdir masterchain-mint2b
cd mastechain-mint2b
git clone https://github.com/grazcoin/mastercoin-tools.git
git clone https://github.com/masterchain/masterchain-world.git
cd
wget https://raw.githubusercontent.com/spesmilo/sx/master/install-sx.sh
sudo sh install-sh.sh

# update/add files (already available inside the vm):
/etc/nginx/sites-available/default
/etc/rc.local
~/scripts/killtree.sh
~/worker1/worker.cfg
~/.sx.cfg (to external server)
~/.tmux.conf
~/masterchain-mint2b/mastercoin-tools/msc_compare.py
~/masterchain-mint2b/mastercoin-tools/msc_compare_cron.sh

Code:
# prepare directory for web app logs
sudo mkdir /var/log/masterchain
sudo chown dev:dev /var/log/masterchain

Code:
# update some symlinks
cd ~/masterchain-mint2b/masterchain-world/www
rm -rf general addr
ln -s ../../mastercoin-tools/general
ln -s ../../mastercoin-tools/addr
ln -s ../../mastercoin-tools/tx
ln -s ../../mastercoin-tools/offers
ln -s ../../mastercoin-tools/mastercoin_verify
ln -s ../../mastercoin-tools/currencies.json
ln -s ../../mastercoin-tools/values.json
ln -s ../../mastercoin-tools/revision.json
cd mastercoin_verify/addresses
# for backward compat:
ln -s 1EXoDusjGwvnjZUyKkxZ4UHEf77z6A5S4P-1 0
ln -s 1EXoDusjGwvnjZUyKkxZ4UHEf77z6A5S4P-2 1

Code:
# to sync last state from masterchain.info (recommended at least once, or if some major parsing change was done).
cd ~/masterchain-mint2b/mastercoin-tools/
wget https://masterchain.info/downloads/
tar xfz masterchain-snapshot.tar.gz
rm masterchain-snapshot.tar.gz


If you are also into playing ...... so continue below:

Code:
# for a full obelisk node that runs locally:
# retrieve a snapshot of the blockchain on your host:
# zsync http://obelisk.secseq.com/obelisk_blockchain.tar.zsync
# extract it:
# tar xf obelisk_blockchain.tar
# copy it into virtualbox
# scp -dpr blockchain dev@192.168.1.102:worker1/
# run the obelisk
cd ~/worker1
obworker

# update .sx.cfg with
service = "tcp://localhost:9091"

Code:
# to run a consensus checker:
sh msc_compare_cron.sh
# and check results on
# http://192.168.56.102/general/MSC-difference.txt

# to start parsing from a specific block (e.g. 300000)
python msc_parse.py -r ~/masterchain-mint2b/mastercoin-tools -s 300000 > parsed.log

# to validate without bitcoin balance
python msc_validate -d -b > validated.log

4  Bitcoin / Project Development / [ANN] Masterchain.info - Kickstarter on the blockchain with distributed exchange on: April 30, 2014, 09:00:24 AM

There is fully distributed way to crowdfund using the blockchain and a distributed exchange:






Given you have a good idea which can interest the crowds - mint your distributed kickstarter coin (infos on Masterchain.info), publish on your site the list of benefits there are for donors (rebate, free products, wall of fame, shares, whatever), and fire your campaign.

To collect the funds just create sell offers of your tokens like: https://masterchain.info/index.html?filter=sell&currency=GRZ
Any donor could buy your campaign tokens directly on the blockchain, and even continue trading them after the campaign is over using the distributed exchange.

The whole crowdfunding procedure is totally distributed on the blockchain and using a mastercoin based protocol (Mint2B protocol), where you hold the exodus address, so you depend on no one. Bitcoins are exchanged against your tokens.

Donors that want to claim later the benefits will be required to send those tokens to an address of yours.
Otherwise, they can keep selling those token on the free market with distributed exchange, and potentially make gains.

In the following example (which is not crowdfunding, but could be used as one):
https://masterchain.info/index.html?filter=sell&currency=GRZ

there are few sell offers:
4000 coin for 0.02 BTC/coin
2000 coin for 0.03 BTC/coin
4000 coin for 0.04 BTC/coin
0.1 coin for 0.07 BTC/coin

Donors that paid 0.02 BTC could already make gains selling their tokens once the first batch is sold.
If your product/service is cool enough - this can become a hot market!
This dynamic live method may attract more donors than the static existing ones.

So what do you guys think about it?

[Remark: the original purpose of masterchain.info was a more general one, but I was contacted by few entrepreneurs asking about usage of masterchain.info for crowd-funding, and I thought it could be good to publish it here as a service]

5  Alternate cryptocurrencies / Altcoin Discussion / [ANN] Masterchain.info private Fiat on the blockchain with distributed exchange on: April 24, 2014, 10:42:10 PM


Join the bitcoin 2.0 revolution as an entrepreneur and introduce a new chain with your own rules using fully distributed mastercoin protocol cloner on top of the bitcoin blockchain.


#############################################################################
UPDATE 1: now a virtualbox appliance (VM image) is available for download, to play with the site locally - on your laptop:
https://bitcointalk.org/index.php?topic=607492.0
Enjoy the bitcoin blockchain and the distributed architecture
#############################################################################

#############################################################################
UPDATE 2:  Minimal bitcoin price reduction for minting a new coin from 1 BTC to 0.01 BTC (limited for few days)
Own your own exodus address for 1 bitcoin cent.
https://bitcointalk.org/index.php?topic=607512
#############################################################################

tldr:
Check existing new currencies
To make your own currency, just send 1 BTC from address you control to masterchain's mintage address, the new coin will appear within the next few blocks and have distributed exchange (DEx) on the bitcoin blockchain.
Note: 50% of donations to approved organizations are counted as payments.

Two subdomains for your coins are auto assigned - one for real and for test coins e.g.:
grz.masterchain.info for GRZ coins
tgrz.masterchain.info for Test GRZ coins

Run yourself masterchain.info clone or use it locally/distributed/offline by downloading the whole VM that runs masterchain.info (> 40GB - as it contains the bitcoin blockchain in obelisk form).
Latest source code is available on github of explorer and web hybrid wallet and github of parser.
The same stack that I developed for mastercoin.org (and became the official mastercoin parser) is used - with generalization in the exodus address dimension.
The part that generalize to multiple chains as well as the wallet are still in (advanced) beta stage - see known issues, but it is totally alive on the blockchain.



General:
Did you ever want to be a central bank, and simply create fiat money? You got to the right place. Mint your own coin directly on the bitcoin blockchain. Clone yourself the master protocol. Own an exodus address. Enjoy distributed exchange feature and a distributed market platform.
Minting a new coin using masterchain is more than just a user currency. It is owning a whole chain which is a mastercoin clone for yourself/company/friends-circle/community/tribe. You don't need to buy tokens from other alt-coins - the game is directly between your coin and bitcoin. You generate new tokens and everyone on the Internet can trade them. Those tokens can represent money/time/miles/bonus-points/fund-raising-shares/whatever. You set the rules, and the blockchain enforces the trading. You get a main-chain currency (not a sidechain) with exodus address that you provide.

Time frame:
The coins will stay on the blockchain forever, and having Moore law on my side, I intend to keep the site running for everyone to freely use forever as well.
If for some reason I will have to take this site down or stop parsing your currency on the main site before 5 years since your coin creation date - you will get refund on your BTC payment proportionally to the time left. Obviously all coins would stay on the blockchain as they are, and you will still be able to use the open source code, or even run a VM which is identical to masterchain.info site locally or publicly.
If the new currency you created is very successful - after 10,000 transactions - I reserve the right to stop supporting it on the main site without a refund (you could still have it on the VM or on a different site). If you insist that I host the browser/DEx for your popular currency - we could negotiate new terms. Keep in mind that mastercoin after >6 months has now around ~7000 transactions. Note: with 10,000 tx, you get dust of 5555 satoshis for each transaction - this already becomes 0.5555 BTC.

Payment:
The standard payment for Masterchain service is 5 BTC for minting a new coin/chain.
This is intended for any new coin with expected market cap higher than 100 BTC.
If you expect your market cap to be less than 100 BTC, you can pay 1 - 5 BTC and the difference would be automatically taken from your fresh minted coins assuming a market cap of 100 BTC.
Masterchain would like to support Philanthropy, so there is the option to donate to approved organizations and 50% of that donation is considered as payment to Masterchain. The minimum of 1 BTC to masterchain still holds.
What is the payment for:
* Minting services and parsing/validating your chain.
* Maintenance of code and server. Periodic prepare and upload of a masterchain snapshot inside a VM so you can run it locally in a fully distributed way. All other users get to see your coin and use it.
* At least 5 years (hopefully lifetime) service. If for some reason I can't keep maintaining it for the whole 5 years - you get your money back - proportionally to the time left from the 5 years.

Currency examples:
SSS coin has paid the minimal 1 BTC for the service and got 100,000 SSS coins, and the remaining 4 BTC got paid with 4,000 SSS coins (which went to 1Mchain address).

GLD coin has paid 1.042 BTC for the service and donated on this tx 0.1 BTC to FSF.org which is approved. The result was 100,000*(1.042 + 50%*0.1)=109200 GLD coins which stand for market cap of 100 BTC. The missing 5 - (1.042+50%*0.1) = 3.908 BTC is 3.908% of the 100 BTC market cap, or in GLD coins 3.908% * 109200 GLD = 4267,536 GLD, leaving 104932.464 GLD to the issuer

To keep all issued coins, one can either pay any of the following options:
* At least 5 BTC to masterchain and no donation (e.g. GRZ coin https://blockchain.info/tx/3e15262dbae095f2ae8faeddd15678c9bbb3bd1b4a885ed1174ca1e1c7137dec).
* 1 BTC to masterchain and 8 BTC to donations.
* 1+x BTC to mastercoin and 8-2x to donations.

The amount donated is visible on https://masterchain.info/Currencies.html - this already the first building block of your currency's value.


Value for the new coins
Your new minted coins are just tokens. Although I treat them as virtually valuable for some purpose, you are the one that pours value in to those coins. You can do it in many ways, e.g.:

GRZ:
Rules of GRZ coin:
http://pastebin.com/WEkQdNxU
you can verify the signature with http://brainwallet.org/#verify

GLD:
No rules got signed yet, but each coin should represents 1g of Gold. You have to trust me on that Smiley

MSC:
check masterchain.org

DNT:
mark which addresses are valid donations target


Example uses:
Closed community could maintain the work hours or other resources accounting.
Bank groups can create their own currency for inter-bank payments.
A group with a specific aim (e.g. open source) could pay gratitude points to contributors.
Selling tickets to events.
Philanthropy encouragement.


Minting:

How to mint:
1. Choose an address you control (private key). Better create your vanity address.
2. Pay from this address to 3Mint2B.

How many coins get minted:
Your payment in BTC times 100,000

What will be the name of the coin:
The birth name of the coin is the first 3 letters of the minter address (not including vowels, and not T as first letter).
It is upper case.
example: for 1GRazCon4gDqTh1pMNyh1xHVWnbQEVPfW8 it is GRZ, which is then GRZ coin.
If the name is occupied, the next consonant is added (recursively).

Changing currency rules? Adding features?
From the moment you preform the first transaction using your currency, its rules are set and frozen.
Until that moment you would be able to set different rules by signing requests (will be implemented later).
In the case of bugfixes of the parser - there will be the option to approve a certain bugfix using a signed request. If no such request got signed, the parsing of your currency will stay as is. Security or fatal errors will be fixed also with no specific approval.
 

Donations:
The first donation addresses taken from http://bitcoinsforcharity.org/charities :
https://blockchain.info/address/1PC9aZC4hNX2rmmrt7uHTfYAS3hRbph4UN (Free Software Foundation)
http://blockexplorer.com/address/1NoA98grVfXfVqysU4ijM9jhMBD8vmrUC8 (Amani Kinderdorf)
On request, I will add more charities e.g. from https://en.bitcoin.it/wiki/Donation-accepting_organizations_and_projects
but an identifying procedure is required. There will not be any politics related donation accepted as long as I approve them (this may become decentralized as well).
I hope that this part will be also decentralized asap, so my agenda doesn't influence the variety of donation targets.
A valid donation address is an address which has exactly a single incoming DNT transaction of 0.00000001 DNT from the Donate address.
You may even claim for tax returns.


Can I trust you?
I have been around in the community for a long enough, so many developers know me. Mastercoin official implementation, which masterchain code is based on, was coded by me.


Security:
The website and code is already under a security bounty for more than a month now. (http://mastercointalk.org/index.php?topic=263.0).
Nothing serious was found (except for heartbleed which got immediately fixed).
If the server gets hacked, there are 2 possible attacks:
1. The generated raw transaction can be changed, and if you blindly sign it you may be get a surprise.  You are encouraged to check the "advanced view" before every signature.
2. The javascript code could be tempered. I can either introduce some signature checking mechanism, but if you are paranoid -  you could use your own server, locally (the VM I will soon publish), and even work totally offline.

If you decide to keep the private keys in the wallet - they are kept AES encrypted in the browser's storage (using PBKDF2 with 750 iterations on your password as encryption seed). They never leave the browser. Your password is needed to unlock them for any private wallet activity.


More features?
If masterchain becomes successful, I will add features asked by the community.
Among the first would be:
* secure cloud storage based on private key signatures - for your wallets and those of your currency users.
* signed message board for your currency (where you sign contracts with the currency users). For now you can use pastebin.com
* price graphs and more eye candies.


Optimizations?
There is a *lot* of place for optimizations in the code. Some are trivial. For now it may take even 3 blocks until you see the tx. This will change.

What if bitcoin network changes?
There were rumors that multisig (BIP11) transaction will become non-standard.  If such a case happens, transaction will get confirmed very slow. Then we'll switch to alternatives, like BIP16 - together with other bitcoin 2.0 currencies.

Documentation?
My code is executable documentation ;-)
If it is not enough, you can check the spec and documentation done on an earlier version of mastercoin-tools.

Thanks:
I would like to thank Mastercoin foundation for the effort of developing this protocol. We only see its beginning.

Known issues:
To add address to the wallet - it must have some alternative currencies like MSC/TMSC/GRZ/etc (you can get some from mastercoin-faucet), or send a donation of at least 0.001 to https://blockchain.info/address/1MchainXySvRuhdAcJHFfyGLY47P3AEyP9

There have been reports on problems with addresses without public key on the blockchain - If you add the address to an empty wallet using the private key option, they should be resolved.



Share and enjoy!
Grazcoin


6  Alternate cryptocurrencies / Altcoin Discussion / mastercoin sync of all implementations on: December 08, 2013, 09:31:00 PM
This is great that we have multiple implementations for the mastercoin protocol, but they should all agree with each other.
I think the sync action between the different implementations deserves its own thread.

Currently I compare:
and generate a diff using:
https://github.com/grazcoin/mastercoin-tools/commit/0fe108a0e234441d533414efc6ef4e7e4d1ac90d

The diff is generated every round hour (since it seems like a heavy task on mastercoin-explorer.com):
https://masterchain.info/general/difference.json

Let's discuss the differences and try to get a sync.

Grazcoin
7  Alternate cryptocurrencies / Altcoin Discussion / [ANN] mastercoin-tools on: September 10, 2013, 07:32:03 PM
Package of mastercoin related tools.

available on https://github.com/grazcoin/mastercoin-tools

The intention is to help finalizing the mastercoins spec, and enable easy further coding.
It is based on https://github.com/spesmilo/sx with minor fixes on https://github.com/grazcoin/sx

For finalizing the spec, a list of address and mastercoins was generated.

To get all mastercoins sells during exodus bootstrap in csv format:
Code:
python msc_bootstrap.py > outputs/bootstrap.log

To get total amount of mastercoins for each address: python bootstrap_msc_per_address.py > outputs/msc_per_address.csv
Code:
python bootstrap_msc_per_address.py > outputs/msc_per_address.csv

To get the whole bootstrap story (for fun and debug), check:
Code:
python msc_bootstrap.py story > outputs/bootstrap_story.log

The outputs of those scripts are available under https://github.com/grazcoin/mastercoin-tools/tree/master/outputs

Once this list is agreed on the community, it would be possible to sign it with 1EXoDus address and take it as appendix for the spec (best would be as part of the github repository of the ascii spec). Also future protocol stack implementations could use it.

Aim of this package:
  • Live update - direct interaction with the bitcoin network (using sx monitor).
  • Run without a database.
  • Be an alternative code base.
Anyone should be able to run at home without the need for a database setup.

Next steps:
  • Parse mastercoin tx for all tx coming from sx-monitor tool listening on 1EXoDus address creating a mastercoin tx log (dropping the syntax invalid tx).
  • Accounting validator - checks that enough funds are available for each tx. Insufficient funds would mean invalid tx.

enjoy!

BTC/Mastercoins Tips Jar: 182osbPxCo88oaSX4ReJwUr9uAcchmJVaL
8  Bitcoin / Electrum / Missing freeze/unfreeze and BTC wallet amount featues in electrum 1.7 on: March 18, 2013, 08:26:04 AM
Thank you for the new&shiny electrum version!
In previous versions, I could see in "Receive" window how many BTC each wallet holds, and control which wallet are used to send the BTC using the freeze/unfreeze feature.
* Are these features gone?
* Can they be re-added using a plugin?
* Is there some other way to control which wallet are involved in a tx?
9  Bitcoin / Development & Technical Discussion / [ALPHA] Double signed wallet with a patternlock on: September 09, 2012, 12:42:21 AM
Eventually a simple multisig protection to your wallet.
It may save your bitcoins also if your private key is compromised.

The basic service is a free way to secure your wallet using a secondary remote signature, activated by a patternlock
This is an alpha release of the service.

Few links:
https://ubtcbank.com/basic/  - directly the service
https://ubtcbank.com/  - some marketing, example, faq and more
https://github.com/grazcoin/ubtcbank  - the source code

Please your comments.
Grazcoin
10  Bitcoin / Development & Technical Discussion / [Bug] signrawtransaction of multisig with explicit privkey doesn't work on: September 02, 2012, 08:28:05 PM
Hi there,

I was trying to sign a multisig rawtx using explicit privkey and encountered some problems.
Description below:

1. create multisig address from 2 addresses ("1MZNrRbGg8AD7rz8TLw451DByJF6e3CZDZ", "12oESJ63gKmf7EtqEdrV7Xnid8dmYTBKE3")
Code:
$ bitcoind addmultisigaddress 2 '["04e89a79651522201d756f14b1874ae49139cc984e5782afeca30ffe84e5e6b2cfadcfe9875c490c8a1a05a4debd715dd57471af8886ab5dfbb3959d97f087f77a","0455cf4a3ab68a011b18cb0a86aae2b8e9cad6c6355476de05247c57a9632d127084ac7630ad89893b43c486c5a9f7ec6158fb0feb708fa9255d5c4d44bc0858f8"]'
34y6HmY6zTH51KTC9vd36HasNL4kLKcisC

2. create tx of 1BTC to 1LCSzvp2xWHFt3x1qnz8JNGX1sXEfy48pJ. There are enough funds:
http://blockchain.info/unspent?address=34y6HmY6zTH51KTC9vd36HasNL4kLKcisC
Code:
$ bitcoind createrawtransaction '[{"txid":"8e7068fcbad6059ef5add9615888606bf0c20b7be076c8e7f969ad8b0e056ecb","vout":1}]' '{"1LCSzvp2xWHFt3x1qnz8JNGX1sXEfy48pJ":1}'
0100000001cb6e050e8bad69f9e7c876e07b0bc2f06b60885861d9adf59e05d6bafc68708e0100000000ffffffff0100e1f505000000001976a914d294ab0b27d2cdd04a43f0a8c6105222a444e93b88ac00000000

3. try to sign with no explicit privkey and no privkey in my main wallet. Not signed as expected.
Code:
$ bitcoind signrawtransaction 0100000001cb6e050e8bad69f9e7c876e07b0bc2f06b60885861d9adf59e05d6bafc68708e0100000000ffffffff0100e1f505000000001976a914d294ab0b27d2cdd04a43f0a8c6105222a444e93b88ac00000000 '[{"scriptPubKey": "a91423f2ad603145e5ef55dec9ae4cd38a0bf37f5d9887", "vout": 1, "txid": "8e7068fcbad6059ef5add9615888606bf0c20b7be076c8e7f969ad8b0e056ecb"}]'
{
    "hex" : "0100000001cb6e050e8bad69f9e7c876e07b0bc2f06b60885861d9adf59e05d6bafc68708e0100000000ffffffff0100e1f505000000001976a914d294ab0b27d2cdd04a43f0a8c6105222a444e93b88ac00000000",
    "complete" : false
}

4. try to give explicit privkey (of first address). Not signed. Not expected.
Code:
$ bitcoind signrawtransaction 0100000001cb6e050e8bad69f9e7c876e07b0bc2f06b60885861d9adf59e05d6bafc68708e0100000000ffffffff0100e1f505000000001976a914d294ab0b27d2cdd04a43f0a8c6105222a444e93b88ac00000000 '[{"scriptPubKey": "a91423f2ad603145e5ef55dec9ae4cd38a0bf37f5d9887", "vout": 1, "txid": "8e7068fcbad6059ef5add9615888606bf0c20b7be076c8e7f969ad8b0e056ecb"}]' '["5KCqBSbPfaQtMaYgU1aZHqFoWqcJC1RrgCUr11M8sBX93K2UQR4"]'
{
    "hex" : "0100000001cb6e050e8bad69f9e7c876e07b0bc2f06b60885861d9adf59e05d6bafc68708e0100000000ffffffff0100e1f505000000001976a914d294ab0b27d2cdd04a43f0a8c6105222a444e93b88ac00000000",
    "complete" : false
}

5. import privkey and try to sign with no explicit privkey. Signed as expected.
Code:
$ bitcoind importprivkey 5KCqBSbPfaQtMaYgU1aZHqFoWqcJC1RrgCUr11M8sBX93K2UQR4
$ bitcoind addmultisigaddress 2 '["...","..."]' # signing doesn't work without re-running addmultisigaddress
34y6HmY6zTH51KTC9vd36HasNL4kLKcisC
$ bitcoind signrawtransaction 0100000001cb6e050e8bad69f9e7c876e07b0bc2f06b60885861d9adf59e05d6bafc68708e0100000000ffffffff0100e1f505000000001976a914d294ab0b27d2cdd04a43f0a8c6105222a444e93b88ac00000000 '[{"scriptPubKey": "a91423f2ad603145e5ef55dec9ae4cd38a0bf37f5d9887", "vout": 1, "txid": "8e7068fcbad6059ef5add9615888606bf0c20b7be076c8e7f969ad8b0e056ecb"}]'
{
    "hex" : "0100000001cb6e050e8bad69f9e7c876e07b0bc2f06b60885861d9adf59e05d6bafc68708e01000000d30048304502206c7723e081aacd17e3bf276626ac1d99779f43e046a2757d7a62107fce22c939022100bd02cdf74775e5ea94a4851acb3b89e2aa211b405a95940f5226d473612d871a014c87524104e89a79651522201d756f14b1874ae49139cc984e5782afeca30ffe84e5e6b2cfadcfe9875c490c8a1a05a4debd715dd57471af8886ab5dfbb3959d97f087f77a410455cf4a3ab68a011b18cb0a86aae2b8e9cad6c6355476de05247c57a9632d127084ac7630ad89893b43c486c5a9f7ec6158fb0feb708fa9255d5c4d44bc0858f852aeffffffff0100e1f505000000001976a914d294ab0b27d2cdd04a43f0a8c6105222a444e93b88ac00000000",
    "complete" : false
}

6. try to sign with explicit privkey, when privkey is present in main wallet. Not signed. Already expected according to #4.
Code:
$ bitcoind signrawtransaction 0100000001cb6e050e8bad69f9e7c876e07b0bc2f06b60885861d9adf59e05d6bafc68708e0100000000ffffffff0100e1f505000000001976a914d294ab0b27d2cdd04a43f0a8c6105222a444e93b88ac00000000 '[{"scriptPubKey": "a91423f2ad603145e5ef55dec9ae4cd38a0bf37f5d9887", "vout": 1, "txid": "8e7068fcbad6059ef5add9615888606bf0c20b7be076c8e7f969ad8b0e056ecb"}]' '["5KCqBSbPfaQtMaYgU1aZHqFoWqcJC1RrgCUr11M8sBX93K2UQR4"]'
{
    "hex" : "0100000001cb6e050e8bad69f9e7c876e07b0bc2f06b60885861d9adf59e05d6bafc68708e0100000000ffffffff0100e1f505000000001976a914d294ab0b27d2cdd04a43f0a8c6105222a444e93b88ac00000000",
    "complete" : false
}


More info:
I am running bitcoin-0.7.0rc1-linux (64bit)

What did I miss?
Grazcoin
11  Bitcoin / Development & Technical Discussion / [Bug?] 2-of-3 multisig address behaves as 3-of-3 on: July 07, 2012, 04:22:26 PM
Hello everyone!

Now, when I got white-listed, I can post it here:
I have been trying the multisig BIP 16 using the latest 0.6.3 client on Ubuntu 64 bit.
I was trying to create 2 from 3 sig address, but it behaves like 3 out of 3 sig address.

$ bitcoind addmultisigaddress 2 '["04d4f81d9c28413d3019a202e63a828c884dcaffa094a9e66fb8dec623a1445d3fe099ca7c3087c 13ac6b62ad7f547eff25df552e94e12f6fbfc4535c1c2b4b78a","0420c41cb722082943e7da602557b2e28a84ebad90bdfbae8499d9ae77a3752570d711649b2e54f 87b9064b7dc72f5f96203a782e82cfc08a5ac576d933ca92de1","04eb3fbbd85992aeb3ef8d752f733661349fcbfce2683200b90009c8b4e713ffd93da9fc7f840e2 2cca18ed6d66ed51cdca729586f0c5b17f9f4f3c493ba7cdab7"]'
3G2v3VJZ46fjgLMqEF3CzLq3k9FPMgauh4
$
$ bitcoind validateaddress 3G2v3VJZ46fjgLMqEF3CzLq3k9FPMgauh4
{
"isvalid" : true,
"address" : "3G2v3VJZ46fjgLMqEF3CzLq3k9FPMgauh4",
"isscript" : true,
"ismine" : false,
"script" : "multisig",
"addresses" : [
"12tbLXQkERTB6Sq99EHptWuWJJgXqkZb4z",
"18pu5kF3kf9N8Ft5xuTGD2v3EdB9Hahwgh",
"19ARwmH1H1QMFSjmB14fyA4QrZigiM8sNV"
],
"sigsrequired" : 2,
"account" : ""
}

I have sent 0.1 BTC to the 3G... address directly from instawallet: 3dd40692d5594ee1302c3a6fce4c9086af3324dfadabf97150c8c5ea7ff78f1a
as well as the following:
$ bitcoind sendtoaddress 3G2v3VJZ46fjgLMqEF3CzLq3k9FPMgauh4 0.05
6c2f5a608fb3ef3e64e728ad430f60bbd6857de662b152dc2ef55eb25fdf2e93

I have made a backup of wallet.dat before importing.
Then I imported the keys #1, #2, #3
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5Jm...
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5KQ...
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5Ji...
$ bitcoind getbalance
0.36700000
Also in a different order (#3, #2, #1) the result is the same:
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5Ji...
$ bitcoind importprivkey 5KQ...
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5Jm...
$ bitcoind getbalance
0.36700000

And also when I try to import #1, #3, #2  same.

Did I miss something?
If there is a need, I could give the private keys (well, at least 2 of them, and to someone I trust ;-))

Grazcoin.
12  Other / Beginners & Help / [Bug?] 2-of-3 multisig address behaves as 3-of-3 on: July 07, 2012, 03:55:15 PM
Hello everyone!

Since I am still locked at the newbies section, that's where I post this (suspected) bug.
I have been trying the multisig BIP 16 using the latest 0.6.3 client on Ubuntu 64 bit.
I was trying to create 2 from 3 sig address, but it behaves like 3 out of 3 sig address.

$ bitcoind addmultisigaddress 2 '["04d4f81d9c28413d3019a202e63a828c884dcaffa094a9e66fb8dec623a1445d3fe099ca7c3087c 13ac6b62ad7f547eff25df552e94e12f6fbfc4535c1c2b4b78a","0420c41cb722082943e7da602557b2e28a84ebad90bdfbae8499d9ae77a3752570d711649b2e54f 87b9064b7dc72f5f96203a782e82cfc08a5ac576d933ca92de1","04eb3fbbd85992aeb3ef8d752f733661349fcbfce2683200b90009c8b4e713ffd93da9fc7f840e2 2cca18ed6d66ed51cdca729586f0c5b17f9f4f3c493ba7cdab7"]'
3G2v3VJZ46fjgLMqEF3CzLq3k9FPMgauh4
$
$ bitcoind validateaddress 3G2v3VJZ46fjgLMqEF3CzLq3k9FPMgauh4
{
"isvalid" : true,
"address" : "3G2v3VJZ46fjgLMqEF3CzLq3k9FPMgauh4",
"isscript" : true,
"ismine" : false,
"script" : "multisig",
"addresses" : [
"12tbLXQkERTB6Sq99EHptWuWJJgXqkZb4z",
"18pu5kF3kf9N8Ft5xuTGD2v3EdB9Hahwgh",
"19ARwmH1H1QMFSjmB14fyA4QrZigiM8sNV"
],
"sigsrequired" : 2,
"account" : ""
}

I have sent 0.1 BTC to the 3G... address directly from instawallet: 3dd40692d5594ee1302c3a6fce4c9086af3324dfadabf97150c8c5ea7ff78f1a
as well as the following:
$ bitcoind sendtoaddress 3G2v3VJZ46fjgLMqEF3CzLq3k9FPMgauh4 0.05
6c2f5a608fb3ef3e64e728ad430f60bbd6857de662b152dc2ef55eb25fdf2e93

I have made a backup of wallet.dat before importing.
Then I imported the keys #1, #2, #3
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5Jm...
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5KQ...
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5Ji...
$ bitcoind getbalance
0.36700000
Also in a different order (#3, #2, #1) the result is the same:
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5Ji...
$ bitcoind importprivkey 5KQ...
$ bitcoind getbalance
0.21700000
$ bitcoind importprivkey 5Jm...
$ bitcoind getbalance
0.36700000

And also when I try to import #1, #3, #2   same.

Did I miss something?
If there is a need, I could give the private keys (well, at least 2 of them, and to someone I trust ;-))

Grazcoin.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!