 이번에는 이더리움 지갑 생성 및 복구에 필요한 **니모닉(Mnemonic)**을 생성합니다. **니모닉**이란 지갑을 복구하기 위한 데이터입니다. 보통 12개의 영어 단어로 구성됩니다. 니모닉 생성 규칙은 [BIP-39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki)에 정의되어 있습니다. 니모닉은 아래와 같은 형태입니다. ``` kidney neglect bomb balcony leaf gun spy narrow total rib soldier depart speak bounce member ``` 아래 화면처럼 https://iancoleman.io/bip39/ 에 접속하면 니모닉을 생성해 볼 수 있습니다.  > > 니모닉은 영어, 일본어, 스페인어, 중국어(간체/번체), 프랑스어, 이탈리아어, 한국어를 지원합니다. 이더리움의 이해가 필요한 분은 아랫글을 참고 바랍니다. 이전에 이더리움을 공부하면서 정리한 글입니다. - [이더리움(Ethereum) 공부 #1 - 키와 주소](https://steemit.com/@anpigon/ethereum-1) - [이더리움(Ethereum) 공부 #2 - HD 지갑과 니모닉 코드](https://steemit.com/@anpigon/ethereum-2-hd) - [이더리움(Ethereum) 공부 #3 - 트랜잭션과 서명](https://steemit.com/busy/@anpigon/ethereum-3) <br><center>* * *</center><br> # 러이브러리 설치 아래 라이브러리를 모두 설치합니다. ```bash $ npm install --save react-native-bip39 bip32 ethers $ npm install --save-dev tradle/rn-nodeify $ ./node_modules/.bin/rn-nodeify --hack --install buffer,crypto,events,stream,vm,process ``` > 라이브러리가 모두 설치된 `package.json` 파일은 [여기](https://github.com/anpigon/rn_ethereum_wallet/blob/b7285e0b146a2648b478b214d2589e6ccba3e53a/package.json)에 업로드 되어 있습니다. 참고하세요. `rn-nodeify`를 실행하고 나면, 루트에 `shim.js` 파일이 생성되어 있습니다. 루트에 있는 `index.js` 파일을 열어 `shim.js`를 **import** 합니다. ```jsx import {AppRegistry} from 'react-native'; import App from './App'; import {name as appName} from './app.json'; import './shim.js' // 추가된 코드 AppRegistry.registerComponent(appName, () => App); ``` 만약 라이브러리 설치를 완료하고 나서, 앱 실행 시 아래와 비슷한 오류가 발생한다면 다음 방법을 시도해보세요. ```bash Module `stream` does not exist in the Haste module map This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following: 1. Clear watchman watches: `watchman watch-del-all`. 2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`. 3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`. 4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`. ``` # CreateWalletScreen 수정하기 `CreateWalletScreen.js` 파일을 수정합니다. 화면에서 지갑 백업용 니모닉을 보여줄 것입니다. ```jsx import bip39 from 'react-native-bip39'; // (...) export default class CreateWalletScreen extends Component { // (...) constructor(props) { super(props); this.state = { mnemonic: null } } componentWillMount = () => { // 니모닉 생성 bip39.generateMnemonic().then(mnemonic => { this.setState({ mnemonic }) }); } render() { return ( <Container style={styles.container}> <View style={{ flex: 1, padding: 10 }}> <View style={{ flex: 1 }}> <Text note>아래 12개 니모닉을 복사하여 백업하세요. 지갑을 복구하는데 매우 중요한 데이터입니다.</Text> <Form> <Textarea rowSpan={5} bordered disabled value={this.state.mnemonic} /> </Form> </View> <View style={{ flex: 1 }}> <Button block primary> <Text>생성하기</Text> </Button> </View> </View> </Container> ); } } ``` > * `bip39.generateMnemonic()` 함수를 사용하여 지갑 생성에 필요한 니모닉을 생성합니다. `react-native-bip39` 라이브러리의 더 자세한 사용 방법은 [여기](https://github.com/novalabio/react-native-bip39)를 참고하세요. > * 니모닉은 보통 12 영단어로 구성됩니다. 24 영단어 니모닉을 생성하고 싶으면 `bip39.generateMnemonic(256)`를 사용하세요. > * 한글로 니모닉을 만들고 싶으면 [여기](https://github.com/bitcoinjs/bip39/blob/master/wordlists/korean.json)를 참고하세요. 현재 `react-native-bip39` 라이브러리가 영어 외에는 지원하지 않아서 직접 추가해야 합니다. 이제 앱을 실행하여 확인해봅니다.  지갑 복구에 필요한 니모닉이 생성되었습니다. <br><center>* * *</center><br> 이더리움 지갑 개발에 필요한 라이브러리를 찾느라 시간이 많이 소요되었습니다. 그래서 진도를 많이 못 나갔네요. ㅎ 여기까지 읽어주셔서 감사합니다.
