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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

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

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

사이토 고키
견고한 데이터 엔지니어링

견고한 데이터 엔지니어링

조 라이스, 맷 하우슬리
실리콘밸리 리더십

실리콘밸리 리더십

김정혜, 마이클 롭

Publisher Resources

ISBN: 9791162248294