Bitcoin Forum
May 23, 2024, 12:44:29 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 [42] 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 »
821  Bitcoin / Bitcoin Discussion / Re: Buy bitcoins using Google Checkout - btcnow.net on: August 18, 2011, 05:02:46 AM
Careful...could be stolen credit cards.
822  Bitcoin / Development & Technical Discussion / Re: Using Bitcoin as a LIBRARY (in C++) on: August 16, 2011, 02:32:08 AM
What genjix is doing is very impressive so far...this could be "the" library.
823  Bitcoin / Development & Technical Discussion / Re: Bitcoin Crashes My Wireless on: August 03, 2011, 02:54:25 PM
I put it on -nolisten and the bitcoin client works.  However, I think this will be problem for many users and if I have this issue then many more others may not be able to get their bitcoin client running.  I checked my router logs but I don't know enough to debug it.   I hope this issue is fixed.
824  Bitcoin / Bitcoin Discussion / Opensource ATM Machine! on: August 03, 2011, 12:32:25 AM
I was working with another fellow developing an ATM machine.  However, things are not going as planned business wise so I am trying to explore my options.  I am the sole programmer for the ATM and may open source the software depending on how much interest there is here.  The Bitcoin ATM software is almost done.  I have been able to put in bills and out comes bitcoins to your bitcoin address!

The reason why I want to opensource the software is because I want it to spread as far as possible.  Anyone should be able to set up a bitcoin ATM anywhere.  In addition, the team I was working with did not involve me during contract negotiations of the formation of the company so I feel a bit left out and may venture on my own.  What do you guys think?  I need to make a decision in the next few days.
825  Bitcoin / Bitcoin Discussion / Re: Announcement from Dwolla CEO on Blog (today) on: July 30, 2011, 04:44:27 AM
Dwolla's arrogance and refusing to acknowledge bitcoin is killing me.  The title speaks for itself, "We’ve got some cool communications tools in the works and it’s all because of our customers".
826  Bitcoin / Bitcoin Discussion / Re: btc.to needs to use https on: July 29, 2011, 04:25:11 AM
He's right.  The reason btc.to needs to use HTTPS is to prevent Man In The Middle attacks.  Currently. someone could change the return value of http://btc.to/1 from the real address to their own address.

That being said we've always planned on adding it, we were just waiting to see if btc.to would get some real traction with users.  At this point we feel it has and will be adding HTTPS as well as HSTS soon so no matter how you access it you'll always be protected using HTTPS.  We'll also start publishing our entire DB shortly so that people can verify for themselves we aren't manipulating the shortened addresses.

Thank you very much for your response.
827  Bitcoin / Bitcoin Discussion / Dwolla = PayPal = Evil on: July 29, 2011, 12:29:08 AM
Seems like they are not cool.  They think they are too good for us.  They don't mention bitcoin.  They talk to us via a press release.  Shame on Dwolla.
828  Bitcoin / Bitcoin Discussion / btc.to needs to use https on: July 28, 2011, 03:59:01 PM
If you guys are out there you guys really need to use https instead of just http for your calls.  It is not safe without it.
829  Economy / Trading Discussion / Re: Mt. Gox Trading API "nonce" Issue In Distributed App on: July 27, 2011, 12:12:11 AM
So hundreds or thousands of machines will be using the same MtGox account? That doesn't sound pleasant.

You want 1000 accounts for 1000 machines?  That sounds even less pleasant.

Sorry, but you haven't provided enough detail about what you're doing to offer anything that resembles a solution or even a workaround.

Sorry if I sounded off the mark.  I guess I just want a solution to not having to supply an incremental nonce.  A nonce, in the security world, can even be a unique id, which I can generate no problem using C# guid.  Their trading API limits my application which will be distributed, and I am hoping they will make it better.  Or, if they can let me know that I can supply a user and pass instead of the key, secret, nonce, and hash of the post then I'll be happy too.  Yes, I am kind of vague but I don't think I can talk about the application I am working on yet until it is ready.
830  Economy / Trading Discussion / Re: Mt. Gox Trading API "nonce" Issue In Distributed App on: July 27, 2011, 12:11:28 AM
So hundreds or thousands of machines will be using the same MtGox account? That doesn't sound pleasant.

You want 1000 accounts for 1000 machines?  That sounds even less pleasant.

Sorry, but you haven't provided enough detail about what you're doing to offer anything that resembles a solution or even a workaround.

Sorry if I sounded off the mark.  I guess I just want a solution to not having to supply an incremental nonce.  A nonce, in the security world, can even be a unique id, which I can generate no problem using C# guid.  Their trading API limits my application which will be distributed, and I am hoping they will make it better.  Or, if they can let me know that I can supply a user and pass instead of the key, secret, and hash of the post then I'll be happy too.  Yes, I am kind of vague but I don't think I can talk about the application I am working on yet until it is ready.
831  Economy / Trading Discussion / Re: Mt. Gox Trading API "nonce" Issue In Distributed App on: July 26, 2011, 11:52:10 PM
If your worried at all about Mt. Gox.'s security issues, then purchase the yubikey key. It is a device allowing secure identification with a "One Time Password". It is recognized as a USB keyboard by your computer, and touching it with your finger causes it to input a 44 characters long password which is unique and can be used only once. Each time you use it a new password is generated, protecting your account even if someone has access to your computer. Awesome Technology. Oh and it's only 29.99 and you can even pay with Bitcoin!

