Skip to content
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

Integrate big endian hashes, integrate them into the bitcoind-rpc pro… #364

Merged
merged 1 commit into from Feb 28, 2019

Conversation

Christewart
Copy link
Contributor

…ject

This integrates the BE (big endian) hash type.

We now have big endian versions of hash digests such as DoubleSha256DigestBE. Due to how satoshis built the bitcoin protocol hashes are little endian at the protocol level, but big endian at the rpc level. This is a source of confusion for developers we make an explicit type for the big endian hash digests.

This is needed for the node project, as we will be dealing with a lot of endianness issues with databases. I want the endianess to be encoded explicitly in the type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant