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

Typo in Base2 rfc #80

Open
johnchandlerburnham opened this issue Oct 5, 2021 · 0 comments
Open

Typo in Base2 rfc #80

johnchandlerburnham opened this issue Oct 5, 2021 · 0 comments

Comments

@johnchandlerburnham
Copy link

In https://github.com/multiformats/multibase/blob/master/rfcs/Base2.md#encoding:

For example, [0x58, 0x59, 0x60] can be converted to multibase base2 as follows:

map each byte to the base2 representation:
 ["01011000", "01011001", "01011010"]

concatenate:
 "010110000101100101011010"

prefix with '0':
 "0010110000101100101011010"

The binary representation of 0x60 is 0b0110000. The third byte 0b01011010 in hexadecimal is 0x5A.

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 a pull request may close this issue.

1 participant