Bitcoin Forum
August 02, 2021, 03:36:18 AM *
News: Latest Bitcoin Core release: 0.21.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 5 6 7 »  All
  Print  
Author Topic: .05BTC (~$1,700) to whoever helps me successfully extract my BTC from CLI wallet  (Read 1657 times)
21XO
Jr. Member
*
Offline Offline

Activity: 57
Merit: 29


View Profile
January 03, 2021, 02:56:16 PM
Last edit: January 03, 2021, 04:57:19 PM by 21XO
Merited by LoyceV (4), ETFbitcoin (3)
 #1

Here is the wallet version I need:

https://pypi.org/project/blockstack/0.18.0.10/



I have the private key but I'm not very technical and am not able to download it to my computer.

My private key looks like the following (I changed some characters of course):
"master_private_key": "ef242kfjj24ekf3223jesdkhefsfhk324wuefhw38fhrypofhtr34d342132d34jsd49",
"wallet_password": “kljsef9832nkfssf”



Here are GitHub instructions for a newer Blockstack version but I need to download the older one (0.18.0.10):

https://github.com/blockstack/cli-blockstack
1627875378
Hero Member
*
Offline Offline

Posts: 1627875378

View Profile Personal Message (Offline)

Ignore
1627875378
Reply with quote  #2

1627875378
Report to moderator
1627875378
Hero Member
*
Offline Offline

Posts: 1627875378

View Profile Personal Message (Offline)

Ignore
1627875378
Reply with quote  #2

1627875378
Report to moderator
1627875378
Hero Member
*
Offline Offline

Posts: 1627875378

View Profile Personal Message (Offline)

Ignore
1627875378
Reply with quote  #2

1627875378
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
PawGo
Full Member
***
Offline Offline

Activity: 217
Merit: 166


View Profile WWW
January 03, 2021, 04:14:10 PM
Merited by LoyceV (4), ETFbitcoin (2), ranochigo (1)
 #2

Do you have python installed on your computer?

https://www.python.org/downloads/
Pip?

https://phoenixnap.com/kb/install-pip-windows

then to command
Code:
pip install blockstack==0.18.0.10
should work.

The other way is to download files:
https://pypi.org/project/blockstack/0.18.0.10/#files

and then install from the downloaded package:
pip install ./downloaded/blockstack-0.18.0.10.tar.gz
like described here: https://packaging.python.org/tutorials/installing-packages/

21XO
Jr. Member
*
Offline Offline

Activity: 57
Merit: 29


View Profile
January 03, 2021, 04:55:50 PM
 #3

Yes I do and I got an error message...If you're able to download the wallet on your computer, I can then pay you to help me download it on my computer over Zoom, etc.

I have Mac and Parallels (Windows, and Ubuntu) so can download it to any OS.


FYI my private key starts with "ef" so not sure if that means anything? Maybe I can also extract it from an old Electrum wallet also...?


ranochigo
Legendary
*
Offline Offline

Activity: 2422
Merit: 2431

@ me if you need my response


View Profile
January 03, 2021, 05:17:02 PM
Merited by OgNasty (1)
 #4

Yes I do and I got an error message...If you're able to download the wallet on your computer, I can then pay you to help me download it on my computer over Zoom, etc.

I have Mac and Parallels (Windows, and Ubuntu) so can download it to any OS.


I'm not particularly familiar with that seed format, but Electrum shouldn't accept it. It'll accept MPK that starts with xpriv.

FYI my private key starts with "ef" so not sure if that means anything? Maybe I can also extract it from an old Electrum wallet also...?



Please do not give anyone control of your computer, no matter how trusted they seem. If something happens to the wallet or your computer, it's your words against theirs. And for that matter, your wallet file as well.

What error message are you getting? Let us know.

Electrum accepts MPKs with the prefix of xpriv only so you likely cannot import it there.


21XO
Jr. Member
*
Offline Offline

Activity: 57
Merit: 29


View Profile
January 03, 2021, 05:24:01 PM
 #5

Here is the error message:
https://ibb.co/qrBRrmp


Also is anyone familiar with the private key? Maybe it can be imported into another wallet...it's 66 characters and starts with "ef". I think it is also encrypted but I have the password to decrypt it.
PawGo
Full Member
***
Offline Offline

Activity: 217
Merit: 166


View Profile WWW
January 03, 2021, 05:26:27 PM
 #6

check if you are using python3. Probably 2.
Maybe you must install python 3 or launch using command
Code:
python3
and/or
Code:
pip3


Edit:
ah, yes, you are using python 2.7
Try with 3.x

21XO
Jr. Member
*
Offline Offline

Activity: 57
Merit: 29


View Profile
January 03, 2021, 05:30:52 PM
 #7

Yes I tried that, also didn't work.

https://ibb.co/KmyV8rv
PawGo
Full Member
***
Offline Offline

