-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: header example #14
Comments
Hi @harrigan, the main idea imho would be to use the Does this work for you? |
Thank you @smee! That is exactly what I was trying to do. |
Great. Since there is also a relevant bugfix to the |
Hi,
I'm extending your Bitcoin protocol example (demo/bitcoin.clj) to
handle Bitcoin messages that are sent over the wire. The format is:
The problem I have run into is the checksum field between the length
and the payload. I tried using something like:
(def payload (binary/blob :prefix length-and-checksum))
and having length-and-checksum reify BinaryIO so that it ignores the
checksum when reading and just returns the length. However, for
writing, I don't have access to the payload from here so I can't
compute the checksum. Also, I'd prefer to compute the checksum outside
of the codec.
Do you know of any way of doing this? Sorry if I missed something
obvious and thank you for creating smee/binary.
Regards,
@harrigan
The text was updated successfully, but these errors were encountered: