Skip to Content
밑바닥부터 시작하는 비트코인
book

밑바닥부터 시작하는 비트코인

by 류정필, 송재준
November 2019
Beginner to intermediate
408 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 밑바닥부터 시작하는 비트코인
밑바닥부터 시작하는 비트코인
262
self.nonce = int_to_little_endian(randint(0, 2**64), 8)
else:
self.nonce = nonce
self.user_agent = user_agent
self.latest_block = latest_block
self.relay = relay
이 메시지를 직렬화하는 방법은 연습문제로 남겨두겠습니다.
연습문제
10.4
VersionMessage
클래스의
serialize
메서드를 작성하시오.
10.3
네트워크 핸드셰이크
네트워크 핸드셰이크는 노드 사이에 통신 링크를 처음 수립하는 과정을 말합니다. 그 방법은
다음과 같습니다.
A
B
와 연결하기 위해
version
메시지를 보낸다.
B
version
메시지를 받고
verack
메시지로 응답한다. 그리고 바로 자신의
version
메시지를 보낸다.
A
B
가 보낸
verack
version
메시지를 받고
verack
메시지로 응답한다.
B
verack
메시지를 받고 이제 통신 링크가 형성되었다.
핸드셰이크가 끝나면
A
B
는 원하는 대로 통신할 수 있습니다. 핸드셰이크에는 서로의 노드
를 인증하는 과정이 없으며 모든 수신 데이터의 이상 유무를 확인하는 것은 전적으로 각 노드
의 책임입니다. 만약 노드가 잘못된 트랜잭션이나 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

밑바닥부터 시작하는 딥러닝

밑바닥부터 시작하는 딥러닝

사이토 고키
실리콘밸리 리더십

실리콘밸리 리더십

김정혜, 마이클 롭

Publisher Resources

ISBN: 9791162248294