Activity: 217
Merit: 166


View Profile WWW
January 03, 2021, 05:40:36 PM
Last edit: January 03, 2021, 07:59:06 PM by PawGo
 #8

Yes I tried that, also didn't work.

https://ibb.co/KmyV8rv

ah, weird
Some people used that workaround: https://github.com/OneDrive/onedrive-sdk-python/issues/167

At least you know you must use python 3.

bob123
Legendary
*
Offline Offline

Activity: 1582
Merit: 2356



View Profile WWW
January 03, 2021, 07:53:31 PM
 #9

At least you know you must use python 3.

Blockstack v 0.18 only works with python 2. It is incompatible with python 3.



Yes I tried that, also didn't work.

https://ibb.co/KmyV8rv

Somehow the onedrivesdk pip package is broken.
As mentioned in the above posted github, use:
Code:
pip2 install https://github.com/OneDrive/onedrive-sdk-python/archive/master.zip

PawGo
Full Member
***
Offline Offline

Activity: 217
Merit: 166


View Profile WWW
January 03, 2021, 08:02:08 PM
Last edit: January 03, 2021, 09:40:00 PM by PawGo
 #10

At least you know you must use python 3.

Blockstack v 0.18 only works with python 2. It is incompatible with python 3.


Mea culpa, I did not know - I just took a look at python output.


I just thought that if blockstack requires python2 and dependency migrated to python3, using master from git will not work, it will be needed to find the last correct version for python2.
But let he first try to install from master...

ETFbitcoin
Legendary
*
Offline Offline

Activity: 1946
Merit: 2993


NotYourKeys.org - Not Your Keys, Not Your Bitcoin


View Profile
January 04, 2021, 11:48:43 AM
Last edit: January 04, 2021, 12:19:40 PM by ETFbitcoin
 #11

Yes I tried that, also didn't work.

https://ibb.co/KmyV8rv

Somehow the onedrivesdk pip package is broken.
As mentioned in the above posted github, use:
Code:
pip2 install https://github.com/OneDrive/onedrive-sdk-python/archive/master.zip

Usually i can solve such dependency problem by install lowest required version (which is 1.1.8 in this case) of the dependency manually

Code:
python2.7 -m pip install onedrivesdk==1.1.8

Then try install blockstack again

Code:
python2.7 -m pip install lockstack==0.18.0.10

Here is the error message:
https://ibb.co/qrBRrmp


Also is anyone familiar with the private key? Maybe it can be imported into another wallet...it's 66 characters and starts with "ef". I think it is also encrypted but I have the password to decrypt it.

1. According to https://learnmeabitcoin.com/technical/wif, ef is tesnet prefix which used when you create WIF from private key in HEX format. Do you open correct file / see correct line ? But it's confidence if last 2 character of your actual private key is 01
2. Looking at https://docs.blockstack.org/understand-stacks/accounts, especially example of their private key when generating account also 66 characters. Although i don't know why their example use prefix 03 (maybe it's standard for Stacks 2.0 network) Last 2 character (01) is used as indicator to generate compressed public key.

npx -q stacks-gen sk --testnet

{
  "phrase": "guide air pet hat friend anchor harvest dog depart matter deny awkward sign almost speak short dragon rare private fame depart elevator snake chef",
  "private": "0351764dc07ee1ad038ff49c0e020799f0a350dd0769017ea09460e150a6401901",
  "public": "022d82baea2d041ac281bebafab11571f45db4f163a9e3f8640b1c804a4ac6f662",
  "stacks": "ST16JQQNQXVNGR8RZ1D52TMH5MFHTXVPHRV6YE19C",
  "stacking": "{ hashbytes: 0x4d2bdeb7eeeb0c231f0b4a2d5225a3e3aeeed1c6, version: 0x00 }",
  "btc": "mnYzsxxW271GkmyMnRfiopEkaEpeqLtDy8",
  "wif": "cMh9kwaCEttgTQYkyMUYQVbdm5ZarZdBHErcq7mXUChXXCo7CFEh"
}

Fortunately https://learnmeabitcoin.com/technical/wif shows example code how to generate WIF key from HEX private key, i combine required code for convenience.

Code:
require 'digest'

# Checksums use hash256 (where data is hashed twice through sha256)
def hash256(hex)
    binary = [hex].pack("H*")
    hash1 = Digest::SHA256.digest(binary)
    hash2 = Digest::SHA256.digest(hash1)
    result = hash2.unpack("H*")[0]
    return result
end

# Checksums are used when creating addresses
def checksum(hex)
  hash = hash256(hex) # Hash the data through SHA256 twice
  return hash[0...8]  # Return the first 4 bytes (8 characters)
end

