본문 바로가기
Block Chain

ethereum cold wallet 생성하기

by SpeeDr00t 2017. 9. 26.
반응형

ethereum cold wallet 생성하기

 

1. go언어 설치하기

http://speedr00t.tistory.com/entry/go-%EC%84%A4%EC%B9%98%EB%B6%80%ED%84%B0-hello-world-%EA%B9%8C%EC%A7%80ubuntu

 

2. 환경 설정 및 설치

hacker@ubuntu:/usr/local/go$ ls
api  AUTHORS  bin  blog  CONTRIBUTING.md  CONTRIBUTORS  
hacker@ubuntu:/usr/local/go$ 
hacker@ubuntu:/usr/local/go$ 
hacker@ubuntu:/usr/local/go$ export PATH=$PATH:/usr/local/go/bin
hacker@ubuntu:/usr/local/go$ export GOPATH=/usr/local/go


git clone https://github.com/vkobel/ethereum-generate-wallet.git
pip install ecdsa
pip install pysha3 

* SHA3sum 설치가 잘 안되므로 ethereum-generate-wallet안에 
 ./ethereum-wallet-generator.sh 이용하여 private key, public key를 생성하고
go-ethereum으로 address값을 구한다.

git clone https://github.com/ethereum/go-ethereum.git
make all


 

 

 

3. cold wallet 생성

hacker@ubuntu:~/dev/ethereum/ethereum-generate-wallet$ ls
ethereum-wallet-generator.py  ethereum-wallet-generator.sh  key  key1  lib  libkeccak  README.md  requirements.txt  sha3sum
hacker@ubuntu:~/dev/ethereum/ethereum-generate-wallet$ 
hacker@ubuntu:~/dev/ethereum/ethereum-generate-wallet$ 
hacker@ubuntu:~/dev/ethereum/ethereum-generate-wallet$ ./ethereum-wallet-generator.sh 
unable to write 'random state'
./ethereum-wallet-generator.sh: 12: ./ethereum-wallet-generator.sh: keccak-256sum: not found
Private key: 3b578773083eef8e32d615482f863487eae6b3dfbfcbce91019d412b46fcec40
Public key:  97b523865e3d391d6387fe89dc24fcfe60ec3bd455a53a7ab28e293cb52a07887d276258f93819b9dc2ee4e3d69070cbb93dadef11c7612dccffb15354a0cd83
Address:     0x
hacker@ubuntu:~/dev/ethereum/ethereum-generate-wallet$ echo 3b578773083eef8e32d615482f863487eae6b3dfbfcbce91019d412b46fcec40 > key3
hacker@ubuntu:~/dev/ethereum/ethereum-generate-wallet$ 
hacker@ubuntu:~/dev/ethereum/ethereum-generate-wallet$ ../go-ethereum/build/bin/geth --datadir ~/.ethereum/testnet account import key3
Your new account is locked with a password. Please give a password. Do not forget this password.
Passphrase: 
Repeat passphrase: 
Address: {5ed125a4ce95d308309b309741f2cf89ca695693}
hacker@ubuntu:~/dev/ethereum/ethereum-generate-wallet$ 


 

 

반응형