Bitcoin Forum
May 24, 2024, 07:02:02 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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 ... 69 »
301  Bitcoin / Armory / Re: Armory - Discussion Thread on: January 31, 2013, 09:33:24 PM
Whoops, I gave bad advice:  if you don't supply any keywords to "wallet.unlock()" it treats the first argument as the "kdfOutput", instead of the "kdfPassphrase" (i.e. it's expecting a 32-byte decryption key where you put your passphrase).  In actuality, your decryption key is your passphrase passed through the KDF, so you need to call it like this:

Code:
wallet.unlock(securePassphrase=SecureBinaryData('p4$sph4S3'))

The function declaration is here.
I had saw the function def; however it was a case of not knowing enough python (just enough to get into trouble).

However I am now running into the problem of converting it from a binary string into a base58 string.

I found the section of code where it outputs in the GUI, here; however despite having the "from armoryengine import *" line, I get the following error:
Code:
  File "export_keys.py", line 30, in dumpPrivAddrs
    priv_key = encodePrivKeyBase58(addrObj.binPrivKey32_Plain.toBinStr())
NameError: global name 'encodePrivKeyBase58' is not defined

Traceback (most recent call last):
  File "export_keys.py", line 34, in <module>
    dumpPrivAddrs()
  File "export_keys.py", line 30, in dumpPrivAddrs
    priv_key = encodePrivKeyBase58(addrObj.binPrivKey32_Plain.toBinStr())
NameError: global name 'encodePrivKeyBase58' is not defined

I can find the definition in armoryengine.py, but I am not sure why it is not importing into the namespace?  (Full script listing here.

Thanks for hand holding stupid noob python questions.
302  Bitcoin / Armory / Re: Armory - Discussion Thread on: January 31, 2013, 07:57:41 PM
Thanks for the tips etotheipi.

I took your base script and hacked together this:
Code:
import sys
import getpass
sys.path.append('/usr/local/Cellar/armory-qt/0.86.3-beta/share/armory') # change to whereever armory is

from armoryengine import *
wallet = PyBtcWallet().readWalletFile('/path/to/my/armory.wallet')

def getNewPubAddr():
  return wallet.getNextUnusedAddress().getAddrStr()
  
def getPubAddrAtIndex(i):
  pub_addr = wallet.getAddress160ByChainIndex(i)
  return wallet.addrMap[pub_addr].getAddrStr()

def dumpPubAddrs():
  for i in range(0,25):
    # pub_addr = getNewPubAddr()
    pub_addr = getPubAddrAtIndex(i)
    print "%03d: %s" % (i,pub_addr)
    
def dumpPrivAddrs():
  k = SecureBinaryData(getpass.getpass('decrypt passphrase:'))
  wallet.unlock(k)  # Will throw on error
  for addrObj in self.addrMap.values():
    print "%s" % addrObj.binPrivKey32_Plain
  
dumpPubAddrs()
dumpPrivAddrs()

The public address part works like a champ; however when I specify the correct password I segfault with:
Code:
9   _CppBlockUtils.so             	0x00000001044588f9 CryptoPP::SimpleKeyingInterface::ThrowIfInvalidKeyLength(unsigned long) + 119
10  _CppBlockUtils.so             0x0000000104458865 CryptoPP::SimpleKeyingInterface::SetKey(unsigned char const*, unsigned long, CryptoPP::NameValuePairs const&) + 31
11  _CppBlockUtils.so             0x00000001044545f7 CryptoPP::CipherModeFinalTemplate_CipherHolder<CryptoPP::BlockCipherFinal<(CryptoPP::CipherDir)0, CryptoPP::Rijndael::Enc>, CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::CFB_DecryptionTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::CFB_CipherAbstractPolicy, CryptoPP::CFB_ModePolicy> >, CryptoPP::CFB_CipherAbstractPolicy> >::CipherModeFinalTemplate_CipherHolder(unsigned char const*, unsigned long, unsigned char const*) + 195
12  _CppBlockUtils.so             0x0000000104449560 CryptoAES::DecryptCFB(SecureBinaryData&, SecureBinaryData&, SecureBinaryData) + 124
13  _CppBlockUtils.so             0x0000000104526d21 _wrap_CryptoAES_DecryptCFB + 1125

If I specify a bad password then the verify catches it, does not segfault, and exits.

Given that 'Actual Armory' can unlock and export the wallet I am assuming that this is an issue of 1) me nothing knowing enough python, or 2) me not knowing / understanding the ArmoryEngine well enough.

I know you are busy, but if you could even give me pointers that would be great.  (yes i pointed it at my FULL (not watch only) wallet).
303  Economy / Service Discussion / Re: Instawallet questions, concerns, fees, transfer times, background, mixing(?) on: January 31, 2013, 05:53:16 PM
From my understanding all the InstaWallets share the same bitcoind wallet, meaning that it naturally provides some mixing (although not guaranteed).

