일단 라이트 노드가 블룸 필터를 생성하면 이를 풀 노드에게 알려줘야 합니다. 그러면 풀 노드
는 포함증명을 보낼 때 이를 활용합니다. 라이트 노드가 해야 하는 첫 번째 일은
version
메시
지의 릴레이(
Optional
flag
for
relay
) 필드 값을
0
으로 설정하는 일입니다(
10
장 참고).
7
이
는 풀 노드가 블룸 필터의 비트 필드와 일치하지 않는 트랜잭션 메시지는 보내지 않도록 합니
다. 단, 특별히 요청하는 경우는 예외입니다. 릴레이 필드 값이 전달된 후, 라이트 노드는 이제
풀 노드에게 생성된 블룸 필터를 전달합니다. 블룸 필터를 설정하는 커맨드가
filterload
입니
다. 이
filterload
메시지의 페이로드는 [그림
12
-
4
]와 같이 파싱됩니다.
그림
12-4
filterload
메시지의 페이로드 파싱
블룸 필터의 각 구성 요소인 비트 필드, 해시함수 개수 및
tweak
파라미터는 바이트로 인코딩
되어 메시지에 들어 있습니다. 마지막 필드인
Matched
item
flag
는 풀 노드에게 블룸 필터의
비트 필드와 일치하는 트랜잭션을 추가하여 비트 필드 값이 변할 수 있도록 합니다.
8
7
릴레이 필드 값은
BIP0037
에서 기존
version
메시지에 추가된 필드다. 이 필드를
0
으로 설정하면 ...
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.
O’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
I 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
I’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
I'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.