Bitcoin Forum
May 12, 2024, 08:15:31 AM *
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 »
241  Bitcoin / Electrum / Re: [ANNOUNCE] Electrum - a new thin client on: June 24, 2012, 03:00:31 PM
Once you import an external keypair, you'll need to either 1) backup electrum.dat (or whatever you named the wallet file), or 2) keep the keys handy for reimport when you do a restore.

You're correct that once you import a key and spend all the dough out to another address, you effectively don't need that imported key anymore and all funds will be available when you restore. However, I make it a habit to remember every key that ever goes through my hands. I keep a special wallet for just those imported addresses. you never know when it might receive more or simply need it for a digital signature.
242  Bitcoin / Electrum / Re: [ANNOUNCE] Electrum - a new thin client on: June 23, 2012, 01:00:16 PM
That's all the mojo-fu I have at the moment. But, challenge accepted. I'll give it a go when I have some time.
243  Bitcoin / Electrum / Re: [ANNOUNCE] Electrum - a new thin client on: June 23, 2012, 12:27:41 PM
Here's a patch for .60 with all the getpass calls "fixed".

I was able to test (with success) all patch conditions with the exception of mktx and payto.

Code:
$ diff -u /tmp/electrum-60 /usr/bin/electrum 
--- /tmp/electrum-60 2012-06-23 04:17:48.760346152 -0700
+++ /usr/bin/electrum 2012-06-23 05:21:51.516348218 -0700
@@ -170,15 +170,29 @@
     
     if cmd in ['create', 'restore']:
         if wallet.file_exists:
-            print "remove the existing wallet first!"
-            sys.exit(0)
-        password = getpass.getpass("Password (hit return if you do not wish to encrypt your wallet):")
-        if password:
-            password2 = getpass.getpass("Confirm password:")
-            if password != password2:
-                print "error"
-                sys.exit(1)
+            print "Error: Wallet file exists. Remove the existing wallet first."
+            sys.exit(1)
+
+        # Get password once if stdin, confirmed if by atty
+        passStr = "Password (hit return if you do not wish to encrypt your wallet):"
+        if sys.stdin.isatty():
+            password = getpass.getpass(passStr)
+
+            if password:
+                passStr = "Confirm password:"
+                if sys.stdin.isatty():
+                    password2 = getpass.getpass(passStr)
+                else:
+                    password2 = raw_input(passStr)
+
+                if password != password2:
+                    print "Error: Passwords do not match."
+                    sys.exit(1)
+
         else:
+            password = raw_input(passStr)
+
+        if not password:
             password = None
 
         w_host, w_port, w_protocol = wallet.server.split(':')
@@ -263,12 +277,21 @@
                 
     # commands needing password
     if cmd in protected_commands or ( cmd=='addresses' and options.show_keys):
-        password = getpass.getpass('Password:') if wallet.use_encryption and not is_temporary else None
+        if wallet.use_encryption and not is_temporary:
+            passStr = "Password:"
+            if sys.stdin.isatty():
+                password = getpass.getpass(passStr)
+            else:
+                password = raw_input(passStr)
+        else:
+            password = None
+        #if wallet.use_encryption and not is_temporary else None
+
         # check password
         try:
             wallet.pw_decode( wallet.seed, password)
         except:
-            print "invalid password"
+            print "Error: Invalid password"
             exit(1)
 
     if cmd == 'import':
@@ -429,7 +452,13 @@
     elif cmd in ['payto', 'mktx']:
         if from_addr and is_temporary:
             if from_addr.find(":") == -1:
-                keypair = from_addr + ":" + getpass.getpass('Private key:')
+                passStr = "Private key:"
+                if sys.stdin.isatty():
+                    tmpKey = getpass.getpass(passStr)
+                else:
+                    tmpKey = raw_input(passStr)
+                keypair = from_addr + ":" + tmpKey
+                del tmpKey
             else:
                 keypair = from_addr
                 from_addr = keypair.split(':')[0]
@@ -478,13 +507,20 @@
         try:
             seed = wallet.pw_decode( wallet.seed, password)
         except:
-            print "sorry"
+            print "Error: Password failed to decode wallet."
             sys.exit(1)
-        new_password = getpass.getpass('New password:')
-        if new_password == getpass.getpass('Confirm new password:'):
-            wallet.update_password(seed, password, new_password)
+
+        passStr = "New password:"
+        if sys.stdin.isatty():
+            new_password = getpass.getpass(passStr)
+            new_password2 = getpass.getpass("Confirm new password:")
+            if not new_password == new_password2:
+                print "Error: Passwords do not match."
+                sys.exit(1)
         else:
-            print "error: mismatch"
+            new_password = raw_input(passStr)
+
+        wallet.update_password(seed, password, new_password)
 
     elif cmd == 'signmessage':
         address = args[1]