If you require (vs desire) privacy then one of the mixing services might be better for you.
304  Bitcoin / Armory / Re: Armory - Discussion Thread on: January 31, 2013, 03:26:43 PM
Looks like you're stuck with the manual method...
Not exactly true.  He could do a hybrid where he runs the script to get the addresses to import into his SQL table, but still have all the benefits of a deterministic wallet.

However as you said... if he is having trouble with Armory running to get the funds out then perhaps it is not the best way.

Is there a python script like the one you posted for backing up/extracting the private keys as well?  I always like to make sure that I can get access to the private keys in the event that a client goes belly up or simply does not work for some reason.  Right now the only way I know of is to either backup individual keys (which requires forethought) or using brainwallets chaincode feature.
305  Bitcoin / Bitcoin Discussion / Re: New blog post: Hiding Bitcoins in Your Brain on: January 31, 2013, 04:21:19 AM
OR.. OR....  use a random wallet and store the private key / recovery code in LastPass or keepass.

I understand the 'attractiveness' of brainwallets is that your computer could go away and you can still get your bitcoins back.

HOWEVER usb drives / paper wallets / safe deposit boxes / mom's houses are very effective and cheap. 

This reminds me of a conversation we had at work.  We currently backup on-site and ti our data center, which happens to be about two blocks away from us.  We had the opportunity to add another city to that list.  Whilst discussing it I brought up the good question "if our building is destroyed AND the datacenter is destroyed will we still be in business?"

if you PGP encrypt your wallet and give your mom a copy and put a copy in your safe deposit box and all those are destroyed then most likely your primary concern is going to be running from zombies and not where your magic internet money went.

Just Sayin.
306  Bitcoin / Armory / Re: Armory - Discussion Thread on: January 31, 2013, 03:56:43 AM
Thanks for the reply.  I've closed/re-opened Armory and will let it scan again, hopefully it picks up the coins on the second attempt.

With regards to the keys I didn't see any option is Armory to generate X number of keys? 

My goal was to have each order on my website use a different address, so that it's easy to see when an order has been paid.  I did not want to generate the keys on the webserver as this is apparently a security risk.  So instead need to pre-generate all the keys, then each time an order comes in I random assign it to one of the unused addresses.

If i'd have done this in Armory instead of bitaddress, wouldn't I have had to click "Receive Bitcoins" 1000 or so times? and then no easy way to export just a list of the addresses (without keys), for in my case importing into a mysql database.

Brainwallet allows you to generate armory codes en-mass for situations like yours: http://brainwallet.org/#chains
307  Bitcoin / Bitcoin Discussion / Re: GnuCash support for alternative/non-ISO currencies on: January 31, 2013, 03:45:49 AM
For what it's worth I spent 10 mins dinking around and think this might be possible without compiling your own version.

I downloaded GnuCash and created a new book (sqlite format).

Then I opened the file in my sqlite editor and ran:
Code:
insert into commodities
(guid, namespace, mnemonic, fullname, cusip, fraction, quote_flag, quote_source)
VALUES
('11f74daa3e324da18e8c1fb4871a0f70', 'CURRENCY', 'BTC', 'Bitcoin', '', 100000000, 1, 'currency')

The GUID is random, and the fraction doesn't appear to actually work as intendended; however this allows you to create accounts as BTC now.

Perhaps someone smarter than me can take this farther.  I used http://wiki.gnucash.org/wiki/SQL as inspiration.
308  Economy / Service Discussion / Re: Going after Trendon Shavers, Pirateat40, BTCST on: January 29, 2013, 02:11:04 AM
If the SEC and the FED can not prosecute executives at HSBC, Goldman, Bear, Lehman and MF Global etc. for fraud then there is no way they are bringing in a piker like Trendon Shavers for scamming with his Internet play money. The only hope is income tax fraud cause no way the Shavers' can afford those vehicles and that home on Ashley's Six Flags income.
Legally would he be ok if he claimed it as 1099 investment income?  If he paid taxes then it wouldn't be an IRS issue, correct?
309  Economy / Speculation / Re: The Great Silk Road Crash of 20** ...? on: January 25, 2013, 10:35:49 PM
I love the interwebs
310  Other / Off-topic / Re: Release of GLBSE's Documents on: January 25, 2013, 10:30:06 PM
My guess is that we will never see these, or they would have been released by now.
311  Economy / Securities / Re: [NastyFans] NASTY MINING on: January 24, 2013, 07:53:38 PM
I would like to suggest the auction section also hold a list of buyers and what prices are offered by the buyer.