def base58_encode(hex)
  @chars = %w[
      1 2 3 4 5 6 7 8 9
    A B C D E F G H   J K L M N   P Q R S T U V W X Y Z
    a b c d e f g h i j k   m n o p q r s t u v w x y z
]
  @base = @chars.length

  i = hex.to_i(16)
  buffer = String.new

  while i > 0
    remainder = i % @base
    i = i / @base
    buffer = @chars[remainder] + buffer
  end

  #! Is it just the 00, or does 05 get converted to 3, etc.
  # add '1's to the start based on number of leading bytes of zeros
  leading_zero_bytes = (hex.match(/^([0]+)/) ? $1 : '').size / 2

  ("1"*leading_zero_bytes) + buffer
end

privatekey = "0351764dc07ee1ad038ff49c0e020799f0a350dd0769017ea09460e150a64019"
# "ef" for tesnet
# "80" for mainnet
extended = "ef" + privatekey + "01" #  you can remove 01 to make your wallet generate uncompressed public key
extendedchecksum = extended + checksum(extended)
wif = base58_encode(extendedchecksum)

puts wif

You need to install ruby, save the code on a file and run it with this command

Code:
ruby your_file_name.rb

I've tried it quickly, compare the result with bitaddress and check whether the generated WIF can be imported to Electrum (both testnet and mainnet).

PawGo
Full Member
***
Offline Offline

Activity: 217
Merit: 166


View Profile WWW
January 04, 2021, 11:57:20 AM
Merited by ETFbitcoin (2)
 #12


1. According to https://learnmeabitcoin.com/technical/wif, ef is tesnet prefix which used when you create WIF from private key in HEX format. Do you open correct file / see correct line ?


Information if it is testnet or not is not included in private key itself. Only in prefix which is used to generate WIF.

Quote

2. Looking at https://docs.blockstack.org/understand-stacks/accounts, especially example of their private key when generating account also 66 characters. Although i don't know why their example use prefix 03 (maybe it's standard for Stacks 2.0 network)

npx -q stacks-gen sk --testnet

{
  "phrase": "guide air pet hat friend anchor harvest dog depart matter deny awkward sign almost speak short dragon rare private fame depart elevator snake chef",
  "private": "0351764dc07ee1ad038ff49c0e020799f0a350dd0769017ea09460e150a6401901",
  "public": "022d82baea2d041ac281bebafab11571f45db4f163a9e3f8640b1c804a4ac6f662",
  "stacks": "ST16JQQNQXVNGR8RZ1D52TMH5MFHTXVPHRV6YE19C",
  "stacking": "{ hashbytes: 0x4d2bdeb7eeeb0c231f0b4a2d5225a3e3aeeed1c6, version: 0x00 }",
  "btc": "mnYzsxxW271GkmyMnRfiopEkaEpeqLtDy8",
  "wif": "cMh9kwaCEttgTQYkyMUYQVbdm5ZarZdBHErcq7mXUChXXCo7CFEh"
}


In this example the private key is 0351764dc07ee1ad038ff49c0e020799f0a350dd0769017ea09460e150a64019. 01 at the end is a flag to indicate to use compressed address.
Because the program was launched with --testnet the generated WIF is "cMh9"... - which is created by adding "ef" at the beginning.
This same private key (with compressed flag) for the real network will produce WIF KwLAJ2aLoqCRHy5VawfR3B6a8rGBC7XVDCi9ihK1y63XGTgP3VbR

ETFbitcoin
Legendary
*
Offline Offline

Activity: 1946
Merit: 2993


NotYourKeys.org - Not Your Keys, Not Your Bitcoin


View Profile
January 04, 2021, 12:15:06 PM
 #13


1. According to https://learnmeabitcoin.com/technical/wif, ef is tesnet prefix which used when you create WIF from private key in HEX format. Do you open correct file / see correct line ?


Information if it is testnet or not is not included in private key itself. Only in prefix which is used to generate WIF.

Quote

2. Looking at https://docs.blockstack.org/understand-stacks/accounts, especially example of their private key when generating account also 66 characters. Although i don't know why their example use prefix 03 (maybe it's standard for Stacks 2.0 network)

npx -q stacks-gen sk --testnet

{
  "phrase": "guide air pet hat friend anchor harvest dog depart matter deny awkward sign almost speak short dragon rare private fame depart elevator snake chef",
  "private": "0351764dc07ee1ad038ff49c0e020799f0a350dd0769017ea09460e150a6401901",
  "public": "022d82baea2d041ac281bebafab11571f45db4f163a9e3f8640b1c804a4ac6f662",
  "stacks": "ST16JQQNQXVNGR8RZ1D52TMH5MFHTXVPHRV6YE19C",
  "stacking": "{ hashbytes: 0x4d2bdeb7eeeb0c231f0b4a2d5225a3e3aeeed1c6, version: 0x00 }",
  "btc": "mnYzsxxW271GkmyMnRfiopEkaEpeqLtDy8",
  "wif": "cMh9kwaCEttgTQYkyMUYQVbdm5ZarZdBHErcq7mXUChXXCo7CFEh"
}


