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 #427

Closed
wants to merge 1 commit into from
Closed

Conversation

emg110
Copy link

@emg110 emg110 commented Aug 28, 2021

This PR adds two functions to convert.ts 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).

- added convert functions to convert.ts (`ipfsCidV0ToB32` and `b32ToIpfsCidV0`)
- added mocha tests to tests/4.Utils.ts (tests passed: OK)
- added cucumber tests to tests/cucumber/steps/steps.js (tests passed: OK)
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.

None yet

1 participant