If I add e-mail notification then I can see this is a possibility. It could work opposite of now. Buyers set price per seat and number of seats and e-mail address for sale notification. Sellers specify how many seats to sell and Bitcoin address to receive payment. Then e-mail is sent to buyers to send payment before block N. If payment is not received before block N the purchase order is automatically canceled and this is nastyfans abuse.

This would all work with current policy. But with current policy payment must be sent within 7 blocks. For e-mail notification this is too fast because maybe buyer does not live on the internet. If we want this then policy must change to allow maybe 145 blocks (1 day) to send payment. Or 433 (3 days) to send payment.
This would not work.  Email, by design, is not reliable for time sensitive communications.  I go on vacation and then out of the blue some NastyFans orders I placed months ago come up so I get dinged for abuse, not gonna work without a very large time frame and sending multiple emails.

WHile I think it would be nice I see of no way to make it work without the funds passing through nonnakip, which he has stated he has NO interest in doing.

Am I mistaken?

312  Economy / Service Discussion / Re: iPhone IOS Bitcoin wallet is here! (From Blockchain.info) on: January 24, 2013, 07:45:15 PM
You can install it from any app store.  (Not only Korean)
If you install it from an IP address that already has accessed a Blockchain.info wallet that is more than two weeks old,   the iphone app will have the full wallet functionality enabled. 
Do you have to install it, or just run it from an IP address?

I think install, but it is easy to delete the app and reinstall it.

Here is an old Blockchain account that you can use to activate the Iphone app:

https://blockchain.info/wallet/90803604-bbce-b66e-eafa-8a37f64c090b

Password:  M84Q2kCkg2

Which has BTC0.01020001 in it Smiley
313  Economy / Service Discussion / Re: iPhone IOS Bitcoin wallet is here! (From Blockchain.info) on: January 24, 2013, 04:10:31 PM
You can install it from any app store.  (Not only Korean)
If you install it from an IP address that already has accessed a Blockchain.info wallet that is more than two weeks old,   the iphone app will have the full wallet functionality enabled. 
Do you have to install it, or just run it from an IP address?
314  Economy / Securities / Re: [NastyFans] NASTY MINING on: January 24, 2013, 04:07:22 PM
I am happy to create a dedicated thread on bitcointalk.org so we do not fill the NASTY MINING thread. But where? Trading Discussion? Mining Support? Mining Speculation? Service Discussion? Maybe OgNasty likes us being here? If not we can move.

I see no benefit to this.  It isn't like the discussion is cluttering this thread as it is all relavent.
315  Economy / Securities / Re: [NastyFans] NASTY MINING on: January 24, 2013, 01:10:33 AM
A FAQ on the site would indeed be a good idea. Maybe also an option to receive an notification email when there is a new policy change, would be great.
Don't now if this is hard to implement but it would help for people to notice new changes so they don't miss it and feel left out.

BTW your doing awesome work nonnakip Wink
I believe that nonnakip has stated in the past that nasty fans will not send email.
316  Economy / Securities / Re: [NastyFans] NASTY MINING on: January 23, 2013, 09:19:41 PM
i think when you accused ognasty of being scammer , he said he will help you with your issue IF you apologize , i dont think he meant he will keep your seats/dividends for himself

OgNasty is not able to do that even if wanted. The only seats OgNasty controls are the seats OgNasty owns. OgNasty's offer to help is probably because camolist does not trust me yet.
Thanks for the clarification nonnakip, but I imagine what OgNasty meant was that he would request to you have transfer the seats to camolist.
317  Economy / Securities / Re: [NastyFans] NASTY MINING on: January 23, 2013, 04:35:41 PM
OgNasty only donated BTC14 to be distributed for no other reason than 'thanks for the support'

I know he has more and should have donated more, specifically to me.  Beware of the scammer.



/sarcasm off

318  Economy / Web Wallets / Bug Report on: January 23, 2013, 02:49:44 PM
Just went to use the new note feature today, it is slick.

However for some reason my note window was not going away, so perhaps adding a close button like on transactions?

Examples of the Note window hover over others:


319  Economy / Securities / Re: [NastyFans] NASTY MINING on: January 22, 2013, 11:40:00 PM
on january 8th i replied to a message i received from nonnakip@anonymousspeech.com requesting help

have not gotten anything back


I have not gotten any payments and am expecting this to be resolved and all back payments made up to this point to others to be made to my address
Why did you wait so long to post here?  Did you attempt to PM him on this forum?
320  Bitcoin / Electrum / Re: [ANNOUNCE] Electrum - Lightweight Bitcoin Client on: January 22, 2013, 11:39:18 PM
I am not getting into a language war and in general I understand Thomas' concern about the possibility of stealing data.

My point was that I have worked in the brain wallet code base, it is hosted on github, and is unlikely to contain any backdoor.

I have also used it from a local file, which invokes the browsers same origin policy so it would be difficult to traverse that.
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 ... 69 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!