In this example the private key is 0351764dc07ee1ad038ff49c0e020799f0a350dd0769017ea09460e150a64019. 01 at the end is a flag to indicate to use compressed address.
Because the program was launched with --testnet the generated WIF is "cMh9"... - which is created by adding "ef" at the beginning.
This same private key (with compressed flag) for the real network will produce WIF KwLAJ2aLoqCRHy5VawfR3B6a8rGBC7XVDCi9ihK1y63XGTgP3VbR


Since the private key length is 66 character (rather than 64 character), know ef used as prefix which is used to generate WIF from private key in HEX format and example by OP doesn't end with 01, i simply assume ef is the identifier whether the private key meant for testnet wallet/network and 03 as custom prefix.

Thanks for the correction, should've tested it more thoughtfully and use example from blockstack docs.

PawGo
Full Member
***
Offline Offline

Activity: 217
Merit: 166


View Profile WWW
January 04, 2021, 12:20:53 PM
 #14


Since the private key length is 66 character (rather than 64 character), know ef used as prefix which is used to generate WIF from private key in HEX format and example by OP doesn't end with 01, i simply assume ef is the identifier whether the private key meant for testnet wallet/network and 03 as custom prefix.

Thanks for the correction.

He said his key is like "ef242kfjj24ekf3223jesdkhefsfhk324wuefhw38fhrypofhtr34d342132d34jsd49", which is encoded form.
it does not look like hex which could be easily converted into WIF, so I would not worry about it as long as we do not know what is decoded hex form.

21XO
Jr. Member
*
Offline Offline

Activity: 57
Merit: 29


View Profile
January 04, 2021, 04:45:33 PM
 #15

My real private key starts with ef and ends in 01.

Code:
python2.7 -m pip install onedrivesdk==1.1.8
https://ibb.co/7gcd0ps

Code:
python2.7 -m pip install blockstack==0.18.0.10
https://ibb.co/Jj0LvnY
https://ibb.co/gzmf2KG
https://ibb.co/8s6mg5S



Thanks guys for all the help.




PawGo
Full Member
***
Offline Offline

Activity: 217
Merit: 166


View Profile WWW
January 04, 2021, 05:32:56 PM
 #16

Maybe you need to install xcode-libraries or Xcode Command Line Tools? Error is common:
https://www.google.be/search?q=mac+error+command+cc

Or switch to other system...


eibhear
Newbie
*
Offline Offline

Activity: 190
Merit: 0


View Profile
January 04, 2021, 06:46:09 PM
 #17

I'm not familiar with blockstack wallet, but it seems its successfully installed on my Debian machine, without compiling anything. At least it prints help, and, I think, I managed to set up a wallet.
Exact commands I used to install:
Code:
virtualenv -p python2.7 blockstack
cd blockstack/
source bin/activate
python2.7 -m pip install jsonschema==2.5.1
python2.7 -m pip install onedrivesdk==1.1.8
python2.7 -m pip install blockstack==0.18.0.10
You may try it on your Ubuntu virtual machine.
PawGo
Full Member
***
Offline Offline

Activity: 217
Merit: 166


View Profile WWW
January 04, 2021, 07:15:43 PM
 #18

I managed to install it using cygwin, so on your linux machine it should work... Or on Windows... 
Remember that you will probably need packages libssl-devel (for cryptography/wheels) and python-devel.

MrFreeDragon
Sr. Member
****
Offline Offline

Activity: 411
Merit: 281


View Profile
January 05, 2021, 01:31:59 AM
 #19

Have you resolved your issue?

bitcoinforktech
Newbie
*
Offline Offline

Activity: 16
Merit: 3


View Profile WWW
January 05, 2021, 03:55:42 AM
Merited by ETFbitcoin (1), NotATether (1)
 #20

My real private key starts with ef and ends in 01.

Code:
python2.7 -m pip install onedrivesdk==1.1.8
https://ibb.co/7gcd0ps

Code:
python2.7 -m pip install blockstack==0.18.0.10
https://ibb.co/Jj0LvnY
https://ibb.co/gzmf2KG
https://ibb.co/8s6mg5S



Thanks guys for all the help.


It looks to me like you need the openssl libraries.  Normally I would 'sudo apt install libssl-dev' and you should be able to do a similar thing with brew. brew install openssl or brew install openssl@1.1.

Try this:

brew install openssl@1.1
cp /usr/local/opt/openssl@1.1/lib/pkgconfig/*.pc /usr/local/lib/pkgconfig/

Hopefully that will help move things along.

Are you sure you can/cannot convert the key to WIF or somesuch and import it?
Pages: [1] 2 3 4 5 6 7 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!