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

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

by 류정필, 송재준
November 2019
Beginner to intermediate
408 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 밑바닥부터 시작하는 비트코인
밑바닥부터 시작하는 비트코인
202
if not self.verify_input(i):
➋
return False
return True
➊ 수수료가 마이너스 값이 아닌 것을 확인해서 코인이 발행되지 않도록 합니다.
➋ 각 입력이 올바른 해제 스크립트를 가지고 있는지 확인합니다.
풀 노드는 더 많은 체크리스트로 검증합니다. 예를 들면 이중 지불 확인, 몇몇 합의 규칙 확인
(최대
sigops
개수, 해제 스크립트의 길이 제한) 등입니다.
9
하지만 지금 목적에는 이 정도로
충분합니다.
7.2
트랜잭션 생성
트랜잭션을 검증할 때 사용한 코드를 많이 활용하여 트랜잭션을 생성합니다. 이렇게 하면 검증
항목에 부합하는 트랜잭션을 생성할 수 있습니다. 요컨대 생성된 트랜잭션에서 입력 비트코인
의 합은 출력 비트코인의 합보다 크거나 같아야 합니다. 또한 잠금 스크립트는 해제 스크립트
와 결합되었을 때 유효해야 합니다.
트랜잭션을 생성하려면 최소한 하나의 이전 트랜잭션 출력이 필요합니다. 즉, 존재하고 사용
가능한
UTXO
가 필요합니다. 당연히 이
UTXO
의 잠금 스크립트에 있는 (해시된 ) 공개키에
대응하는 비밀키도 필요합니다.
이번 장 이후에서는
p2pkh
잠금 스크립트로 잠근 비트코인을 사용하는 트랜잭션을 작성하겠
습니다.
9
sigops
란 한 블록에 포함된 서명 검증 ...
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