244  Bitcoin / Electrum / Re: [ANNOUNCE] Electrum - a new thin client on: June 23, 2012, 11:06:58 AM
thanks. there are 6 instances of getpass in the file.
is there a reason why you want to patch only 2 of them?

#1 I barely knew what the hell I was doing.

#2 That was the only place I could find that "bothered me" at the moment.

#3 I will search for the other 5 and patch those too.

#4 Father, I am sorry I dissapoint. lol

edit: #5 I can't count. 4 other patches coming.
245  Bitcoin / Project Development / Re: [ANNOUNCE] BTCtoX - Rate Converter between BTC and other currencies on: June 22, 2012, 12:29:39 PM
I'm always using weighted prices to help with the volatility issue, so yea, I'd use it.

Also, can you tell me what's up with VND? It displays a 0.00 in the drop down and only gives a rate when going from btc.
246  Economy / Speculation / Re: Why aren't I filthy rich yet? It's been like two months. on: June 21, 2012, 01:40:29 PM
Again: lots of btc businesses were created last year, and reported profits. This year is the first year governments will be taxing them, and thereby legitimizing btc.

No way the government is close to making this kind of call, specifically about Bitcoin. However, there are already reporting requirement, generally, about capital gains or sales. i.e. you make a cash sale, you better report it.
247  Economy / Speculation / Re: Why aren't I filthy rich yet? It's been like two months. on: June 20, 2012, 05:24:35 PM
And it's worth spreading for.

Sorry, had to do it.  Kiss
248  Economy / Speculation / Re: Why aren't I filthy rich yet? It's been like two months. on: June 20, 2012, 02:02:46 PM
Another "Super Bull" checking in... I believe those radical numbers. It's just a matter of time for information to propagate and infrastructure to develop.

Someone at HSBC says 2-3 years for virtual currency to be "mainstream". I'm betting on more like 5.
249  Bitcoin / Project Development / Re: Bitcoin Informant - Keep your friends informed. on: June 20, 2012, 01:03:46 PM
Just added Germany to the list of translations!

http://bitcoininformant.com/download/

Thanks Neo!
250  Bitcoin / Electrum / Re: [ANNOUNCE] Electrum - a new thin client on: June 19, 2012, 09:22:50 PM
I did not (but might).. I've just been using the install commandline from the linux download option at ecdsa.org.
251  Other / Politics & Society / Re: Second amendment ftw or gtfo? on: June 19, 2012, 06:11:39 PM
Actually, the 2nd amendment only allows the police to have guns. If I may:

Sorry, the supreme court has recently ruled that the 2nd amendment applies to personal self defense.
252  Bitcoin / Electrum / Re: [ANNOUNCE] Electrum - a new thin client on: June 19, 2012, 05:25:15 PM
Submitting a patch to allow batch create and restore functions. The getpass function breaks input from stdin so I inserted a check for tty.


Code:
diff -u  /tmp/electrum /usr/bin/electrum 
--- /tmp/electrum 2012-06-19 10:06:29.842304577 -0700
+++ /usr/bin/electrum 2012-06-19 10:16:58.050869673 -0700
@@ -173,9 +173,19 @@
         if wallet.file_exists:
             print "remove the existing wallet first!"
             sys.exit(0)
-        password = getpass.getpass("Password (hit return if you do not wish to encrypt your wallet):")
+
+        passStr = "Password (hit return if you do not wish to encrypt your wallet):"
+        if sys.stdin.isatty():
+          password = getpass.getpass(passStr)
+        else:
+          password = raw_input(passStr)
+        
         if password:
-            password2 = getpass.getpass("Confirm password:")
+            passStr = "Confirm password:"
+            if sys.stdin.isatty():
+              password2 = getpass.getpass(passStr)
+            else:
+              password2 = raw_input(passStr)
             if password != password2:
                 print "error"
                 sys.exit(1)
253  Bitcoin / Electrum / Re: [ANNOUNCE] Electrum - a new thin client on: June 19, 2012, 02:23:21 AM
Can I get some love? FC16

Code:
2012-06-18:1919 PDT
[tux@powerball ~]$ sudo pip-python install http://ecdsa.org/electrum/Electrum-0.59b.tar.gz#md5=4254bad432f44d61904b93917860069b
Downloading/unpacking http://ecdsa.org/electrum/Electrum-0.59b.tar.gz#md5=4254bad432f44d61904b93917860069b
  Downloading Electrum-0.59b.tar.gz (214Kb): 214Kb downloaded
  Running setup.py egg_info for package from http://ecdsa.org/electrum/Electrum-0.59b.tar.gz#md5=4254bad432f44d61904b93917860069b
    
Downloading/unpacking slowaes (from Electrum==0.59b)
  Downloading slowaes-0.1a1.tar.gz
  Running setup.py egg_info for package slowaes
    
Downloading/unpacking ecdsa (from Electrum==0.59b)
  Downloading ecdsa-0.7.tar.gz
  Running setup.py egg_info for package ecdsa
    
