Skip to content

feat: expose code property on Encoder class#53

Open
sumanjeet0012 wants to merge 1 commit into
multiformats:masterfrom
sumanjeet0012:fix-issue-47
Open

feat: expose code property on Encoder class#53
sumanjeet0012 wants to merge 1 commit into
multiformats:masterfrom
sumanjeet0012:fix-issue-47

Conversation

@sumanjeet0012

Copy link
Copy Markdown
Contributor

Fixes #47

Description

This pull request adds a public .code property to the Encoder class.

Changes

  • Exposes self._codec.code via a read-only property code.
  • Brings py-multibase into alignment with go-multibase, which exposes the encoding code via Encoder.Encoding().
  • Added test validation to ensure encoder.code returns the correct multibase prefix byte.

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.

Encoder class lacks a code property exposing the prefix byte

1 participant