442
|
Bitcoin / Electrum / Re: Electrum 1.9 released
|
on: November 04, 2013, 01:55:39 PM
|
Aha. Was it always like that? I'm sure I remember options being in the menu bar.
Apologies if I just remembered wrongly. (!)
Thanks for fixing the link.
This was indeed the case, you are not slowly turning mad. I think Thomas removed the bar from the Lite GUI to make it more Lite
|
|
|
443
|
Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread)
|
on: November 04, 2013, 01:46:30 PM
|
Yeah, I think we should use the timestamp of the most recent bitcoin block, rather than the node's local clock.
I guess the full formula is actually (1-(0.5^y)) * 10% * total number of mastercoins bought at 1Exodus before the deadline
Could somebody confirm my vesting calculation is correct? Let's set the time to 2013-10-31 10:45:45 +0100 the output I get for the Exodus vesting is MSC 6103.51504811. Just a quick note on this one - I'm getting slightly different amounts, can you let me know what you're using for your fixed values? I'm using: * Seconds in a year: 31557600 * End of funding: 1377993600 * Total Reward Mastercoins: 56316.23576222 Using your example time (1383212745) I'm seeing 6099.57209817. Thanks for checking. This is what I'm using now. time_difference = (tx_date - Mastercoin::END_TIME) / 60 / 60 / 24 / 365.25 exodus_vesting = (1-(0.5**time_difference)) * 0.1 * 563_162.23576222
tx_date = 1383212745 Mastercoin::END_TIME = 1377993600 time_difference = 5219145 Giving me a total of 6060.791436028762 (I initially used a rounded down value for the total amount of MSC, doh.) Could I just get you to double check your numbers one more time mate? I've double checked mine and we're using the same formula but getting different results it seems. I've expanded out the numbers for clarity: Console.WriteLine((1 - (0.5 ^ ((1383212745 - 1377993600) / 31557600))) * 56316.23576222) 6099.57209816932
For my implementation of the distributed exchange it'll be a few more days before I open up the wallet for testing and push the new engine up to Masterchest as I still have some areas to fix up from the changes (had to change the way I handled transactions) but I'll start putting some of my tests in the blockchain soon and see how my stuff interops with the stuff you guys have already done "waiting for payment" means it hasn't seen a payment made by the buyer to the seller for the purchase transaction.
The way I understand it is the buyer has to send a btc payment direct to the sellers address and .00006 btc to the exodus address (one transaction 2 sends) before the test msc is transferred.
That's correct, a payment to Exodus is required when sending the BTC payment (though it doesn't necessarily have to be 0.00006, anything >dust is fine). There have been some trades already done (see for example 18xEZx3po1iJWP5H2aM3Do11dCGQyaebnT) that appear to be valid Not sure what changed but I ran the code again now and got a different answer somehow. It's still not a 100% match though. 1.9.3-p286 :002 > tx_date = Time.parse("2013-10-31 10:45:45 +0100") => 2013-10-31 10:45:45 +0100 1.9.3-p286 :003 > time_difference = (tx_date - Mastercoin::END_TIME) / 60 / 60 / 24 / 365.25 => 0.1653847250741501 1.9.3-p286 :004 > exodus_vesting = (1-(0.5**time_difference)) * 0.1 * 563_162.23576222 => 6099.570778312406
|
|
|
444
|
Alternate cryptocurrencies / Altcoin Discussion / Re: The collective Mastercoin-explorer, Mastercoin-ruby and Mastercoin-wallet topic
|
on: November 04, 2013, 10:18:18 AM
|
Awesome! As soon as I got some time I am going to work on making mastercoin-explorer faster. Zathras already implemented this but showing unconfirmed transactions on the site would be really awesome. Right now it needs to be included in a block and then my script needs to parse it. This is slow and once the distributed exchange starts up this will really make a difference in the user experience. I will also add more sources to push the transaction. Right now it pushes the transaction to the Bitcoin instance running on the mastercoin-explorer site. I will also make it push it to blockchain and Eligius to make sure it has fast propegation when you send it through the Mastercoin-Wallet. The earlier it's in a block the better
|
|
|
445
|
Alternate cryptocurrencies / Altcoin Discussion / Re: The collective Mastercoin-explorer, Mastercoin-ruby and Mastercoin-wallet topic
|
on: November 04, 2013, 10:03:58 AM
|
For a non-dev like me it was quite a challenge to install this, but got it running finally. Awesome wallet so far! Unfortunately, the app crashes when trying to make a simple send or when creating a new selling / purchasing offer. I suspect that's just a problem with my specific system setup (I'm on OS X 10.8.5) but I'm not sure yet what's causing this. Here's the terminal output after the crash (I removed the Bitcoin::Key part, don't know if this is sensitive data): /Users/max/.rvm/gems/ruby-1.9.3-p448/gems/mastercoin-wallet-0.0.3/lib/mastercoin-wallet/builder.rb:178:in `create_transaction_with_keys': undefined method `pub_compressed' for #<Bitcoin::Key:XXXXXXXX> (NoMethodError) from /Users/max/.rvm/gems/ruby-1.9.3-p448/gems/mastercoin-wallet-0.0.3/lib/mastercoin-wallet/gui/simple_send_window.rb:51:in `send_payment' from /Users/max/.rvm/gems/ruby-1.9.3-p448/gems/qtbindings-4.8.3.0/lib/Qt/qtruby4.rb:880:in `qt_metacall' from /Users/max/.rvm/gems/ruby-1.9.3-p448/gems/qtbindings-4.8.3.0/lib/Qt/qtruby4.rb:880:in `method_missing' from /Users/max/.rvm/gems/ruby-1.9.3-p448/gems/qtbindings-4.8.3.0/lib/Qt/qtruby4.rb:880:in `exec' from /Users/max/.rvm/gems/ruby-1.9.3-p448/gems/mastercoin-wallet-0.0.3/lib/mastercoin-wallet/gui/main_window.rb:95:in `new_simple_send' from /Users/max/.rvm/gems/ruby-1.9.3-p448/gems/qtbindings-4.8.3.0/lib/Qt/qtruby4.rb:880:in `qt_metacall' from /Users/max/.rvm/gems/ruby-1.9.3-p448/gems/qtbindings-4.8.3.0/lib/Qt/qtruby4.rb:880:in `method_missing' from /Users/max/.rvm/gems/ruby-1.9.3-p448/gems/qtbindings-4.8.3.0/lib/Qt/qtruby4.rb:880:in `exec' from /Users/max/.rvm/gems/ruby-1.9.3-p448/gems/mastercoin-wallet-0.0.3/bin/mastercoin-wallet:12:in `<top (required)>' from /Users/max/.rvm/gems/ruby-1.9.3-p448/bin/mastercoin-wallet:23:in `load' from /Users/max/.rvm/gems/ruby-1.9.3-p448/bin/mastercoin-wallet:23:in `<main>' from /Users/max/.rvm/gems/ruby-1.9.3-p448/bin/ruby_executable_hooks:15:in `eval' from /Users/max/.rvm/gems/ruby-1.9.3-p448/bin/ruby_executable_hooks:15:in `<main>' /Users/max/.rvm/gems/ruby-1.9.3-p448/bin/ruby_executable_hooks: [BUG] Segmentation fault ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.5.0]
-- Control frame information ----------------------------------------------- c:0001 p:0000 s:0002 b:0002 l:0007c8 d:0007c8 TOP
And another suggestion: column sorting on the "Distributed exchange" tab would be great (e.g. sort ascending by "Price per coin"). Ooh interesting. The first real bug report! Thanks for taking the time to set it up. I know it's hard but this is also partly because I don't want to encourage everybody to start playing with this. If you succeed at installing it means you are fairly technical and probably better to provide good feedback. I think it's using an older version of the bitcoin-ruby gem. I was hoping that the gem would be smart enough to see it requires the bitcoin-ruby version from my github but this is sadly not the case. I will see what I can do to permanently fix this but for now please uninstall the bitcoin-ruby gem by doing gem uninstall bitcoin-ruby. Download https://dl.dropboxusercontent.com/u/374/bitcoin-ruby-0.0.1.gem this version and then run gem install bitcoin-ruby-0.0.1.gem from the folder you downloaded it from.
|
|
|
446
|
Alternate cryptocurrencies / Altcoin Discussion / Re: The collective Mastercoin-explorer, Mastercoin-ruby and Mastercoin-wallet topic
|
on: November 04, 2013, 09:27:44 AM
|
it's saying cannot get bitcoin address from private key which I got from dumpprivkey
Did you check for trailing whitespace? Does your key start with a 5? I'm having probs with the the qtbindings when installing. QT 5 would not work for me at all so trying now with QT 4 and from what I can tell I'm getting stuck at the smokeqtsql install:
In file included from /Library/Ruby/Gems/2.0.0/gems/qtbindings-4.8.3.0/ext/build/smoke/qtsql/x_1.cpp:2: In file included from /Library/Ruby/Gems/2.0.0/gems/qtbindings-4.8.3.0/ext/smoke/qtsql/qtsql_includes.h:3: In file included from /Library/Frameworks/QtSql.framework/Headers/QtSql:5: /Library/Frameworks/QtSql.framework/Headers/qsqlrelationaldelegate.h:58:7: error: base class 'QItemDelegate' has private copy constructor class QSqlRelationalDelegate: public QItemDelegate ^ /Library/Frameworks/QtGui.framework/Headers/qitemdelegate.h:130:20: note: declared private here Q_DISABLE_COPY(QItemDelegate) ^ /Library/Frameworks/QtCore.framework/Headers/qglobal.h:2516:5: note: expanded from macro 'Q_DISABLE_COPY' Class(const Class &); \ ^ /Library/Ruby/Gems/2.0.0/gems/qtbindings-4.8.3.0/ext/build/smoke/qtsql/x_1.cpp:3172:75: note: implicit default copy constructor for 'QSqlRelationalDelegate' first required here explicit x_QSqlRelationalDelegate(const QSqlRelationalDelegate& x1) : QSqlRelationalDelegate(x1) {} ^ 1 warning and 1 error generated. make[3]: *** [smoke/qtsql/CMakeFiles/smokeqtsql.dir/x_1.o] Error 1 make[2]: *** [smoke/qtsql/CMakeFiles/smokeqtsql.dir/all] Error 2 make[1]: *** [all] Error 2 make: *** [build] Error 2
Anyone have suggestions for something obvious I may be missing?
I'm guessing you are on Ruby 2.0 ? How did you install qt? Did you use brew to do it? Hi Tachikoma, Looks great! I am getting the following error once I type "gem install mastercoin-wallet" from the instructions. ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /Library/Ruby/Gems/1.8 directory I then tried installing JewelryBox via https://jewelrybox.unfiniti.com/ v.1.5.1700 and installed 1.9.2-p320 1.) Clicked on Add Ruby from the top of the GUI 2.) Selected 1.9.2-p320 from left Then received this message once I type "gem install mastercoin-wallet" ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed it's saying cannot get bitcoin address from private key which I got from dumpprivkey
( https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/mastercoin-ruby-0.0.5.gemspec.rz) Is there an easier way? Did you check your ruby version with ruby -v? If have 1.8 please install rvm like the instructions say and try again
|
|
|
450
|
Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread)
|
on: November 03, 2013, 05:32:48 PM
|
x-post from General thread. I've spend the last few days working on updating my Mastercoin-wallet (running on OS X and Unix-like, windows is possible as well) to supported distributed exchange messages and gave it it's own topic. For those who want to help test things this would be a great opportunity. I saw that also but could not figure out how to sign the raw transaction. Would be nice if blockchain.info could also be used in addition to the console but I couldn't find a way to do it. I need to go and do a bunch of updates to the tutorial, and set up a blockchain wallet but I think you may be able to use this https://blockchain.info/pushtxThat's only for sending a transaction. Not signing it. Sorry I had misread that. Could they use this to sign the tx in bitcoin-qt? the 3rd option is for a base58 private key, which can be exported from blockchain.info wallet advanced settings signrawtransaction <hex string> [{"txid":txid,"vout":n,"scriptPubKey":hex},...] [<privatekey1>,...] [sighash="ALL"] That could work, never done it myself though.
|
|
|
452
|
Alternate cryptocurrencies / Altcoin Discussion / The collective Mastercoin-explorer, Mastercoin-ruby and Mastercoin-wallet topic
|
on: November 03, 2013, 04:36:20 PM
|
This is the joint topic for all things that have to do with my implementations of the Mastercoin. Mastercoin-explorer, a website for looking up Mastercoin transactions. Mastercoin-ruby, a ruby library for encoding/decoding Mastercoin messages. Mastercoin-wallet, a thin client for sending/creating Mastercoin transactions. This topic is meant to be a centralised place to discuss the behaviour and report bugs for these libraries. Mastercoin-walletFeatures- View your transactions
- Create/Send Simple Send transactions
- Create/Send distributed Sell orders
- Create/Send distributed Purchase orders
- Create/Send Bitcoin payments for Purchase orders
Mastercoin wallet is a proof-of-concept thin client for Mastercoin. It communicates with Mastercoin-explorer in order to facilitates it features. To install Mastercoin-wallet read the Readme instructions. Once you have the dependencies it's a matter of typing 'gem install mastercoin-wallet' to install it and 'mastercoin-wallet' to start it. If you are using Bitcoind currently you can aquire your private key using the dumpprivkey console command. Gotcha's/tips while using the software- The wallet requires at least Qt 4.7 for now. It will crash with 'undefined method PlaceHolderText' if you don't have it.
- Mastercoin-explorer is currently updating it's database every 15 minutes. It is possible that data displayed is thus lagging behind other sources.
- Mastercoin-explorer is currently updating it's database every 15 minutes. It is possible that data displayed is thus lagging behind other sources.
- There will be a log file in your home folder (~/.mastercoin-wallet/debug.log on unix-like systems) that will give you the raw transaction hash that you can use to decode the messages.
- Please realise that each Mastercoin transaction, even if it's test, will cost real Bitcoins. (even if they are just costing tiny amounts)
Installation on UbuntuThis is tested on 13.10 but please let me know if it works on others. sudo apt-get -y install curl curl -L https://gist.github.com/maran/8182379/raw/7309391a1e2341ff9f0cb1ae6603e8006cb891cc/install.sh | bash
This will probably take about 20 minutes depending on your CPU.
|
|
|
455
|
Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread)
|
on: November 03, 2013, 01:39:29 PM
|
I would like to make a suggestion
Regarding the time limit, Currently the timelimit is in # blocks. My suggestion is to set it to days so that user will know when his offer will expire.
Timelimit is not for the seller; it's for the person sending an Accept Offer message. When making a payment,Seller sends payment in BTC to Buyer Address and a dust amount (ex. 0.00007) to the exodus address.
This will make parsing of payments easier.
This is already in the spec.
|
|
|
456
|
Alternate cryptocurrencies / Altcoin Discussion / Re: MasterCoin: New Protocol Layer Starting From “The Exodus Address”
|
on: November 03, 2013, 10:08:01 AM
|
Hey Maxmint just a quick follow up since I don't think you read the development thread (often). Zathras pointed out that the actual Bitcoin payment also needs an output to Exodus. This means yesterday's trade is not actually valid. Just so you know why you might be down 1 test coin later today Thanks for the note, I'll make another transaction later. Also, I'm closely following the dev thread now FYI maxmint - I went ahead and sent you the 0.1 test msc separately since you did pay me and its good practice for me to put the tools to use.. Thanks superfluouso, very much appreciate that! I made another purchase offer and this time everything worked fine (I did send to the Exodus address as well this time). Just a suggestion for the order book at Mastercoin-explorer. What about renaming the column labeled "Mastercoin available" to "Units available"? I was a little confused because it says "Mastercoins available" when I'm in fact buying Test Mastercoins. Good suggestion. Should be online now.
|
|
|
457
|
Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread)
|
on: November 03, 2013, 09:57:19 AM
|
I am trying to create a sell order for a few fractions of Test Mastercoins. I find the following labels in the "Building new selling offer " page confusing and/or ambiguous:
* Amount * Amount desired
Do these refer to total Test Mastercoins for sale and total amount desired? These should read, perhaps, for clarity
* Amount for sale * Total sale price
or
* Number of (Test) Mastercoins for sale * Price per (Test) Mastercoin
Which browser are you using? The placeholder text should offer more information. Amount says: "Total amount of MSC to sell" and the amount desired says "Total amount of Bitcoin". I figured most browser support placeholder text by now but if not I can probably add some hints to the fields to make it more clear. A little sidenote, I orginally build this just for developers so they had an easy way to compare implementation outputs. I did not really expect consumer to use it. Yeah, I think we should use the timestamp of the most recent bitcoin block, rather than the node's local clock.
I guess the full formula is actually (1-(0.5^y)) * 10% * total number of mastercoins bought at 1Exodus before the deadline
Could somebody confirm my vesting calculation is correct? Let's set the time to 2013-10-31 10:45:45 +0100 the output I get for the Exodus vesting is MSC 6103.51504811. Just a quick note on this one - I'm getting slightly different amounts, can you let me know what you're using for your fixed values? I'm using: * Seconds in a year: 31557600 * End of funding: 1377993600 * Total Reward Mastercoins: 56316.23576222 Using your example time (1383212745) I'm seeing 6099.57209817. Thanks for checking. This is what I'm using now. time_difference = (tx_date - Mastercoin::END_TIME) / 60 / 60 / 24 / 365.25 exodus_vesting = (1-(0.5**time_difference)) * 0.1 * 563_162.23576222
tx_date = 1383212745 Mastercoin::END_TIME = 1377993600 time_difference = 5219145 Giving me a total of 6060.791436028762 (I initially used a rounded down value for the total amount of MSC, doh.) Congrats! Awesome that you managed to get it all to work. Now I have some more coins to buy for my own tests since buying from yourself is just silly.
|
|
|
460
|
Alternate cryptocurrencies / Marketplace (Altcoins) / Re: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread)
|
on: November 02, 2013, 03:40:26 PM
|
Sorry I should have asked for the encoded transaction, do you still have that? The raw transaction hash? this right?  { "hex" : "01000000011bfb75ae8a4327c54c74e8c5f8793b054ab36603786bc64ba56a08f3834dc57c040000006a47304402202b839fe4159c2d071c9a8075e5f00130b8c2e49ee2aa5c90bb1613606d9fd96302201391ea704f54c001a402e4f039806d5221c48b83a64d3cac255cb48399eadd6d012102c21e89b7366d902a18632d86c788bc1fd5d4432a8decc23f742ff2ea3ec86cc2ffffffff0438ae9600000000001976a914157d5a4d561c5e36e37037ec962971aa0f761cbf88ac70170000000000001976a91419fd7459d1c21227f3e87582fa1de350b1549ae288ac70170000000000001976a914946cb2e08075bcbaf157e47bcb67eb2b2339d24288ace02e00000000000047512102c21e89b7366d902a18632d86c788bc1fd5d4432a8decc23f742ff2ea3ec86cc22102e53e090dad2a9813ae5583a18dd412852f932bb00d1f877482d17d5251fcaf3952ae00000000", "complete" : true }
sorry not great at the nomenclature yet Yeah this is it. I wouldn't advertise it on your blog yet. It's a bit too early for early adoption.
|
|
|
|