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

Initial implementation of multibase encoding #1019

Merged
merged 7 commits into from
Jan 29, 2025
Merged

Initial implementation of multibase encoding #1019

merged 7 commits into from
Jan 29, 2025

Conversation

jaromil
Copy link
Member

@jaromil jaromil commented Jan 29, 2025

Implementation of issue #1015

simplified init and caching of precalculated tables for hashes
incomplete WIP: missing length byte, just pfx for now
made use of schema export encoding for multihash

this implementation is constant-time
@jaromil jaromil marked this pull request as ready for review January 29, 2025 14:26
this is now able to import a generic multihash type and recognize it
from its prefixes, it also operates some checks, then sets the schema
accordingly for the output. Given input can be specified or left
generic, then is autodetected.
@jaromil jaromil merged commit 5ce95f1 into master Jan 29, 2025
27 checks passed
@jaromil jaromil deleted the feat/multibase branch January 29, 2025 15:49
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.

1 participant