author | anpigon |
---|---|
permlink | react-native-ethereum-mobile-wallet-2 |
category | kr |
json_metadata | {"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["kr","kr-dev","busy","jjangjjangman","ethereum"],"users":["anpigon"],"links":["https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki","https://iancoleman.io/bip39/","https://steemit.com/@anpigon/ethereum-1","https://steemit.com/@anpigon/ethereum-2-hd","https://steemit.com/busy/@anpigon/ethereum-3","https://github.com/anpigon/rn_ethereum_wallet/blob/b7285e0b146a2648b478b214d2589e6ccba3e53a/package.json","https://github.com/novalabio/react-native-bip39","https://github.com/bitcoinjs/bip39/blob/master/wordlists/korean.json"],"image":["https://cdn.steemitimages.com/720x0/https://cdn.steemitimages.com/DQmTBYPHABLZoXJMWL9msssEoTsXz9LvVaK7dT49uXXGQi7/galaxy-2.png","https://cdn.steemitimages.com/DQmdbgdwHxaYL7krvRFifWczCkXvXCTaE4X4EiRMKASXFCn/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202019-02-03%2011.43.06.png","https://cdn.steemitimages.com/0x600/https://cdn.steemitimages.com/DQmPKt7p6PLAfnM3Zpua5EScucHJN2LaBHACLSUew48JAt3/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202019-02-02%2002.44.47.png"]} |
created | 2019-02-03 03:08:24 |
last_update | 2019-02-04 01:50:12 |
depth | 0 |
children | 4 |
last_payout | 2019-02-10 03:08:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.366 HBD |
curator_payout_value | 0.396 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 4,286 |
author_reputation | 17,258,940,000,931 |
root_title | "[React Native] 이더리움 모바일 지갑(Ethereum Mobile Wallet) 만들기 #2" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 79,324,340 |
net_rshares | 3,734,503,738,334 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
vortac | 0 | 6,500,969,437 | 0.15% | ||
busy.pay | 0 | 472,716,646,705 | 2.27% | ||
vannour | 0 | 509,285,074 | 0.75% | ||
steemitboard | 0 | 14,536,465,406 | 1% | ||
skan | 0 | 978,280,833,229 | 16% | ||
bree1042 | 0 | 30,430,113,852 | 25% | ||
hjk96 | 0 | 121,540,976,310 | 25% | ||
fur2002ks | 0 | 214,567,696,266 | 12% | ||
ukk | 0 | 107,063,576,229 | 30% | ||
seapy | 0 | 4,377,299,602 | 60% | ||
accelerator | 0 | 17,224,445,111 | 1.11% | ||
june0620 | 0 | 63,897,020,080 | 10% | ||
rijalaronaceh | 0 | 89,971,664 | 1% | ||
pediatrics | 0 | 40,619,857,716 | 25% | ||
funtraveller | 0 | 6,015,396,098 | 1% | ||
lostmine27 | 0 | 31,552,331,430 | 100% | ||
dj-on-steem | 0 | 6,748,195,504 | 31% | ||
eversloth | 0 | 260,305,712,063 | 100% | ||
fun2learn | 0 | 1,177,275,534 | 1.6% | ||
mishana | 0 | 9,313,129,614 | 60% | ||
kyunga | 0 | 16,467,050,392 | 50% | ||
jonberman | 0 | 8,687,604,313 | 100% | ||
songbj | 0 | 1,354,088,903 | 100% | ||
wonsama | 0 | 15,893,081,811 | 100% | ||
dorian-lee | 0 | 52,153,160,441 | 100% | ||
effofex | 0 | 72,249,454 | 0.55% | ||
sd974201 | 0 | 2,664,053,775 | 7% | ||
sleeprince | 0 | 27,688,438,184 | 100% | ||
modolee | 0 | 593,195,107 | 100% | ||
krnews | 0 | 804,980,403 | 100% | ||
anpigon | 0 | 91,930,042,990 | 100% | ||
photocircle | 0 | 3,051,663,881 | 1% | ||
newbijohn | 0 | 27,728,708,665 | 100% | ||
wbot01 | 0 | 396,691,556 | 100% | ||
wdev | 0 | 47,461,910,847 | 100% | ||
nailyourhome | 0 | 1,207,571,312 | 1.6% | ||
ulockblock | 0 | 293,085,444,476 | 100% | ||
steemchoose | 0 | 5,763,428,334 | 0.8% | ||
bukio | 0 | 256,005,745,037 | 2.1% | ||
delegate4upvot | 0 | 1,137,267,158 | 1.6% | ||
bbooaae | 0 | 132,128,838,403 | 35% | ||
merlin7 | 0 | 310,924,151 | 0.01% | ||
doctor.strange | 0 | 395,966,122 | 100% | ||
dead.pool | 0 | 395,970,177 | 100% | ||
black.widow | 0 | 395,969,483 | 100% | ||
marvel.spiderman | 0 | 395,969,060 | 100% | ||
marvel.hulk | 0 | 395,969,336 | 100% | ||
marvel.ironman | 0 | 395,966,380 | 100% | ||
black.pan.ther | 0 | 395,969,604 | 100% | ||
steem-ua | 0 | 169,388,593,711 | 1.6% | ||
donasteem | 0 | 664,953,636 | 8.4% | ||
devsup | 0 | 2,773,717,125 | 0.69% | ||
gomdory | 0 | 67,306,267,878 | 100% | ||
claim7 | 0 | 395,684,863 | 100% | ||
wcasino | 0 | 1,428,003,235 | 100% | ||
wcasino.pay | 0 | 395,676,178 | 100% | ||
wcasino.holdem | 0 | 292,376,170 | 100% | ||
wcasino.jackpot | 0 | 292,378,701 | 100% | ||
steemit.holdem | 0 | 2,850,050,754 | 100% | ||
steemit.jackpot | 0 | 292,376,282 | 100% | ||
talken | 0 | 1,374,507,585 | 100% | ||
steemory | 0 | 4,616,822,138 | 100% | ||
smcard | 0 | 1,324,409,629 | 100% | ||
smonsmon | 0 | 1,324,252,347 | 100% | ||
guro | 0 | 1,324,118,951 | 100% | ||
shindorim | 0 | 1,324,252,240 | 100% | ||
yongsan | 0 | 1,324,252,848 | 100% | ||
incheon | 0 | 1,324,418,492 | 100% | ||
mapo | 0 | 1,324,124,716 | 100% | ||
shingil | 0 | 981,147,255 | 100% | ||
checkname | 0 | 1,324,253,898 | 100% | ||
starterpack | 0 | 981,139,176 | 100% | ||
gdragon | 0 | 1,324,134,374 | 100% | ||
sumimasen | 0 | 1,324,100,253 | 100% | ||
smtester | 0 | 1,324,420,559 | 100% | ||
showdown | 0 | 981,241,392 | 100% | ||
monstersteem | 0 | 1,324,430,237 | 100% | ||
freesale | 0 | 1,324,178,270 | 100% | ||
freefee | 0 | 1,324,409,613 | 100% | ||
testsama | 0 | 981,233,472 | 100% | ||
kimch | 0 | 981,228,860 | 100% | ||
tongdak | 0 | 1,324,397,271 | 100% | ||
hanbok | 0 | 1,664,135,037 | 100% | ||
jjangjjangman | 0 | 981,228,210 | 100% | ||
superguard | 0 | 1,664,133,676 | 100% | ||
yawang | 0 | 981,220,741 | 100% | ||
roadmap | 0 | 981,228,636 | 100% | ||
kpay | 0 | 981,221,073 | 100% | ||
adultbaby | 0 | 1,324,408,507 | 100% | ||
sneack | 0 | 981,228,185 | 100% | ||
mbappe | 0 | 889,793,948 | 3% | ||
gzone | 0 | 1,324,433,281 | 100% | ||
ppororo | 0 | 1,324,433,106 | 100% | ||
lotto645 | 0 | 981,222,137 | 100% | ||
alphamonsters | 0 | 1,324,422,874 | 100% | ||
betamonsters | 0 | 1,324,432,653 | 100% | ||
girlfriends | 0 | 1,324,432,181 | 100% | ||
fastway | 0 | 1,324,432,000 | 100% | ||
smonsang | 0 | 981,220,758 | 100% | ||
technomart | 0 | 1,324,431,648 | 100% | ||
lastsmon | 0 | 981,221,417 | 100% | ||
postme | 0 | 1,324,407,646 | 100% | ||
smilezone | 0 | 1,324,387,009 | 100% | ||
bearbaby | 0 | 1,324,365,255 | 100% | ||
o0o0o | 0 | 1,324,387,086 | 100% | ||
thecards | 0 | 1,324,382,375 | 100% | ||
developments | 0 | 1,324,370,901 | 100% | ||
originals | 0 | 1,324,372,699 | 100% | ||
beanpole | 0 | 1,324,371,465 | 100% | ||
oilbank | 0 | 1,324,370,929 | 100% | ||
iliili | 0 | 1,324,361,020 | 100% | ||
kotlin | 0 | 1,324,369,887 | 100% | ||
flutters | 0 | 1,324,712,244 | 100% | ||
prettyguy | 0 | 1,324,318,226 | 100% | ||
gamemonsters | 0 | 1,324,242,997 | 100% | ||
blueguy | 0 | 728,317,494 | 100% | ||
sicbo | 0 | 1,414,612,464 | 100% | ||
yaoi | 0 | 1,424,273,923 | 100% | ||
farmfarm | 0 | 1,423,165,493 | 100% | ||
giantroc | 0 | 1,080,210,254 | 100% | ||
koboldminer | 0 | 1,080,211,540 | 100% | ||
crustaceanking | 0 | 1,080,203,271 | 100% | ||
waterelemental | 0 | 1,080,210,294 | 100% | ||
goblinsorcerer | 0 | 1,080,210,520 | 100% | ||
ragingimpaler | 0 | 1,080,621,362 | 100% | ||
animatedcorpse | 0 | 1,423,576,045 | 100% | ||
spiritforest | 0 | 1,080,614,527 | 100% | ||
serpentflame | 0 | 1,080,614,001 | 100% | ||
goblincaptain | 0 | 1,080,622,845 | 100% | ||
lyannaforest | 0 | 1,080,614,639 | 100% | ||
divineknight | 0 | 1,080,624,183 | 100% | ||
feralwarrior | 0 | 1,080,630,617 | 100% | ||
elementalair | 0 | 1,080,621,611 | 100% | ||
jestertwisted | 0 | 1,080,622,807 | 100% | ||
bansheescreaming | 0 | 1,080,631,466 | 100% | ||
skyselenia | 0 | 1,080,623,189 | 100% | ||
darknesslord | 0 | 1,080,623,527 | 100% | ||
lightangel | 0 | 1,080,631,713 | 100% | ||
naturalyanna | 0 | 1,080,613,333 | 100% | ||
astormbringer | 0 | 1,080,613,446 | 100% | ||
giantfrost | 0 | 1,080,614,456 | 100% | ||
warriorminotaur | 0 | 1,080,621,385 | 100% | ||
golemalric | 0 | 1,080,624,377 | 100% | ||
orcelemental | 0 | 1,423,576,145 | 100% | ||
spiritpriest | 0 | 1,080,622,198 | 100% | ||
lordjester | 0 | 1,080,623,293 | 100% | ||
magifirestorm | 0 | 1,080,621,729 | 100% | ||
muhan | 0 | 1,080,621,554 | 100% | ||
xrp.trail | 0 | 955,449,761 | 1.7% | ||
smseller | 0 | 1,664,680,277 | 100% |
짱짱맨 호출에 응답하여 보팅하였습니다.
author | bukio |
---|---|
permlink | re-bukio-jjangjjangman-1549164228035 |
category | kr |
json_metadata | "{"tags":["bukio", "jjangjjangman"],"app":"steemer/1.0"}" |
created | 2019-02-03 03:23:48 |
last_update | 2019-02-03 03:23:48 |
depth | 1 |
children | 0 |
last_payout | 2019-02-10 03:23:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 22 |
author_reputation | 11,545,563,591,097 |
root_title | "[React Native] 이더리움 모바일 지갑(Ethereum Mobile Wallet) 만들기 #2" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 79,324,731 |
net_rshares | 0 |

author | gomdory |
---|---|
permlink | re-react-native-ethereum-mobile-wallet-2-20190203t104616 |
category | kr |
json_metadata | "" |
created | 2019-02-03 10:46:18 |
last_update | 2019-02-03 10:46:18 |
depth | 1 |
children | 0 |
last_payout | 2019-02-10 10:46:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 78 |
author_reputation | 38,104,394,235,725 |
root_title | "[React Native] 이더리움 모바일 지갑(Ethereum Mobile Wallet) 만들기 #2" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 79,335,934 |
net_rshares | 0 |
#### Hi @anpigon! Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation! Your **UA** account score is currently 2.910 which ranks you at **#11533** across all Steem accounts. Your rank has improved 6 places in the last three days (old rank 11539). In our last Algorithmic Curation Round, consisting of 265 contributions, your post is ranked at **#183**. ##### Evaluation of your UA score: * Only a few people are following you, try to convince more people with good work. * The readers like your work! * You have already shown user engagement, try to improve it further. **Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
author | steem-ua |
---|---|
permlink | re-react-native-ethereum-mobile-wallet-2-20190205t073128z |
category | kr |
json_metadata | "{"app": "beem/0.20.18"}" |
created | 2019-02-05 07:31:30 |
last_update | 2019-02-05 07:31:30 |
depth | 1 |
children | 0 |
last_payout | 2019-02-12 07:31:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 704 |
author_reputation | 23,214,230,978,060 |
root_title | "[React Native] 이더리움 모바일 지갑(Ethereum Mobile Wallet) 만들기 #2" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 79,418,931 |
net_rshares | 0 |
Congratulations @anpigon! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@anpigon/posts.png?201902030549</td><td>You published more than 100 posts. Your next target is to reach 150 posts.</td></tr> <tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@anpigon/voted.png?201902030549</td><td>You received more than 5000 upvotes. Your next target is to reach 6000 upvotes.</td></tr> </table> <sub>_[Click here to view your Board](https://steemitboard.com/@anpigon)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> To support your work, I also upvoted your post! > Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
author | steemitboard |
---|---|
permlink | steemitboard-notify-anpigon-20190203t062841000z |
category | kr |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2019-02-03 06:28:39 |
last_update | 2019-02-03 06:28:39 |
depth | 1 |
children | 0 |
last_payout | 2019-02-10 06:28:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 986 |
author_reputation | 38,975,615,169,260 |
root_title | "[React Native] 이더리움 모바일 지갑(Ethereum Mobile Wallet) 만들기 #2" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 79,329,175 |
net_rshares | 0 |