๊ฐ์ ์์ - Solidity๋ฅผ ์ฌ์ฉํ ์ด๋๋ฆฌ์ ๋ธ๋ก์ฒด์ธ ๊ฐ๋ฐ์ ๋ถํธ์บ ํ (2022)
: https://www.udemy.com/course/solidity-ethereum-bootcamp/learn/lecture/31207252#questions
๊ฐ์ ์๋ฃ : https://ethereum-blockchain-developer.com/002-first-transaction/02-transfer-ether/
web3js : https://web3js.readthedocs.io/en/v1.2.11/web3-eth.html#sendtransaction
web3.eth โ web3.js 1.0.0 documentation
The web3-eth package allows you to interact with an Ethereum blockchain and Ethereum smart contracts. Note on checksum addresses All Ethereum addresses returned by functions of this package are returned as checksum addresses. This means some letters are up
web3js.readthedocs.io
Transfer Ether - Become Ethereum Blockchain Developer
Transfer Ether from Account 1 to Account 2 You have two accounts now in MetaMask. You can switch between them. If you followed the previous tutorial, then you already have test-ether in your Account 1. Time to send some Ether from Account 1 to Account 2! S
ethereum-blockchain-developer.com
[ ์ด๋๋ฆฌ์ ํธ๋์ญ์ ]

from : [account]
to : [account] (optional)
value : [integer] in wei


๋ธ๋ก ํ์๊ธฐ
From
To
Value
[ ํธ๋์ญ์ ์๋ช ]


=> v,r,s : ์๋ช
r,sํ๋ : ECREVOVER ํจ์๋ฅผ ํตํด ์๋ -> ๊ณต๊ฐํค์ ์ด๋๋ฆฌ์ ๊ณ์ ์ถ๋ ฅ
ํธ๋์ญ์ | โโโโโโโโโโโโโโโโ โ โ |
(ํธ๋์ญ์
+๋น๋ฐํค) -> ์๋ช
ํธ๋์ญ์
(v,r,s) โ โ ECREVOVER (r,s) โ |
|
๋ฉํ๋ง์คํฌ ์์ ๋น๋ฐํค (32bytes,64hex char) |
-> ECDSA ํ์๊ณก์ ๋์งํธ์๋ช ์๊ณ ๋ฆฌ์ฆ (๊ฐ์ธํค ์ ์ก) |
-> ๊ณต๊ฐํค (64bytes) ์ ๊ณต |
-> ์ด๋๋ฆฌ์ ๊ณ์ ๋ง๋ฆ ์ด๋๋ฆฌ์ ๊ณ์ : Keccak Hash of the last 20 bytes of the public key B_96...255(kec(pub_k)) (ํธ๋์ญ์ ์ from) |
- ์๋ช ์ ํตํด ํด๋น ์ด๋๋ฆฌ์ ํธ๋์ญ์ ์ ์ง์ ์ฑ์ด ๋ณด์ฅ๋จ
์๋ช ์ ๊ฐ์ธํค์์ ์์ฑ๋จ
๊ณต๊ฐํค์ ์ฃผ์๋ ๊ฐ์ธํค์์ ์์ฑ๋จ
์๋ช ์ผ๋ก ๊ณต๊ฐํค ๋ง๋ค ์ ์์
๊ณต๊ฐํค์ ๊ณ์ ์ ๋ค์ ๋ง๋ค ์ ์๊ณ ํธ๋์ญ์ ์ from์์ ์ฌ์ฉ๋ ๊ณ์ ์ด ํธ๋์ญ์ ์ ์๋ช ํ๊ณ
ํธ๋์ญ์ ์๋ช ์ ๋ง๋ค๊ธฐ ์ํด ์ฌ์ฉ๋ ๊ฐ์ธํค์ ๊ฐ๋ค๋ ์ฌ์ค์ ๋ณด์ฅ
=> ๋ธ๋ก์ฒด์ธ๊ณผ ๋ชจ๋ ์ฐธ์ฌ ๋ ธ๋๊ฐ ์์ฃผ ์ฝ๊ฒ ํธ๋์ญ์ ์ด ์ณ๋ค๊ณ ์ ์ฆ ํ ์ ์๋ ์ด์
'๋ธ๋ก์ฒด์ธ > ๋ธ๋ก์ฒด์ธ ๊ฐ๋ฐ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์ด๋๋ฆฌ์ ๋ธ๋ก์ฒด์ธ ๊ฐ๋ฐ] Solidity_Simple Variables (0) | 2022.08.01 |
---|---|
[์ด๋๋ฆฌ์ ๋ธ๋ก์ฒด์ธ ๊ฐ๋ฐ] ์๋ฆฌ๋ํฐ ๋ณ์ ์นํธ ์ํธ (0) | 2022.07.18 |
[์ด๋๋ฆฌ์ ๋ธ๋ก์ฒด์ธ ๊ฐ๋ฐ] ๋ธ๋ก์ฒด์ธ ๋ ธ๋ (0) | 2022.07.18 |
[์ด๋๋ฆฌ์ ๋ธ๋ก์ฒด์ธ ๊ฐ๋ฐ] ์ค๋งํธ ์ปจํธ๋ํธ ๋ฐฐํฌ (0) | 2022.07.18 |
[์ด๋๋ฆฌ์ ๋ธ๋ก์ฒด์ธ ๊ฐ๋ฐ] ๋ธ๋ก ์ฐ๊ฒฐ ๋ฐฉ์ (0) | 2022.07.18 |