PBL Ⅲ/Ethereum and Solidity

Section1 : 12. What's a transaction ~ 16. block time

myejinni 2022. 8. 14. 23:06

12. What's a transaction

 

transaction: object that describes the transfer of funds from one account to another

nonce: 트랜젝션을 sender 가 얼만큼의 횟수로 보냈는지

To: 돈이 보내질 계좌의 주소

value: 보낼 ether의 amount

gasPrice: transaction의 동작과정에 sender가 지불하고자하는 gas의 

startGas/gaslimit: 해당 transaction이 소비할 수 있는 gas의 unit

v/r/s: sender 의 비밀키에서 생성되는 값(one way process)

* vrs 로부터 보안의 레벨이 결정됨

 

13. why did we wait?

 

백엔드 서버가 트랜젝션이 confirmed되기까지 기다림

-> why did we wait?

-> why did it take so long to confirm that transaction?

 

트랜젝션은 하나의 특정한 노드로 향함

-> 하나의 노드(A)와 상호작용하는 것임 -> A 노드가 나머지 노드들과 상호작용

 

T=내가 보낸 트랜젝션 O=다른사람이 보낸 트랜젝션 

validation logic= 이 트랜젝션들을 블록으로-> 이 과정에서 시간이 걸리는 것 

mining

 

14-15. basic blockchains 

mining= block의 hash 값에 맞는 nonce를 찾는 과정

 

마지막 블록의 값을 바꿈=마지막 블록만 다시 마이닝 해주면 됨

if, 중간 블록의 값을 바꿈=중간~마지막 블록까지 모두 마이닝을 다시 해줘야 함

-> 이 때문에 블록체인에서 값을 바꾸면 바로 들통남

 

블록체인들이 수많은 컴퓨터들에 복사되어 있음

=> 값을 변경후 리마이닝해도, 다른 컴퓨터에 복사된 블록의 해쉬값들(peer)과 값이 다르면 탈락(?)

 

16. block time

block time = time to find a solution

<- amount of time it takes to run these hundreds of thousands of different possible hashes we are looking for

 

'PBL Ⅲ > Ethereum and Solidity' 카테고리의 다른 글

Section1 : 20. Our First Contract~  (0) 2022.08.15
Section1 : 17. smart contracts ~  (0) 2022.08.15
Receiving Ether  (0) 2022.06.06
Ethereum Accounts  (0) 2022.06.06
Metamask Setup  (0) 2022.06.06