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

Convert functions for IPFS CID v0 to 32 byte hex string and back #229

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

emg110
Copy link

@emg110 emg110 commented Aug 28, 2021

This PR adds two functions to util.py module to convert between IPFS CID v0 strings to 32 bytes hex strings that fits Algorand Standard Asset's metadatahash field.

This very simple contribution (NO BOUNTY) tries to solve integration of IPFS content identifiers to ASA fields which is a better way in comparison to method already in practice (ASA transactions NOTE field to include IPFS CID).

… `byte32_to_ipfscidv0`)

- added `base58>=2.1.0` package to setup.py requirements
- added tests to test/steps/steps.py
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