Installing collected packages: slowaes, ecdsa, Electrum
  Running setup.py install for slowaes
    
  Running setup.py install for ecdsa
    
  Running setup.py install for Electrum
    changing mode of build/scripts-2.7/electrum from 640 to 755
    
    changing mode of /usr/bin/electrum to 755
Successfully installed slowaes ecdsa Electrum
Cleaning up...

2012-06-18:1920 PDT
[tux@powerball ~]$ electrum
python-ecdsa does not seem to be installed. Try 'sudo pip install ecdsa'

2012-06-18:1920 PDT
[tux@powerball ~]$

Additionally....

Code:
$ pip-python search ecdsa
ecdsa                     - ECDSA cryptographic signature library (pure python)
  INSTALLED: 0.7 (latest)
254  Bitcoin / Project Development / Re: Bitcoin Informant - Keep your friends informed. on: June 18, 2012, 12:49:07 PM
Issue #25 "Rising Sun" is now available for download!

We are currently releasing translations in Brazil, Czech, English, and Vietnamese. Russian, Ukrainian, Dutch, and Germain may be published a little later this week.

We screwed up on our weekly giveaway last week, so we've added a little extra to the daily amount this week.

Please like us on FB so we can have access to niftier features on our page. We just need 15 more friends liking us!

Previous issues are available for download at CoinDL.com.
255  Bitcoin / Electrum / Re: [ANNOUNCE] Electrum - a new thin client on: June 18, 2012, 12:38:18 AM
Just installed 59b on a new machine. Is the installer still suppose to set up electrum in the fedora/gnome apps menu? Not seeing it.
256  Bitcoin / Bitcoin Discussion / Re: [ANN] Coming next week-- the world's first handheld Bitcoin device, the Ellet! on: June 17, 2012, 05:23:51 PM
lol.. this thread is a fucking tragedy.
257  Bitcoin / Project Development / Re: Bounty : OpenSSL with EC for Fedora/RH/CentOS : 3.6 BTC on: June 15, 2012, 02:56:39 PM
in related news... I needed a vanity address so I ended up running vanitygen on wine on all my linux boxen. worked perfectly.
258  Bitcoin / Project Development / Re: Bounty : OpenSSL with EC for Fedora/RH/CentOS : 3.6 BTC on: June 15, 2012, 02:54:39 PM
absolutely pounded this week... forced to sit in a cold noisy datacenter most of the week with no "me" time at my desk. Wife and kids leaving town this weekend... so... hopefully soon.
259  Economy / Service Discussion / Re: [ANN] 700,000 Cash Deposit Locations in Brazil, Russia, USA - BitInstant on: June 14, 2012, 12:13:35 PM
The teller at my chase bank told me I was the second person that day to make a deposit like that. I live in a quasi rural area, so I was surprised...

Wow. That is awesome... Just the other day I was thinking to myself... If I'm every out and about, and randomly overhear a mention of Bitcoin in some conversation, I think I will figuratively pull down my pants and take a shit in front of everyone right there. I'm not sure what that has to do with anything, but it made me laugh and hearing "Bitcoin" in a random venue will truly be a memorable day for me.
260  Bitcoin / Project Development / New Sexy Bitcoin Video on: June 14, 2012, 05:07:44 AM
A few months ago, I posted some bounties for some sexy Bitcoin videos and tutorials. I was able to collect 15.5 Bitcoins from the community because they were great ideas and everyone knew they would do well for Bitcoin's popularity. Unfortunately, no entertainers submitted any entries to the contest and so the bounties were closed. I returned 1 Bitcoin to one person that asked for it back and promised the remaining funds would go to support my TOR exit project.

After some encouragement from other members in the community and recent "cash flow" problems hightlighted in the adult forums and threads, I, instead, have another plan for those 15.5 Bitcoins...

I would like to announce that LadyBytes and I are teaming up to produce another introductory Bitcoin video that aims to teach new users how to get Bitcoins quick and use them on the various adult oriented sites such as deCrypto, Cam4BTC, and GGB. This project will be kickstarted by those 15.5 Bitcoins I collected earlier.

LadyBytes and I have been hashing out some ideas that should make this a fun video for the whole Bitcoin community and informative for everyone else. Our goal is to show exactly how easy it is to get Bitcoins with a humor laced, sexy, real world walk-thru of the process. Our timeline is to have a finished product released by the end of this month. I would like to invite you to contribute to her efforts and encourage her excitement for this project by contributing to a new bounty address. All proceeds will be going directly to LadyBytes at the completion and release of the video. As expected, she'll be "exposing" a tipping address at some point as well but it would be nice if she could see your excitement about this along the way too.

If you would like to contribute additional funds to the resolution of this project, please send your donation to <bounty address closed>. This is a vanity I generated. When the project is completed, 100% of the funds will be paid to the address LadyBytes reveals in the tutorial.
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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!