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

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

by 류정필, 송재준
November 2019
Beginner to intermediate
408 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 밑바닥부터 시작하는 비트코인
밑바닥부터 시작하는 비트코인
240
9.1.2
BIP0034
제안서
BIP0034
는 코인베이스 트랜잭션의 해제 스크립트의 첫 번째 원소를 규정하고 있습니다. 이것
은 서로 다른 블록임에도 동일한 코인베이스 트랜잭션
ID
를 갖는 문제를 해결하고자 제안됐습
니다.
바이트 단위로 똑같은 코인베이스 트랜잭션은 그 트랜잭션
ID
역시 동일합니다. 왜냐하면 그
값은 트랜잭션
hash256
해시값이고,
hash256
해시함수의 출력은 입력이 같으면 똑같기 때
문입니다. 트랜잭션
ID
의 중복을 방지하기 위해서 개빈 안드레센
Gavin
Andresen
은
BIP0034
를 제
안했습니다. 이는 채굴하고 있는 블록의 높이를 코인베이스 해제 스크립트의 첫 원소로 한다는
소프트포크
soft
-
fork
규정입니다.
1
높이는 리틀엔디언 정수로 표현하며 블록 높이 (즉, 최초
0
번 블록 이후의 블록 번호 )와 같아야
합니다. 따라서 서로 다른 코인베이스 트랜잭션은 소속된 블록마다 높이가 다르기 때문에 바이
트 단위로 똑같을 수 없습니다. [그림
9
-
1
]에서의 코인 베이스 트랜잭션의 높이를 파싱하는 방
법은 다음과 같습니다.
>>> from io import BytesIO
>>> from script import Script
>>> from helper import little_endian_to_int ...
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