This has nothing to do with my question but thanks for the tip.  I do have a Yubikey.
832  Economy / Trading Discussion / Re: Mt. Gox Trading API "nonce" Issue In Distributed App on: July 26, 2011, 11:42:02 PM
So hundreds or thousands of machines will be using the same MtGox account? That doesn't sound pleasant.

You want 1000 accounts for 1000 machines?  That sounds even less pleasant.
833  Economy / Trading Discussion / Mt. Gox Trading API "nonce" Issue In Distributed App on: July 26, 2011, 07:54:00 PM
In the trading API you have to specify a "nonce" parameter of an increasing integer value.  This is fine for non-distributed apps.  However, we are developing a distributed app that could be deployed to hundreds or thousands of machines.  This nonce value will be harder to increment in synchronization since normally it is based on a computer's clock.  If two transactions were happening at near the same time, it is possible a late request might arrive before the earlier request due to the unpredictable nature of the Internet.  Is it possible to supply a unique identifier for the nonce instead of an increasing value?

The other solution would be to supply a username and password but I don't know how long this will be supported.

Thanks.

834  Other / Beginners & Help / Re: Working Through the new MtGox Key & Secret API Authentication Model using C# on: July 26, 2011, 12:58:59 AM
Thank you.  I got it working without the username and password.  Awesome.  PM me about your service.
835  Other / Beginners & Help / Re: Working Through the new MtGox Key & Secret API Authentication Model using C# on: July 25, 2011, 01:36:16 PM
Thanks for that!  Grin  I'll have to take a look at it tonight after work.  I noticed there was a method in there "EncodeParamsToSecret( parameters );" that was not in the code you posted.  You don't mind posting that method do you (without the key and secret of course.)
836  Economy / Trading Discussion / Re: REQ: mtgox Trading API Sample Code [C#] on: July 25, 2011, 06:32:43 AM
Anyways, here is my C# code which I don't think is working.  I get "{"error":"Must be logged in"}"

A little help anyone?

Code:
	    Console.Out.WriteLine("Making withdraw request to Mt. Gox...");
            
            HttpWebRequest request =
                (HttpWebRequest)WebRequest.Create("https://mtgox.com/api/0/withdraw.php");
            request.Method = WebRequestMethods.Http.Post;
            request.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)";

            String btcAddr = mainForm.getSendToBitcoinAddress();
            String btcAmount = .01;

            String nonce = DateTime.UtcNow.Millisecond.ToString();
            Console.Out.WriteLine("nonce: " + nonce);
        
            string postData = "group1=BTC&btca=" + btcAddr + "&amount="
                                    + btcAmount + "&nonce=" + nonce;

            String key = "xxxxxxxxxxxxxxxxxxx";
            String keySecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
            byte[] keyByte = Convert.FromBase64String(keySecret);
            HMACSHA512 hmacsha512 = new HMACSHA512(keyByte);

            System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
            byte[] messageBytes = encoding.GetBytes(postData);
            byte[] hashmessage = hmacsha512.ComputeHash(messageBytes);
            String base64SignedPostData = Convert.ToBase64String(hashmessage);

            request.Headers.Add("Rest-Key", key);
            request.Headers.Add("Rest-Sign", base64SignedPostData);

            byte[] byteArray = Encoding.UTF8.GetBytes(postData);
            request.ContentType = "application/x-www-form-urlencoded";
            request.ContentLength = byteArray.Length;
            Stream dataStream = request.GetRequestStream();
            dataStream.Write(byteArray, 0, byteArray.Length);
            dataStream.Close();

            WebResponse response = request.GetResponse();
            Console.WriteLine(((HttpWebResponse)response).StatusDescription);
            dataStream = response.GetResponseStream();
            StreamReader reader = new StreamReader(dataStream);
            string responseFromServer = reader.ReadToEnd();

            Console.WriteLine(responseFromServer);

            //Clean up the streams.
            reader.Close();
            dataStream.Close();
            response.Close();

837  Economy / Trading Discussion / Re: REQ: mtgox Trading API Sample Code [PHP] on: July 25, 2011, 06:12:34 AM
you need to get an "API_KEY" and "SECRET" from mtgox, here is a bot that I wrote http://bitklein.com/sniper.php.gz


Interesting bot.

I don't know why but I had to add 'user' and 'pass' to get mine to work in addition to supplying the api key and the secret key.  What I am doing still works though but I am afraid that I am doing it the wrong way.

838  Economy / Trading Discussion / Re: REQ: mtgox Trading API Sample Code [PHP] on: July 25, 2011, 05:50:00 AM
I am using a modification of this PHP code which I ported to C#.  In this example there was no 'user' or 'pass' variable.  Should these variables be in the documentation?

https://en.bitcoin.it/wiki/MtGox/API#Authentication
839  Economy / Trading Discussion / Re: REQ: mtgox Trading API Sample Code [PHP] on: July 25, 2011, 05:15:23 AM
Ok, I got a little further.  I am not using CURL.  I am using C#.

This answer is not even in the documentation or wiki.  I found it in another post.  I added user=xxx&pass=xxx to the POST data and it worked.
840  Economy / Trading Discussion / Re: REQ: mtgox Trading API Sample Code [PHP] on: July 25, 2011, 04:42:29 AM
I am trying to convert the Mt. Gox code to C# and I am getting

OK
{"error":"Must be logged in"}

Not sure what to do next...any ideas?

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 [42] 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!