Skip to content

Add cast and mh_from_bytes utilities - #73

Merged
acul71 merged 1 commit into
masterfrom
fix/issue-56-cast-mh-from-bytes
Oct 2, 2026
Merged

acul71 merged 1 commit into
masterfrom
fix/issue-56-cast-mh-from-bytes

Conversation

@acul71

@acul71 acul71 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add cast/Cast to validate a full buffer as a multihash
  • Add mh_from_bytes/MHFromBytes to parse a leading multihash with trailing data

Closes #56.

Test plan

  • make lint / make typecheck / make test

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@acul71
acul71 merged commit c60176e into master Oct 2, 2026
21 checks passed
@acul71
acul71 deleted the fix/issue-56-cast-mh-from-bytes branch October 2, 2026 08:40
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.

No Cast() or MHFromBytes() utility functions

1 participant